<?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: Calling subroutine program from script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598075#M1083995</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;It will work for all ...Single Values &amp;amp; Internal Tables....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Oct 2008 20:20:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-11T20:20:28Z</dc:date>
    <item>
      <title>Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598071#M1083991</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 calling a subrouting program from a script. Actually i should pass a parameter to the form and need to get back a internal table values.  It's going to dump when i execute the script, saying too many parameters specified with perform. Please find my coding below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt; 	/: BREAK-POINT.&lt;/P&gt;&lt;P&gt; 	/* Define Variables&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;INVAR1&amp;amp; = '0000271151'.&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;OUTVAR1&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;MATTOT&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;VAMTTOT&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;VTAXTOT&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;TAXSA&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;PLANT&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;FMATTOT&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;FVAMTTOT&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;FVTAXTOT&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;FTAXSA&amp;amp; = ' '&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;NUM&amp;amp; = '1'&lt;/P&gt;&lt;P&gt; 	/: DEFINE &amp;amp;GT_CONS_LST_F&amp;amp; = ''&lt;/P&gt;&lt;P&gt; 	/E CALL THE ROUTINE&lt;/P&gt;&lt;P&gt; 	/: PERFORM FETCH_CONSIGN_DATA IN PROGRAM ZMM_CONSIGN_SUBROUTINE_POOL&lt;/P&gt;&lt;P&gt; 	/: USING &amp;amp;INVAR1&amp;amp;&lt;/P&gt;&lt;P&gt; 	/: TABLES  &amp;amp;GT_CONS_LST_F&amp;amp;&lt;/P&gt;&lt;P&gt; 	/: ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ZMM_CONSIGN_SUBROUTINE_POOL.&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  fetch_consign_data&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;  in_tab        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  out_tab        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 fetch_consign_data TABLES in_tab STRUCTURE itcsy&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                              out_tab STRUCTURE itcsy.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FORM fetch_consign_data USING invar1 TYPE ELIFN&lt;/P&gt;&lt;P&gt;                        TABLES gt_cons_lst_f.&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;                              tables                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;  TABLES: RKWA,&lt;/P&gt;&lt;P&gt;          T001W,&lt;/P&gt;&lt;P&gt;          MAKT,&lt;/P&gt;&lt;P&gt;          MARD,&lt;/P&gt;&lt;P&gt;          BSEG.&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;                         T Y P E S                                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt;  types: begin of it_cons_list,&lt;/P&gt;&lt;P&gt;           werks     type RKWA-WERKS,&lt;/P&gt;&lt;P&gt;           name1     type T001W-NAME1,&lt;/P&gt;&lt;P&gt;           matnr     type RKWA-MATNR,&lt;/P&gt;&lt;P&gt;           maktx     type MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;           bstmg     type RKWA-BSTMG,&lt;/P&gt;&lt;P&gt;           bwaer     type RKWA-Bwaer,&lt;/P&gt;&lt;P&gt;           wrbtr     type RKWA-WRBTR,&lt;/P&gt;&lt;P&gt;           curr      type RKWA-BSTME,&lt;/P&gt;&lt;P&gt;           klabs     type MARD-KLABS,&lt;/P&gt;&lt;P&gt;           taxsa     type RKWA-WRBTR,&lt;/P&gt;&lt;P&gt;           taxpv     type RKWA-WRBTR,&lt;/P&gt;&lt;P&gt;           totpv     type RKWA-WRBTR,&lt;/P&gt;&lt;P&gt;         end of it_cons_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  types: begin of it_plant_desc,&lt;/P&gt;&lt;P&gt;           werks     type RKWA-WERKS,&lt;/P&gt;&lt;P&gt;           name1     type T001W-NAME1,&lt;/P&gt;&lt;P&gt;         end of it_plant_desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  types: begin of it_mat_desc,&lt;/P&gt;&lt;P&gt;           matnr     type RKWA-MATNR,&lt;/P&gt;&lt;P&gt;           maktx     type MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;           klabs     type MARD-KLABS,&lt;/P&gt;&lt;P&gt;         end of it_mat_desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  types: begin of it_gnrl_det,&lt;/P&gt;&lt;P&gt;           werks     type RKWA-WERKS,&lt;/P&gt;&lt;P&gt;           matnr     type RKWA-MATNR,&lt;/P&gt;&lt;P&gt;           bstmg     type RKWA-BSTMG,&lt;/P&gt;&lt;P&gt;           wrbtr     type RKWA-WRBTR,&lt;/P&gt;&lt;P&gt;         end of it_gnrl_det.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  types: begin of it_bseg_det,&lt;/P&gt;&lt;P&gt;           matnr     type BSEG-MATNR,&lt;/P&gt;&lt;P&gt;           wrbtr     type BSEG-WRBTR,&lt;/P&gt;&lt;P&gt;         end of it_bseg_det.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:   gt_cons_list TYPE STANDARD TABLE OF it_cons_list,&lt;/P&gt;&lt;P&gt;          gt_plant_desc TYPE STANDARD TABLE OF it_plant_desc,&lt;/P&gt;&lt;P&gt;          gt_mat_desc TYPE STANDARD TABLE OF it_mat_desc,&lt;/P&gt;&lt;P&gt;          gt_gnrl_det TYPE STANDARD TABLE OF it_gnrl_det,&lt;/P&gt;&lt;P&gt;          gt_cons_list_f TYPE STANDARD TABLE OF it_cons_list with header line,&lt;/P&gt;&lt;P&gt;          gt_bseg_det TYPE STANDARD TABLE OF it_bseg_det,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         gt_cons_lst_f TYPE STANDARD TABLE OF it_cons_list with header line,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          w_cons_temp TYPE it_cons_list,&lt;/P&gt;&lt;P&gt;          w_bseg_temp TYPE it_bseg_det,&lt;/P&gt;&lt;P&gt;          w_plant_desc TYPE it_plant_desc,&lt;/P&gt;&lt;P&gt;          w_mat_desc TYPE it_mat_desc,&lt;/P&gt;&lt;P&gt;          i_text TYPE STANDARD TABLE OF tline INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;          w_header LIKE  thead,&lt;/P&gt;&lt;P&gt;          w_text TYPE tline,&lt;/P&gt;&lt;P&gt;          l_isqnt like RKWA-BSTMG,&lt;/P&gt;&lt;P&gt;          l_matamt like RKWA-WRBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_par  TYPE char2 VALUE ',,'. " Sign for tabs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select Plant &amp;amp; material details for the vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT werks matnr bstmg wrbtr bwaer&lt;/P&gt;&lt;P&gt;    FROM rkwa&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE gt_cons_list&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WHERE lifnr EQ '0000271151'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WHERE mjahr EQ '2008'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select Plant &amp;amp; Material description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT werks name1&lt;/P&gt;&lt;P&gt;    FROM t001w&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE gt_plant_desc&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN gt_cons_list&lt;/P&gt;&lt;P&gt;   WHERE werks EQ gt_cons_list-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT a&lt;SUB&gt;matnr a&lt;/SUB&gt;maktx b~klabs&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE gt_mat_desc&lt;/P&gt;&lt;P&gt;    FROM ( MAKT as a join MARD as b&lt;/P&gt;&lt;P&gt;      ON a&lt;SUB&gt;matnr EQ b&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN gt_cons_list&lt;/P&gt;&lt;P&gt;   WHERE a~matnr EQ gt_cons_list-matnr.&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;Get UOM &amp;amp; on-hand values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_cons_list INTO w_cons_temp.&lt;/P&gt;&lt;P&gt;    LOOP AT gt_plant_desc INTO w_plant_desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF w_plant_desc-werks EQ w_cons_temp-werks.&lt;/P&gt;&lt;P&gt;        MOVE w_plant_desc-name1 TO w_cons_temp-name1.&lt;/P&gt;&lt;P&gt;        MODIFY gt_cons_list FROM w_cons_temp.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR w_cons_temp.&lt;/P&gt;&lt;P&gt;  LOOP AT gt_cons_list INTO w_cons_temp.&lt;/P&gt;&lt;P&gt;    LOOP AT gt_mat_desc INTO w_mat_desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF w_mat_desc-matnr EQ w_cons_temp-matnr.&lt;/P&gt;&lt;P&gt;        MOVE:&lt;/P&gt;&lt;P&gt;          w_mat_desc-maktx TO w_cons_temp-maktx,&lt;/P&gt;&lt;P&gt;          w_mat_desc-klabs TO w_cons_temp-klabs.&lt;/P&gt;&lt;P&gt;        MODIFY gt_cons_list FROM w_cons_temp.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calcualte tax paid to vendor &amp;amp; total paid to vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT MATNR WRBTR&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE gt_bseg_det&lt;/P&gt;&lt;P&gt;    FROM BSEG&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN gt_cons_list&lt;/P&gt;&lt;P&gt;   WHERE MATNR EQ gt_cons_list-MATNR&lt;/P&gt;&lt;P&gt;     AND WERKS EQ gt_cons_list-WERKS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "AND LIFNR EQ gt_cons_list-&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_cons_list INTO w_cons_temp.&lt;/P&gt;&lt;P&gt;    LOOP AT gt_bseg_det INTO w_bseg_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      w_cons_temp-taxpv =  w_bseg_temp-wrbtr - w_cons_temp-wrbtr.&lt;/P&gt;&lt;P&gt;      w_cons_temp-totpv =  w_cons_temp-wrbtr + w_cons_temp-taxpv.&lt;/P&gt;&lt;P&gt;      MODIFY gt_cons_list FROM w_cons_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calculate total issued quantity &amp;amp; material amt as per vendor/plant/material no&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_cons_list INTO w_cons_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    COLLECT w_cons_temp INTO gt_cons_list_f.&lt;/P&gt;&lt;P&gt;    CLEAR w_cons_temp.&lt;/P&gt;&lt;P&gt;&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;  gt_cons_lst_f = gt_cons_list_f.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 17:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598071#M1083991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T17:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598072#M1083992</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 the program the FORM should have the following parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;form&amp;gt; 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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the link for more details.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm&lt;/A&gt;&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 17:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598072#M1083992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T17:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598073#M1083993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks naren. Actually this will work for single values, but whether it will work if i want to get it as an internal table. I need to do some subtotals inside the form while displaying the values in the main screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format will be something like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Material   Desc              issues quant        UOM  MaterialAmt  Curr&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PlantOM11  OwensCorning &lt;/P&gt;&lt;P&gt;R99           MaterialR99       39                     EA       214             USD&lt;/P&gt;&lt;P&gt;CH           MaterialCH           8                     EA        34              USD&lt;/P&gt;&lt;P&gt;Plant Tot                                                                248             USD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2008 07:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598073#M1083993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-11T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598074#M1083994</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 the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM &amp;lt;form&amp;gt; TABLES IN_TAB STRUCTURE ITCSY
