<?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 Assign values to bapi structure dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840752#M923490</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 have to use the BAPI, BAPI_MATERIAL_SAVEDATA to extend the material to different plant specific views. I have to use the structure BAPI_MARC and other structures in order to do this. But the values to be passed to the structure BAPI_MARC are not fixed. These values will be maintained in a custom table against the structure name and field name for a particular plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program I have to extract the structure name and field name for a corresponding plant from custom table and fill the corresponding value in BAPI structure BAPI_MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, internal table in the program is having these details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fill the bapi structure BAPI_MARC based on this information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if in custom table, value &lt;STRONG&gt;0001&lt;/STRONG&gt; is maintained against the field &lt;STRONG&gt;PUR_GROUP&lt;/STRONG&gt;, I have to fill the field PUR_GROUP in strcutre BAPI_MARC with &lt;STRONG&gt;0001&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear in explaining the problem. Please let me know how to aciheve this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 May 2008 11:38:17 GMT</pubDate>
    <dc:creator>PS_1978</dc:creator>
    <dc:date>2008-05-25T11:38:17Z</dc:date>
    <item>
      <title>Assign values to bapi structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840752#M923490</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 have to use the BAPI, BAPI_MATERIAL_SAVEDATA to extend the material to different plant specific views. I have to use the structure BAPI_MARC and other structures in order to do this. But the values to be passed to the structure BAPI_MARC are not fixed. These values will be maintained in a custom table against the structure name and field name for a particular plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program I have to extract the structure name and field name for a corresponding plant from custom table and fill the corresponding value in BAPI structure BAPI_MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, internal table in the program is having these details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fill the bapi structure BAPI_MARC based on this information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if in custom table, value &lt;STRONG&gt;0001&lt;/STRONG&gt; is maintained against the field &lt;STRONG&gt;PUR_GROUP&lt;/STRONG&gt;, I have to fill the field PUR_GROUP in strcutre BAPI_MARC with &lt;STRONG&gt;0001&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear in explaining the problem. Please let me know how to aciheve this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 11:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840752#M923490</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2008-05-25T11:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values to bapi structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840753#M923491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;extract the custom table entries to a internal table .&lt;/P&gt;&lt;P&gt;(i assume that the internal table has two fields, NAME and VALUE and name holds PUR_GROUP and value holds 0001)&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs&amp;gt; type BAPI_MARC  ,&lt;/P&gt;&lt;P&gt;                     &amp;lt;field&amp;gt; type any .&lt;/P&gt;&lt;P&gt;loop at customitab into itab_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component itab_wa-name of structure &amp;lt;fs&amp;gt; to &amp;lt;field&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;field&amp;gt; is assigned .&lt;/P&gt;&lt;P&gt;&amp;lt;field&amp;gt; = itab_wa-value .&lt;/P&gt;&lt;P&gt;endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 12:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840753#M923491</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-05-25T12:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values to bapi structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840754#M923492</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;Thanks for your reply. But assign is not succesful. Could you help me in solving this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 12:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840754#M923492</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2008-05-25T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values to bapi structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840755#M923493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you mean if &amp;lt;field&amp;gt; assigned is failing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the value of  itab_wa-name in the following stt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component itab_wa-name of structure &amp;lt;fs&amp;gt; to &amp;lt;field&amp;gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 12:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840755#M923493</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-05-25T12:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values to bapi structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840756#M923494</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 have tried to implement that in a sample program first. Please have a look at the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;        col1 TYPE i,&lt;/P&gt;&lt;P&gt;        col2 TYPE i,&lt;/P&gt;&lt;P&gt;        col3 TYPE i,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA comp(4) TYPE c VALUE 'COL3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;f1&amp;gt; TYPE ANY, &amp;lt;f3&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN line TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT comp OF STRUCTURE &amp;lt;f1&amp;gt; TO &amp;lt;f3&amp;gt;.&lt;/P&gt;&lt;P&gt;IF &amp;lt;f3&amp;gt; IS ASSIGNED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked in the debugging mode and the value of &amp;lt;f3&amp;gt; in debugging mode is 0, but not &lt;STRONG&gt;line-col3&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 12:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840756#M923494</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2008-05-25T12:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values to bapi structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840757#M923495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when &amp;lt;f3&amp;gt; is assinged, you are not assigning the field name to the field-symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 12:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840757#M923495</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-05-25T12:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values to bapi structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840758#M923496</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 not much familiar with field symbols. If you dont mind, could you please help me in getting the value &lt;STRONG&gt;line-col3&lt;/STRONG&gt; in field symbol &amp;lt;f3&amp;gt;? So, that if I assign some value to &amp;lt;f3&amp;gt;, it should get reflected in line-col3 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 12:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-values-to-bapi-structure-dynamically/m-p/3840758#M923496</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2008-05-25T12:40:18Z</dc:date>
    </item>
  </channel>
</rss>

