<?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: parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519672#M238785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi salil,&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_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/perform.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/perform.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&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>Thu, 24 Aug 2006 03:53:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-24T03:53:47Z</dc:date>
    <item>
      <title>parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519670#M238783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will u tell me how to pass the parameters in FM &amp;amp; subroutine with proper example??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 03:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519670#M238783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T03:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519671#M238784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi salil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBROUTINE:&lt;/P&gt;&lt;P&gt;Example of Passing Parameters by Reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM FORM_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NUM1 TYPE I,&lt;/P&gt;&lt;P&gt;NUM2 TYPE I,&lt;/P&gt;&lt;P&gt;SUM TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM1 = 2. NUM2 = 4.&lt;/P&gt;&lt;P&gt;PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM1 = 7. NUM2 = 11.&lt;/P&gt;&lt;P&gt;PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADDIT &lt;/P&gt;&lt;P&gt;       USING ADD_NUM1 &lt;/P&gt;&lt;P&gt;             ADD_NUM2 &lt;/P&gt;&lt;P&gt;       CHANGING ADD_SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ADD_SUM = ADD_NUM1 + ADD_NUM2.&lt;/P&gt;&lt;P&gt;  PERFORM OUT USING ADD_NUM1 ADD_NUM2 ADD_SUM.&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;FORM OUT &lt;/P&gt;&lt;P&gt;       USING OUT_NUM1 &lt;/P&gt;&lt;P&gt;             OUT_NUM2 &lt;/P&gt;&lt;P&gt;             OUT_SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / 'Sum of', OUT_NUM1, 'and', OUT_NUM2, 'is', OUT_SUM.&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;The produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum of 2 and 4 is 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum of 7 and 11 is 18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, the actual parameters NUM1, NUM2, and SUM are passed by reference to the formal parameters of the subroutine ADDIT. After changing ADD_SUM, the latter parameters are then passed to the formal parameters OUT_NUM1, OUT_NUM2, and OUT_SUM of the subroutine OUT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input parameters which are changed in the subroutine are also changed in the calling program. To prevent this, you must pass the parameter by value in a USING addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of passing parameters by reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM FORM_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NUM TYPE I VALUE 5,&lt;/P&gt;&lt;P&gt;FAC TYPE I VALUE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM FACT USING NUM CHANGING FAC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / 'Factorial of', NUM, 'is', FAC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FACT&lt;/P&gt;&lt;P&gt;       USING VALUE(F_NUM)&lt;/P&gt;&lt;P&gt;       CHANGING F_FACT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  F_FACT = 1.&lt;/P&gt;&lt;P&gt;  WHILE F_NUM GE 1.&lt;/P&gt;&lt;P&gt;    F_FACT = F_FACT * F_NUM.&lt;/P&gt;&lt;P&gt;    F_NUM = F_NUM - 1.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&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;The produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Factorial of 5 is 120&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that an input parameter is not changed in the calling program, even if it is changed in the subroutine, you can pass data to a subroutine by value. In this example, the factorial of a number NUM is calculated. The input parameter NUM is passed to the formal parameter F_NUM of the subroutine. Although F_NUM is changed in the subroutine, the actual parameter NUM keeps its old value. The output parameter FAC is passed by reference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of output parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM FORM_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: OP1 TYPE I,&lt;/P&gt;&lt;P&gt;OP2 TYPE I,&lt;/P&gt;&lt;P&gt;RES TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OP1 = 3.&lt;/P&gt;&lt;P&gt;OP2 = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM MULTIP &lt;/P&gt;&lt;P&gt;          USING OP1 OP2 &lt;/P&gt;&lt;P&gt;          CHANGING RES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / 'After subroutine:',&lt;/P&gt;&lt;P&gt;/ 'RES=' UNDER 'RES=', RES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM MULTIP &lt;/P&gt;&lt;P&gt;       USING VALUE(O1) &lt;/P&gt;&lt;P&gt;             VALUE(O2) &lt;/P&gt;&lt;P&gt;     CHANGING VALUE(R).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    R = O1 * O2.&lt;/P&gt;&lt;P&gt;    WRITE: / 'Inside subroutine:',&lt;/P&gt;&lt;P&gt;/ 'R=', R, 'RES=', RES.&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;The produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside subroutine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R= 12 RES= 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After subroutine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              RES= 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To return a changed formal parameter once the subroutine has finished successfully, you can use a CHANGING parameter and pass the parameter by reference. In this example, the actual parameters OP1 and OP2 are passed by value in the USING addition to the formal parameters O1 and O2. The actual parameter RES is passed by value to the formal parameter R using CHANGING. By writing R and RES onto the screen from within the subroutine, it is demonstrated that RES has not changed its contents before the ENDFORM statement. After returning from the subroutine, its contents have changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION MODULE:&lt;/P&gt;&lt;P&gt;PROGRAM CALL_FUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TEXT(10) TYPE C VALUE '0123456789',&lt;/P&gt;&lt;P&gt;      TEXT1(6) TYPE C,&lt;/P&gt;&lt;P&gt;      TEXT2(6) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS POSITION TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_SPLIT_AT_POSITION'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          STRING            =  TEXT&lt;/P&gt;&lt;P&gt;          POS               =  POSITION&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          STRING1           =  TEXT1&lt;/P&gt;&lt;P&gt;          STRING2           =  TEXT2&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          STRING1_TOO_SMALL = 1&lt;/P&gt;&lt;P&gt;          STRING2_TOO_SMALL = 2&lt;/P&gt;&lt;P&gt;          POS_NOT_VALID     = 3&lt;/P&gt;&lt;P&gt;          OTHERS            = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;  WHEN 0.&lt;/P&gt;&lt;P&gt;    WRITE: / TEXT, / TEXT1, / TEXT2.&lt;/P&gt;&lt;P&gt;  WHEN 1.&lt;/P&gt;&lt;P&gt;    WRITE 'Target field 1 too short!'.&lt;/P&gt;&lt;P&gt;  WHEN 2.&lt;/P&gt;&lt;P&gt;    WRITE 'Target field 2 too short!'.&lt;/P&gt;&lt;P&gt;  WHEN 3.&lt;/P&gt;&lt;P&gt;    WRITE 'Invalid split position!'.&lt;/P&gt;&lt;P&gt;  WHEN 4.&lt;/P&gt;&lt;P&gt;    WRITE 'Other errors!'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module splits an input field at a particular position into two output fields. If the contents of POSITION are in the interval [4,6], the function module is executed without an exception being triggered. For the intervals [1,3] and [7,9], the system triggers the exceptions STRING2_TOO_SMALL and STRING2_TOO_SMALL respectively. For all other values of POSITION, the exception POS_NOT_VALID is triggered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: keerthi kiran varanasi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 03:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519671#M238784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T03:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519672#M238785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi salil,&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_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/perform.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/perform.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&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>Thu, 24 Aug 2006 03:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519672#M238785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T03:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519673#M238786</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; DATA: T_MATNR TYPE STANDARD TABLE OF MARA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM MARA INTO TABLE T_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PERFORM DISPLAY  USING T_MATNR[]&lt;/P&gt;&lt;P&gt;                        'ASDFSDF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FORM DISPLAY USING  PT_MATNR LIKE T_MATNR[]&lt;/P&gt;&lt;P&gt;                     PV_KUNNR TYPE KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: PWA_MARA TYPE MARA.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   WRITE: / PV_KUNNR.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   LOOP AT PT_MATNR INTO PWA_MARA.&lt;/P&gt;&lt;P&gt;     WRITE: / PWA_MARA-MATNR.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&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;data: v_answer.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    text_question               = 'Test'&lt;/P&gt;&lt;P&gt;   TEXT_BUTTON_1               = 'Yes'(001)&lt;/P&gt;&lt;P&gt;   TEXT_BUTTON_2               = 'No'(002)&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   ANSWER                      = v_answer&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;   TEXT_NOT_FOUND              = 1&lt;/P&gt;&lt;P&gt;   OTHERS                      = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 03:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519673#M238786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T03:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519674#M238787</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;function module-&amp;gt;&lt;/P&gt;&lt;P&gt;this is sample of function modules and it differs of passing parameters for different function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SUSR_USER_ADDRESS_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      user_name                    = ld_userid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_DB_DIRECTLY             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      user_address                 = ld_address&lt;/P&gt;&lt;P&gt;      user_usr03                   = ld_usr03&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      user_address_not_found       = 1&lt;/P&gt;&lt;P&gt;      OTHERS                       = 2.&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 additional user address details (i.e. email) &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'ADDR_PERS_COMP_COMM_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ADDRESS_HANDLE          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ADDRESS_NUMBER          = ld_address-addrnumber&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DATE_FROM               = '00010101'&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;LI level="1" type="ul"&gt;&lt;P&gt;    PERSON_HANDLE           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     PERSON_NUMBER           = ld_address-persnumber&lt;/P&gt;&lt;P&gt;      table_type              = 'ADSMTP'   "email details&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  Other valid entries for table_type include: &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      ADFAX for fax details  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      ADTEL for telephone details  &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;    RETURNCODE              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      comm_table              =  ld_smtp&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ERROR_TABLE             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     PARAMETER_ERROR         = 1&lt;/P&gt;&lt;P&gt;     ADDRESS_NOT_EXIST       = 2&lt;/P&gt;&lt;P&gt;     PERSON_NOT_EXIST        = 3&lt;/P&gt;&lt;P&gt;     INTERNAL_ERROR          = 4&lt;/P&gt;&lt;P&gt;     OTHERS                  = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBROUTINE-&amp;gt;&lt;/P&gt;&lt;P&gt;Data declarations in procedures create local data types and objects that are only visible within that procedure. There are two kinds of data types and objects &amp;#150; dynamic and static. Dynamic data objects only exist while the subroutine is running, while static objects still exist after the subroutine has finished running, and retain their values until the next time the subroutine is called. Field symbols can be declared locally. You can also use a special kind of data object for subroutines &amp;#150; copies of global data on a local data stack. You define and address them using field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE-&amp;gt;&lt;/P&gt;&lt;P&gt;REPORT demo_mod_tech_data_types .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES word(10) TYPE c.&lt;/P&gt;&lt;P&gt;DATA  text TYPE word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = '1234567890'.  WRITE / text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM datatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE / text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM datatest.&lt;/P&gt;&lt;P&gt;  TYPES word(5) TYPE c.&lt;/P&gt;&lt;P&gt;  DATA  text TYPE word.&lt;/P&gt;&lt;P&gt;  text = 'ABCDEFGHJK'. WRITE / text.&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;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 03:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519674#M238787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T03:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519675#M238788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Send me ur e Mail ID i will send you a nice document on Funtion Builder.Write keyword "function" in ABAP editor and you will get help on how to pass parameters.&lt;/P&gt;&lt;P&gt;Please Give Points in Helpful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 04:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519675#M238788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T04:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519676#M238789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My id is sap_crm01@yahoo.com.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 06:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519676#M238789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T06:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519677#M238790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My id is sap_crm01@yahoo.com.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 06:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519677#M238790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T06:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519678#M238791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;My mail id  is sap_crm01@yahoo.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 06:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519678#M238791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T06:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519679#M238792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My id is sap_crm01@yahoo.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advandce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 06:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519679#M238792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T06:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519680#M238793</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;&amp;lt;b&amp;gt;Passing paramter in subroutine.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define the subroutine like&lt;/P&gt;&lt;P&gt;PERFORM subr_identifier [parameter_list]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement calls the subroutine specified with the name subr_identifier and assigns the actual parameters specified in parameter_list to the formal parameters of the subroutine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the parameter list can be like&lt;/P&gt;&lt;P&gt;... [TABLES   itab1 itab2 ...] &lt;/P&gt;&lt;P&gt;    [USING    a1 a2 ...] &lt;/P&gt;&lt;P&gt;    [CHANGING a1 a2 ...]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These additions assign actual parameters to the formal parameters from the parameter interface for the subroutine subr. You can specify all data objects whose data type matches the typing of the corresponding formal parameter (see Check Typing) as actual parameters. Each formal parameter assumes all the properties of the actual parameter assigned to it when it is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... TABLES itab1 itab2 ...&lt;/P&gt;&lt;P&gt;If you specify the addition TABLES, each table parameter t1 t2 ... for the subroutine called that is defined with the addition TABLES to the FORM statement must be assigned an internal table itab as the actual parameter. The assignment of the actual parameters to the formal parameters takes place using their positions in the lists t1 t2 ... and itab1 itab2 ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only specify standard tables for itab. Transfer takes place by means of a reference. If a specified table itab has a header line, this is also transferred; otherwise, the header line in the corresponding table parameter t is blank when it is called.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Static call of the internal subroutine select_sflight transferring a table parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_carr TYPE sflight-carrid, &lt;/P&gt;&lt;P&gt;            p_conn TYPE sflight-connid. &lt;/P&gt;&lt;P&gt;DATA sflight_tab TYPE STANDARD TABLE OF sflight. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;PERFORM select_sflight TABLES sflight_tab &lt;/P&gt;&lt;P&gt;                       USING  p_carr p_conn. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;FORM select_sflight TABLES flight_tab LIKE sflight_tab &lt;/P&gt;&lt;P&gt;                    USING  f_carr TYPE sflight-carrid &lt;/P&gt;&lt;P&gt;                           f_conn TYPE sflight-connid. &lt;/P&gt;&lt;P&gt;  SELECT * &lt;/P&gt;&lt;P&gt;         FROM sflight &lt;/P&gt;&lt;P&gt;         INTO TABLE flight_tab &lt;/P&gt;&lt;P&gt;         WHERE carrid = f_carr AND &lt;/P&gt;&lt;P&gt;               connid = f_conn. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... USING a1 a2 ... &lt;/P&gt;&lt;P&gt;... CHANGING a1 a2 ... &lt;/P&gt;&lt;P&gt;If you specify the additions USING and CHANGING, an actual parameter a1 a2 ... of the appropriate type must be assigned to each of the formal parameters u1 u2 ... and c1 c2 ... defined with the same additions to the FORM statement. The actual parameters specified after USING and CHANGING form one shared list. They are assigned to the formal parameters after the position in the shared list. The type of parameter transfer is defined with the additions USING and CHANGING to the FORM statement. The addition USING must be before CHANGING. Otherwise, the assignment of the actual parameters to the additions USING and CHANGING is irrelevant to the PERFORM statement. It is also irrelevant whether only one or both of the additions is specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;The following five PERFORM statements mean the same but only the fourth is recommended, since it is the only one that documents the interface of the subroutine called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: a1 TYPE string, &lt;/P&gt;&lt;P&gt;      a2 TYPE string, &lt;/P&gt;&lt;P&gt;      a3 TYPE string, &lt;/P&gt;&lt;P&gt;      a4 TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM test USING a1 a2 a3 a4. &lt;/P&gt;&lt;P&gt;PERFORM test CHANGING a1 a2 a3 a4. &lt;/P&gt;&lt;P&gt;PERFORM test USING a1 CHANGING a2 a3 a4. &lt;/P&gt;&lt;P&gt;PERFORM test USING a1 a2 CHANGING a3 a4. &lt;/P&gt;&lt;P&gt;PERFORM test USING a1 a2 a3 CHANGING a4. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;FORM test USING p1 TYPE string &lt;/P&gt;&lt;P&gt;                p2 TYPE string &lt;/P&gt;&lt;P&gt;          CHANGING value(p3) TYPE string &lt;/P&gt;&lt;P&gt;                   value(p4) TYPE string. &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,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 08:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/1519680#M238793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T08:52:02Z</dc:date>
    </item>
  </channel>
</rss>

