Skip to Content
avatar image
Former Member

IW31 or IW32 Work Order Create -> Component -> Purchasing ->Field GL_ACC

I need to populate, or change, the GL Account number in custom logic whenever either Work Order transaction - IW31 and IW32 - is executed under creating components when selecting the Purchasing button at the bottom. I would rather use a BADI than an exit, but if my only choice is an user-exit then I will. I have tried putting breakpoints in several processes in BADIs:

WORKORDER_UPDATE

IWO1_PREQ_BADI

IWO1_WKCTR_CHANGE

I have had no luck breaking into any of these when I am in the Purchasing screen of the IW32 after hitting enter. However, I do break into WORKORDER_UPDATE in the SAVE Process, but I need to break into the custom logic on an enter. To reiterate, my goal is to put custom logic that will replace a GL Account No., or create a GL Account No.

Thank-You.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 16, 2011 at 02:51 PM

    Hello Tom,

    There are no BADI's User Exits that will suite this requirement. Only option is to use the BAPI.

    You can use the BAPI "BAPI_ALM_ORDER_MAINTAIN" . G/L Field will be on the T_COMPONENT table in the BAPI.

    Hope this answers your question.

    Thanks,

    Greetson

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 16, 2011 at 02:52 PM

    I just found BADI MRO_CONTRACT. It is breaking there, I am dteremining if my fields are there. Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2015 at 08:42 AM

    Hi Tom,

    You can meet your requirement through configuration.

    Configure object "Create Default Value Profiles for External Procurement" in there you can maintain GL account or cost element then assign created profile to plant and order type through "Default Values for Task List Data and Profile Assignments".

    Hope this helps.

    Thanks and Best Regards,

    Vhags

    Add comment
    10|10000 characters needed characters exceeded