Sie sind auf Seite 1von 31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

StefanosMoschidisSAPCertifiedTechnicalConsultantHowtobuildaFormwithSMARTFORMS

CallthetransactionSMARTFORMS.EnteranameofanewFormtobebuiltwithSMARTFORMSandpresstheCreatecommandbutton.

TheFormBuilderappearsonthescreen.Anynodecanbeselectedorexpandedfromthelefthandsidetreemenu.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

1/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

SelecttheFormInterfacenodeandprovidethenamesoftheinternaltablescontainingthedata.(InthisexamplewehaveaCustomertableanda
Customer'sTransactionTableconnectedwithanonetomanyrelationship).

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

2/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

SelecttheGlobalDefinitionsandprovidethenamesoftwovariablesforcontrollingthepagebreakafterfinishingasectionofaCustomer.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

3/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

IntheinitializationtaboftheGlobalDefinitionsnode,givethecodecalculatingthenumberofCustomers.Inputandoutputparametersshouldbe
providedsothatthecodeworkscorrectly.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

4/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

Afterexpandingthe%PAGE1node,wecannoticethataMainWindowexists.Fromthecontextmenu(appearingbyclickingtherightmousebutton)
oftheMainwindowselectCreate>ComplexSection.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

5/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

ThisSectionhasdatawhichareprocessedrepeatedlyandtheOutputType(theformat)isUnstructured.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

6/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

ThedataofthisSectionareretrievedfromtheinternaltableI_ZCUSTandarestoredinthedatastructureI_ZCUSTineachiteration.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

7/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

AtthispointselectthecontextmenuoftheSectionandcreateaTextElement.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

8/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

TypethenamesofthefieldsoftheinternaltableintheGeneralAttributestab.Thefieldnamesareenclosedinampersands.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

9/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

FromthecontextmenuoftheTextElementcreateaseriesofProgramlines.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

10/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

ThisseriesofProgramlines,(actuallyasingleProgramline),increasestheindexofCustomersprintedbyone(VariableINDEX_CUST_PRN).Input
andOutputparametersshouldbedeclaredontheappropriatefieldsofthetab(InthiscasetheInputandtheOutputparameteristhevariable
INDEX_CUST_PRN).

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

11/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

FromthecontextmenuoftheProgramLinescreateasecondComplexSection.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

12/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

ThisSectionhasdatawhichareprocessedrepeatedly.TheOutputType(format)isatable.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

13/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

SpecifyaTableWidthandaLineType.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

14/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

SelecttheDatatabandspecifytheLoopintheI_ZTRANSACTIONStableandtheWherecondition.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

15/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

OntheEventstabselecttheHeaderandFootereventsandspecifyaHeightoftheFooter.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

16/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

SelecttheHeadernodeandchecktheNewLinecheckbox.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

17/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

Atthispointfromthe%Section2contextmenuselectCreate>Text.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

18/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

OntheGlobalAttributestaboftheTextElementtypethefieldsoftheinternaltablewewishtoshowontheformenclosedinampersands.TheText
nodeisAppendeddirectly(checktherelevantradiobutton).

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

19/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

FromthecontextmenuoftheFooterEventselectCreate>Command.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

20/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

Dragthe%Command1createdanddropitonthe%Section2node.ApopupwindowappearsandselectAfterthenode%Section2.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

21/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

Sothe%Command1isalignedtotheFooterof%Section2.ChecktheGotoNewPagecheckbox.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

22/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

SelecttheConditionstaboftheCommandelementansettheconditionthatanewpageiscreatedifthelastcustomerisnotreachedbytheprinting
process(IetheIndexoftheCustomersprintedislessthantheNumberofCustomers).

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

23/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

StartanothersessionandcallthetransactionSE78.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

24/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

ExpandtheGraphicsnodeonthelefthandsidetreemenu,selectBMAPGridscreensnodeanddoubleclickonit.Ontherighthandsideprovidethe
SAPnameofanewgraphicandchecktheColorradiobutton.PresstheImportcommandbutton.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

25/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

OntheappearingpopupwindowprovidethepathwherethebitmapimageisstoredandcheckthecheckboxstatingthatResidesinthePrinterMemory.
PresstheContinuecommandbutton.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

26/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

TheappearingscreenshowsthatthegraphichasbeensuccessfullyimportedintotheSAPgraphicsmanagement.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

27/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

GobacktothesessionofSMARTFORMSandselectthe%PAGE1node.FromthecontextmenuselectCreate>Graphic.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

28/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

OntheGeneralAttributestabofthe%Graphic1createdtypetheSAPNameofthegraphicandprovidetheObject,ID,ColorattributeandResolution.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

29/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

ActivatetheFormfromthemenupathForm>Activate.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

30/31

7/2/2016

StefanosMoschidisSAPCertifiedTechnicalConsultant

ThefunctionmoduleSSF_FUNCTION_MODULE_NAMEhasasitsimportparameteranameofaFormcreatedwithSMARTFORMSandgivesas
outputafunctionmodulename.ThelatterwhenexecutedwithtableparameterstheinternaltablesoftheSMARTFORMSForm,givesthefinal
printout.ThefollowingcodeisanexampleofcallingtheFormcreatedontheprevioussteps.

FurtherreadingintheSAPLibraryonlinkhttp://help.sap.com/saphelp_46c/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm.Or
throughthepathBasisComponents>BasisServices/CommunicationInterfaces(BCSRV)>SAPSmartForms(BCSRVSCR).

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

31/31

Das könnte Ihnen auch gefallen