Skip to Content
author's profile photo Former Member
Former Member

Problem in BAPI_PRODORD_CHANGE


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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2014 at 10:43 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.