Skip to Content
0
Former Member
Feb 04, 2010 at 02:24 PM

Quantity In BAPI_SALESORDER_CREATEFROMDAT2 Not Updating

666 Views

Hi All,

I have a requirement to create Sales order(VA01), PGI(VL02N) and Billing(VF01) automatically when I enter customer material and Quantity. All the above should be done programatically.

So I am using the BAPI BAPI_SALESORDER_CREATEFROMDAT2 in creating a sales Order. In Standard Transaction VA01 when I am giving Cust No, material and Quantity, it is creating a sales order and delevery and giving the Success message 19 has been saved (80000456 Delivery created)

If Delivery No is there only I can make PGI with another BAPI. But Delivery is not Creating with the BAPI I BAPI_SALESORDER_CREATEFROMDAT2.

When I use the BAPI with parameters Doc type, Cust no, Partner Type(AG), Material and Quantity, Sales Order is Creating but Quantity is not Updating..I am also passing the header X and Item X values.

I am Getting the below Return Messages

SALES_HEADER_IN has been processed successfully

SALES_ITEM_IN has been processed successfully

The sales document is not yet complete: Edit data

19 has been saved (no delivery created)

Can any One help me in this Regard..

Should I nee to paas More Parameters?

Or Can any one tell me in detail about the Parameters to be Passed To the above BAPI to get its Correct Functionality.

Thanks in Advance.

Regards

Avinash.

Edited by: Avinash on Feb 4, 2010 3:24 PM