How to use CS_BOM_EXPL_MAT_V2  to include bom under Phantom

Hi every1,
How can I get documentation for this function module CS_BOM_EXPL_MAT_V2 
We want to explode BOM on single level ,including Material which is coming under Phantom assembly too.
eg. I have one material 1xxxxx.
after exploding single level bom suppose I'll get these material
1xxxx1
1xxxx2
1xxxx3 and if 1xxxx3 is Phantaom assembly and under this item again I may have 1xxxx1 as bom item.
that means for my parent material 1xxxxx, I want 1xxxx1 should come 2 times !
Is there any simpliest way to get or for this item again I need to use this FM again ?
Pl. do help me.
Thanks in Advance.

Hi,
THE FM 'CS_BOM_EXPLOSION_MAT' mentioned above holds true if u dont hv any alternatives for the BOM.
eg: If ur component in turn has BOM with 3 alternatives namely 01,02,03
then ideally FM should pick all the items uder these 3 components but this FM picks by default the 1st
alternative & ignores the rest.
So there are changes dat the list which u hv gpt is not 100%.          
  Through Tcode CS12 u can see the level wise components for a BOM.
U can gather the component details with this Tcode if u hv very few BOMs to explore.
But if the count is higher u hv to select acoding way for it....
Attaching a part of code to explore multilevel BOM.....hope dis ll help u......
1 ST LEVEL
  SELECT MATNR  WERKS  STLNR  IDNRK  STLAL
        FROM ZMAT_PLANT
       INTO TABLE IT_BOM
       FOR ALL ENTRIES IN IT_INPUT    **maintain materials to be explored in IT_INPUT
       WHERE WERKS = IT_INPUT-WERKS AND
             MATNR = IT_INPUT-MATNR.
  CONCATENATE DOWNLOAD
              '1_FILE'
              '.TXT'
              INTO DOWNLOAD1.
  LOOP AT IT_BOM ASSIGNING <FS_BOM>.
    MOVE <FS_BOM>-MATNR TO IT_CHECK_MAT-MATNR.
    MOVE <FS_BOM>-WERKS TO IT_CHECK_MAT-WERKS.
    APPEND IT_CHECK_MAT.
    COUNT = COUNT + 1.
  ENDLOOP.
  SORT IT_CHECK_MAT BY MATNR WERKS.
  DELETE ADJACENT DUPLICATES FROM IT_CHECK_MAT COMPARING MATNR WERKS.
2 ND LEVEL
  IF NOT IT_BOM[] IS INITIAL.
    SELECT *
         FROM ZCOMPONENTS
         INTO TABLE IT_STPO
               FOR ALL ENTRIES IN IT_BOM
               WHERE MATNR = IT_BOM-IDNRK AND
                     WERKS = IT_BOM-WERKS.
  ENDIF.
  SORT IT_STPO BY MATNR WERKS.
  CONCATENATE DOWNLOAD
              '2_FILE'
              '.TXT'
              INTO DOWNLOAD1.
  LOOP AT IT_STPO ASSIGNING <FS_STPO>.
   MOVE <FS_STPO>-MATNR TO IT_CHECK_MAT-MATNR.
    MOVE <FS_STPO>-WERKS TO IT_CHECK_MAT-WERKS.
    APPEND IT_CHECK_MAT.
    COUNT = COUNT + 1.
  ENDLOOP.
  UNASSIGN <FS_STPO>.
  SORT IT_CHECK_MAT BY MATNR WERKS.
  DELETE ADJACENT DUPLICATES FROM IT_CHECK_MAT COMPARING MATNR WERKS.
  SORT IT_STPO BY IDNRK WERKS.
  LOOP AT IT_STPO.
    READ TABLE IT_CHECK_MAT WITH KEY MATNR = IT_STPO-IDNRK
                                     WERKS = IT_STPO-WERKS
                                          BINARY SEARCH.
    IF SY-SUBRC <> 0.
      MOVE IT_STPO-IDNRK TO IT_STPO1-MATNR.
      MOVE IT_STPO-WERKS TO IT_STPO1-WERKS.
      APPEND IT_STPO1.
    ENDIF.
    COUNT = COUNT + 1.
  ENDLOOP.
REGARDS ,
AJIT.
Edited by: AJIT THAKUR on Apr 16, 2009 10:51 AM
Edited by: AJIT THAKUR on Apr 16, 2009 10:54 AM

