<?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: TABLE-ISSUE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679042#M1100334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in mara you cannot check for werks.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select matnr werks 
from marc as a 
join mara as b
on a~matnr = b~matnr
into table it_marc
for all entries in itab_input
where matnr = itab_input-matnr
werks = '9700'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you donnot have a itab_input kind of table...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select matnr werks 
from marc as a 
join mara as b
on a~matnr = b~matnr
into table it_marc
where werks = '9700'.
"materials in it_marc have entries both in MARA and MARC.

you can loop on the it_marc..

loop at it_marc into wa_marc.
modify mara from...  transporting...
modify marc from..  transporting...
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 12:32:13 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-10-17T12:32:13Z</dc:date>
    <item>
      <title>TABLE-ISSUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679040#M1100332</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 anyone post the solution for given below requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to update MARA,MARC(some Z fields) tables ,so that I have to first check if there is any record for Plant(werks) = 9700&lt;/P&gt;&lt;P&gt;in both of tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have to update both of them  based on entries in an internal table where the internal table contains data for both of zfields  of mara, marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;G Sandeep Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 12:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679040#M1100332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE-ISSUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679041#M1100333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandeep ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this sample program to update the standard tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: itab type table of bseg WITH HEADER LINE.

select single * from bseg INTO itab WHERE belnr = '0051000004' and BSCHL = '93'.



itab-projk = '00000153'.

 modify bseg from itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in similar way u can apply to zfields also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 12:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679041#M1100333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T12:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE-ISSUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679042#M1100334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in mara you cannot check for werks.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select matnr werks 
from marc as a 
join mara as b
on a~matnr = b~matnr
into table it_marc
for all entries in itab_input
where matnr = itab_input-matnr
werks = '9700'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you donnot have a itab_input kind of table...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select matnr werks 
from marc as a 
join mara as b
on a~matnr = b~matnr
into table it_marc
where werks = '9700'.
"materials in it_marc have entries both in MARA and MARC.

you can loop on the it_marc..

loop at it_marc into wa_marc.
modify mara from...  transporting...
modify marc from..  transporting...
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 12:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679042#M1100334</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-17T12:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE-ISSUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679043#M1100335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivasu - I notice that in this thread and at least one other today, you are showing people how to make direct updates to BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifying data in standard SAP tables and BSEG in particular is a very bad idea. There is a real danger of losing data integrety.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-issue/m-p/4679043#M1100335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:56:13Z</dc:date>
    </item>
  </channel>
</rss>

