<?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 Driver program and paramenter change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667734#M883434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yea PAYR-GJAHR value is coming in debugging mode, but one thing, i have changed the script that PAYR-GJAHR in the USING statement, but that changes is not taking effect while i do debugging, what could be the reason actually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pls explain me.&lt;/P&gt;&lt;P&gt;&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;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2008 03:30:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-07T03:30:38Z</dc:date>
    <item>
      <title>Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667728#M883428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is coding part of driver program for script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bank_number  TABLES intab   STRUCTURE   itcsy&lt;/P&gt;&lt;P&gt;                         outtab  STRUCTURE   itcsy.&lt;/P&gt;&lt;P&gt;  DATA : v_bank(40),&lt;/P&gt;&lt;P&gt;         v_bankl(15),&lt;/P&gt;&lt;P&gt;         v_bankn(18),&lt;/P&gt;&lt;P&gt;         v_koinh(60),&lt;/P&gt;&lt;P&gt;         V_NAME2(40),&lt;/P&gt;&lt;P&gt;         v_belnr TYPE bsec-belnr,&lt;/P&gt;&lt;P&gt;         v_gjahr TYPE bsec-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE intab WITH KEY name = 'REGUP-GJAHR' .&lt;/P&gt;&lt;P&gt;        IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;          CONDENSE intab-value.&lt;/P&gt;&lt;P&gt;          v_gjahr = intab-value.&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;&lt;/P&gt;&lt;P&gt;The Script coding part follows as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BANK_NUMBER IN PROGRAM 'Z_FI_L_CHKPNT_NEW'&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-LIFNR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-VBLNR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-ZBUKR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUP-GJAHR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-ZNME1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_NAME&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BANK&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_ZNME1&amp;amp;&lt;/P&gt;&lt;P&gt;ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now my requirement is, i need to change the REGUP-GJAHR into PAYR-GJAHR, ie i have to pass the GJAHR value from the PAYR table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I tried both of the coding part, but its not working, what could be the reason, pls explain me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 05:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667728#M883428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T05:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667729#M883429</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;Try this format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  Z_SN_SCRIPT1                                                *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

REPORT  Z_SN_SCRIPT1                            .

TABLES : BSEG.
DATA : BELNR LIKE BSEG-BELNR,
       BUKRS LIKE BSEG-BUKRS,
       GJAHR LIKE BSEG-GJAHR,
       BUZEI LIKE BSEG-BUZEI.

*DATA : TXT LIKE BSEG-SGTXT.
data: txt like bseg-hkont.

*---------------------------------------------------------------------*
*       FORM GET_TOTAL                                                *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  IN_PAR                                                        *
*  --&amp;gt;  OUT_PAR                                                       *
*---------------------------------------------------------------------*
FORM GET_TOTAL TABLES IN_PAR STRUCTURE ITCSY
                   OUT_PAR STRUCTURE ITCSY.
  CLEAR TXT.
  READ TABLE IN_PAR WITH KEY 'ITAB-BELNR'.
  CHECK SY-SUBRC = 0.
  BELNR = IN_PAR-VALUE.
  READ TABLE IN_PAR WITH KEY 'ITAB-BUKRS'.
  CHECK SY-SUBRC = 0.
  BUKRS = IN_PAR-VALUE.
  READ TABLE IN_PAR WITH KEY 'ITAB-GJAHR'.
  CHECK SY-SUBRC = 0.
  GJAHR = IN_PAR-VALUE.
  READ TABLE IN_PAR WITH KEY 'ITAB-BUZEI'.
  CHECK SY-SUBRC = 0.
  BUZEI = IN_PAR-VALUE.
  UNPACK BELNR TO BELNR.
  SELECT SINGLE * FROM BSEG WHERE "belnr = docno and
                                  BUKRS = BUKRS AND
                                  BELNR EQ BELNR AND
                                  GJAHR EQ GJAHR AND
                                  BUZEI EQ BUZEI .
*  TXT = BSEG-SGTXT.
  TXT = BSEG-hkont.
  READ TABLE OUT_PAR WITH KEY 'TXT'.
  CHECK SY-SUBRC EQ 0.
  OUT_PAR-VALUE = TXT.
  MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/E   ELEM2
