您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > 4SAPScript
Day4SAPScriptsIAgenda•AboutForms•Header•PageLayout–Windows–Pages–PageWindows•ParagraphFormat•CharacterFormat•DocumentationDifferentFormsForm2Form1Form3DearInvoiceDocumentProcessingSequenceInvoiceDocumentPrintprogramApplicationtransactionFormComposerSAPDBSAPDBInvoiceSAPScriptSE71AformofthegraphicalFormPainterconsistsofHeaderdataPagelayoutParagraphformatCharacterformatDocumentationHeaderData:Organization:HeaderdataHeaderdataAdministrativedataLanguageattributesBasicsettingsDefaultvaluesfortextformattingAdministrationSetuppageinformationHeaderData:BasicSettingsBasicSettingsBasicSettingszPageformatzFirstpagezOrientationPortraitformatLandscapeformatzLines/inchzCharacters/inchSetuppagezTabstopzFontfamilyzFontsizezDefaultparagraphzBoldzItaliczUnderlinedzSpacingzThicknesszIntensityDefaultvaluesfortextformattingSpoolFormFormdefinitiondefinitionFontmaintenanceEditingForms:TheFormPainteralphanumericHeaderdataWindowsPagesPagewindowsParagraphformatsCharacterformatsFormPaintergraphicalLayoutHeaderdataParagraphformatsCharacterformatsStructuringPagesUsingWindowsWindowsPagesFormComponents-Windows•Theyrepresentareasthatarepositionedonpages–aspagewindows–andinwhichatalatertimetextisprinted.Youmustdefineatleastonewindowforeachform•Typesofwindows–MainWindow–VariableWindow–ConstWindow©SAPAG1999SenderDateAdresseeFooterWindowwithbodytextWindowsWindowtype:MAINWindowtype:VARWindowtype:VARWindowTypesPageWindows•Windownamesarelinkedtopagenames.Thepositionandsizeofthewindowontheassignedpageshouldbespecified–Leftmargin–Uppermargin–Windowwidth–WindowheightPagewindowTopTopedgeedgeLeftedgeLeftedgeWidthWidthHeightHeightPagePageWindowsandPageWindowsSenderDateAdresseeFooterWindowwithbodytextWindowsForm:PagewindowsPage1Page2andPages•Defineatleastonepageforeveryform•Designateafirstpageintheformheader•InformthesystemwhichpageistobeusedafterreachingtheendofthefirstpagePages-AttributesModeINCIncreasesthecounterby1HOLDCounterremainsunchangedSTARTSetsthecounterto1NUMBERINGTYPESARABICArabicnumeralsCHARFixedcharacterLETTERLettersROMANRomannumeralsPapertraychoiceSSimplexmodeDDuplexmodeTTumblemodeSSimplexmodeDDuplexmodeTTumblemodeCharacterformats•Allowstoformatentireblocksoftextwithinaparagraph•Characterattributegroupscanbe:–Font–StandardFontattributes-attributessuchasfontfamily,size,bold,italicetc.Standardattributes–Marker–Barcode–Protected–Hidden–Superscript/subscriptParagraphformats•InSAPScript,paragraphsareformattedusingformatsandtheircorrespondingattributes•HelpssimplifyingthetextprocessingAttributes–Standard–Font–Tabs–OutlineParagraphformats•Standardattributes–Description–Leftorrightmargin–Indentfirstline–Spacebeforeandspaceafter–Alignment–Linespacing–Noblanklines–Pageprotection–NextparagraphsamepageParagraphLeftmarginRightmarginIndent1stlineSpacebeforeSpaceafterAlignmentLinespacingNoblanklinesPageprotectionNextparagraphsamepageDescriptionWindowWindowIndentationIndentationSpaceafterSpaceafterSpacebeforeSpacebeforeLeftmarginLeftmarginRightmarginRightmarginHDHeader11.00CMLEFT1.50CM1.00LN2.00CM1.50CMAlignment:BLOCKjustifiedCENTERcenteredLEFTalignedleftRIGHTalignedrightAlignment:BLOCKjustifiedCENTERcenteredLEFTalignedleftRIGHTalignedrightUnitsofmeasurement:LNLinesCMCentimetersMMMillimetersINInchesPTPointsTWTwipsUnitsofmeasurement:LNLinesCMCentimetersMMMillimetersINInchesPTPointsTWTwipsStandardattributesParagraphformats•Fontattributes-attributessuchasfontfamily,size,bold,italicetc.•Tabs-tabposition(differentunitsofmeasure)•Outline-Outline,outlinelevel,Numbermargin,left/rightdelimiter,Numberchaining,characterstring,Numberingtype.ParagraphFormats:MetricSizesDearMr..Smythe,reservation.WearepleasedtoconfirmthefollowingbookingsThankyouforyourWindowWindowIndentIndentSpaceafterSpaceafterSpacebeforeSpacebeforeLeftmarginLeftmarginRightmarginRightmarginParagraphFormats:MetricSizesGraphicalFormPainter:PageLayoutOptionsDesign/TextWindowWindowDescriptionLeftmarginUppermarginWindowwidthWindowheightMainwindowDefaultparagraph1,60CM1,60CM9,00CM6,00CMADDRESSAddressPageFIRSTAddresspageGraphicForm...MAIN*WINDOW1*WINDOW2*DesignwindowAdministrativewindowFormElements:DocumentationListofallpagesPAGE_1PAGE_2...ListofallwindowsWINDOW_1MAIN...ListofalltextelementsMAIN-ITEM_HEADERMAIN-ITEM_LINE...EditorEditorEnterlongtextsDay4SAPScriptsIIAgenda•TextElements•ControlCommands•Symbols–System,Program,Standard,Text•FunctionModulesTextElements•Textelementsaredefinedforeachwindow.OntheForm:chooseEdit→Textelements.•Inthelayoutofatextelement,wecanusetheparagraphandcharacterformatsdefinedintheform.Example/EITEM_LINEIL&VBDPA-POSNR&,,&VBDPA-MATNR/&'Customerarticlenumber'VBDPA-IDNKD'SAPScript-Controlcommands•IFCommandSyntax/:IFcondition:ELSEIFcondition:/:ELSE:/:ENDIFIF+theconditionmustnotextendmorethanalineSAPScript-Controlcommands•CASEcommandSyntax/:CASEsymbol/:WHENvalue1:/:WHENvalue2:/:WHENvaluen:/:WHENOTHERS.:/:ENDCASESAPScript-Controlcommands•PERFORMCommandToCallanABAPsubroutine(form)fromanyprogramSyntax/:PERFORMformINPROGRAMprog/:USING&VAR1&…/:CHANGING&VAR2&…/:ENDPERFORMSAPScript-
本文标题:4SAPScript
链接地址:https://www.777doc.com/doc-10491 .html