<?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: script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434659#M207380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;i gave the table and fields for which i should retrive the data&lt;/P&gt;&lt;P&gt;table is LTAP  and i gave the fields also in my qiurie &lt;/P&gt;&lt;P&gt;but u gave me a different code i din't understand that could u plz see my question once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 12:54:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T12:54:42Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434655#M207376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody plz help me with following&lt;/P&gt;&lt;P&gt;as given below i got technical description in FS &lt;/P&gt;&lt;P&gt;i have to display the following in Script form &lt;/P&gt;&lt;P&gt;plz give me the code for that just the select quirie and how to display in the form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mainly for material description it is given as MAKT-MAKTX where MAKT-MATNR = LTAP-MATNR.  how i should write the code for this .if i should use perform statement in script how it should look the perform and my form statement. Actually i should not disturb the standard print program. The standard print program given is RLKOMM40.&lt;/P&gt;&lt;P&gt;plz kindly help me with this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form Output Name	Source Data Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SU number	         LTAP-NLENR&lt;/P&gt;&lt;P&gt;SU Barcode	         Barcode 3 of 9 based on SU num r&lt;/P&gt;&lt;P&gt;Material Description	 MAKT-MAKTX where&lt;/P&gt;&lt;P&gt;                         MAKT-MATNR = LTAP-MATNR&lt;/P&gt;&lt;P&gt;PO Number	         LTAP-WENUM&lt;/P&gt;&lt;P&gt;Quantity (on SU)	 LTAP-VISTM&lt;/P&gt;&lt;P&gt;UOM	                 LTAP-ALTME&lt;/P&gt;&lt;P&gt;Received (Date)	         LTAP-WDATU&lt;/P&gt;&lt;P&gt;Material Number	         LTAP-MATNR&lt;/P&gt;&lt;P&gt;Material Barcode	 Barcode 3 of 9 from Material #&lt;/P&gt;&lt;P&gt;Batch #	                 LTAP-CHARG&lt;/P&gt;&lt;P&gt;Batch # barcode	         Barcode 3 of 9 from Batch #&lt;/P&gt;&lt;P&gt;Bin	                 LTAP-NLPLA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 12:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434655#M207376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434656#M207377</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;&lt;/P&gt;&lt;P&gt;    you have to declare perform in Print program like this : PERFORM GET_ORDER_REASON IN PROGRAM Zreport USING &amp;amp;VBDKR-VBELN&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;ORDER_REASON&amp;amp; &lt;/P&gt;&lt;P&gt;ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and create zreport with following code:::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form to Get Order Reason for Credit memo,Debit Memo             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;FORM GET_ORDER_REASON TABLES IN_TAB  STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                             OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;  TABLES: VBRP,&lt;/P&gt;&lt;P&gt;          TVAUT.&lt;/P&gt;&lt;P&gt;  DATA:  V_VBELN LIKE VBRP-VBELN,&lt;/P&gt;&lt;P&gt;         V_TEXT1 LIKE TVAUT-BEZEI,&lt;/P&gt;&lt;P&gt;         V_TEXT2 LIKE TVAUT-BEZEI,&lt;/P&gt;&lt;P&gt;         V_TEXT3 LIKE TVAUT-BEZEI.&lt;/P&gt;&lt;P&gt;*---Read IN_TAB value, then move to local variables&lt;/P&gt;&lt;P&gt;  READ TABLE IN_TAB WITH KEY 'VBDKR-VBELN'.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC  = 0.&lt;/P&gt;&lt;P&gt;*---Get Vbeln&lt;/P&gt;&lt;P&gt;    V_VBELN = IN_TAB-VALUE+0(10).&lt;/P&gt;&lt;P&gt;    PERFORM PAD_LEADING_ZEROS USING V_VBELN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*---&lt;/P&gt;&lt;P&gt;  CLEAR VBRP.&lt;/P&gt;&lt;P&gt;  SELECT AUGRU_AUFT INTO VBRP-AUGRU_AUFT&lt;/P&gt;&lt;P&gt;   UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;    FROM VBRP&lt;/P&gt;&lt;P&gt;   WHERE VBELN = V_VBELN.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    CLEAR TVAUT.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE BEZEI INTO TVAUT-BEZEI&lt;/P&gt;&lt;P&gt;      FROM TVAUT&lt;/P&gt;&lt;P&gt;     WHERE SPRAS = SY-LANGU&lt;/P&gt;&lt;P&gt;       AND AUGRU = VBRP-AUGRU_AUFT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;      SPLIT TVAUT-BEZEI AT '-'&lt;/P&gt;&lt;P&gt;       INTO V_TEXT1&lt;/P&gt;&lt;P&gt;            V_TEXT2&lt;/P&gt;&lt;P&gt;            V_TEXT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE OUT_TAB WITH KEY 'ORDER_REASON'.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        MOVE V_TEXT3 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;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashok Parupalli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 12:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434656#M207377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434657#M207378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sireesha,&lt;/P&gt;&lt;P&gt;i use perform in scripts like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Sript-statement:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;PERFORM Z_WUSCHEINVERS3_01 IN PROGRAM Z_FORMULAR_ROUTINEN &lt;/P&gt;&lt;P&gt;USING &amp;amp;MKPF-MBLNR&amp;amp;                                        &lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;ZLIFNR&amp;amp;                                         &lt;/P&gt;&lt;P&gt;ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Abap-Code(Report: Z_FORMULAR_ROUTINEN):&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM Z_WUSCHEINVERS3_01 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;  READ TABLE IN_TAB WITH KEY 'MKPF-MBLNR'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SELECT * FROM MSEG WHERE MBLNR = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    IF MSEG-LIFNR &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  READ TABLE OUT_TAB WITH KEY = 'ZLIFNR'.&lt;/P&gt;&lt;P&gt;  OUT_TAB-VALUE = MSEG-LIFNR.&lt;/P&gt;&lt;P&gt;  MODIFY OUT_TAB INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 12:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434657#M207378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434658#M207379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Use the below code in the main window of the script&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*   This sunbrotine find the Description of the Defected Material&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;/:   DEFINE &amp;amp;DISC_TEXT&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/:   PERFORM GET_DISC IN PROGRAM Y27Q_QM_COM_ROUTINE&lt;/P&gt;&lt;P&gt;/:   USING &amp;amp;LTAP-MATNR&amp;amp;&lt;/P&gt;&lt;P&gt;/:   CHANGING &amp;amp;DISC_TEXT&amp;amp;&lt;/P&gt;&lt;P&gt;/:   ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the abap program for eg 'Y27Q_QM_COM_ROUTINE'&lt;/P&gt;&lt;P&gt;u have to write the select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM  get_disc  TABLES    d_in  STRUCTURE  itcsy&lt;/P&gt;&lt;P&gt;                          d_out STRUCTURE  itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : l_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;             l_maktx LIKE  makt-maktx,&lt;/P&gt;&lt;P&gt;              l_spras LIKE   sy-langu.&lt;/P&gt;&lt;P&gt;  DATA   l_text(80)  TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR d_in.&lt;/P&gt;&lt;P&gt;  CLEAR d_out.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read table for language&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE d_in INDEX 1.&lt;/P&gt;&lt;P&gt;  l_matnr =  d_in-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single maktx from makt where matnr = l_matnr and spras = Sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE d_out WITH KEY 'DISC_TEXT'.&lt;/P&gt;&lt;P&gt;  WRITE  l_text  TO d_out-value. "&lt;/P&gt;&lt;P&gt;  MODIFY d_out INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "DISC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think U may get the idea if you wante to do some more manupulation for the other variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please do not forget to mark points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 12:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434658#M207379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434659#M207380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;i gave the table and fields for which i should retrive the data&lt;/P&gt;&lt;P&gt;table is LTAP  and i gave the fields also in my qiurie &lt;/P&gt;&lt;P&gt;but u gave me a different code i din't understand that could u plz see my question once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 12:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/1434659#M207380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T12:54:42Z</dc:date>
    </item>
  </channel>
</rss>

