<?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: how to pass values from screen to function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501525#M232208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In transaction Qm02 get memory id related to all &lt;/P&gt;&lt;P&gt;    fields with f1 help on transaction screen to get&lt;/P&gt;&lt;P&gt;    memory id. &lt;/P&gt;&lt;P&gt;    set memory id 'MAT' fields lv_matnr.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;     call function 'TEST'&lt;/P&gt;&lt;P&gt;         matnr =  lv_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2006 09:51:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-31T09:51:33Z</dc:date>
    <item>
      <title>how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501519#M232202</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; can anybody help me on how to pass values from screen(qmo2) to custom function module. I appreciate if u can provide some source code....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501519#M232202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501520#M232203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read carefully abap help for command ASSIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501520#M232203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501521#M232204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks .. but do u have any example code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501521#M232204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501522#M232205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For passing screen values to a custom program use the concept of "Parameter ID" that is SAP memory concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the parameter id (when you press F1 on the particular field in QM01 and go to the technical info. you can view the parameter id ex: for Notification Number in QM01 is "IQM").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "Z" program get the values as &lt;/P&gt;&lt;P&gt;Data F type QMNUM. ~--&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'IDQM' FIELD f.&lt;/P&gt;&lt;P&gt;Now f will contain the value of the screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501522#M232205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501523#M232206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raj..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Once getting value in the memory . Do i have to use assign to actually assign it to function module parameters or what...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501523#M232206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501524#M232207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Assign statement also you can get the info. The code beow is similar code to retrive screen field values to a Z program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: V_COLL(85) value '(SAPLIQS0)VIQMEL-QMNUM',&lt;/P&gt;&lt;P&gt;      p_value like VIQMEL-QMNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_COLLECT&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (V_COLL) TO &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_value = &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now p_value will have all the screen field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501524#M232207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501525#M232208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In transaction Qm02 get memory id related to all &lt;/P&gt;&lt;P&gt;    fields with f1 help on transaction screen to get&lt;/P&gt;&lt;P&gt;    memory id. &lt;/P&gt;&lt;P&gt;    set memory id 'MAT' fields lv_matnr.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;     call function 'TEST'&lt;/P&gt;&lt;P&gt;         matnr =  lv_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501525#M232208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501526#M232209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare all the IMPORT parameters which you need, But declare them as optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that USe the "Parameter id" concept or the "Assign" i.e field symbol cocept to retrive the values. after that You can assign the values to your IMPORT parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501526#M232209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501527#M232210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Raj &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Actually i all values from(qm02) which are mandatory to create sales order using BAPI_SALESORDER_CREATEFROMDAT2 because i am developing a function module to call BAPI which  will create credit memo request usign above said BAPI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501527#M232210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T09:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501528#M232211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use any of the above two procedures which i have specified and you can solve the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 10:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501528#M232211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T10:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501529#M232212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; can u explain me this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: V_COLL(85) value '(SAPLIQS0)VIQMEL-QMNUM',&lt;/P&gt;&lt;P&gt;p_value like VIQMEL-QMNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_COLLECT&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (V_COLL) TO &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_value = &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now p_value will have all the screen field value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 11:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501529#M232212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T11:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass values from screen to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501530#M232213</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;First you declare a field-symbol of any type.&lt;/P&gt;&lt;P&gt;this field-symbol can take the value dynamically.&lt;/P&gt;&lt;P&gt;when you say "ASSIGN (V_COLL) TO &amp;lt;FS_COLLECT&amp;gt;" it means what ever is the value of v_coll it will get into the field-symbol &amp;lt;fs_collect&amp;gt;. Now you take get the value of this field in a field p_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : p_value type char4.&lt;/P&gt;&lt;P&gt;v_coll = 'itab-BUKRS'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_COLLECT&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;ASSIGN (V_COLL) TO &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;p_value = &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;*if itab-bukrs value is '0001', p_value will have this value.&lt;/P&gt;&lt;P&gt;v_coll = 'itab-BSART'.&lt;/P&gt;&lt;P&gt;ASSIGN (V_COLL) TO &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;p_value = &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;*if itab-bsart value is 'abcd', p_value will have this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can write this in loop .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  field-symbols &amp;lt;fs1&amp;gt;.
  loop at t_dd03l.
    clear v_name.
    move t_dd03l-fieldname to  v_name.
    assign (v_name) to &amp;lt;fs1&amp;gt;.
    concatenate rstring &amp;lt;fs1&amp;gt; into rstring separated by '~'.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From help&lt;/P&gt;&lt;P&gt;ASSIGN (V_COLL) TO &amp;lt;FS_COLLECT&amp;gt;.&lt;/P&gt;&lt;P&gt;This statement assigns the memory area specified using mem_area to the field symbol &amp;lt;fs&amp;gt;. You can assign a data object or a memory area calculated from the address of a data object. After the assignment, the field symbol refers to the assigned memory area and can be used in operand positions. When used in a statement, it behaves like a dereferenced data reference, meaning that the statement works with the content of the memory area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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, 31 Aug 2006 13:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-from-screen-to-function-modules/m-p/1501530#M232213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T13:30:17Z</dc:date>
    </item>
  </channel>
</rss>

