Skip to Content

Enhancement in CO11n

Dear ,

I work with material 40000 By-Product Split Valuation Good and Scrap

During Confirmation by tc Co11n I want to simulate this scenario :

Yield 80

Scrap 20

In Good movement screen I want the same quantity to be copied inside the good movement

Mat Quat VT mvt

40000 80 Good 531

40000 20 Scrap 531

Can I do this ??

Regards

Rami

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 24, 2013 at 10:18 AM

    Hi Rami,

    To automatic copy Yield and Scrap into goods movement screen inside, implement BADI WORKORDER_GOODSMVT method BACKFLUSH and add below sample code.

    DATA: WA_COMPONENTS TYPE IMSEG,
    WA_CONFIRMATIONS TYPE AFRUD.

    CLEAR WA_CONFIRMATIONS.
    READ TABLE IT_CONFIRMATIONS INTO WA_CONFIRMATIONS INDEX 1.

    WA_COMPONENTS-MATNR = <your_material_number>.
    WA_COMPONENTS-ERFMG = WA_CONFIRMATIONS-LMNGA. "Yield to Be Confirmed
    WA_COMPONENTS-ERFME = WA_CONFIRMATIONS-MEINH.
    WA_COMPONENTS-AUFNR = WA_CONFIRMATIONS-AUFNR.
    WA_COMPONENTS-WERKS = WA_CONFIRMATIONS-WERKS.

    APPEND WA_COMPONENTS TO CT_COMPONENTS.
    CLEAR WA_COMPONENTS.

    WA_COMPONENTS-MATNR = <your_material_number>.

    WA_COMPONENTS-ERFMG = WA_CONFIRMATIONS-XMNGA. "Scrap to Be Confirmed
    WA_COMPONENTS-ERFME = WA_CONFIRMATIONS-MEINH.
    WA_COMPONENTS-AUFNR = WA_CONFIRMATIONS-AUFNR.
    WA_COMPONENTS-WERKS = WA_CONFIRMATIONS-WERKS.
    APPEND WA_COMPONENTS TO CT_COMPONENTS.
    CLEAR WA_COMPONENTS.

    Regards,

    Mordhwaj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 24, 2013 at 07:01 AM

    Hi Rami,

    Goods movement for By product is 531 and for scrap 551.

    It is not possible to post scrap qty. with 531 movement type. I hope this clears your question.

    Regards,

    Amit Kataria

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 24, 2013 at 07:02 AM

    Hi Rami,

    Goods movement for By product is 531 and for scrap 551.

    It is not possible to post scrap qty. with 531 movement type. I hope this clears your question.

    Regards,

    Amit Kataria

    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.