Skip to Content

PP - Assign Batch Number on Production Order during Saving

Dear All

I have a requirement to assign batch number on saving of Production Order.

Batch Number will be read from Sale Order and assigned to batch field in Production Order Goods Receipt Tab.

Only one user exit (PPCO0001 Application development: PP orders) is providing feature to change batch but its also not working, changing value in user exit but screen is still showing old batch or empty field.

My requirement is whenever user execute tcode CO41 to convert planned order to production order, system should read batch from sale order and store in batch field of Production Order..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 16, 2016 at 12:42 PM

    Issues Resolved by implementing an implicit enhancement at start of function module CO_BI_AFPO_READ_WITH_KEY

    ENHANCEMENT 1  ZPP_ZAM_BATCH_DETERMINATION3.    "active version
    
    READ TABLE CAUFV_BT INDEX 1.
    
    
    IF   CAUFV_BT-AUART =  '5001' OR CAUFV_BT-AUART =  '5002'
       OR CAUFV_BT-AUART =  '5003' OR CAUFV_BT-AUART =  '5004' .
    
    LOOP AT AFPO_BT.
    
         SELECT SINGLE CHARG
          INTO afpo_BT-CHARG
           FROM VBAP
           WHERE VBELN = afpo_bt-KDAUF
           AND   POSNR = afpo_bt-KDPOS.
    
           modify afpo_bt index sy-tabix TRANSPORTING charg.
    
    ENDLOOP.
    
    ENDIF.
    ENDENHANCEMENT.
    
    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.