Skip to Content
avatar image
Former Member

Create and assign substitution

Hi,

Can anyone tell me how to define substitution via user-exists and how to assign the substitution to controlling area T001 via Financial Accounting (New) ->General Ledger Accounting (New) ->Tools ->Validation/Substitution -> Substitution of Profit Centers in Customer Orders -> Assign Substitution Rules.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jul 23, 2009 at 01:42 PM

    You'll find this information in the help docs and documentation in the IMG - it just takes a bit of effort on your part...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 23, 2009 at 01:34 PM

    Hi,

    Using the transaction GGB1 transaction, directly you can create the Substitution rule.

    Mention the pre requisites here, and mention the substition you required. It is also possible that you can assign one routine and code accordingly.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 27, 2009 at 09:58 AM

    Hi,

    Did you able to create the substituion?

    you have to write your logic in form.

    FORM U999. (substituion exit in ZGGBS000)...

    write your code here.

    ENDFORM.

    let me know if you still need any help.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Venkatesh,

      I have created the substitution and gave the user-exit name in the substitution.In GCX2 transaction I have given the zprogram name.Now when I double click on the user-exit name it is taking to zprogram zrggbs000 where I have to give my code.But now I am facing problem with substitution logic I have to put in form ...endform of user-exit.

      The subtitution logic is given as

      - DATAB / DATBI

       look up sy-date (system date). sy-date should be between DATAB and DATBI

      - KOKRS

       is available in VBAK, so should be available in an internal table at the moment of substitution. If not, look-up via sales organization  company code  controlling area

      - Z_SOL_CODE (solution code)

       the solution code will be available on each sales order line as a partner function: partner function u2018ZSu2019

       from solution code, look-up solution grouping in ZF_SOL_MAPPING

      - Z_MACRO_SEG (macro segment)

       the macro segment needs to be looked-up from the sold-to part of the sales order  in the customer master  (menu) additional data  Attribute 1 (field BRSCH)

      Based on the above logic, the system needs to look-up the correct profit center in ZF_SUBSTITUTION.

  • avatar image
    Former Member
    Jul 27, 2009 at 10:28 AM

    what is that you are facing now?

    you are not geting the logic?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Venkatesh,

      Now I understood the logic and am able to retrieve profit center prctr from zf_substitution table.

      Now my question is why do we need to create a substitution and give the user exit name and is the zprogram related to this substitution?