Variant Program in SAP IS-Utilities

1.    How to find the code (function module/program) for a variant in SAP IS-U?
Ans:- For any variant in SAP IS-U , there will be a function module which is the combination of “ISU_” and the variant name.
For ex. If a variant name is QUANTI01 then the function module or program will be “ISU_QUANTI01”.

Function module “ISU_SCHEMA_EXECUTE” is the main function module which executes all the variant programs sequentially according to the billing schema.

2.    How to create a variant and variant program in SAP IS-U (Utilities)?
Ans: - Follow the following steps to create the variant program-
a.    Go to transaction “EA88”.
b.    Fill the name of variant needs to be created and click “create” button.

MaintainVariant

c.    Fill the entries according to your requirement and click on “save” button. For ex. See below

create Variant

Disconnection Period: If this check box is selected then quantity will be automatically split in the time slice according the operands value.

Not for Extrapolation: If this check box is selected then the items of this variant program will not be extrapolated for future and will not take part in BB request creation.

d.    Go to transaction “SE37” to create the function module for this variant.

e.    Give the name of function module relevant to the variant. This will be the combination of “ISU_” and the variant name. Click on “Create” button.

Function module

f.    Provide the function group and short text, and click on “Ok” icon.

create function module
g.    Give the import parameter same as given below.
Import function module
h.    Give the changing parameter same as given below.

Att function module

i.    Give the Exceptions same as given below. And activate the function module.

general fault

Now you can add your code in the function module for variant program.

If you have question regarding variant program and its structure feel free to ask.
Share on Google Plus

About JK STACK

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

3 comments:

  1. Thanks for the info.
    Wanted to check how the new variant created gets attached to the FM
    Ideally variant ( template ) will be created by functional consultant and the technical consutant does the creation of functional module/ Code required.
    How they are linked ?

    ReplyDelete
  2. How to attach Custom FM created in above screen shots to EA88 Variant?
    Please show in screen shots.

    ReplyDelete
  3. How we can transfer the values to output operand which i calculated in my custom variant

    ReplyDelete