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 in BAPI_PRODORD_CHANGE

Former Member
0 Likes
2,889


Hi all,

How can I change the production order header table AUFK field SEQNR (sequence number) value to 0 (zero) using the function module bapi_prodord_change? Please provide me the code .

Regards.

Souvik.


Hi all,

How can I change the production order header table AUFK field SEQNR (sequence number) value to 0 (zero) using the function module bapi_prodord_change? Please provide me the code .

Regards.

Souvik.

1 REPLY 1
Read only

Former Member
0 Likes
1,590

Hi Souvik!!!

Please find the below code:

DATA : WA_ORDERDATA1 LIKE BAPI_PI_ORDER_CHANGE,         

DATA : WA_ORDERDATAX LIKE BAPI_PI_ORDER_CHANGEX,

WA_ORDERDATA1-SEQUENCE_NUMBER = '0'.


WA_ORDERDATAX-SEQUENCE_NUMBER = 'X'.


    CALL FUNCTION 'BAPI_PRODORD_CHANGE'

      EXPORTING

        NUMBER                 ORDER_NUMBER

        ORDERDATA              WA_ORDERDATA1

        ORDERDATAX             WA_ORDERDATAX.


CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

          EXPORTING

            WAIT = 'X'.

Hope you may get the solution.

Regards,

PS