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

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.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchHRSoftware

Close