<?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: nedd help BOM Material in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680551#M619493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice to know that you got the results but still it has performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only way you can reduce - some of the product may not have 20 levels ,so try to keep the exit command to come out from the do loop&lt;/P&gt;&lt;P&gt;if there are no levels .  We are using Standard FM's to get levels ,so we can't  decrease the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 18:43:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T18:43:19Z</dc:date>
    <item>
      <title>nedd help BOM Material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680546#M619488</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;I am checking the BOM material for Material in plant . The material contains the diff level bom item. In my progarm I am taking the leve upto 20. Then the loop executing 20 times even if there is no level. B ut I want know the dynanic where the level is endfor each material ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction : cs15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Aja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 15:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680546#M619488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: nedd help BOM Material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680547#M619489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no limitation , BOM  will have number of levels&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 15:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680547#M619489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: nedd help BOM Material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680548#M619490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wrting like this .please chekc my code. I am checking the mterial upto 20 levels even though there is no furhger level. If there is no further we need to exit from that mterial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;FORM GET_MATERIAL_BOM  USING    P_P_MATNR&lt;/P&gt;&lt;P&gt;                                P_P_BEGRU.&lt;/P&gt;&lt;P&gt;  DATA :LIT_BOM_DATA LIKE IT_BOM_DATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA :LIT_BOM_DATA2 LIKE IT_BOM_DATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  W_DATUB =  SY-DATUM.&lt;/P&gt;&lt;P&gt;  W_DATUV =  SY-DATUM.&lt;/P&gt;&lt;P&gt;  W_LEV_INIT = 1.&lt;/P&gt;&lt;P&gt;  W_LVL = 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF W_LVL GT 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CS_WHERE_USED_MAT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        DATUB                      = W_DATUB&lt;/P&gt;&lt;P&gt;        DATUV                      = W_DATUV&lt;/P&gt;&lt;P&gt;        MATNR                      = P_P_MATNR&lt;/P&gt;&lt;P&gt;        WERKS                      = P_P_BEGRU&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       STLTP                      = 'M'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        WULTB                      = IT_WULTB&lt;/P&gt;&lt;P&gt;        EQUICAT                    = IT_EQUICAT&lt;/P&gt;&lt;P&gt;        KNDCAT                     = IT_KNDCAT&lt;/P&gt;&lt;P&gt;        MATCAT                     = IT_MATCAT&lt;/P&gt;&lt;P&gt;        STDCAT                     = IT_STDCAT&lt;/P&gt;&lt;P&gt;        TPLCAT                     = IT_TPLCAT&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        CALL_INVALID               = 1&lt;/P&gt;&lt;P&gt;        MATERIAL_NOT_FOUND         = 2&lt;/P&gt;&lt;P&gt;        NO_WHERE_USED_REC_FOUND    = 3&lt;/P&gt;&lt;P&gt;        NO_WHERE_USED_REC_SELECTED = 4&lt;/P&gt;&lt;P&gt;        NO_WHERE_USED_REC_VALID    = 5&lt;/P&gt;&lt;P&gt;        OTHERS                     = 6.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT IT_WULTB.&lt;/P&gt;&lt;P&gt;      W_COUNTER = SY-TABIX.&lt;/P&gt;&lt;P&gt;      W_TABIX = SY-TABIX.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;level&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IT_BOM_DATA-LEL   = W_LEV_INIT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IT_BOM_DATA-MATNR = IT_WULTB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND IT_BOM_DATA.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; clear bom_data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IT_WULTB-SORT_NO = W_COUNTER.&lt;/P&gt;&lt;P&gt;      MODIFY IT_WULTB INDEX W_TABIX.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    W_LVL = W_LVL - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO W_LVL TIMES.&lt;/P&gt;&lt;P&gt;      LOOP AT IT_WULTB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR IT_WULTB_MID[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CS_WHERE_USED_MAT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            DATUB                      = W_DATUB&lt;/P&gt;&lt;P&gt;            DATUV                      = W_DATUV&lt;/P&gt;&lt;P&gt;            MATNR                      = IT_WULTB-MATNR&lt;/P&gt;&lt;P&gt;            WERKS                      = P_P_BEGRU&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             STLTP                      = 'M'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            WULTB                      = IT_WULTB_MID&lt;/P&gt;&lt;P&gt;            EQUICAT                    = IT_EQUICAT&lt;/P&gt;&lt;P&gt;            KNDCAT                     = IT_KNDCAT&lt;/P&gt;&lt;P&gt;            MATCAT                     = IT_MATCAT&lt;/P&gt;&lt;P&gt;            STDCAT                     = IT_STDCAT&lt;/P&gt;&lt;P&gt;            TPLCAT                     = IT_TPLCAT&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            CALL_INVALID               = 1&lt;/P&gt;&lt;P&gt;            MATERIAL_NOT_FOUND         = 2&lt;/P&gt;&lt;P&gt;            NO_WHERE_USED_REC_FOUND    = 3&lt;/P&gt;&lt;P&gt;            NO_WHERE_USED_REC_SELECTED = 4&lt;/P&gt;&lt;P&gt;            NO_WHERE_USED_REC_VALID    = 5&lt;/P&gt;&lt;P&gt;            OTHERS                     = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        LOOP AT IT_WULTB_MID.                            "#EC CI_NESTED&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING IT_WULTB_MID TO IT_W_WULTB.&lt;/P&gt;&lt;P&gt;          W_COUNTER = SY-TABIX.&lt;/P&gt;&lt;P&gt;          APPEND IT_W_WULTB.&lt;/P&gt;&lt;P&gt;          CLEAR IT_W_WULTB.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;append lines of it_wultb_mid to it_W_WULTB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        REFRESH IT_WULTB_MID.&lt;/P&gt;&lt;P&gt;        CLEAR IT_WULTB_MID.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      W_LEV_INIT = W_LEV_INIT + 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR IT_WULTB.&lt;/P&gt;&lt;P&gt;      REFRESH IT_WULTB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT IT_W_WULTB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;level&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IT_BOM_DATA-LEL   = W_LEV_INIT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IT_BOM_DATA-MATNR = IT_W_WULTB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND IT_BOM_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move to midlayer internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IT_WULTB = IT_W_WULTB.&lt;/P&gt;&lt;P&gt;        APPEND IT_WULTB.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;      CLEAR IT_W_WULTB.&lt;/P&gt;&lt;P&gt;      REFRESH IT_W_WULTB.&lt;/P&gt;&lt;P&gt;      CLEAR IT_WULTB_MID[].&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  SORT  IT_BOM_DATA DESCENDING BY LEL MATNR.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM IT_BOM_DATA COMPARING LEL MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LIT_BOM_DATA[] = IT_BOM_DATA[].&lt;/P&gt;&lt;P&gt;  LIT_BOM_DATA2[] = IT_BOM_DATA[].&lt;/P&gt;&lt;P&gt;  REFRESH IT_BOM_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE LIT_BOM_DATA2 INDEX 1.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT LIT_BOM_DATA WHERE LEL = LIT_BOM_DATA2-LEL.&lt;/P&gt;&lt;P&gt;      IT_BOM_DATA = LIT_BOM_DATA.&lt;/P&gt;&lt;P&gt;      APPEND IT_BOM_DATA.&lt;/P&gt;&lt;P&gt;      CLEAR IT_BOM_DATA.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR LIT_BOM_DATA.&lt;/P&gt;&lt;P&gt;  REFRESH LIT_BOM_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR LIT_BOM_DATA2.&lt;/P&gt;&lt;P&gt;  REFRESH LIT_BOM_DATA2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please helpe me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;AJay Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 15:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680548#M619490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T15:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: nedd help BOM Material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680549#M619491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just check the program RCS15001 - this is main program inside of CS15 Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not understanding properly ,but code looks good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may i know where you are getting issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 17:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680549#M619491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T17:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: nedd help BOM Material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680550#M619492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time the material is checking upto 20 levels . I am using 'DO' in that LOOP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i increase the performence for above code. Already I did my analysis . Still it is taking time, Please help me in this performnece issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ajay reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 18:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680550#M619492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T18:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: nedd help BOM Material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680551#M619493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice to know that you got the results but still it has performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only way you can reduce - some of the product may not have 20 levels ,so try to keep the exit command to come out from the do loop&lt;/P&gt;&lt;P&gt;if there are no levels .  We are using Standard FM's to get levels ,so we can't  decrease the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 18:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680551#M619493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T18:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: nedd help BOM Material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680552#M619494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the FM you mentioned that can get the levels of a material BOM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 05:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nedd-help-bom-material/m-p/2680552#M619494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T05:46:43Z</dc:date>
    </item>
  </channel>
</rss>

