cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Dear all,

I have read some of the forum regarding the BAPI_SALESORDER_CREATEFROMDAT2 problem when calling from .NET application.

I received "Please enter sold to party/ship to party" at first, which later I found out that I need to input "AG" instead of "SP" due to german language. Then "Invalid Date , ," error occurs, I input below coding in my .NET application and resolve the error.

const string SALES_ORG = "0001";

const string DOC_TYPE = "TA";

const string TODAYS_DATE = "20030326";

const string DEFAULT_DATE = "00000000";

const string TERMS = "NT30";

orderHeader.Doc_Type = DOC_TYPE;

orderHeader.Sales_Org = SALES_ORG;

orderHeader.Req_Date_H = DEFAULT_DATE;

orderHeader.Purch_Date = DEFAULT_DATE;

orderHeader.Pmnttrms = TERMS;

orderHeader.Price_Date = DEFAULT_DATE;

orderHeader.Qt_Valid_F = DEFAULT_DATE;

orderHeader.Qt_Valid_T = DEFAULT_DATE;

orderHeader.Ct_Valid_F = DEFAULT_DATE;

orderHeader.Ct_Valid_T = DEFAULT_DATE;

orderHeader.Purch_No_C = "123456";

orderHeader.Po_Dat_S = TODAYS_DATE;

orderHeader.Doc_Date = DEFAULT_DATE;

orderHeader.War_Date = DEFAULT_DATE;

orderHeader.Dun_Date = DEFAULT_DATE;

orderHeader.Add_Val_Dy = "00";

orderHeader.Fix_Val_Dy = DEFAULT_DATE;

orderHeader.Bill_Date = DEFAULT_DATE;

orderHeader.Serv_Date = DEFAULT_DATE;

orderHeader.Cmlqty_Dat = DEFAULT_DATE;

However now, I receive another error msg no 053 "Specify either address number or address handle", message class AM. Does anyone encounter this same problem before?

And can anyone share necessary input parameters needed for SO creation through this BAPI in .NET application?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi abby ang,

Welcome to SDN Forums!!!

Have you tested the bapi <b>BAPI_SALESORDER_CREATEFROMDAT2</b> using your input values that you have provided in the code?

In the Transaction SE37...

1. Enter the bapi name

2. Click Display.

3. In the Right Handside of the Display page you will see a button name <b>"Function Module Documentation"</b>.

4. Click on it to find sample inputs...

Please post this question in ABAP Forums...

Hope it helps.

Regards,

Maheswaran.B

PS: Reward Points for useful answers...

Message was edited by: Maheswaran B

Message was edited by: Maheswaran B