Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Uploding sales oreder through BAPI (BAPI_SALESORDER_CREATEFROMDAT2 )

Former Member
0 Likes
388

Hi,

I have created program to upload sales order data through BAPI.It is working fine if the Req delivery date is inthe format like YYYYMMDD.if i change the date format to DDMMYYYY the program giving dump.Saying date is invalid.

I tried this BAPI using tcode se37 using same data with both above date formats here i am not getting any dump error.Could any one please let me know what i need to do in the program in order to resolve this problem.Appriciate for your guidence.Thanks in advance.

Kind Regards.

Abhis

1 REPLY 1
Read only

Former Member
0 Likes
308

I assume when you say you call the bapi via SM37, you are using the test option to present the dates ?

In this case, the screen input process is reformatting DDMMYYYY input to YYYYMMDD.

The BAPI needs to be called with dates in the format YYYYMMDD as this is the standard format for SAP date fields.