creating a sapscript form

Upload: frunza-elena

Post on 08-Feb-2018

229 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/22/2019 Creating a SAPSCRIPT Form

    1/83

    Creating a SAPSCRIPT form

    With the call of the transaction SE71, the screen to create or change a

    SAPSCRIPT form appears. We type the name of the Form an the coe of the!ang"age on the appropriate fiels. In orer to #"il a ne$ Form $e press thecomman #"tton Create. In orer to moify or sho$ the technical elements of anE%istent Form $e press the Change or &isplay comman #"tton respecti'ely.

  • 7/22/2019 Creating a SAPSCRIPT Form

    2/83

    After pressing the comman #"tton Create, a pop"p $ino$ appears informing "sthat the Form oes not e%ist on the Client $e are $or(ing. We press the )* #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    3/83

    +n the appearing screen $e type a escription of the Form on the appropriatefiel an $e press the comman #"tton asic Settings.

  • 7/22/2019 Creating a SAPSCRIPT Form

    4/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    5/83

    After pressing the #"tton asic Settings, a screen appears $here the paper si-e isefine e.g. &IA/, the page orientation e.g. !anscape, the efa"lt paragraphe.g. f an the First page e.g. first .

  • 7/22/2019 Creating a SAPSCRIPT Form

    6/83

    Pressing the comman #"tton Pages, $e get a $arning message stating that the&F paragraph oes not e%ist. We #ypass the message pressing 0Enter.

  • 7/22/2019 Creating a SAPSCRIPT Form

    7/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    8/83

    With a secon 0Enter $e get a ne$ $arning message that the Page FIRST oesnot e%ist. We #ypass this message too #y pressing 0Enter, an $e press thecomman #"tton Pages.

  • 7/22/2019 Creating a SAPSCRIPT Form

    9/83

    +n the screen of Pages $e type the name of the Page $e $ish to create on theappropriate fiel an $e select the men" path Eit 23 Create Element.

  • 7/22/2019 Creating a SAPSCRIPT Form

    10/83

    +n the appearing screen $e type the Page &escription on the appropriate fiel anon the fiel e%t Page $e set as ne%t page the one $e ha'e 4"st create. We press

  • 7/22/2019 Creating a SAPSCRIPT Form

    11/83

    0Enter. We 5"it the Pages Screen pressing the comman #"tton Paragraphformats.

  • 7/22/2019 Creating a SAPSCRIPT Form

    12/83

    +n the screen of Paragraph $e type the name of the Paragraph $e $ish to createan $e select the men" path Eit 23 Create Element.

  • 7/22/2019 Creating a SAPSCRIPT Form

    13/83

    +n the appearing screen, $e type the &escription an if $e $ant, $e can specifyFonts an Ta#s for this Paragraph $ith the corresponing comman #"ttons. Inthe case of this e%ample, the Font an the Ta#s specifie in the asic Settingsscreen apply. We 5"it the Paragraph screen #y pressing the comman #"ttonWino$s.

  • 7/22/2019 Creating a SAPSCRIPT Form

    14/83

    In the Wino$ creation screen, there is alreay the 6AI $ino$. This $ino$can #e locate in a page an can contain a 'aria#le n"m#er of lines. It is "se to

  • 7/22/2019 Creating a SAPSCRIPT Form

    15/83

    present the etail lines of a SAP oc"ment e.g. the lines of materials #ille fromta#le RP.

  • 7/22/2019 Creating a SAPSCRIPT Form

    16/83

    In the $ino$ creation screen $e select the men" path Eit 23 Create Element.

  • 7/22/2019 Creating a SAPSCRIPT Form

    17/83

    A pop"p $ino$ appears, $here $e type the name of the ne$ $ino$8+"r9ar: an its escription 8+"r Aress: in the fiels Wino$ an&escription respecti'ely. We press the comman #"tton +;.

  • 7/22/2019 Creating a SAPSCRIPT Form

    18/83

    As $ino$ type $e set AR 8in the fiel Wino$ type:.

  • 7/22/2019 Creating a SAPSCRIPT Form

    19/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    20/83

    We repeat the same process of $ino$ constr"ction an $e #"il the $ino$sC

  • 7/22/2019 Creating a SAPSCRIPT Form

    21/83

    In the screen of Page Wino$s there is the page FIRST in the fiel Page.

  • 7/22/2019 Creating a SAPSCRIPT Form

    22/83

    We select the men" path Eit 23 Create Element, in orer to create a ne$ PageWino$.

  • 7/22/2019 Creating a SAPSCRIPT Form

    23/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    24/83

    A pop"p $ino$ appears $ith all $ino$s $e ha'e create pre'io"sly in theappropriate screen. We select one of them e.g. C

  • 7/22/2019 Creating a SAPSCRIPT Form

    25/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    26/83

    The selecte $ino$ is no$ locate in the FIRST page as a Page Wino$. We fillthe fiels !eft 6argin,

  • 7/22/2019 Creating a SAPSCRIPT Form

    27/83

    We select again the men" path Eit 23 Create Element, an in the appearingpop"p $ino$ $ith all $ino$s sho$n, $e ha'e a'aila#le the $ino$s not

  • 7/22/2019 Creating a SAPSCRIPT Form

    28/83

    locate yet in the FIRST page as page $ino$s. We select the ne%t $ino$ an$e gi'e its coorinates an its imensions.

  • 7/22/2019 Creating a SAPSCRIPT Form

    29/83

    So $e locate all the $ino$s in the Page an $e ha'e an I6A>E of theirpositions an the information $hich $ill #e containe in the 'ario"s areas of theSAPSCRIPT form.

  • 7/22/2019 Creating a SAPSCRIPT Form

    30/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    31/83

    In this stage $e can select the men" path Form 23 Acti'ate. This action stores the$or( $e ha'e one in the system an acti'ates the changes so that they area'aila#le to the "sers.

  • 7/22/2019 Creating a SAPSCRIPT Form

    32/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    33/83

    The acti'ation fins an error an gi'es a $arning message saying that the page$ino$ ?@B in the imensions specifie, is too $ie for an @/ page in lanscapeorientation. We #ypass the message #y pressing 0Enter.

  • 7/22/2019 Creating a SAPSCRIPT Form

    34/83

    In this stage $e can select the men" path Settings 23 Form Painter.

  • 7/22/2019 Creating a SAPSCRIPT Form

    35/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    36/83

    With the selection of the men" path Settings 23 Form Painter, a pop"p $ino$appears $here $e select the SAPscr ta#, $e chec( the fiel >raphical FormPainter an $e press the +; comman #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    37/83

    The >raphical Form Painter en'ironment sho$s the page $ino$s as $hiterectang"lars, $hile the page is sho$n as a grey #ac(gro"n $ith gri lines.

  • 7/22/2019 Creating a SAPSCRIPT Form

    38/83

    In the graphical en'ironment of this eitor $e can rag an rop the PageWino$s or $e can change their imensions $ith the mo"se.

  • 7/22/2019 Creating a SAPSCRIPT Form

    39/83

    When $e ha'e arrange the Page Wino$s $ith rag an rop, $e select themen" path Settings 23 Form Painter.

  • 7/22/2019 Creating a SAPSCRIPT Form

    40/83

    In the appearing pop"p $ino$ $e select the ta# SAPscr, $e "nchec( the fiel>raphical Form Painter, an $e press the +; comman #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    41/83

    In the Page Wino$s screens the coorinates an the imensions of the PageWino$s ha'e no$ #een change. +n ot matri% printers neither the fractions of

  • 7/22/2019 Creating a SAPSCRIPT Form

    42/83

    lines ma(e a ifference in the 'ertical position of the te%t, nor the fractions ofcharacters ma(e a ifference in the hori-ontal location of the $ors. Thefractional parts are ro"ne "p. 8=o$e'er there is no acti'ation error:.

  • 7/22/2019 Creating a SAPSCRIPT Form

    43/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    44/83

    o$ that $e ha'e locate the Page Wino$s correctly, $e select one of them$ith the mo"se e.g. C

  • 7/22/2019 Creating a SAPSCRIPT Form

    45/83

    So an eitor appears $here $e can $rite the 'aria#les 8sym#ols: that sho"l #eprinte on the page $ino$. The 'aria#les are incl"e in ampersans i.e. D an

  • 7/22/2019 Creating a SAPSCRIPT Form

    46/83

    the constant te%ts are $ritten as they sho"l appear. If $e $ant to change a font inan area of the page $ino$, $e incl"e this area in the notations an 8$here F is aCharacter format, as shall see later:. The cells to the left of the lines of the eitorha'e the corresponing paragraph. The asteris( sho$s the efa"lt paragraph.

  • 7/22/2019 Creating a SAPSCRIPT Form

    47/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    48/83

    When $e ha'e $ritten all the Te%t Elements in the eitor of a Page Wino$, $epress the AC; comman #"tton an $e ret"rn to the Page Wino$ screen. =ere$e select another Page Wino$ an $e call again the Te%t Elements eitor.

  • 7/22/2019 Creating a SAPSCRIPT Form

    49/83

    The Page Wino$ +"r9ar contains some 'aria#les 8sym#ols: an someconstant te%ts as $ell. The paragraph is efa"lt 8asteris(:.

  • 7/22/2019 Creating a SAPSCRIPT Form

    50/83

    In the Te%t Elements eitor $e can $rite comments #y typing in the paragraphcell to the left of the line. F"rthermore a series of characters appearing in the

  • 7/22/2019 Creating a SAPSCRIPT Form

    51/83

    printo"t as one line can #e split in many lines of the Te%t Elements eitor #ytyping G 8the contin"ity sym#ol: in the paragraph cell.

  • 7/22/2019 Creating a SAPSCRIPT Form

    52/83

    In the Te%t Elements eitor $e can efine areas, $hich are calle an isplaye#y the program flo$ "ner certain conitions. These areas are calle Elementsan their #eginning is efine #y the characters H in the paragraph cell. The enof an Element is the efinition of the ne%t Element or the en of the te%t in theeitor. In the Page Wio$ 6AI $e ha'e the Element ITE69=EA&ER an the

    Element ITE69!IE. The te%ts in these Elements are in the IT paragraph format,$hich has not yet #een efine. The ta#s are enote in the eitor $ith o"#lecomma 8 ,, : .

  • 7/22/2019 Creating a SAPSCRIPT Form

    53/83

    In orer to efine the Character Format J3, $hich $as "se in the Te%tElements eitor, $e go to screen Page Wino$ an $e press the #"tton Character

  • 7/22/2019 Creating a SAPSCRIPT Form

    54/83

    Formats. From the screen of Character Formats, $e select the men" path Eit 23Create element.

  • 7/22/2019 Creating a SAPSCRIPT Form

    55/83

    +n the appearing pop"p $ino$ $e fill in the Char Format fiel the notation Jan in the fiel &escription $e type an e%planation 8ol:, an $e press +;.

  • 7/22/2019 Creating a SAPSCRIPT Form

    56/83

    In the Character Formats screen $e press the Fonts #"tton an $e select in theFamily fiel a font e.g. C+

  • 7/22/2019 Creating a SAPSCRIPT Form

    57/83

    In orer to create the Paragraph Format IT "se in the Te%t Elements eitor in thepage $ino$ 6AI, from the ta# Character Formats $e press the Paragraph

  • 7/22/2019 Creating a SAPSCRIPT Form

    58/83

    Formats #"tton. From the Paragraph Formats ta# $e select the men" path Eit 23Create element.

  • 7/22/2019 Creating a SAPSCRIPT Form

    59/83

    +n the appearing pop"p $ino$ $e type in the fiel Paragr. format the notationIT an in the fiel &escription an e%planation 8Item Paragraph:, an $e press the+; #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    60/83

  • 7/22/2019 Creating a SAPSCRIPT Form

    61/83

    In the Paragraph Formats screen $e press the #"tton Ta#s an $e fill the positions$here the alignment points are locate 8Ta#s: in the esire "nit of meas"rement8e.g. C= for characters:.

  • 7/22/2019 Creating a SAPSCRIPT Form

    62/83

    At this point the constr"ction of the SAPSCRIPT form has #een complete $eselect the men" path Form 23 Acti'ate.

  • 7/22/2019 Creating a SAPSCRIPT Form

    63/83

    We recei'e a message saying that the form has #een acti'ate. We go to the initialscreen on the transaction SE71 $ith the #"tton AC;.

  • 7/22/2019 Creating a SAPSCRIPT Form

    64/83

    The SAPSCRIPT forms 'ary in the 'ario"s lang"ages. For this reason, $hen$or(ing in m"ltiling"al systems, as soon as $e constr"ct a form in the original

  • 7/22/2019 Creating a SAPSCRIPT Form

    65/83

    lang"age, $e sho"l copy it an fit it in the other lang"ages. So in the screen oftransaction SE71 $e type the name of the form in the fiel Form an theestination lang"age in the fiel !ang"age. We press the #"tton Create.

  • 7/22/2019 Creating a SAPSCRIPT Form

    66/83

    A message informs "s that the original lang"age of the form is English.

  • 7/22/2019 Creating a SAPSCRIPT Form

    67/83

    We select the men" path Form 23 Copy from.

  • 7/22/2019 Creating a SAPSCRIPT Form

    68/83

    In the appearing pop"p $ino$ $e fill the so"rce form an original lang"age an$e press +;.

  • 7/22/2019 Creating a SAPSCRIPT Form

    69/83

    After copy, $e select the men" path Form 23 Acti'ate.

  • 7/22/2019 Creating a SAPSCRIPT Form

    70/83

    A message appears saying that the form has #een acti'ate. Pressing the AC;comman #"tton, $e 5"it the transaction SE71. 8+f co"rse if necessary $e change

  • 7/22/2019 Creating a SAPSCRIPT Form

    71/83

    the Te%t Elements in the Page Wino$s, $here $e ha'e constant te%ts, replacingthem $ith their e5"i'alents in the estination lang"age:.

  • 7/22/2019 Creating a SAPSCRIPT Form

    72/83

    Calling a SAPSCRIPT form from an ABAP program

    There are fi'e #asic f"nction mo"les "se for comm"nication #et$een the AAP

    r"ntime en'ironment an the, so calle, Composer of the SAPSCRIPT toolM1. +PE9F+R6 starts the comm"nication #et$een the AAP r"ntime anthe Composer

    K. START9F+R6 intro"ces a #lan( SAPSCRIPT form $hich can #e fille$ith ata from the AAP r"ntime.

    N. WRITE9F+R6 fills the SAPSCRIPT form $ith 'al"es from the AAPr"ntime.

    /. E&9F+R6 completes the $riting to the SAPSCRIPT form.O. C!+SE9F+R6 closes the comm"nication #et$een the AAP r"ntime

    an the Composer.

    The lin(e coe is an AAP program $riting a set of S& oc"ments to theSAPSCRIPT form of the e%ample sho$n a#o'e

    Downloading SAPSCRIPT forms to a workstation and uploading them to

    another SAP system

    The SAPSCRIPT forms can #e store on a har is( an can #e loae to otherSAP systems. To o this $e select the transaction SEN an in the fiel Program$e type RSTQSCRP. We press F (ey for e%ec"ting this program.

    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/Z_EXAMPLE_OF_SAPSCRIPT.TXThttp://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/Z_EXAMPLE_OF_SAPSCRIPT.TXThttp://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/Z_EXAMPLE_OF_SAPSCRIPT.TXThttp://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/Z_EXAMPLE_OF_SAPSCRIPT.TXT
  • 7/22/2019 Creating a SAPSCRIPT Form

    73/83

    In the selection screen $e select the raio #"tton Form an $e fill the fiel +#4ectame $ith the name of the SAPSCRIPT form an the fiel 6oe $ith the $or

  • 7/22/2019 Creating a SAPSCRIPT Form

    74/83

    EQP+RT. We select the raio #"tton Fromon Fronten an $e fill the fiel&ataset name $ith a path on the har is( an a file name. We press the F (eyfor e%ec"ting the program $ith the pre'io"s selections.

  • 7/22/2019 Creating a SAPSCRIPT Form

    75/83

    A pop"p $ino$ appears $ith the path an the filename $e ha'e selecte an $econfirm o"r selections pressing the +; #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    76/83

    Finally $ith the e%ec"tion of the program $e ha'e a log $ith the res"lts of thetransport of the SAPSCRIPT form from the SAP system to the har is(.

  • 7/22/2019 Creating a SAPSCRIPT Form

    77/83

    In the target system $e call again the transaction SEN an in the file Program$e type RSTQSCRP. We press the F (ey for e%ec"ting the program. +n the

  • 7/22/2019 Creating a SAPSCRIPT Form

    78/83

    selection screen $e select the raio #"tton Form an $e type in the fiel +#4ectame the name of the SAPSCRIPT form, an in the fiel 6oe the $or?P+RT. We select the raio #"tton Fromon Fronten an in the fiel &atasetname $e type the path an the filename, $here the SAPSCRIPT form has #eeno$nloae. We press the F (ey for e%ec"ting the program $ith the pre'io"s

    selections.

  • 7/22/2019 Creating a SAPSCRIPT Form

    79/83

    A pop"p $ino$ appears, $here $e fill the e'elopment class, an $e press theSAE #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    80/83

    +n a follo$ing pop"p $ino$ $e fill the re5"est, an $e press the +; #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    81/83

    Finally $e ha'e a pop"p $ino$ $ith the path an the filename $e ha'e selecte.We confirm o"r selections pressing the +; #"tton.

  • 7/22/2019 Creating a SAPSCRIPT Form

    82/83

    In the en $ith the e%ec"tion of the program $e ha'e a log $ith the res"lts of thetransport of the SAPSCRIPT form from the har is( to the SAP system.

  • 7/22/2019 Creating a SAPSCRIPT Form

    83/83