<?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: not getting BOM value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-bom-value/m-p/6833037#M1471858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data is getting but ALV problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Mar 2010 07:16:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-29T07:16:58Z</dc:date>
    <item>
      <title>not getting BOM value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-bom-value/m-p/6833036#M1471857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i want to fetch BOM value for this i write code like below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT a~budat a~mblnr b~matnr b~menge b~bwart d~idnrk
INTO CORRESPONDING FIELDS OF TABLE it_rawmat
FROM ( ( mkpf as a inner join mseg as b on a~mblnr = b~mblnr )
* inner join mast as c on c~matnr = b~matnr )
inner join stpo as d on d~idnrk = b~matnr )
where b~bwart = '261' and b~werks in werks and b~matnr in matnr and a~budat in budat. "and d~idnrk in idnrk.

IF sy-subrc 0.
MESSAGE ' No Data For This Selection' TYPE 'I'.
SUBMIT ZPP_RAWMAT_CONSUMPTION VIA SELECTION-SCREEN.

ENDIF.

LOOP AT it_rawmat.

select single maktx
from makt
into it_rawmat-maktx
where matnr = it_rawmat-matnr.

select single matnr menge
from mseg
into (it_rawmat-matnr1, it_rawmat-menge1)
where mblnr = it_rawmat-mblnr AND bwart = '131'.



SELECT SINGLE maktx
from makt
into it_rawmat-maktx2
where matnr = it_rawmat-matnr1.

* SELECT single matnr stlnr
* from mast
* INTO (it_rawmat-matnr3, it_rawmat-stlnr)
* where matnr = it_rawmat-matnr1.

select SINGLE menge
from stpo
into it_rawmat-bomit
where idnrk = it_rawmat-matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to above code i get value of BOM filed in ALV which is previous ALV field value.&lt;/P&gt;&lt;P&gt;means BOM value and previous filed value both are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can u please kindly help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;keyur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 05:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-bom-value/m-p/6833036#M1471857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T05:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: not getting BOM value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-bom-value/m-p/6833037#M1471858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data is getting but ALV problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 07:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-bom-value/m-p/6833037#M1471858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T07:16:58Z</dc:date>
    </item>
  </channel>
</rss>

