Is there a Function Module to read all BOM Variants

Hi,
I have a requirement to read all the BOM variants of Engineering BOM through a Function Module and pass this information to Third Party Application.
Is there any such Function module/BAPI?
Need your expert advice.
Thanks and Regards,
OmPrakash

Hi ,
If you want to use 'CS_BOM_EXPL_MAT_V2' funtion to get the BOM components, you need to give the importing parameter mtnrv( material number).
the components are stored in TABLES : stb.
I am doing this way.
but werks, date , and capid are optional .
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
       EXPORTING
         mtnrv                 = i_matnr
         werks                 = i_werks
         datuv                 = i_date
         capid                 = l_capid
       IMPORTING
         topmat                = ms_cstmat
       TABLES
         stb                   = lt_stpox
       EXCEPTIONS
         alt_not_found         = 1
         call_invalid          = 2
         material_not_found    = 3
         missing_authorization = 4
         no_bom_found          = 5
         no_plant_data         = 6
         no_suitable_bom_found = 7
         conversion_error      = 8.
Please give it a try.
BR,
Ovidiu

Similar Messages

  • Any function module to read all the values in Tcode-PPQD?

    Hi all
    Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
    and any idea what tables are involved to get these values like parent and child relationship?
    Thanks in advance.
    Murali.

    Murali,
    you can use the following..
    data: w_sobid type sobid, "Qualification ID
          w_objid type objid. "Qualification Catalog
    select objid  into w_objid
                  up to 1 rows
                  from HRP1001
                 where otype = 'QK'
                   and plvar = '01'
                   and istat = 1
                   and risgn = 'B'
                   and relat = '030'
                   and endda ge sy-datum
                   and begda le sy-datum
                   and sclas = 'Q'
                   and sobid = w_sobid.
    endselect.
    if sy-subrc eq 0.
    write: / w_objid,w_sobid.
    endif.
    Regards,
    Suresh Datti

  • Function module to read all the views of material data

    Dear all ,
           Is there any function module to read all the views of material data ?
           Like we have MATERIAL_MAINTAIN_DARK for updating all the views of material data , I need a function module to read all the views of material master.
    Thanks & Regards
    Shivanand

    Hello,
    Check these BAPI'S
    <b>BAPI_MATERIAL_DISPLAY          Display Material
    BAPI_MATERIAL_GET_DETAIL       Determine Details for a Material</b>
    Regards,
    Vasanth

  • Function Module To read all the Files in a Given UNIX directory.

    Can anyone provide me with a FUNCTION MODULE which reads all the files available in a UNIX directory?
    I have the UNIX directory given. I need to find all the files available in that particular Directory so that I can choose and process accordingly. Probably I can store all files in an Internal Table.
    Thanks in advance.
    Sunil

    Hi Nick,
    Thankyou very much for the response.
    The Function Module /SAPDMC/LSM_F4_SERVER_FILE is interactive wherein we can select only one file.
    But my requirement is I need to collect (probably in an internal table) all the files exixting in the given UNIX directory.
    Can you please find in that direction. I would be very grateful.
    Thanks.
    Sunil

  • Is there standard function module to read "open office" in SAP

    Hi All,
    Is there any standard function module to read open office document from SAP.
    Please confirm.
    Thanks and best regards
    Rajeev Chhabra

    Hi all!
    I have a similar problem. I need  create a formatted spread sheet managed open office. The work sheet must be formatted.
    I do not find the function module for doing this.
    Do yo have any idea? The only thing I have found is the functionallity included in program BCALV_TEST_GRID.
    Also I will need a function to upload the file to fill a table control.
    Thanks in advance.
    Cristina.

  • Function module to read Comma Seperated File (CSV)

    Hi,
    Is there any Function module to read CSV file from presentation server or Application server?
    Regards,
    Madhu

    Hi madhukeshwar,
    1. Exactly for this purpose,
    i have developed an independent FORM
    where we give inputs
    a) file name (eg. abcd.txt)
    b) separator (eg , COMMA in your case)
    c) internal table (eg. t001)
    2. It will provide the data
    in proper format
    (no matter what the separator)
    (it can work with any kind of separator)
    3. just copy paste in new program.
    REPORT abc.
    change your table declaration and file name
    DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
    PERFORM myupload TABLES t001 USING 'd:\t001.txt' ','.
    BREAK-POINT.
    in debug see t001
    INDEPENDENT FORM
    FORM myupload TABLES orgtab
    USING filename separator.
    Data
    DATA : BEGIN OF itab OCCURS 0,
    myline(1000) TYPE c,
    END OF itab.
    DATA : extension(5) TYPE c.
    DATA : name(100) TYPE c.
    DATA : newfilename TYPE string.
    Step 1
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = filename
    TABLES
    data_tab = itab.
    Step 2
    LOOP AT itab.
    REPLACE ALL OCCURRENCES OF separator IN itab-myline WITH
    cl_abap_char_utilities=>horizontal_tab.
    MODIFY itab.
    ENDLOOP.
    Step 3
    DATA : path LIKE pcfile-path.
    path = filename.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    extension = extension
    name = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    invalid_drive = 1
    invalid_extension = 2
    invalid_name = 3
    invalid_path = 4
    OTHERS = 5
    Step 4
    newfilename = filename.
    REPLACE name IN newfilename WITH 'temp'.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = newfilename
    TABLES
    data_tab = itab
    FIELDNAMES =
    Step 5
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = newfilename
    has_field_separator = 'X'
    TABLES
    data_tab = orgtab.
    ENDFORM. "myupload
    3.
    regards,
    amit m.

  • QM : is there any function module to find inspection lot characterstics

    Hi All,
            is there any function module to find all characterstics for an inspection lot.
    i need exact data which qe51n transaction is fetching .
    thanks in adv ,
    Varma

    Hi uvs,
    1. we can use the fm BAPI_INSPOPER_GETCHAR.
    regards,
    amit m.

  • Function module to read Lock objects

    Hi all,
    I'm doing a generic search program for all the objects..
    Is there any function module to read Lock objects....
    that is to know wat r all the tables and Lock parameters are there in a lock object

    Hi Gayathri
    Please read the table DD25L with AGGTYPE = 'E' to get all the lock object names in the field VIEWNAME. Use these lock object to read the table DD27S to get the fields present in these lock objects.
    Hope this helps !
    Regards
    Ranganath
    PS : Reward points for all useful answers !

  • Function modules to read ibase at runtime

    Hi guru's,
                Is there any function modules to read ibase at run time if yes please send those function modules its urgent please please.
    regards
    naveen kumar

    answered

  • Function Module to show all jobs in that Org Unit.

    Does any one know is there any Function Module which gives all the jobs that comes under that Org Unit. for example if org unit 10 has 2 Sub Org Units(11 and 12) and 3 jobs(20, 21 and 22) under it. and the Sub Org Unit 11 and 12 has 1 job each( 30 and 40). When you run for org unit 10 it should give all 5 jobs (20, 21, 22, 30 and 40).

    Hi Fayyaz
    Well you use a FM RH_READ_INFTY_1001 to discover the relationships between an ORG Unit and Jobs.
    Alternative, you can write a simple query to extract data from HRP1001 to find the jobs under an Org Unit. Because Jobs are related to an Org Unit and this relationship is stored in Infotype 1001/HRP1001.
    Reward Points, If helpful.
    Regards
    Waz

  • Function module to read 'Customer Material InfoRecords'?

    Is there a function module to read customer material inforecords?
    Transaction code VD53 is the display screen for Customer Material INforecords. I have a requirement to read this data in user exit.
    Thanks
    Gova

    I found one FM. RV_CUSTOMER_MATERIAL_READ
    But it won't serve my purpose as I need to find customer material number for a given material number.
    But, I found the table where this information is stored. KNMT. I'm going to create a custom FM to serve my purpose.

  • Function module to read the expired useful life of asset

    Hi,
    Is there a function module to read the expired useful life of asset. We are using the depriciation start date to calculate the expired useful life of asset, but the fiscal year shift and matching the calendar year with fiscal is causing the logic to give a month difference between the calculated value and the value in the asset.
    Please let me know if there is a Function module or BAPI for getting the values. Kindly provide example for the function module call too.
    Regards,
    Prabaharan.G

    Hi,
      Check the following function modules.
    AISC_CALC_EXPIRED_USEFUL_LIFE.
    Check the following link it might be of some help to you.
    Re: asset useful life
    Regards,
    Ram.

  • Function Module to select all entries in  ALV output

    Hi,
      I have an ALV report and Select ALL and Deselect ALL Buttons added to it .
      When the Select ALL button is pressed,all entries of the ALV report should be selected.
      When the Deselect ALL button is pressed,all entries of the ALV report should be deselected.
      Is there any function module to select all entries of the output and vice versa.
      Thanks in advance.
    Regards,
    Navas

    Hi Navas,
    I have written a part of the code you can use.
      TYPE-POOLS: slis.
      DATA : ls_event TYPE slis_alv_event.
    Set PF Status
      ls_event-name = slis_ev_pf_status_set .
      ls_event-form = slis_ev_pf_status_set .
      APPEND ls_event TO gt_event.
      CLEAR  ls_event.
    FORM pf_status_set USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'Z_STATUS'.
    ENDFORM  .                 "set_pf_status
    (no need for any perform. This will be called automatically).
    While calling the FM for ALV, pass the internal table gt_event in it_events parameter.
    Double click on Z_STATUS and add two buttons in Application Toolbar.
    1. Select All - Give function code name as &ALL,
    2. Deselect All - Give function code name as &SAL.
    Hope this helps.
    Thanks,
    Dawood.
    Edited by: Dawood.S.Ghasletwala on Apr 3, 2009 3:51 PM

  • Function Module to read Timeseries data in SNP

    Hi Gurus,
    Is there a function module to read timeseries KF (in SNP book)? I need to use this in deployment userexit  to read time series values of other Product/Location combination.
    I tried using  'BAPI_PBSRVAPS_GETDETAIL2' with in the userexit but i got simsession error.
    Thanks,

    Hi BKN,
    Check the below function modules,
    1)  /SAPAPO/OM_STOCK_TSERIES_GET
    2)  /SAPAPO/RET_DB_GET_TIMESERIES
    3)  /SAPAPO/SCC_SHOW_TIME_SERIES
    4)  /SCA/INTF_APO_TS_TIMESERI_READ
    Regards
    R. Senthil Mareeswaran.

  • Function Module to read tax in FB60

    Hi Gurus,
    Is there a function module that reads the values ​​in the folder "taxes" (tax amount) during the recording FB60?
    I need something similar to function module FI_WT_GET_X_WITH_ITEM.
    Thanks
    Nik

    Hi Nocola,
    Try using this Function Module CALCULATE_TAX_FROM_NET_AMOUNT.
    Thanks and Regards
    Rinzy Deena Mathews

Maybe you are looking for

  • GL account to be changed for a return by using AUART

    Can someone please advice on how I can go about doing this. I looked at the help and the substitutions and found that to add AUART to KOMKCV it needs to be in VBRK and the substitutions have BKPF and BSEG so I am still trying to find a way to do this

  • Synchronizing Your Mods on Quit

    What's up with the "Synchronizing you modifications" message that comes up each time I quit iCal? I have the synch preference turned off. And I dropped my .Mac account. So what's this pup trying to synch with? And why? And how can I get it to stop? T

  • Make to Order and Make to stock

    Hi Experts, I'm using make to stock and make to order scenarios for one material. For this i did the settings at the sales order level. Here we are creating External sales orders and Internal sales orders. In material master we maintained strategy 25

  • Opening a related table from tap event.

    I have a simple Edit screen called DE_Client which is based on a SQL Table (not a view). I have a browse screen based on a SQL View of the same table and have related the two elements together. Using the standard tap event option I have chosen to ope

  • Coping all the music from iphone to pc

    hi, I had to format my pc, so now I want to transfer all the music from my iphone 4 to the pc, how can I do it. im affriad that if I do it wrong the music from the iphone will be deleted without being copied to the pc. thanks a lot. juan