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

modification for pricing procedure

Former Member
0 Likes
1,187

Hi Guys,

I got a spek to add an additional "check" statement to SAP standard requirement 002 (LV61A002). My question is how to make the modification work. Do I just change the Include program in SE38, or I need to do some extra work to make it work. Thx in advance! The source code of standard include program is shown as follow:

  • Pricing is turned on in item category configuration (TVAP)

form kobed_002.

sy-subrc = 4.

if komp-kposn ne 0.

check: komp-prsfd ca 'BX'.

check: komp-kznep = space.

endif.

sy-subrc = 0.

endform.

  • Prestep

form kobev_002.

sy-subrc = 0.

endform.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,067

Hi,

Go to transaction VOFM..

in the menu..choose.

REQUIREMENTS -> PRICING..

At the end of the rows...Give a new number that should be greater than 600...

Ex..601

And give a description..

Press enter...It will ask for access key...Give the access key for the corresponding object.

Then select that row ...and in the menu...EDIT -> ACTIVIATE...To activate the routine..

Then press the source code button..t will take you to the code..There you can write code..

Then configure this routine in the pricing procedure V/08..

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
1,067

Hi,

Create a new routine in the transaction VOFM..

Then copy the code from the routine 002...

And add your code..

Thanks,

Naren

Read only

0 Likes
1,067

Hi Naren,

Thanks for your early reply. How can I create another routine. We r using ECC 6. And the Menu path for the Include program is Requirement>Pricing>Routine Number 2

Read only

Former Member
0 Likes
1,068

Hi,

Go to transaction VOFM..

in the menu..choose.

REQUIREMENTS -> PRICING..

At the end of the rows...Give a new number that should be greater than 600...

Ex..601

And give a description..

Press enter...It will ask for access key...Give the access key for the corresponding object.

Then select that row ...and in the menu...EDIT -> ACTIVIATE...To activate the routine..

Then press the source code button..t will take you to the code..There you can write code..

Then configure this routine in the pricing procedure V/08..

Thanks,

Naren

Read only

0 Likes
1,067

Naren,

Great help! How to rate your answer.

Matt

Read only

0 Likes
1,067

Also, do not forget to activate your routine everytime you transport it to a different client.

Program to activate your routine is RV80HGEN

Thanks!