<?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: Badi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790088#M1121929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, the first thing is to know which line of the table do you need to change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is just one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* ok assumed this is the data declaration:
*data: l_mdezx type mdez_user_exit_t,
*      wa_dez type mdez_user_exit.

read table l_mdezx into wa_dez with key "what ever your criteria are
if sy-subrc eq 0.
  wa_dez-FIELD_NAME = w_column.
  modify l_mdezx from wa_dez.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have more than one line to update do a LOOP AT L_MDEZX into wa_dez WHERE ....... and change the field content within the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to update all fields in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
wa_dez-FIELD_NAME = w_column.
modify l_mdezx from wa_dez transporting FIELD_NAME where FIELD_NAME ne wa_dez-FIELD_NAME.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that clarifies it,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2008 15:47:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-19T15:47:22Z</dc:date>
    <item>
      <title>Badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790085#M1121926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to pass a value which is in a variable (i.e. w_column) to a structure (i.e.  l_mdezx).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 13:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790085#M1121926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790086#M1121927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;l_mdezx-FIELD_NAME = w_column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD_NAME would be the name of the field in the structure you want to pass the value of the variable into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 14:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790086#M1121927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790087#M1121928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx for reply.&lt;/P&gt;&lt;P&gt; but the prob is l_mdezx is define as a table type MDEZ_USER_EXIT_T and the field is in a line type MDEZ_USER_EXIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 15:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790087#M1121928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790088#M1121929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, the first thing is to know which line of the table do you need to change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is just one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* ok assumed this is the data declaration:
*data: l_mdezx type mdez_user_exit_t,
*      wa_dez type mdez_user_exit.

read table l_mdezx into wa_dez with key "what ever your criteria are
if sy-subrc eq 0.
  wa_dez-FIELD_NAME = w_column.
  modify l_mdezx from wa_dez.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have more than one line to update do a LOOP AT L_MDEZX into wa_dez WHERE ....... and change the field content within the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to update all fields in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
wa_dez-FIELD_NAME = w_column.
modify l_mdezx from wa_dez transporting FIELD_NAME where FIELD_NAME ne wa_dez-FIELD_NAME.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that clarifies it,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 15:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/4790088#M1121929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T15:47:22Z</dc:date>
    </item>
  </channel>
</rss>

