Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VOFM Condition Value

Former Member
0 Likes
639

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

3 REPLIES 3
Read only

Former Member
0 Likes
544

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

Read only

former_member195698
Active Contributor
0 Likes
544

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

Read only

0 Likes
544

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.