You are on page 1of 6

12/23/2014

PrintprocessingprogramsERPSCMSCNWiki

GettingStarted Newsletters

Welcome,Guest

Login

Register

Store

SearchtheCommunity

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

ERPSCM / / Printing(MessageDetermination)

Printprocessingprograms
AddedbyNADIAORLANDI,lasteditedbyNADIAORLANDIonMay07,2013

Purpose
Thepurposeofthiswikiistointroduceprintprocessingprogramsusedtooutputpurchasingdocuments.

Overview
Thisdocumentshowsthestandardprocessingroutinesusedbythesysteminprintingpurchasingdocuments.Itexplainsalsohowtoreplacecustomroutinestostandardonesindebuggingmode.

Programs
Differentprogramsareinvolvedinsendingoutmessages.OurprogramsareSAPMM06E,SAPFM06PandthefunctiongroupsMEPO,MEDRUCKandMEDR.FrombasisitismainlyRSNAST00and
RSNASTED(forEDI).

Debugging
First,youmustcheckwhethertheprintprogram,formroutineandformusedforprintingpurchasingdocumentsaredifferenttothestandardSAPR/3programandform.
Ifthisisthecase,callupthesourcecodeoftheprogramRSNAST00intransactionSE38.InroutineTNAPR_LESEN,setabreakpointafterthefirstselectstatement.
ProgramRSNAST00
FormTNAPR_LESEN

http://wiki.scn.sap.com/wiki/display/ERPSCM/Print+processing+programs

1/6

12/23/2014

PrintprocessingprogramsERPSCMSCNWiki

Then,usetransactionME9*,MessageOutput(ME9F=Orders,ME9K=Contract,ME9L=SchedulingAgreement,ME9E=ScheduleLines,ME9A=Queries)tocalluptheprintpreview(Messagedetails
pushbutton).
Indebuggingmode,checkthecontentsofthefollowingvariables
TNAPRPGNAM(fortheprintprogram)
TNAPRRONAM(fortheprintroutine)
TNAPRFONAM(fortheprintform)
AndchangethefieldsTNAPRPGNAM,TNAPRRONAMandTNAPRFONAMusingthereplacefunctiontotheSAPR/3standardvalues.Bydoingthis,youcanavoidmakingcustomizingchangesthatare
onlyrequiredfortestpurposes.

http://wiki.scn.sap.com/wiki/display/ERPSCM/Print+processing+programs

2/6

12/23/2014

PrintprocessingprogramsERPSCMSCNWiki

ChangetheentryinCapitallettersandpushthepencilbuttonthenF5.
Iftheerrordoesnotoccurwhenyouareusingthestandardsettings,thenitisnotanSAPerrorandyouneedtocheckthemodificationstofindthecause.Otherwise,theremayalreadybenotesonknown
problemsthatdescribethesymptom(searchfor,forexample,MEDRUCK,SAPFM06P).

TheformMEDRUCK
TheSAPscriptformthatisusedfortheoutputofpurchasingdocumentsistheformMEDRUCK.ItcanbedisplayedandmodifiedwiththetransactionSE71.
Theformconsistsofseveralwindows.

http://wiki.scn.sap.com/wiki/display/ERPSCM/Print+processing+programs

3/6

12/23/2014

PrintprocessingprogramsERPSCMSCNWiki

http://wiki.scn.sap.com/wiki/display/ERPSCM/Print+processing+programs

4/6

12/23/2014

PrintprocessingprogramsERPSCMSCNWiki

ViaF9(orEdit>Textelement)youjumpsonthefollowingscreen

Inthiswindowwecanseethetextelements,forexample:
HEADER_TARGET_VALUE,
&'Targetvalue'EKKOKTWRT&&EKKOWAERS&,
Thiselementintheformisprintedout,whenthefollowingcodeinMEDRUCK(routinePRINT_HEADER)isperformed:

http://wiki.scn.sap.com/wiki/display/ERPSCM/Print+processing+programs

5/6

12/23/2014

PrintprocessingprogramsERPSCMSCNWiki

RelatedContent
RelatedDocuments
http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee1fa755c811d189900000e8322d00/frameset.htm
>EnteringText,PrintingandTransmittingDocuments>Messages>LayoutofPurchasingdocuments

RelatedNotes
SAPnote111062(https://bosapsupport.wdf.sap.corp/sap/support/notes/<111062>)PrintingproblemsinMaterialsManagement

Nolabels
ContactUs
Privacy

SAPHelpPortal
TermsofUse

LegalDisclosure

Copyright

http://wiki.scn.sap.com/wiki/display/ERPSCM/Print+processing+programs

FollowSCN

6/6