<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: re:scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335155#M799257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Script select windows and go to edit ---&amp;gt; create element -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; window name and description. And in the page window created go for create element and enter the fields you require to print &amp;amp;&amp;lt;internaltablename&amp;gt;-&amp;lt;fieldname&amp;gt;&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the print program: (following program accepts kunnr and prints address)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: KNA1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_CUSTNO FOR KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FORM = 'ZPFORM1'&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 WHERE KUNNR IN S_CUSTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FORM = 'ZPFORM1'&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;STARTPAGE = 'PAGE1 '&lt;/P&gt;&lt;P&gt;PROGRAM = 'ZP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELEMENT = 'XYZ' &lt;/P&gt;&lt;P&gt;WINDOW = 'ADDRESS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'END_FORM'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 08:41:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-04T08:41:17Z</dc:date>
    <item>
      <title>re:scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335154#M799256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I need to draw a table in my script requirement.iam unable to get.pls help me that the table should consists of 1 row and 10 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if use full full points..........urgent...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;loki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 08:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335154#M799256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T08:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: re:scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335155#M799257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Script select windows and go to edit ---&amp;gt; create element -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; window name and description. And in the page window created go for create element and enter the fields you require to print &amp;amp;&amp;lt;internaltablename&amp;gt;-&amp;lt;fieldname&amp;gt;&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the print program: (following program accepts kunnr and prints address)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: KNA1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_CUSTNO FOR KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FORM = 'ZPFORM1'&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 WHERE KUNNR IN S_CUSTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FORM = 'ZPFORM1'&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;STARTPAGE = 'PAGE1 '&lt;/P&gt;&lt;P&gt;PROGRAM = 'ZP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELEMENT = 'XYZ' &lt;/P&gt;&lt;P&gt;WINDOW = 'ADDRESS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'END_FORM'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 08:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335155#M799257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T08:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: re:scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335156#M799258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script you have to use BOX command to draw table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is draw vertical N horizontal line to do so..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOX XPOS 0 MM YPOS 0 LN WIDTH 172 MM HEIGHT 80 MM FRAME 5 TW&lt;/P&gt;&lt;P&gt;BOX XPOS 0 MM YPOS 0 LN WIDTH 172 MM HEIGHT 10 MM FRAME 5 TW&lt;/P&gt;&lt;P&gt;BOX XPOS 30 MM YPOS 0 LN WIDTH 0 MM HEIGHT 80 MM FRAME 5 TW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSITION WINDOW&lt;/P&gt;&lt;P&gt;SIZE WIDTH '160' MM HEIGHT '140' MM&lt;/P&gt;&lt;P&gt;BOX FRAME 10 TW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Box &lt;/P&gt;&lt;P&gt;BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;linessssssss &lt;/P&gt;&lt;P&gt;BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW&lt;/P&gt;&lt;P&gt;BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW&lt;/P&gt;&lt;P&gt;BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW&lt;/P&gt;&lt;P&gt;BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boxes, Lines, Shading: BOX, POSITION, SIZE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: BOX XPOS YPOS WIDTH HEIGHT FRAME INTENSITY &lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN YORIGIN WINDOW PAGE &lt;/P&gt;&lt;P&gt;/: SIZE WIDTH HEIGHT WINDOW PAGE&lt;/P&gt;&lt;P&gt;BOX Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: BOX XPOS YPOS WIDTH HEIGHT FRAME INTENSITY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: draws a box of the specified size at the specified position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XPOS, YPOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upper left corner of the box, relative to the values of the POSITION command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default: Values specified in the POSITION command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following calculation is performed internally to determine the absolute output position of a box on the page: &lt;/P&gt;&lt;P&gt;X(abs) = XORIGIN + XPOS &lt;/P&gt;&lt;P&gt;Y(abs) = YORIGIN + YPOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WIDTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Width of the box. Default: WIDTH value of the SIZE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEIGHT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Height of the box. Default: HEIGHT value of the SIZE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thickness of frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default: 0 (no frame).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTENSITY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grayscale of box contents as %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default: 100 (full black)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Units of measurement: The following units of measurement may be used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TW (twip)&lt;/P&gt;&lt;P&gt;PT (point) &lt;/P&gt;&lt;P&gt;IN (inch) &lt;/P&gt;&lt;P&gt;MM (millimeter) &lt;/P&gt;&lt;P&gt;CM (centimeter) &lt;/P&gt;&lt;P&gt;LN (line) &lt;/P&gt;&lt;P&gt;CH (character). &lt;/P&gt;&lt;P&gt;The following conversion factors apply: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 TW = 1/20 PT &lt;/P&gt;&lt;P&gt;1 PT = 1/72 IN &lt;/P&gt;&lt;P&gt;1 IN = 2.54 CM &lt;/P&gt;&lt;P&gt;1 CM = 10 MM &lt;/P&gt;&lt;P&gt;1 CH = height of a character relative to the CPI specification in the form header &lt;/P&gt;&lt;P&gt;1 LN = height of a line relative to the LPI specification in the form header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: BOX FRAME 10 TW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: BOX INTENSITY 10 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fills the window background with shading having a gray scale of 10 %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: BOX HEIGHT 0 TW FRAME 10 TW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Draws a horizontal line across the complete top edge of the window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: BOX WIDTH 0 TW FRAME 10 TW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Draws a vertical line along the complete height of the left hand edge of the window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15 &lt;/P&gt;&lt;P&gt;/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW &lt;/P&gt;&lt;P&gt;/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW &lt;/P&gt;&lt;P&gt;/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSITION Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN YORIGIN WINDOW PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XORIGIN, YORIGIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Origin of the coordinate system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WINDOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the values for the left and upper edges to match those of the current window (default setting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: POSITION WINDOW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the origin for the coordinate system to the upper left corner of the window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIZE Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SIZE WIDTH HEIGHT WINDOW PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WIDTH, HEIGHT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions of the rectangle or line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WINDOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the values for the width and height to the values of the current window (default setting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the values for the width and height to the values of the current output page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SIZE WINDOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets WIDTH and HEIGHT to the current window dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: POSITION WINDOW &lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN -20 TW YORIGIN -20 TW &lt;/P&gt;&lt;P&gt;/: SIZE WIDTH +40 TW HEIGHT +40 TW &lt;/P&gt;&lt;P&gt;/: BOX FRAME 10 TW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf" target="test_blank"&gt;http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf" target="test_blank"&gt;http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf" target="test_blank"&gt;http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf" target="test_blank"&gt;http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf" target="test_blank"&gt;http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful..&lt;/P&gt;&lt;P&gt;Gaurav J.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: GAURAV on Feb 4, 2008 9:53 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 08:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335156#M799258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T08:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: re:scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335157#M799259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi lokanadhan k  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;for one row and 10 column use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEP 1) see the box width and height and then code accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR BOX FRAME&lt;/P&gt;&lt;P&gt;BOX WIDTH '189' mm height '133' mm Frame 10 Tw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR VERTICAL LINE&lt;/P&gt;&lt;P&gt;BOX XPOS '11 mm' width 0 TW Height '7.2' mm FRAME 5 TW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR HORTIZONTAL LINE&lt;/P&gt;&lt;P&gt;BOX XPOS '11 mm' width '7.2' mm Height  0 TW FRAME 5 TW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now code accordingly as per your requirement changing the dimensions as per your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 08:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335157#M799259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T08:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: re:scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335158#M799260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get a table pls provide me the table with values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;loki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 08:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335158#M799260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T08:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: re:scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335159#M799261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See do it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to se 71----&amp;gt; create your form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto layout------&amp;gt;main window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:   BOX XPOS 0 MM YPOS 0 MM WIDTH 176 MM HEIGHT 128 MM FRAME 5 TW   &lt;/P&gt;&lt;P&gt;/:   BOX XPOS 0 MM YPOS 0 MM WIDTH 176 MM HEIGHT 10 MM FRAME 5 TW    &lt;/P&gt;&lt;P&gt;/:   BOX XPOS 10 MM YPOS 0 LN WIDTH 0 MM HEIGHT 128 MM FRAME 5 TW    &lt;/P&gt;&lt;P&gt;/:   BOX XPOS 35 MM YPOS 0 LN WIDTH 0 MM HEIGHT 128 MM FRAME 5 TW    &lt;/P&gt;&lt;P&gt;/:   BOX XPOS 45 MM YPOS 0 LN WIDTH 0 MM HEIGHT 128 MM FRAME 5 TW    &lt;/P&gt;&lt;P&gt;/:   BOX XPOS 99 MM YPOS 0 LN WIDTH 0 MM HEIGHT 128 MM FRAME 5 TW    &lt;/P&gt;&lt;P&gt;/:   BOX XPOS 119 MM YPOS 0 LN WIDTH 0 MM HEIGHT 128 MM FRAME 5 TW   &lt;/P&gt;&lt;P&gt;/:   BOX XPOS 144 MM YPOS 0 LN WIDTH 0 MM HEIGHT 128 MM FRAME 5 TW   &lt;/P&gt;&lt;P&gt;                                                                     &lt;/P&gt;&lt;P&gt;/E   DETAIL_TXT                                                           &lt;/P&gt;&lt;P&gt;P8   ,,Item,,Quantity,,Unit,,Description,,unit price,,                    &lt;/P&gt;&lt;P&gt;=    Delivered,,Amount                                                    &lt;/P&gt;&lt;P&gt;P8   ,,no,,ordered,,,,,,,,quantity,,&amp;lt;C4&amp;gt;(&amp;amp;wa_header-stwae&amp;amp;)               &lt;/P&gt;&lt;P&gt;=    &amp;lt;/&amp;gt;                                                                  &lt;/P&gt;&lt;P&gt;P8                                                                        &lt;/P&gt;&lt;P&gt;/E   DETAIL_DATA                                                          &lt;/P&gt;&lt;P&gt;/:   PROTECT                                                              &lt;/P&gt;&lt;P&gt;P9   ,,&amp;amp;wa_Temp-posnr(Z)&amp;amp;,,&amp;amp;wa_temp-fkimg(C)&amp;amp;,,&amp;amp;wa_temp-meins&amp;amp;,,          &lt;/P&gt;&lt;P&gt;=    &amp;amp;wa_temp-matnr&amp;amp;,,,,&amp;amp;wa_temp-fkimg(C)&amp;amp;,,&amp;amp;wa_temp-netwr(C)&amp;amp;            &lt;/P&gt;&lt;P&gt;PP   ,,&amp;amp;wa_temp-arktx(25)&amp;amp;                                                &lt;/P&gt;&lt;P&gt;/:   IF NOT V_ARKTX IS INITIAL                                            &lt;/P&gt;&lt;P&gt;PP   ,,&amp;amp;v_arktx&amp;amp;                                                          &lt;/P&gt;&lt;P&gt;/:   ENDIF                                                                &lt;/P&gt;&lt;P&gt;PP   ,,Delivery no:&amp;amp;wa_header-Vbeln_dilv(C)&amp;amp;                              &lt;/P&gt;&lt;P&gt;PP   ,,Sale order no:&amp;amp;wa_temp-aubel(C)&amp;amp;                                   &lt;/P&gt;&lt;P&gt;PP   ,,PO number:&amp;amp;wa_temp-bstnk_vf(C)&amp;amp;                                    &lt;/P&gt;&lt;P&gt;PP   ,,Commodity code:                                                    &lt;/P&gt;&lt;P&gt;PP   ,,Country of origin:&amp;amp;wa_header-landx(C)&amp;amp;                             &lt;/P&gt;&lt;P&gt;PP   ,,Preference:                                                        &lt;/P&gt;&lt;P&gt;/:   ENDPROTECT                                                           &lt;/P&gt;&lt;P&gt;/E   DETAIL_TOTAL                                                         &lt;/P&gt;&lt;P&gt;/:   BOTTOM                                                               &lt;/P&gt;&lt;P&gt;/:   PROTECT                                                              &lt;/P&gt;&lt;P&gt;/:   &amp;amp;ULINE&amp;amp;                                                              &lt;/P&gt;&lt;P&gt;PT   ,,GOODS TOTAL,,&amp;amp;V_total(C)&amp;amp;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your calling prog do this&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;sort it_header by vbeln.&lt;/P&gt;&lt;P&gt;sort it_detail by vbeln posnr.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   APPLICATION                       = 'TX'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ARCHIVE_INDEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ARCHIVE_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DEVICE                            = 'PRINTER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DIALOG                            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FORM                              = 'Z11GAURAV_INVO2'&lt;/P&gt;&lt;P&gt;    LANGUAGE                          = SY-LANGU&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   OPTIONS                           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MAIL_SENDER                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MAIL_RECIPIENT                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MAIL_APPL_OBJECT                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   RAW_DATA_INTERFACE                = '*'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SPONUMIV                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LANGUAGE                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NEW_ARCHIVE_PARAMS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   RESULT                            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    CANCELED                          = 1&lt;/P&gt;&lt;P&gt;    DEVICE                            = 2&lt;/P&gt;&lt;P&gt;    FORM                              = 3&lt;/P&gt;&lt;P&gt;    OPTIONS                           = 4&lt;/P&gt;&lt;P&gt;    UNCLOSED                          = 5&lt;/P&gt;&lt;P&gt;    MAIL_OPTIONS                      = 6&lt;/P&gt;&lt;P&gt;    ARCHIVE_ERROR                     = 7&lt;/P&gt;&lt;P&gt;    INVALID_FAX_NUMBER                = 8&lt;/P&gt;&lt;P&gt;    MORE_PARAMS_NEEDED_IN_BATCH       = 9&lt;/P&gt;&lt;P&gt;    SPOOL_ERROR                       = 10&lt;/P&gt;&lt;P&gt;    CODEPAGE                          = 11&lt;/P&gt;&lt;P&gt;    OTHERS                            = 12&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_DETAIL INTO WA_DETAIL.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     ELEMENT                        = 'DETAIL_BOX'&lt;/P&gt;&lt;P&gt;     FUNCTION                       = 'SET'&lt;/P&gt;&lt;P&gt;     TYPE                           = 'BODY'&lt;/P&gt;&lt;P&gt;     WINDOW                         = 'MAIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     ELEMENT                        = 1&lt;/P&gt;&lt;P&gt;     FUNCTION                       = 2&lt;/P&gt;&lt;P&gt;     TYPE                           = 3&lt;/P&gt;&lt;P&gt;     UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;     UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;     WINDOW                         = 6&lt;/P&gt;&lt;P&gt;     BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;     SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;     CODEPAGE                       = 9&lt;/P&gt;&lt;P&gt;     OTHERS                         = 10&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_total = v_total + wa_detail-netwr.&lt;/P&gt;&lt;P&gt;   WA_TEMP = WA_DETAIL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   AT NEW VBELN.&lt;/P&gt;&lt;P&gt;   READ TABLE IT_header INTO WA_header WITH KEY VBELN = WA_DETAIL-VBELN&lt;/P&gt;&lt;P&gt; BINARY SEARCH.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move wa_detail-arktx+25(15) to V_arktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 'DETAIL_TXT'&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 'SET'&lt;/P&gt;&lt;P&gt;   TYPE                           = 'TOP'&lt;/P&gt;&lt;P&gt;   WINDOW                         = 'MAIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 1&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 2&lt;/P&gt;&lt;P&gt;   TYPE                           = 3&lt;/P&gt;&lt;P&gt;   UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;   UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;   WINDOW                         = 6&lt;/P&gt;&lt;P&gt;   BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;   SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;   CODEPAGE                       = 9&lt;/P&gt;&lt;P&gt;   OTHERS                         = 10&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 'DETAIL_DATA'&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 'SET'&lt;/P&gt;&lt;P&gt;   TYPE                           = 'BODY'&lt;/P&gt;&lt;P&gt;   WINDOW                         = 'MAIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 1&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 2&lt;/P&gt;&lt;P&gt;   TYPE                           = 3&lt;/P&gt;&lt;P&gt;   UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;   UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;   WINDOW                         = 6&lt;/P&gt;&lt;P&gt;   BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;   SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;   CODEPAGE                       = 9&lt;/P&gt;&lt;P&gt;   OTHERS                         = 10&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; AT END OF VBELN.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ELEMENT                        = 'DETAIL_TOTAL'&lt;/P&gt;&lt;P&gt;    FUNCTION                       = 'SET'&lt;/P&gt;&lt;P&gt;    TYPE                           = 'BOTTOM'&lt;/P&gt;&lt;P&gt;    WINDOW                         = 'MAIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    ELEMENT                        = 1&lt;/P&gt;&lt;P&gt;    FUNCTION                       = 2&lt;/P&gt;&lt;P&gt;    TYPE                           = 3&lt;/P&gt;&lt;P&gt;    UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;    UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;    WINDOW                         = 6&lt;/P&gt;&lt;P&gt;    BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;    SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;    CODEPAGE                       = 9&lt;/P&gt;&lt;P&gt;    OTHERS                         = 10&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear v_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDAT.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   RESULT                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   RDI_RESULT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   OTFDATA                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    UNOPENED                       = 1&lt;/P&gt;&lt;P&gt;    BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;P&gt;    SEND_ERROR                     = 3&lt;/P&gt;&lt;P&gt;    SPOOL_ERROR                    = 4&lt;/P&gt;&lt;P&gt;    CODEPAGE                       = 5&lt;/P&gt;&lt;P&gt;    OTHERS                         = 6&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  IT_TAB_POPULATE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form IT_TAB_POPULATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*populating header internal table....&lt;/P&gt;&lt;P&gt;select  vbeln&lt;/P&gt;&lt;P&gt;        zterm&lt;/P&gt;&lt;P&gt;        inco1&lt;/P&gt;&lt;P&gt;        land1&lt;/P&gt;&lt;P&gt;        regio&lt;/P&gt;&lt;P&gt;        counc&lt;/P&gt;&lt;P&gt;        cityc&lt;/P&gt;&lt;P&gt;        bukrs&lt;/P&gt;&lt;P&gt;        ernam&lt;/P&gt;&lt;P&gt;        erdat&lt;/P&gt;&lt;P&gt;        kunrg&lt;/P&gt;&lt;P&gt;        kunag&lt;/P&gt;&lt;P&gt;        stceg&lt;/P&gt;&lt;P&gt;        bstnk_vf&lt;/P&gt;&lt;P&gt;        xblnr&lt;/P&gt;&lt;P&gt;        zuonr&lt;/P&gt;&lt;P&gt;        stwae into table it_header&lt;/P&gt;&lt;P&gt;              from Vbrk&lt;/P&gt;&lt;P&gt;              where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;              sort it_header by vbeln.&lt;/P&gt;&lt;P&gt;              endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_header is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_header into wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single kunnr&lt;/P&gt;&lt;P&gt;              LAND1&lt;/P&gt;&lt;P&gt;              name1&lt;/P&gt;&lt;P&gt;              name2&lt;/P&gt;&lt;P&gt;              ort01&lt;/P&gt;&lt;P&gt;              stras&lt;/P&gt;&lt;P&gt;              adrnr&lt;/P&gt;&lt;P&gt;              pstlz into (wa_header-kunag, wa_header-Land,&lt;/P&gt;&lt;P&gt;wa_header-name1, wa_header-name2, wa_header-ort01, wa_header-stras,&lt;/P&gt;&lt;P&gt;wa_header-adrnr, wa_header-pstlz)&lt;/P&gt;&lt;P&gt;                    from Kna1&lt;/P&gt;&lt;P&gt;                    where kunnr = wa_header-kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select EXPVZ&lt;/P&gt;&lt;P&gt;       BEZEI into (wa_header-expvz, wa_header-bezei)&lt;/P&gt;&lt;P&gt;              up to 1 rows from T618T&lt;/P&gt;&lt;P&gt;               where spras = sy-langu&lt;/P&gt;&lt;P&gt;               and land1 = wa_header-land.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;select single butxt into wa_header-butxt from T001 where bukrs =&lt;/P&gt;&lt;P&gt;wa_header-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single Vbeln into wa_header-Vbeln_dilv from VBFA where&lt;/P&gt;&lt;P&gt;                                        Vbelv = wa_header-xblnr&lt;/P&gt;&lt;P&gt;                                        and vbtyp_n = CC_J.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single Landx into wa_header-Landx from T005T where&lt;/P&gt;&lt;P&gt;                                       Spras = sy-langu&lt;/P&gt;&lt;P&gt;                                       and Land1 = wa_header-land1.&lt;/P&gt;&lt;P&gt;MODIFY it_header from wa_header.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort it_header by vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_header[] is initial.&lt;/P&gt;&lt;P&gt;data: v_posnr type posnr value '10'.&lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;       posnr&lt;/P&gt;&lt;P&gt;       fkimg&lt;/P&gt;&lt;P&gt;       meins&lt;/P&gt;&lt;P&gt;       netwr&lt;/P&gt;&lt;P&gt;       matnr&lt;/P&gt;&lt;P&gt;       arktx&lt;/P&gt;&lt;P&gt;       charg&lt;/P&gt;&lt;P&gt;       aubel into table it_detail&lt;/P&gt;&lt;P&gt;             from Vbrp&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN IT_HEADER&lt;/P&gt;&lt;P&gt;             WHERE VBELN = IT_HEADER-VBELN.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        sort it_detail by vbeln posnr.&lt;/P&gt;&lt;P&gt;        do 3 times.&lt;/P&gt;&lt;P&gt;        wa_detail-vbeln = wa_header-vbeln.&lt;/P&gt;&lt;P&gt;        v_posnr = v_posnr + 10.&lt;/P&gt;&lt;P&gt;        wa_detail-posnr = v_posnr .&lt;/P&gt;&lt;P&gt;        append wa_detail to it_detail.&lt;/P&gt;&lt;P&gt;        enddo.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform.                    " IT_TAB_POPULATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL&lt;/P&gt;&lt;P&gt;GAURAV J&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 09:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-scripts/m-p/3335159#M799261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T09:01:27Z</dc:date>
    </item>
  </channel>
</rss>

