<?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 SAP Script help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-help/m-p/1422081#M202503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I need to format the o/p of a data in the script.the requirment is to give 2 spaces after every 2 characters.&lt;/P&gt;&lt;P&gt;for ex:if the data is 'WR56T8' then the o/p format should be 'WR  56  T8'.how can i do it in the script?i am not supposed to change the print program..so i cant use PERFORM in the script..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2006 14:48:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-30T14:48:44Z</dc:date>
    <item>
      <title>SAP Script help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-help/m-p/1422081#M202503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I need to format the o/p of a data in the script.the requirment is to give 2 spaces after every 2 characters.&lt;/P&gt;&lt;P&gt;for ex:if the data is 'WR56T8' then the o/p format should be 'WR  56  T8'.how can i do it in the script?i am not supposed to change the print program..so i cant use PERFORM in the script..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 14:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-help/m-p/1422081#M202503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-30T14:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-help/m-p/1422082#M202504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You use  perform ONLY in case where you can't change the print program.&lt;/P&gt;&lt;P&gt;So you can use the perforsm in sap script.&lt;/P&gt;&lt;P&gt;/:   PERFORM convert IN PROGRAM Ztest &lt;/P&gt;&lt;P&gt;/:   USING &amp;amp;INPUT&amp;amp;&lt;/P&gt;&lt;P&gt;/:   CHANGING &amp;amp;OUTPUT&amp;amp;                       &lt;/P&gt;&lt;P&gt;/:   ENDPERFORM                               &lt;/P&gt;&lt;P&gt;in ztest:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM convert TABLES sap_data  STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                        abap_data STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA: V_OUTPUT(8).&lt;/P&gt;&lt;P&gt;  READ TABLE sap_data WITH KEY name = 'INPUT'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;   CONCATENATE INPUT+0(2)&lt;/P&gt;&lt;P&gt;               INPUT+2(2)&lt;/P&gt;&lt;P&gt;               INPUT+4(2)&lt;/P&gt;&lt;P&gt;          INTO V_OUTPUT SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONDENSE V_OUTPUT NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE abap_data WITH KEY name = 'OUTPUT'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    abap_data-value = V_OUTPUT.&lt;/P&gt;&lt;P&gt;    MODIFY abap_data INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 14:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-help/m-p/1422082#M202504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-30T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-help/m-p/1422083#M202505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI RAKESH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EVEN IF U CANT CHANGE THE DRIVER PROGRAM U CAN STILL WRITE A PERFORM IN THE SCRIPT as the driver program will be calling ur script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM get_value  IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt;/: USING VAR1&lt;/P&gt;&lt;P&gt;/: CHANGING VAR2&lt;/P&gt;&lt;P&gt;/: ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get-value TABLES IN_TAB STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STR TYPE STRING,&lt;/P&gt;&lt;P&gt;      STR1 TYPE STRING,&lt;/P&gt;&lt;P&gt;      STR2 TYPE STRING,&lt;/P&gt;&lt;P&gt;      STR3 TYPE STRING.&lt;/P&gt;&lt;P&gt; READ TABLE IN_TAB WITH KEY NAME = VAR1.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE IN_TAB-VALUE TO str.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;str1 = str+0(2).&lt;/P&gt;&lt;P&gt;str2 = str+2(4).&lt;/P&gt;&lt;P&gt;str3 = str+4(6).&lt;/P&gt;&lt;P&gt;concatenate str1 str2 str3 into var2 separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB WITH KEY NAME = VAR2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE VAR2 TO OUT_TAB-VALUE.&lt;/P&gt;&lt;P&gt;    MODIFY OUT_TAB INDEX SY-TABIX.&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;ENDFORM.                &lt;/P&gt;&lt;P&gt;so whenever ur form is called and when the cursor goes to perform stmt it will go to the program ZTEST and execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 15:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-help/m-p/1422083#M202505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-30T15:02:59Z</dc:date>
    </item>
  </channel>
</rss>