Similar Messages

  • How to use a TOP INCLUDE of my_function_module for/into my_report?

    Hello Experts,
    I put the below code in my_function_module
    PERFORM my_routine
    IN PROGRAM my_report_prog
    USING xyz.
    Now, i want to use the TOP INCLUDE/Data declaration part of my_function_module for/into my_report_prog, because i do not want to declare all again.
    Pls. let me know how to use a TOP INCLUDE of a my_function_module for/into my_report?
    Thank you

    Hi,
        I think we can directly use the include using INCLUDE stat.
    Go to your function group get the top include name
    and use it in your report.
    Thanks,
    Anmol.

  • How to use more than one device under same apple ID?

    How do you you use more than one device under same apple ID? say for facetime?

    You don't. One Device and one Apple ID.

  • How to use DAQ as a soundcard under linux

    Hi,
    My goal is to use a pci-4461 as a high accuracy replacement for a soundcard in a linux environment. The programming language should be C.
    I have already looked at the examples that come with the linux driver but my problem is how to exchange the audio data with other applications in real time.
    My other application is a softphone for IP-telephony that normally uses the /dev/dsp device under linux to exchange sound with the soundcard. (This can be changed to another device from within the softphone). Now, I want the softphone to read from and write to the DAQ instead of the soundcard. So the DAQ should be configured for continous analog input and output and give the data to the softphone in real time.
    Do you have any ideas how to do that with the nidaq-C-functions?
    Thank you for your help
    Fabian

    This example might help:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=EE91CE2098BB42C1E0340003BA230ECF&p_...

  • How to use "discontinuation data" in BOM item ?

    Hi everyone!
    I would like to use "discontinuation data" in BOM item , not in MRP4 view, how to set? thanks!
    Dandan

    >
    dandan li wrote:
    >
    >
    > I want to know the  "discontinuation data" in BOM item, not  Priority of AltItemGroup !
    Dear Dandan Li,
    Plz Re-check Mr. SmanS Reply in that thread
    it is Regarding As per ur query
    More over Plz try to encourage your repliers always
    [committed quantity in production order;
    Like wise there are many other threads of ur's
    Plz Don't misunderstand
    Regards
    Madhu

  • How to use 7344 driver with vc under rtx ?

    Hello everyone
     I am using the PCI 7344 card.Under windows system I  use the flexmotion32.dll well with vc,but when I use it under rtx ,it does not work,appering " can not load the driver".The fact is ,as most say,the driver is not suitable under non-windows systems. So I wonder
    if there is driver under the rtx,or how to use the windows driver under the rtx.
    If it is necessary to develop my own motion driver,what can I do?Does 7344 support register lever programming ? If it does, Can I  get the register map of the 7344?
     Hope your reply!!
    Thank you!!

    Hello !
     Presently I don`t have ni motion DDK, and it appears that there is no available link to download the DDK at ni`s web.So I  wonder if there is more detailed information about the pci-7344 card, for example the port of the registers ,how to mapping to the physical memory etc.
    Another question is if  ni can offer the source code of the ni motion driver for us to reference!
    Thank you!!
    Hope your reply!!!

  • How to use the JRE included in the installed dir??

    In windows, Id like to just bundle the JRE directory with my application, for example if the app is installed in
    F:\MyApps\MyJavaProgram the jre dir will be in
    F:\MyApps\MyJavaProgram\jre
    but how do i get the main program to use this jre only?
    thanks

    But what about when the system you are using (in this case Windows) doesn't have JRE installed on and you are using native executables? You cannot type "java" when you haven't got Java on your system and in native executables case you just type the executables filename.
    Install Anywhere includes the whole "jre" folder (excluding some unneeded files) in the installation package and it is copied to program folder during the installation. The program then uses that JRE when it is run. I metion again that I don't want to use Install Anywhere.
    So, how can you make the programs native executable use the JRE copied (by hand) in the program's folder?

  • How to use italics,fonts in description under photos in iPhoto

    How do I use italics, fonts etc in the description below the photo in iphoto

    In the iPhoto Window? You can't.

  • How to use my data on windows under bootcamp

    i i had to install windows on my macbook pro retina with mac osx 10.10 to use 3d max on may work, now i want to access on my files on my external hard drive with mac format, i can view files but i can't use file or install any programmes also from mac drive the same problem, i tried to install paragon HFS+ for windows but i can only copy and paste

    Half an hour before you posted there was this same Q&A
    Can I increase the boot camp partition size?
    Goes to show that thinking people will see if the question was ask ed and "More like this" just isn't working.

  • How to use iPhoto in screen saver under maverick os

    With the Lion or Leopard O/S i am able to use my pictures directly from  iPhoto as screensavers.  However after upgrade to Maverick, it is now impossible to select iPhoto events as a source for any of the screensavers!
    any ideas, please help!

    I too am having the same issue.  I have a circa 2007 iMac, and recently upgraded to OS 10.9.1.  I also moved all of my photos to an external hard drive (currently have iPhoto 9).  When I try to set to set up the computer screensaver, the iphoto library on the external drive is greyed out.
    I may upgrade to iPhoto 11 if that it requirement, but if there is an easier solution, I will go for that. 
    Thanks for any feedback!!

  • How to use all oracle text features under ifs?

    i'd like to know that is possible to use a oracle text features like a Theme Capabilities to do a classification when documents its incoming.....

    You will probably need to use dynamic SQL.
    See the discussion at:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:53140567326263
    (while the question deals with SQLX, the answer is the same - Pro*C can't parse all SQL, but dynamic SQL is not parsed by Pro*C)

  • We have 3 devices used by 3 different people under the same Apple ID, how do I stop getting my daughters texts, both sent and received?

    We have 3 devices used by 3 different people under the same Apple ID, how do I stop receiving my daughters texts? Both sent and received.

    When you use the same Apple ID on 3 devices it means you are all using the same (email, imessaging, calendar etc).  Since iCloud (MobileMe) is designed to be shared across all devices included Macs, it means all devices setup with the same ID will have access to the information.
    Text messaging is relevant only to the number you are texting.  This is done through your telecom companys lines and not on Apples.
    If you do not want to have others be able to read any of your information then it is best you each have your own account.

  • How to see changes in all BOM" s under plant for a period ?

    Hi Gurus,
    i want to see the list BOM's which was changed with in period and the details of changes like Quanity and user names who have done the change.
    Regards,
    mahesh.

    HI Mangalraj,
    Thank You For the response, My Client Is asking For a report Where We can Get details Of BOM list under a plant which have Gone Under changes with in a specific Period. Plant level Of .
    Ex; in the plant 1111 we have some  200 no of  BOM s . some users have changed 30 different BOM in a Month. how can i get list of BOMs which gone under Change (Header and Item level) changes.
    i have taken  Plant wise BOM no and passed it to STPO and get the details , but in STKO the Fields are showing as CHANGEDBY, CHANGEDON,but i am not able find the changes happen.
    EX:  base quantity  of header material was changed from 1 to 2 by a abcd user in 01.01.2014.
    by using STKO we can see the user name and changed date but i am not able find the change details.
    Please help me how can i develop a report to extract data of BOM changes based on input of plant and date range.
    Thanks in Advance...........
    Regards,
    Mahesh.

  • How do I put money on my itunes account w\o my daughters using it? they are under my email address & itunes acount. how do i make them their own w\o deleting mine? Help fast before a brawl starts!

    How do I put money on my itunes acount w\o my 2 daughters using it. They are under my account &amp; I don't know how to seperate all of our ipods. So that when each of us gets on the computer we can se only our playlists &amp; amount of money we have? Please help soon...

    I agree anti-relay can be using UBE feature. However, there is serious problem in reject the spam mail. My nms is using UBE feature to stop spam mail. According to the work flow of the UBE, the mail is received by nms completely and UBE is going to invesgate the mail address. Although UBE can stop the spam mail, the spam mail have a trouble in returning the mail to the sender. The reason is the sender address is usually not existed in the world. That will cause a lot of mail waiting in the mail queue.
    In my experience, do not use UBE for anti-relay.

  • How to use the Include Statement in the BADI

    Dear All,
            I am trying to implement the BADI. So i need to use the Include in the BADI.
    How to use the Include statement in the BADI. I cant able to use it in the Public, Private and protected statement.
    Where should i mention that,,,,
    Thanks
    Yogesh

    Hi Sharat,
      Thanks for your reply.
    I need to use the BADI HRWPC_PCR_APPR_FORM. In which the values are available in the Container. So if i need to use the container values then i need to use that include <cntain>.
    Is there any possible ways to make it.
    Thanks
    Yogesh

Maybe you are looking for

  • Adjustment brush not working on new Mac with Snow Leopard

    Just purchased a new computer a couple of weeks ago. Not sure if something is incompatible or something else. I'm can't remember if the brush ever worked on the new machine. Also updated to Snow leopard 16.2 during this period. I see the adjustment b

  • Flash Islands, AdvancedDataGrid, problem with grouping

    Hello, I am trying to show a table from SAP into an AdvancedDataGrid:      <mx:AdvancedDataGrid dataProvider="" width="100%" rowCount="13" >           <mx:columns>              <mx:AdvancedDataGridColumn dataField=""               headerText="Monat"

  • Compatible LCD's?

    Im wondering which LCD's are compatible with my iBook. Mine is the latest 12'' model. Would a 12'' LCD from the latest powerbook be compatible? How about from an older g4 iBook? If so, how far back can i go to find an LCD that would work?

  • How do I get rid of the memory being used by "other" on my hard drive?

    I have 120 gigs being used up on my hard drive by "other" and I want to have some of it back.  What do I do?

  • Transforms image between Java 2 and Visual J++6.0.

    Hello experts, Where describe that transforms image in Java 2 to image in microsoft Visual J++6.0. Please help me ,thank you. BCH Oct 14,2004