2010 Sep 22 11:56 PM
Dear all,
We are implementing custom billing variants. We already have developed 3 using the test/error method.
Does anybody know where we can find a manual (step by step document) which indicates in a more detailed way how to implement custom variants (how the macros works, etc.)?
Thanks in advance.
Fernando.
2010 Oct 07 11:12 AM
Hi,
The variant programs for billing are created usually as copy of the some SAP standard variant program, where you can add your own functionality.
The detailed description of the macros in the SAP you can find:
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db972835c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_scm70/helpdata/en/f3/852d3af6ecd02ae10000000a114084/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/4f/d52a51575e11d189270000e8322f96/content.htm
Vlado
2010 Oct 11 6:56 PM
Also macros used in variant programs have very self-descriptive names so you can guess it
Generally all variants works over internal structure, which contains whole billing document + all facts + schema steps + installation + other data - so writing to installation facts writes into ettifn internal table in this structure, writing info line adds line into ERCHZ structure etc.
If you will debug or analyze few variants, you will find easily purpose of these macros.
As Vlado Belis said - in most cases, it is sufficient to just copy and modify standard variant
Regards
Vlado Balko