‎2009 Jan 08 11:55 AM
Hi friends
I was created a new condition type for rounding difference posting,I want to post this difference as a header condition,
When i am creating sale order using Va01, it calculate right,
but i have to post this using Bapi
''BAPI_SALESORDER_CREATEFROMDAT2'' in Z program , in this case it calculate Difference as a item condition
Is there any indicator in BAPI_SALESORDER_CREATEFROMDAT2 , where i post this condition as a header condition?
Thanks
Suchender Dagar
‎2009 Jan 08 2:31 PM
Hi
Try leaving ITM_NUMBER field in the BAPICOND structure empty when you add the condition.
This way it'll add it as a header condition.
Guy.
‎2009 Jan 09 4:38 AM
Hi Guy
i have already leave itm_number field blank in BAPICOND.
Suchender Dagar