Skip to Content
avatar image
Former Member

BADI: ME_PROCESS_REQ_CUST - MESSAGE

I have one question.

I want to know what role IM_COUNT in the method PROCESS_ACCOUNT.

Thanks for everyone.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 05, 2017 at 05:26 PM

    Hi,

    This is interesting feature of Standard SAP enhancement design.

    IM_COUNT is used Particularly on specific area of Purchasing/MM where you set some values using custom code/business logic implementation-->to PO header or item using Setter method,(e.g.set->text or Update with value X -rather any change on the document level) for your example it is Purchase requisition level enhancement.

    why is it required? when you trigger the update or set method for any field for database update,then system by default goes into re-cursive loop./infinite loop and tries to check again and again for the change.I faced similar issue during an implementation.

    What purpose does it serve? While doing logical coding,you need to check as below.

    if im_count = 1.

    * Inside you should write all your custom logic/code.otherwise set method will trigger everytime resulting infinite loop.

    endif.

    Regards,

    Avik

    Add comment
    10|10000 characters needed characters exceeded