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

Routine Copy

Former Member
7,530

hi experts,

How can i copy a SAP provided standard routine for a particular condition type and

modify it . i also want to know that after the modification how can i activate the customize routine and assign it for that particular condition type through tcode VOFM .

HELP ME OUT

6 REPLIES 6
Read only

Former Member
5,209

Hi,

1) Go to transaction and create the pricing routine via VOFM.

2) Copy the code from the existing rotine and insert it to the newly created routine and modify as per

your requirement.

3) Now you need to assign this to the condition type in the pricing procedure. For this go to transaction VOK0. In this transaction go to:

Pricing Procedure --> Pricing Procedures --> click on the pricing procedure which you want to modify or here you have to find out all the pricing procedures which uses this condition type.

Then click on the Control --> This will give you the list of conditions types for that procedure. You can insert the number eg. 932 ( Routine no) of the newly created routine and save it in the Requirement column for that condition type and save.

This is how you can assign the routine to the condition type.

Reward if this helps or let me know incase you need more info.

Regards,

Shahu

Read only

0 Likes
5,209

hi

thank you for help me out. But still i am facing some problems.

1>When i am going to create a routine in TCODE 'VOFM' system asked me for access key.

2>If i want to create a new routine which is similar to ROUTINE 366(include prg name is FV64A366) then what are the steps.please i need the ilaborately.

3> how can i activate the routine and assign it against the condtion type.

Read only

0 Likes
5,209

Hi Pratik,

The answers are as below:

1) There will be a user id and password provided by SAP to you as SAP provides to their every client. You need to register for Access key and get it from help.sapcom.

2) Once you get the access key, go to VOFM, give the no and double click on it, it will ask for Access key. Give the access key that you got in point 1. The routine is automatically created by SAP. Copy the code from routine 366 and modify accordingly.

3) I have explained how can you assign it to the condition type using transaction VOK0. Open pricing procedures in change mode. Click on Controls and assign the requirement routine no in the requirements column for the specific condition type and save.

Also in VOFM, do not forget to check the ACTIVE check box for the routine.

Let me know incase you need more info on this.

Regards,

Shahu

Message was edited by:

shahuraj shirure

Read only

Former Member
0 Likes
5,209

Hi,

To copy a routine:

- go to vofm transaction and find that routine. Select it and get the full routine name ( eg:RV60A***). Go to this program in SE38 and can directly copy it from there.

Thanks,

Rashmi.

Read only

Former Member
0 Likes
5,209

This is ABAP Report

rv80hgen

run this Report. Routines are automatically activated

regards,ajayreddy

Read only

PatrickDean
Participant
0 Likes
5,209

I found that using the Modification Assistant meant that the VOFM changes were not registered, but switching it off got the object activated and RV45C601 inserted into the main RV45CNNN program.

Prior to that, I'd been running RV80HGEN and all that jazz, RV45C601 had been created, and had code in it, but because it hadn't been listed / registered / recorded in RV45CNN, it didn't have access to any of the variables and was not called.