<?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 Modifying a Std Script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065033#M427236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am planning to modify a standard script not in terms of windows or logo but in terms of the kind of data it should display in the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please let me know how to go ahead with such a case.I know that we need to that by defining a perform in the change editor of the particular window and ITCSY structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is I know theotrically but not practically.Can anyone here kindly help me in this regard step by step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be given points for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 08:06:39 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2007-03-12T08:06:39Z</dc:date>
    <item>
      <title>Modifying a Std Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065033#M427236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am planning to modify a standard script not in terms of windows or logo but in terms of the kind of data it should display in the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please let me know how to go ahead with such a case.I know that we need to that by defining a perform in the change editor of the particular window and ITCSY structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is I know theotrically but not practically.Can anyone here kindly help me in this regard step by step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be given points for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065033#M427236</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-12T08:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a Std Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065034#M427237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can  copy the standard driver program to the Z* program and try to do the changes a sper your requrirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065034#M427237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a Std Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065035#M427238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;here a short example:&lt;/P&gt;&lt;P&gt;In sapscript you use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM &amp;lt;b&amp;gt;ZMEDRUCK01_01&amp;lt;/b&amp;gt; IN PROGRAM Z_FORMULAR_ROUTINEN&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;EKPO-EMATN&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ZEINR&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ZEIVR&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;IL ,,,,&amp;amp;ZEINR&amp;amp; IDX: &amp;amp;ZEIVR&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Report Z_FORMULAR_ROUTINEN you have to define&lt;/P&gt;&lt;P&gt;a routine like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ZMEDRUCK01_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 'EKPO-EMATN'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  MATNR_F = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM MARA WHERE MATNR = MATNR_F.&lt;/P&gt;&lt;P&gt;  check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  READ TABLE OUT_TAB WITH KEY = 'ZEINR'.&lt;/P&gt;&lt;P&gt;  OUT_TAB-VALUE = MARA-ZEINR.&lt;/P&gt;&lt;P&gt;  MODIFY OUT_TAB INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  READ TABLE OUT_TAB WITH KEY = 'ZEIVR'.&lt;/P&gt;&lt;P&gt;  OUT_TAB-VALUE = MARA-ZEIVR.&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;In itab OUT_TAB you can set the value of the fields you will use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&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>Mon, 12 Mar 2007 08:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065035#M427238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a Std Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065036#M427239</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;/: PERFORM FORM1 IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;VAR_OUT1&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In program ZTEST...&lt;/P&gt;&lt;P&gt;FORM FORM1 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: var1 like ...&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 var1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the value of VAR_OUT1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table out_tab with key name = 'VAR_OUT1'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move &amp;lt;value&amp;gt; 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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this...&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065036#M427239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a Std Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065037#M427240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in two ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you have copied the scripts driver program, you can declare new variables and populate them, and these will be automatically available with &amp;amp;FIELD&amp;amp; in the script, you can't transfer a internal table like this, for this you would need to LOOP-ENDLOOP and call the WINDOW each time to pass one row at a time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. USING PERFORM - ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;In SAPscript&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/: PERFORM TEST_ROUTINE IN PROGRAM ZTEST
/: USING &amp;amp;REGUP-BUKRS&amp;amp;
/: USING &amp;amp;REGUP-BELNR&amp;amp;
/: USING &amp;amp;REGUP-GJAHR&amp;amp;
/: CHANGING &amp;amp;MY_BKPF_AWKEY&amp;amp;
/: ENDPERFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;In ABAP program ZTEST&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM TEST_ROUTINE TABLES IN_PAR STRUCTURE ITCSY OUT_PAR STRUCTURE ITCSY.

READ TABLE IN_PAR WITH KEY 'REGUP-BUKRS'.
IF SY-SUBRC = 0.
L_BUKRS = IN_PAR-VALUE.
ENDIF.

READ TABLE IN_PAR WITH KEY 'REGUP-BELNR'.
IF SY-SUBRC = 0.
L_BELNR = IN_PAR-VALUE.
ENDIF.

READ TABLE IN_PAR WITH KEY 'REGUP-GJAHR'.
IF SY-SUBRC = 0.
L_GJAHR = IN_PAR-VALUE.
ENDIF.

SELECT SINGLE AWKEY FROM BKPF INTO L_AWKEY WHERE BUKRS = L_BUKRS BELNR = L_BELNR GJAHR = L_GJAHR.

READ TABLE OUT_PAR WITH KEY 'MY_BKPF_AWKEY'.
IF SY-SUBRC = 0.
MY_BKPF_AWKEY = L_AWKEY.
ENDIF.

MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065037#M427240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a Std Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065038#M427241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kiran&lt;/P&gt;&lt;P&gt;first of all u cant alter d standar form not only interms of window &amp;amp; logo but alos v cant change d data...the best ting is copy it and declare in d Z fdrmat and den make changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065038#M427241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a Std Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065039#M427242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 10:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-std-script/m-p/2065039#M427242</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-04-18T10:37:04Z</dc:date>
    </item>
  </channel>
</rss>

