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

BAPI SD_SALESDOCUMENT_CREATE

Former Member
0 Likes
1,611

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

2 REPLIES 2
Read only

Former Member
0 Likes
954

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

Read only

0 Likes
954

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