cancel
Showing results for 
Search instead for 
Did you mean: 

standard Script print program

Former Member
0 Kudos

hi All

i modify standard script but i want to check output and how to make changes in standard pint program.

Nitin

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hai Nitin,

This Is the Method I Used To Practice If I am Not Having Authorizations to NACE.

Just Display Program RSNAST00

In that Go With Perform TNAPR_LESEN.

By Forward Navigation It Will Go To Subroutine Tnapr_lesen.

Put Break Point On Subroutine Form TNAPR_LESEN.

Then Open ME23n In the Same Session By Giving /nME23n.

Go With Print Preview.

Then It Will Stop At Break Point Then

It Is better to use Watch Point For Tnapr-fonam .

In Debugging Give For Tnapr-fonam = your Form Name .

then Continue ..

Then U r Form Will Trigger

Former Member
0 Kudos

If changes are related to layput then you dont need to make any change in the print program. Just go to corresponding transaction and configure the messages against the output type.

For example For ME22n

enter the purchase order number then in the application tool bar click on messages then enter the output type and print medium (like printer out, fax or mail etc..) then click on further data select pritn immediattely then go back( no need to save there)now select communication method on the application tool bar then enter the printer name ( like LOCL or LP01) then come back ( no need to save)

then save it.

now in the me22n transaction select menu path ( first path) issue output. it will print your form.

Just make sure that your form and print program is configured against that output type.

Reward points if useful.

But it is nogt always same as above, It differs for some transactions like LT31.

So if you have some similar kind of transaction better post it here so that we can help you better.

Regards,

Nageswar

Former Member
0 Kudos

Hi

see this

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.

You can check the script by executing it from the corresponding Transaction codes like

PO: from ME9F tcode

Sales order: from VA02 tcode

Delivery: from VL02N tcode

Invoice : from VF02 Tcode

after entering the document number check the output

Regards

Anji

Former Member
0 Kudos

Nitin,

You need to goto corresponding document to check the output. If you are developing PO from you need to go to ME22N transaction to test.

If you want to change the print program you have to take copy of that and assign that to your form using

T-Code NACE.

Thanks,

Pranav

Former Member
0 Kudos

Hi Nithin,

CAN U TELL WHICH LAYOUT U MODIFIED ARE DEVELOPED.

Thanks&Regards,

phani