<?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: help me out in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-out/m-p/3107005#M737597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know why you want the material type in the selection screen, if you know the material.  In  anycase here is what you can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on value-request p_mattype.&lt;/P&gt;&lt;P&gt;   perform get_material_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_material_type.&lt;/P&gt;&lt;P&gt;  data : l_matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;         prog like d020s-prog,&lt;/P&gt;&lt;P&gt;         dynp like d020s-dnum,&lt;/P&gt;&lt;P&gt;         dynp_fields like dynpread occurs 100 with header line.&lt;/P&gt;&lt;P&gt;  move syst-repid to prog.&lt;/P&gt;&lt;P&gt;  move '1000' to dynp.&lt;/P&gt;&lt;P&gt;  dynp_fields-fieldname = 'SO_MAT-LOW.&lt;/P&gt;&lt;P&gt;  append dynp_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      dyname               = prog&lt;/P&gt;&lt;P&gt;      dynumb               = dynp&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      dynpfields           = dynp_fields&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;      invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;      invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;      invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;      invalid_request      = 5&lt;/P&gt;&lt;P&gt;      no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;      invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;      undefind_error       = 8&lt;/P&gt;&lt;P&gt;      double_conversion    = 9&lt;/P&gt;&lt;P&gt;      stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;      others               = 11.&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;  read table dynp_fields index 1.&lt;/P&gt;&lt;P&gt;  move dynp_fields-fieldvalue to l_matnr.&lt;/P&gt;&lt;P&gt;  select mtart into p_mattype from mara where matnr = l_matnr.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 15:47:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-29T15:47:22Z</dc:date>
    <item>
      <title>help me out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-out/m-p/3107004#M737596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all sdn experts,&lt;/P&gt;&lt;P&gt;i want to add at selection-screen on value request and function module&lt;/P&gt;&lt;P&gt;F4_int_table_value_request to my code so that based on material number i should get material type and plant plz help me out. i have tried but unsuccessful here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables :mara, marc.&lt;/P&gt;&lt;P&gt;types: begin of ty_mara,&lt;/P&gt;&lt;P&gt;matnr type mara-matnr,"material no&lt;/P&gt;&lt;P&gt;mtart type mara-mtart,"material type&lt;/P&gt;&lt;P&gt;matkl type mara-matkl,"material group&lt;/P&gt;&lt;P&gt;meins type mara-meins,"base unit of measure&lt;/P&gt;&lt;P&gt;ntgew type mara-ntgew,"net weight&lt;/P&gt;&lt;P&gt;end of ty_mara,&lt;/P&gt;&lt;P&gt;begin of ty_marc,&lt;/P&gt;&lt;P&gt;matnr type marc-matnr,"material no&lt;/P&gt;&lt;P&gt;werks type marc-werks,"plant&lt;/P&gt;&lt;P&gt;pstat type marc-pstat,"maintenance status&lt;/P&gt;&lt;P&gt;dispo type marc-dispo,"mrp controller&lt;/P&gt;&lt;P&gt;end of ty_marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_mara type standard table of ty_mara initial size 0,&lt;/P&gt;&lt;P&gt;wa_mara like line of it_mara,&lt;/P&gt;&lt;P&gt;it_marc type standard table of ty_marc initial size 0,&lt;/P&gt;&lt;P&gt;wa_marc like line of it_marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : so_mat for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_matype type mara-mtart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: so_werks for marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform f_get_val using wa_mara&lt;/P&gt;&lt;P&gt;changing it_mara.&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;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 f_get_val&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;P_WA_MARA text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;--P_IT_MARA 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 f_get_val USING P_WA_MARA&lt;/P&gt;&lt;P&gt;CHANGING P_IT_MARA.&lt;/P&gt;&lt;P&gt;select matnr mtart matkl meins ntgew&lt;/P&gt;&lt;P&gt;from mara into table it_mara&lt;/P&gt;&lt;P&gt;where matnr in so_mat and mtart eq p_matype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " f_get_val&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 11:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-out/m-p/3107004#M737596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T11:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: help me out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-out/m-p/3107005#M737597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know why you want the material type in the selection screen, if you know the material.  In  anycase here is what you can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on value-request p_mattype.&lt;/P&gt;&lt;P&gt;   perform get_material_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_material_type.&lt;/P&gt;&lt;P&gt;  data : l_matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;         prog like d020s-prog,&lt;/P&gt;&lt;P&gt;         dynp like d020s-dnum,&lt;/P&gt;&lt;P&gt;         dynp_fields like dynpread occurs 100 with header line.&lt;/P&gt;&lt;P&gt;  move syst-repid to prog.&lt;/P&gt;&lt;P&gt;  move '1000' to dynp.&lt;/P&gt;&lt;P&gt;  dynp_fields-fieldname = 'SO_MAT-LOW.&lt;/P&gt;&lt;P&gt;  append dynp_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      dyname               = prog&lt;/P&gt;&lt;P&gt;      dynumb               = dynp&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      dynpfields           = dynp_fields&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;      invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;      invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;      invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;      invalid_request      = 5&lt;/P&gt;&lt;P&gt;      no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;      invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;      undefind_error       = 8&lt;/P&gt;&lt;P&gt;      double_conversion    = 9&lt;/P&gt;&lt;P&gt;      stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;      others               = 11.&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;  read table dynp_fields index 1.&lt;/P&gt;&lt;P&gt;  move dynp_fields-fieldvalue to l_matnr.&lt;/P&gt;&lt;P&gt;  select mtart into p_mattype from mara where matnr = l_matnr.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 15:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-out/m-p/3107005#M737597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T15:47:22Z</dc:date>
    </item>
  </channel>
</rss>

