cancel
Showing results for 
Search instead for 
Did you mean: 

How to Modify Standard Print Program

Former Member
0 Kudos

Hi

Can any one please tell me how to modify and where to modify exactly, how to find where to modify stadard print programs for both smartforms and scripts.

Because in the print program of script calls function module Write_form and to this function module we need to pass our modified z script . so how to find the function modules called in the standard print program.

Thanks&regards,

Pradeep Reddy Miriyala

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

There is no need to modify the Std driver program to attach your ZSCRIPT to the fun module Write_form.

Just keep this ZSCRIPT from in NACE transaction against the Std driver program and std Script form.

remove the std script from and keep this ZScript.

The driver program automatically takes this Zscript form (instead of std script) for that output type and considers this Zscript only in the program and prints correctly.

You will copy the Std driver program into Zprogram and keep it in the same place of Std program in NACE only when there is a need of writing some extra logic or to bring some extra data from different tables that are not used in the driver program.

However this is possible in Scripts by calling external Subroutines using PERFORM statement or in Smartforms creating PROGRAM L:INES

when it is not possible in that way then only we need to modify the std programs

On the whole we rarely modify the std driver programs

<b>Reward points for useful Answers</b>

Regards

Anji

former_member196280
Active Contributor
0 Kudos

You cannot modify the standard print programs/ driver program.. You need to copy them and make the required changes.

If driver program is not in your control (I mean if it is std. program) try to use subroutines in your SAPscripts to add new fields that are not available in driver program.

For finding the form names, ex: goto SE38, program RFFOUS_C and select radio button documentation, it explains all the script names that can be used along with the program.

Reward points to all useful answers.

Regards,

SaiRam

Former Member
0 Kudos

HI,

Look at the below link

Regards

Sudheer

Former Member
0 Kudos

Hi,

Copy it into a Y program and you can carry out your modifications.

Goto tcode NACE and create output type which will access this program.