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

Problem: Payment Terms change in Sales Oder using BAPI

Former Member
0 Likes
857

Hi,

I am using BAPI_SALESORDER_CHANGE, to change the Payment Terms at header level in Sales Order. BAPI is executed using SE37.

Following Import parameters are used.

1) SALESDOCUMENT

2) ORDER_HEADER_IN

field used is PMNTTRMS

3) ORDER_HEADER_INX

fields used are UPDATEFLAG ( = U ) & PMNTTRMS ( = X )

After execution of BAPI, following are the return messages.

-> ORDER_HEADER_IN has been processed successfully

-> OC Standard Order XXXXXX has been saved

But Payment Terms in the Sales Order has not been chaged to new payment terms.

What could be the problem here?

Thanks,

Prasad

2 REPLIES 2
Read only

nirajgadre
Active Contributor
0 Likes
567

Hi,

You are require to use the BAPI using the function module test sequense.

Goto> se37 menu> function module --> test --> test sequence --> enter the bapi name BAPI_SALESORDER_CHANGE and second line enter BAPI_TRANSACTION_COMMIT.

Execute the test sequence with the same data and test again

data will got updated into the sales order.

Read only

Former Member
0 Likes
567

Thanks.