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: 

Print Program of script

Former Member
0 Kudos

HI all,

i had a print program of packing list z_sd_packlist, i have to make changes to the form, so should i make the changes to the same program or should i copy it to other program name (my Own program name) i am asking this the same print program is been used by other four forms.

please let me the correct process, if i make changes to the current one and saving it it was asking the request which are classified as Modified. so what should i do now

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ram,

Even the print program is been used by other forms also we need to change the same one untill otherwise the user asked to create a copy of that.

First ask the same and confirm with them.

Best option is use the same program and create transport request.

Thanks&Regards,

Sunil

5 REPLIES 5

Former Member
0 Kudos

Hi

see the general things about script copy

here an example of PO script is given do it in the same way

There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.

I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...

To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.

You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.

Ex: Go to SE71,

on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing

Form name:

Source Clinet:

Target Form:

give Form name as usedefined form name EX: ZFORM1

Source client as 000 and

Target form as MEDRUCK.

execute.

Now, the standard from MEDRUCK is copyied to your form ZFORM1.

NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.

Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.

Go to NACE Transaction.

on Applications select EF for purchase order and click Output types button on application tool bar.

now select NEU as output types dobule click on Processing Routines.

now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.

go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .

you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms.

Regards

Anji

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

It depends on your company, what is the procedure? I am a believer in keeping stuff all in one place as opposed to 4 different places, so I would modify the existing program keeping in mined that it is used to drive other forms, and make sure that I do not change that specificy functinoality while making my changes.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi Ram,

Even the print program is been used by other forms also we need to change the same one untill otherwise the user asked to create a copy of that.

First ask the same and confirm with them.

Best option is use the same program and create transport request.

Thanks&Regards,

Sunil

Former Member
0 Kudos

Find out the part of code which is relevant to the form in which u want to make changes.

whenever u save a changed program system will ask for TR number. u can give a workbench req number and activate

Former Member
0 Kudos

Hi ram

the same print program is used by remaining 3 forms it is better to copy for the current form because if u modigy then it may affect remining 3 forms too if ur code doesn't affect the remaining then you can use the same.

Regards

sandhya