&amp;lt;IN_TAB&amp;gt; STRUCTURE ITCSY
&amp;lt;OUT_TAB&amp;gt; STRUCTURE ITCSY

DATA: &amp;lt;PARA1&amp;gt; TYPE &amp;lt;TYPE&amp;gt;,   "Import values
           &amp;lt;PARA2&amp;gt; TYPE &amp;lt;TYPE&amp;gt;,   "Export values

&amp;lt;PARA1&amp;gt; = &amp;lt;IN_TAB&amp;gt;
"here write the required code to modify the values and to send to subroutine and put taht values in &amp;lt;PARA2&amp;gt;.

finally to send data to subroutine, write
&amp;lt;OUT_TAB&amp;gt; = &amp;lt;PARA2&amp;gt;
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;form&amp;gt; is subroutine called from the script editor.&lt;/P&gt;&lt;P&gt;&amp;lt;in_tab&amp;gt; is used to call parameters from subroutine&lt;/P&gt;&lt;P&gt;&amp;lt;out_tab&amp;gt; is used to export parameters to subroutine&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;Dhanunjaya Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2008 08:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598074#M1083994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-11T08:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598075#M1083995</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;It will work for all ...Single Values &amp;amp; Internal Tables....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2008 20:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598075#M1083995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-11T20:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598076#M1083996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ajay.&lt;/P&gt;&lt;P&gt;whether we can pass the export value of type other than ITCSY ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i created one structure for my internal table and try to export it of that type, &lt;/P&gt;&lt;P&gt;but it went to dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 09:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598076#M1083996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T09:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598077#M1083997</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;Actually i have to get multiple line items and print it in the main window, so from my print program i am calling a subroutine, there i am looping the internal table and calling the function module 'Write_form' inside it, but still i am not getting the values in the main window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;INVAR1&amp;amp; = '0000271151'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM FETCH_CONSIGN_DATA IN PROGRAM ZMM_CONSIGN_SUBROUTINE_POOL&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;INVAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PLANTNO&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IA Plant &amp;amp;w_cons_temp-werks&amp;amp; ,,  &amp;amp;w_cons_temp-name1&amp;amp;&lt;/P&gt;&lt;P&gt;    &amp;amp;w_cons_temp-matnr&amp;amp;,,&amp;amp;w_cons_temp-maktx&amp;amp;,,&amp;amp;w_cons_temp-bstmg&amp;amp;,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting the internal table values, i try to pass it to script by looping it&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;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;P&gt;    DIALOG                            = ''&lt;/P&gt;&lt;P&gt;    FORM                              = 'YMM_CONSIGN'&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORM                   = 'YMM_CONSIGN'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE               =  SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  STARTPAGE              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  PROGRAM                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJECT       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  LANGUAGE               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORM                   = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORMAT                 = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNENDED                = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNOPENED               = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNUSED                 = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPOOL_ERROR            = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE               = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_cons_lst_f INTO w_cons_temp.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FUNCTION                       = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TYPE                           = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      WINDOW                         = 'MAIN'&lt;/P&gt;&lt;P&gt;      ELEMENT                        = 'TABLE'&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNOPENED                       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEND_ERROR                     = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPOOL_ERROR                    = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                       = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 17:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598077#M1083997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598078#M1083998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;Why dont you declare a global variable in the driver program . and while calling  the element in the main window use that variable which holds the value and pass it on to the SAP Script when all line items are printed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 18:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598078#M1083998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T18:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598079#M1083999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Chidanand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My  driver program is a standard one. I copied the exisitng script and doing the changes.&lt;/P&gt;&lt;P&gt;Moreover some consignment needs to be created for testing, so&lt;/P&gt;&lt;P&gt;i hardcoded the value in the scriipt &amp;amp; pass the value to the subroutine program and trying to get some line items which needs to be printed in main window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more doubt, i am calling a subroutine from a script, again in the subroutine i am calling the same script using 'Wrtite_back' function module' for printing the line items. Is there anything wrong in doing this way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 04:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598079#M1083999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T04:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598080#M1084000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i am using a script that is not assigned to any driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling a subroutine program from the script. &lt;/P&gt;&lt;P&gt;In the subroutine i am calling the function module 'Write_form' within a loop to print line item &lt;/P&gt;&lt;P&gt;items in the script, but i am not able to get the values in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my colleague told me that we can get the line item values in the script  only if the driver program is active. Is it true??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 08:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598080#M1084000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine program from script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598081#M1084001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When calling abap program in sapscript, all value in using term will be stored in one intenal table and also changing parameter. And you can't passed internal table in sapscript. see below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*In form&lt;/P&gt;&lt;P&gt;PERFORM FORM  IN&lt;/P&gt;&lt;P&gt;/: PERFORM ALAMATAG IN PROGRAM ZXXXXX&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;IVBDKR-VBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/: Changing &amp;amp;YYY&amp;amp;&lt;/P&gt;&lt;P&gt;/:                &amp;amp;TLP&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*in ABAP&lt;/P&gt;&lt;P&gt;FORM ALAMATAG TABLES CO_USE STRUCTURE CO_SET_TYPE&lt;/P&gt;&lt;P&gt;                      CO_SET STRUCTURE CO_SET_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get using parameter&lt;/P&gt;&lt;P&gt;  READ TABLE CO_USE WITH KEY NAME = 'VBDKR-VBELN'.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    MOVE CO_USE-VALUE TO NIV.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Store Changing parameter&lt;/P&gt;&lt;P&gt;  LOOP AT CO_SET.&lt;/P&gt;&lt;P&gt;    IF CO_SET-NAME EQ 'YYY'.&lt;/P&gt;&lt;P&gt;      MOVE  YYY TO CO_SET-VALUE.&lt;/P&gt;&lt;P&gt;      MODIFY CO_SET.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF CO_SET-NAME EQ 'TLP'.&lt;/P&gt;&lt;P&gt;      MOVE  TLP TO CO_SET-VALUE.&lt;/P&gt;&lt;P&gt;      MODIFY CO_SET.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 09:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-program-from-script/m-p/4598081#M1084001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T09:17:05Z</dc:date>
    </item>
  </channel>
</rss>

