Skip to Content
avatar image
Former Member

SCM-DP User exit Macro

Dear All,

we have a requirement on Macro,

Condition:

Before executing macro I should check a Z-table for the satus of the completion of other process, if the status is in complete I should start my macro execution.

And in macro also I am checking a Z-table entry before execution of macro step for copying of key figures.

Deatila of condition:

IF

Z-Table1 entry=X

Start macro

IF

Z-Table2 entry=X

Copy

KF1 to KF2

To achieve this I am planning to user Badi/user exit Macro

Can any one please sand some example ABAP code to complete this macro (which will help me on how to read key figure values and how to write back to another key figure.)

Hoping for the helpful code

Nagaraju

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 28, 2008 at 08:44 PM

    The user exit macro is available through the enhancement APODM005 (Tcode SMOD). The details on creating a user exit macro is available in the SAP Note: 418801

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 29, 2008 at 04:44 AM

    Hi Raju,

    This can also be achieved by creating a function module in se37. Call the same function module from the macro workbench (Edit->User Function). Check the argument value of the function module before copying the key figure values.

    Regards,

    Siva.

    Add comment
    10|10000 characters needed characters exceeded