Application Development 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: 

creating a new routine using vofm

Former Member
0 Kudos

hi

as per my requirement i want to create a new routine using VOFM tcode for sales orders

while creating this new routine i have to copy one of the existing routine as it is and i have to add some more logic.

how can i proceed in this case

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Vamsi,

Your routine would work properly in development server. But if you transfer this to testing server it would not run through your routine. This problem is due to the routine which is not created in main program. But in development program routine it would be created properly. Transfer the generation program to testing server which would create this routine in main program. I forgot the program name but please try R*GEN. I'll let you know on monday.

Thanks and Regards,

Sampath.

4 REPLIES 4

Former Member
0 Kudos

Go to the routine number that needs to be copied.

Put your cursor on the routine number field that needs to be copied.

Overwrite that number with your new routine number and hit enter.

The new routine will be created as a copy of the old routine and you can modify the new routine as you need it.

Ex.

You have to copy routine 104 to 904


Routine number   Description          Active
104              Bill.bus.item data   X

Put your cursor on 104 and then change it to 904 and hit enter.

904 will be created as a copy of 104 and you can make your changes in 904.

Don't forget to activate it after you are done.

Hope it helps.

Cheers,

-Ramesh

0 Kudos

hi ramesh

thanks for your answer

if i follow the procedure given by you

can i know weather the old routine exists or it is completely replaced by the new one

ex: as u said copying 104 to 904

can 104 exist after this or only 904

0 Kudos

hi,

if you copy an existing routine1 to a new routine2, both routine 1 and 2 exists - 2 being the copy of 1.

Former Member
0 Kudos

Hi Vamsi,

Your routine would work properly in development server. But if you transfer this to testing server it would not run through your routine. This problem is due to the routine which is not created in main program. But in development program routine it would be created properly. Transfer the generation program to testing server which would create this routine in main program. I forgot the program name but please try R*GEN. I'll let you know on monday.

Thanks and Regards,

Sampath.