ā2012 Nov 23 7:07 AM
Hi All,
We are using BAPI SD_SALESDOCUMENT_CREATE to create sales document and we are able to create documents successfully.
Now the requirement is that we have to update tax amount (MWSBP field of table VBAP). I am not sure to which parameter of this BAPI , this tax amount should be pass so that it can populate field MWSBP of VBAP table along with other data while creating sales document.
Any help on this will be highly appreciated.
Thanks in advance,
Priyaranjan
ā2012 Nov 23 9:09 AM
Hello,
I have found a field in BAPI BAPI_SALESORDER_CREATEFROMDAT1 but not in BAPI that you are using.
If its mandatory to pass tax amout then you can use bAPI BAPI_SALESORDER_CREATEFROMDAT1
Check tables ORDER_ITEMS_OUT STRUCTURE BAPIITEMEX in BAPI, you will get field TX_DOC_CUR to capture Tax amount.
Regards,
Deepti
ā2012 Nov 23 11:51 AM
Hi Deepti,
Thanks for ur reply.
We are already using BAPI SD_SALESDOCUMENT_CREATE. IN this BAPI we have conditions table which we populate with condition records ,but in BAPI BAPI_SALESORDER_CREATEFROMDAT1 i didnt see any table parameter for condition records.
we are looking for a way to populate this tax amount(VBAP-MWSBP) by using BAPI SD_SALESDOCUMENT_CREATE.
Is it possible to achieve this using BAPI SD_SALESDOCUMENT_CREATE only?
Thanks again.
Priyaranjan