<?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: PP BOM data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510594#M1066792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have enclosed the code that I have written in the includes also please go through the code care fully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And coming to the function module using which you can find the BOM is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM. CS_BOM_EXPL_MAT_V2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required fields for this function module are : &lt;/P&gt;&lt;P&gt;Material &lt;/P&gt;&lt;P&gt;Plant &lt;/P&gt;&lt;P&gt;Date &lt;/P&gt;&lt;P&gt;Application(CAPID) &lt;/P&gt;&lt;P&gt;Values for CAPID can be found in table TC04 &lt;/P&gt;&lt;P&gt;For production BOM it is PP01 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2008 09:31:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-01T09:31:30Z</dc:date>
    <item>
      <title>PP BOM data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510589#M1066787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am creating one report which will give data of BOM component.&lt;/P&gt;&lt;P&gt;i am using MAST STKO and STPO,&lt;/P&gt;&lt;P&gt;but while debugging i found there are more than one line item are coming in STKO(BOM header ) table itself,&lt;/P&gt;&lt;P&gt;and STPO is not having alternative BOM, STPO is giving all BOM component how to restrict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can any body tell how to get correct data from STPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards]&lt;/P&gt;&lt;P&gt;Chandramani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510589#M1066787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: PP BOM data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510590#M1066788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Please check the code below for a similar requirement.&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; Report  ZPPPRM_1087_BOM&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;report  zppprm_1087_bom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include zbom_data_declarartion.&lt;/P&gt;&lt;P&gt;include zbom_selection_screen.&lt;/P&gt;&lt;P&gt;include zform_used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*initialization&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;  prm1  =  'SELECTION'.&lt;/P&gt;&lt;P&gt;  prm2  =  'Materials'.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     START-OF-SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the data from data base tablees&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Format the final data&lt;/P&gt;&lt;P&gt;  perform final_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Display the final data&lt;/P&gt;&lt;P&gt;  perform display_final.&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;  Include           ZBOM_DATA_DECLARARTION&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;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;T Y P E - P O O L S&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: mara, "Material Master&lt;/P&gt;&lt;P&gt;        mast, "Material to BOM Linkage&lt;/P&gt;&lt;P&gt;        stpo. "BOM item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_mara,&lt;/P&gt;&lt;P&gt;        matnr type matnr,&lt;/P&gt;&lt;P&gt;        mtart type mtart,&lt;/P&gt;&lt;P&gt;       end of ty_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_mast,&lt;/P&gt;&lt;P&gt;        matnr  type matnr,&lt;/P&gt;&lt;P&gt;        werks  type werks_d,&lt;/P&gt;&lt;P&gt;        stlan  type stlan,&lt;/P&gt;&lt;P&gt;        stlnr  type stnum,&lt;/P&gt;&lt;P&gt;        stlal  type stalt,&lt;/P&gt;&lt;P&gt;       end of ty_mast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_header,&lt;/P&gt;&lt;P&gt;       matnr type matnr,&lt;/P&gt;&lt;P&gt;       werks type werks_d,&lt;/P&gt;&lt;P&gt;       end of ty_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_stpo,&lt;/P&gt;&lt;P&gt;        stlty type stlty,&lt;/P&gt;&lt;P&gt;        stlnr type stnum,&lt;/P&gt;&lt;P&gt;        stlkn type stlkn,&lt;/P&gt;&lt;P&gt;        stpoz type cim_count,&lt;/P&gt;&lt;P&gt;        idnrk type idnrk,&lt;/P&gt;&lt;P&gt;        meins type kmpme,&lt;/P&gt;&lt;P&gt;        menge type kmpmg,&lt;/P&gt;&lt;P&gt;        preis type cprei,&lt;/P&gt;&lt;P&gt;        peinh type peinh,&lt;/P&gt;&lt;P&gt;       end of ty_stpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_bom,&lt;/P&gt;&lt;P&gt;          matnr type matnr,&lt;/P&gt;&lt;P&gt;          werks type werks_d,&lt;/P&gt;&lt;P&gt;          idnrk type idnrk,&lt;/P&gt;&lt;P&gt;          meins type kmpme,&lt;/P&gt;&lt;P&gt;          menge type kmpmg,&lt;/P&gt;&lt;P&gt;        end of ty_bom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Internal tables used in the code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: it_stpo  type standard table of ty_stpo,&lt;/P&gt;&lt;P&gt;      it_mara1  type standard table of ty_mara,&lt;/P&gt;&lt;P&gt;      it_mara2  type standard table of ty_mara,&lt;/P&gt;&lt;P&gt;      it_mast  type standard table of ty_mast,&lt;/P&gt;&lt;P&gt;      it_bom   type standard table of ty_bom,&lt;/P&gt;&lt;P&gt;      it_header type standard table of ty_header.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work Areas used in the code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: wa_mast  type ty_mast,&lt;/P&gt;&lt;P&gt;      wa_stpo  type ty_stpo,&lt;/P&gt;&lt;P&gt;      wa_mara  type ty_mara,&lt;/P&gt;&lt;P&gt;      wa_bom   type ty_bom,&lt;/P&gt;&lt;P&gt;      wa_header type ty_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_matnr  type mara-matnr.&lt;/P&gt;&lt;P&gt;data: col_pos  type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: sortcat  type slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;      sortcat_ln type slis_sortinfo_alv,&lt;/P&gt;&lt;P&gt;      fcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      s_fcat type slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: obj_hieralv type ref to cl_salv_hierseq_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_binding type salv_t_hierseq_binding,&lt;/P&gt;&lt;P&gt;      wa_binding type salv_s_hierseq_binding.&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;  Include           ZBOM_SELECTION_SCREEN&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;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;-Declaration of selection screen forthe program&lt;/STRONG&gt;&lt;/DEL&gt;-*&lt;/P&gt;&lt;P&gt;selection-screen begin of block blk1 with frame title prm1.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment (10) prm2 for field so_matnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection Option.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select-options : so_matnr for v_matnr.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block blk1.&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;  Include           ZFORM_USED&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;&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  GET_DATA&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;P&gt;form get_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOADING FINISHED MATERIALS INTO AN INTERNAL TABLE&lt;/P&gt;&lt;P&gt;  select matnr&lt;/P&gt;&lt;P&gt;         mtart&lt;/P&gt;&lt;P&gt;    into table it_mara1&lt;/P&gt;&lt;P&gt;    from mara&lt;/P&gt;&lt;P&gt;    where matnr in so_matnr&lt;/P&gt;&lt;P&gt;      and mtart = 'FERT'.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    sort  it_mara1 by matnr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOADING CORRESPONDING FROM Material to BOM LINK TABLE&lt;/P&gt;&lt;P&gt;  if it_mara1 is not initial.&lt;/P&gt;&lt;P&gt;    select matnr&lt;/P&gt;&lt;P&gt;           werks&lt;/P&gt;&lt;P&gt;           stlan&lt;/P&gt;&lt;P&gt;           stlnr&lt;/P&gt;&lt;P&gt;           stlal&lt;/P&gt;&lt;P&gt;      into table it_mast&lt;/P&gt;&lt;P&gt;      from mast&lt;/P&gt;&lt;P&gt;      for all entries in it_mara1&lt;/P&gt;&lt;P&gt;      where matnr = it_mara1-matnr .&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      sort it_mast by stlnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     loop at it_mast into wa_mast.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       move-corresponding wa_mast to wa_header.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       append wa_header to it_header.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOADING CORRESPONDING BOM COMPONENTS FRON BOM ITEM TABLE&lt;/P&gt;&lt;P&gt;  if it_mast is not initial.&lt;/P&gt;&lt;P&gt;    select   stlty&lt;/P&gt;&lt;P&gt;             stlnr&lt;/P&gt;&lt;P&gt;             stlkn&lt;/P&gt;&lt;P&gt;             stpoz&lt;/P&gt;&lt;P&gt;             idnrk&lt;/P&gt;&lt;P&gt;             meins&lt;/P&gt;&lt;P&gt;             menge&lt;/P&gt;&lt;P&gt;             preis&lt;/P&gt;&lt;P&gt;             peinh&lt;/P&gt;&lt;P&gt;        from stpo&lt;/P&gt;&lt;P&gt;       into table it_stpo&lt;/P&gt;&lt;P&gt;       for all entries in it_mast&lt;/P&gt;&lt;P&gt;       where stlnr = it_mast-stlnr.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      sort it_stpo by stlnr.&lt;/P&gt;&lt;P&gt;    endif.&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;&lt;/P&gt;&lt;P&gt;*LOAD SEMIFINISHED MATERIAL&lt;/P&gt;&lt;P&gt;  select matnr&lt;/P&gt;&lt;P&gt;         mtart&lt;/P&gt;&lt;P&gt;         from mara&lt;/P&gt;&lt;P&gt;         into table it_mara2&lt;/P&gt;&lt;P&gt;         where mtart = 'HALB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    sort it_mara2 by matnr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " GET_SELECT&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  FINAL_data&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;P&gt;form final_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_stpo into wa_stpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wa_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table it_mara2 into wa_mara&lt;/P&gt;&lt;P&gt;                       with key matnr = wa_stpo-idnrk&lt;/P&gt;&lt;P&gt;                       binary search.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table it_mast into wa_mast&lt;/P&gt;&lt;P&gt;                         with key stlnr = wa_stpo-stlnr&lt;/P&gt;&lt;P&gt;                         binary search.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;        clear wa_bom.&lt;/P&gt;&lt;P&gt;        wa_bom-matnr = wa_mast-matnr.&lt;/P&gt;&lt;P&gt;        wa_bom-werks = wa_mast-werks.&lt;/P&gt;&lt;P&gt;        wa_bom-idnrk = wa_stpo-idnrk.&lt;/P&gt;&lt;P&gt;        wa_bom-meins = wa_stpo-meins.&lt;/P&gt;&lt;P&gt;        wa_bom-menge = wa_stpo-menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        collect wa_bom into it_bom.&lt;/P&gt;&lt;P&gt;        move-corresponding wa_mast to wa_header.&lt;/P&gt;&lt;P&gt;        append wa_header to it_header.&lt;/P&gt;&lt;P&gt;&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;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;          sort it_header by matnr werks.&lt;/P&gt;&lt;P&gt;          sort it_bom by matnr werks idnrk.&lt;/P&gt;&lt;P&gt;          delete adjacent duplicates from it_header comparing matnr werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " FINAL_data&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  display_summary&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;P&gt;form display_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_binding-master = 'MATNR'.&lt;/P&gt;&lt;P&gt;  wa_binding-slave = 'MATNR'.&lt;/P&gt;&lt;P&gt;  append wa_binding to it_binding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Process of binding the header and BOM info in hirarchial form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try.&lt;/P&gt;&lt;P&gt;      call method cl_salv_hierseq_table=&amp;gt;factory&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          t_binding_level1_level2 = it_binding&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          r_hierseq               = obj_hieralv&lt;/P&gt;&lt;P&gt;        changing&lt;/P&gt;&lt;P&gt;          t_table_level1          = it_header&lt;/P&gt;&lt;P&gt;          t_table_level2          = it_bom.&lt;/P&gt;&lt;P&gt;    catch cx_salv_data_error .&lt;/P&gt;&lt;P&gt;    catch cx_salv_not_found .&lt;/P&gt;&lt;P&gt;  endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to dispay the info&lt;/P&gt;&lt;P&gt;  call method obj_hieralv-&amp;gt;display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you,&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510590#M1066788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: PP BOM data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510591#M1066789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are standard functions to read a BOM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510591#M1066789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: PP BOM data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510592#M1066790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please tell that function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510592#M1066790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: PP BOM data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510593#M1066791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;include zbom_data_declarartion.&lt;/P&gt;&lt;P&gt;include zbom_selection_screen.&lt;/P&gt;&lt;P&gt;include zform_used.&lt;/P&gt;&lt;P&gt; what abt thes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 08:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510593#M1066791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: PP BOM data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510594#M1066792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have enclosed the code that I have written in the includes also please go through the code care fully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And coming to the function module using which you can find the BOM is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM. CS_BOM_EXPL_MAT_V2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required fields for this function module are : &lt;/P&gt;&lt;P&gt;Material &lt;/P&gt;&lt;P&gt;Plant &lt;/P&gt;&lt;P&gt;Date &lt;/P&gt;&lt;P&gt;Application(CAPID) &lt;/P&gt;&lt;P&gt;Values for CAPID can be found in table TC04 &lt;/P&gt;&lt;P&gt;For production BOM it is PP01 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 09:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510594#M1066792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: PP BOM data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510595#M1066793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have done through stko stas and stpo table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 07:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-bom-data/m-p/4510595#M1066793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T07:05:45Z</dc:date>
    </item>
  </channel>
</rss>

