Q
Problem solve Get help with specific problems with your technologies, process and projects.

Passing a date value from Java to BAPI

I'm using an import structure to pass a date value from Java to the BAPI and I get an error. JCO_ERROR_CONVERSION...

in ... srtucture.setValue("03222004", "REQ_DATE_H");

Should I convert the string into a date type or is string type acceptable?
When you pass a date, you can either use a Java Date object or a string. In the latter case (which you use in your code), the format of the date needs to be YYYYMMDD.

This was last published in May 2004

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close