‎2007 Nov 02 10:29 PM
Hi All,
I have created a Condition Value 900 for Order in Transaction VOFM.
Following is the code.
FORM FRM_KONDI_WERT_900.
*{ INSERT GEDK905076 2
*Cuando los motivos de pedido (KOMK-augru) sean GQ1 y GQ2,
*y el item category (KOMP-/dbm/itcat) sea P003.
*el impuesto (xkwert) debe ser 0.
CONSTANTS: c_gq1(3) TYPE c VALUE 'GQ1',
c_gq2(3) TYPE c VALUE 'GQ2',
c_p003(4) TYPE c VALUE 'P003'.
CHECK komk-augru EQ c_gq1 OR
komk-augru EQ c_gq2.
CHECK komp-/dbm/itcat EQ c_p003.
xkwert = 0.
*} INSERT
ENDFORM.But this code is not updating the Condition screen for items condition value.
The condition was activated and the program RV80HGEN ejecuted
Regards
Mariano
‎2007 Nov 02 10:46 PM
Hi
VOFM is the transaction where you can maintain routines for Output types, Pricing and Requirements, which are assigned through cusomization.
To create a routine you need access key & routine no. starts with "9".for ex. 901,902 etc.
one important thing to note that even if you have some syntax errors inside your routine, it will get activated without errors. So, you need to do Main Program check before activation.
Refer to SAP Note no : 327220,381348,156230.
goto VOFM tcode for wrting the Routines
from menu Requirements-> pricing
You can create the pricing related routines here
Use the Number from 900 only
take the acess key and try to copy the existing routine and change the code to your requirement and keep a break point and see
Activate it before execution
Regards
Anji
‎2007 Nov 03 8:18 AM
Hello Mariano,
You can check the following :
Is the Routine marked as Active in the VOFM ? RV80HGEN will activate/deactivate the routine depending on the Routine being marked as Active or not.
Is the Routine attached to the relevant condition type in the Pricing Procedure ?
Regards
AJ
‎2007 Nov 03 3:39 PM
Hello AJ,
Thanks for your reply
The routine is attached to the MWST condition
and is marked as active in VOFM.
Works the routines in all conditions?
Regards.
Mariano.