*
/:   DEFINE &amp;amp;TXT&amp;amp;
*    &amp;amp;itab-bukrs&amp;amp;,,,,&amp;amp;itab-gjahr&amp;amp;,,,,&amp;amp;itab-buzei&amp;amp;,,,,&amp;amp;itab-belnr&amp;amp;
/:   PERFORM GET_TOTAL IN PROGRAM Z_SN_SCRIPT1
/:   USING       &amp;amp;ITAB-BELNR&amp;amp;
/:   USING       &amp;amp;ITAB-BUKRS&amp;amp;
/:   USING       &amp;amp;ITAB-GJAHR&amp;amp;
/:   USING       &amp;amp;ITAB-BUZEI&amp;amp;
/:   CHANGING    &amp;amp;TXT&amp;amp;
/:   ENDPERFORM
=    ,,,,&amp;amp;TXT&amp;amp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.Nehru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 06:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667729#M883429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T06:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667730#M883430</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;Read by using the index value . It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my sample code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

In SCRIPT 

PERFORM GET_DATA_ADRC IN PROGRAM Z_RFFOUS_C
USING &amp;amp;LFA1-ADRNR&amp;amp;
CHANGING &amp;amp;STREET&amp;amp;
CHANGING &amp;amp;STR_SUPPL1&amp;amp;
CHANGING &amp;amp;TEMP&amp;amp;
ENDPERFORM

In PROGRAM

form get_data_adrc tables it_using structure itcsy
                       it_changing structure itcsy.

  data : adrnr like lfa1-adrnr.

  data : l_street like adrc-street,
         l_str_suppl1 like adrc-str_suppl1,
         l_str_suppl2 like adrc-str_suppl2,
         l_str_suppl3 like adrc-str_suppl3,
         l_locat  like adrc-location.

  data : temp(220).

  read table it_using index 1.
  move it_using-value to adrnr.

  unpack adrnr to adrnr.

  select single street
                str_suppl1
                str_suppl2
                str_suppl3
                location
       from   adrc
       into   (l_street,
              l_str_suppl1,
              l_str_suppl2,
              l_str_suppl3,
              l_locat)
       where
              addrnumber = adrnr.



  read table it_changing index 1.
  it_changing-value = l_street.
  modify it_changing index 1.

  read table it_changing index 2.
  it_changing-value = l_str_suppl1.
  modify it_changing index 2.

  concatenate l_str_suppl2
              ','
              l_str_suppl3
              ','
              l_locat into  temp.


  while sy-subrc = 0.
    replace ',' with ' ' into temp.
  endwhile.

  read table it_changing index 3.
  it_changing-value = temp.
  modify it_changing index 3.


endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;P&gt;~&lt;SUB&gt;Lakshmiraj&lt;/SUB&gt;~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 06:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667730#M883430</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2008-04-05T06:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667731#M883431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still its not working, the read statement in the driver program returns the value 4, and the intab internal table value also not changed, advise me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 07:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667731#M883431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T07:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667732#M883432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still its not working, the read statement in the driver program returns the value 4, and the intab internal table value also not changed, advise me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 07:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667732#M883432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T07:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667733#M883433</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;please check that value for PAYR-GJAHR is coming in Script @ Debugging mode and let me know???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lakshmiraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 09:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667733#M883433</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2008-04-05T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667734#M883434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yea PAYR-GJAHR value is coming in debugging mode, but one thing, i have changed the script that PAYR-GJAHR in the USING statement, but that changes is not taking effect while i do debugging, what could be the reason actually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pls explain me.&lt;/P&gt;&lt;P&gt;&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;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 03:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667734#M883434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T03:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667735#M883435</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;From your code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BANK_NUMBER IN PROGRAM &lt;STRONG&gt;'Z_FI_L_CHKPNT_NEW'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-LIFNR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-VBLNR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-ZBUKR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUP-GJAHR&amp;amp;&lt;/P&gt;&lt;P&gt;USING &amp;amp;REGUH-ZNME1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_NAME&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BANK&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_ZNME1&amp;amp;&lt;/P&gt;&lt;P&gt;ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove the single quotes .. Z_FI_L_CHKPNT_NEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and put break point in the  same program under that PERFORM BANK_NUMBER module. and see what is coming in intab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether u ACTIVATED the SCRIPT !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: LAKSHMIRAJ on Apr 7, 2008 5:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 03:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667735#M883435</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2008-04-07T03:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667736#M883436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Thank you very much, now its working, actually i have not activated the script. I thought that there is no activation in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Now i activated and its working fine. thank you very much.&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;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 03:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667736#M883436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T03:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script Driver program and paramenter change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667737#M883437</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;Good job raja !  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In SDN , the best way to say Thanks is by rewarding POINTS for the helpful and useful replies&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Lakshmiraj.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 03:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-driver-program-and-paramenter-change/m-p/3667737#M883437</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2008-04-07T03:58:21Z</dc:date>
    </item>
  </channel>
</rss>

