Vendor number in CS12 Multilevel BOM Help?!?!

Hi Friends,
I've have a trouble with TCode CS12.
Any one can tell me when the vendor number will populated in CS12 ?
I've tried many case but this TCode does not show the vendor number.
Thanks in advance.
Hau

Hi
These BOM explosion reports will not display all the fileds available in the layout.
I have tried Max. for one of the client requirement.
In this contextI have contacted SAP also byv raising OSS issue.
Finally I have gone for customized report.
Regards
YMREDDY

Similar Messages

  • Can the routing create FM CP_BD_DIRECT_INPUT_PLAN   for multilevel BOM

    Dear Friends ,
    Need help for the implementation of function module CP_BD_DIRECT_INPUT_PLAN  .
    The function module works fine when BOM is single level but in case of multi level BOM it does not create the routing documents .
    & gives the following errors
    No entry in field PLMZD-STLKN although entry is required
    When we pass the node number then we still get this error .
    No valid material component found .
    Wanted to make sute that can above FM module can be used for multilevel BOM or we have to use the  BAPI  BAPI_ROUTING_CREATE.
    Thanks ,
    Anurag .

    You must pass the PLMZ_DI-VORKN parameter.
    Edited by: albert liu on Sep 23, 2008 11:50 AM

  • To create Multilevel BOM---- BAPI (urgent)

    Hi all,
    i am using BAPI_MATERIAL_BOM_GROUP_CREATE to create a <u><b>MULTI LEVEL</b></u> BOM in sap. but i am not getting any field for <b>LEVEL</b> in this BAPI.so,  can i create a multilevel bom without a level ?
    can u plz suggest, how can i use this BAPI to create a <b>multi level</b> bom?
    is there any field relating to assembly indicator (stlkz) in this BAPI?i am not getting this field.plz suggest.
    any idea will be highly appreaciated.
    Regards
    pabitra

    Hi eswar,
    Thanks for ur help. i am getting some error while creting a BOM using that BAPI.
    errors are
    1) Error/warning when checking the structure of the BOM group with ID =
    2)Alternative  does not exist for material assignment to material BAPIBOMFG1
    is it mandatory to pass the bom group id to this bapi?
    In bomgroup structure , i am not passing anything to BOM_GROUP field.
    is it mandatory to pass this data? i am giving my coding below.plz suggest , where i am making mistake. it is urgent.
    regards
    pabitra
    report z_bom_create
           line-size 132
           line-count 65
           no standard page heading.
    *-- DATA DECLARATION--
    include <icon> .
    *---Tables
    tables : s076, t100, marc .
    *---Types
    types : begin of t_upload,      " Upload file data
             col1(18),
             col2(10),
             col3(30),
             col4(12),
             col5(50),
           end of t_upload,
           begin of t_split,
           location like stpu-ebort,
           end of t_split.
    data:begin of i_return occurs 10.
    include structure bapiret2.
    data:end of i_return.
    types:begin of t_item."occurs 10.
    include structure BAPI1080_ITM_C.
    types:end of t_item.
    types:begin of t_subitem." occurs 10.
    include structure  BAPI1080_SUI_C.
    types:end of t_subitem.
    types:begin of t_header." occurs 10.
    include structure  BAPI1080_MBM_C.
    types:end of t_header.
    types:begin of t_bomgroup." occurs 10.
    include structure  BAPI1080_BGR_C.
    types:end of t_bomgroup.
    types:begin of t_variant." occurs 10.
    include structure  BAPI1080_BOM_C.
    types:end of t_variant.
    *--- Tables
    data: i_upload type standard table of t_upload, " to hold data
          i_upload1 type standard table of t_upload,
          i_split type standard table of t_split,
          i_item type standard table of t_item,
          i_subitem type standard table of t_subitem,
          i_header type standard table of t_header,
          i_bomgroup type standard table of t_bomgroup,
          i_variant type standard table of t_variant.
    data: wa_upload  type t_upload, " to hold file data,
          wa_upload1 type t_upload, " to hold plan data,
          wa_split type t_split,
          wa_item type t_item,
          wa_subitem type t_subitem,
          wa_header type t_header,
          wa_bomgroup type t_bomgroup,
          wa_variant type t_variant.
    data:v_matnr like mara-matnr,
         v_start like sy-index,
         v_count(3) type c.
    *--Constants
    data: c_dot type c value '.',
          c_x type c value 'X',
          c_comma type c value ','.
    -------Selection Screen Design -
    *Selection screen for input of upload file address
    selection-screen skip 2.
    selection-screen begin of block blk1 with frame.
    parameters     : p_file like rlgrap-filename obligatory .
    parameters     : p_matnr like mara-matnr obligatory,
                     p_werks like marc-werks obligatory memory id wrk,
                     p_stlan like afko-stlan obligatory default '1' .
    selection-screen end of block blk1.
    ---AT SELECTION SCREEN -
    at selection-screen on  value-request for p_file.
    *--For popup  to select file.
      perform f_give_help.
    at selection-screen on  p_matnr.
      perform f_check_matnr.
    -----START OF SELECTION -
    *--Data upload using WS_Upload.
    perform f_get_data.
    perform f_get_bom_data.
    perform f_get_bom_data1.
    perform f_call_bapi.
    *&      Form  f_give_help
          text
    -->  p1        text
    <--  p2        text
    FORM f_give_help.
    call function 'WS_FILENAME_GET'
           exporting
                mask             = ',.,..'
                mode             = 'O'
           importing
                filename         = p_file
           exceptions
                inv_winsys       = 1
                no_batch         = 2
                selection_cancel = 3
                selection_error  = 4
                others           = 5.
      if sy-subrc <> 0 and  not sy-msgty is initial.
        message id sy-msgid type sy-msgty number sy-msgno
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    ENDFORM.                    " f_give_help
    *&      Form  f_check_matnr
          text
    -->  p1        text
    <--  p2        text
    FORM f_check_matnr.
    CALL FUNCTION 'BAPI_MAT_BOM_EXISTENCE_CHECK'
      EXPORTING
        MATERIAL              = p_matnr
        PLANT                 = p_werks
        BOMUSAGE              = '1'
      VALID_FROM_DATE       =
      VALID_TO_DATE         =
      TABLES
        RETURN                = i_return.
    ENDFORM.                    " f_check_matnr
    *&      Form  f_get_data
          text
    -->  p1        text
    <--  p2        text
    FORM f_get_data.
    call function 'WS_UPLOAD'
       exporting
      CODEPAGE                      = ' '
          filename                      = p_file
          filetype                      = 'DAT'
        tables
          data_tab                      = i_upload
       exceptions
         conversion_error              = 1
         file_open_error               = 2
         file_read_error               = 3
         invalid_type                  = 4
         no_batch                      = 5
         unknown_error                 = 6
         invalid_table_width           = 7
         gui_refuse_filetransfer       = 8
         customer_error                = 9
         others                        = 10
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    ENDFORM.                    " f_get_data
    *&      Form  f_get_bom_data
          text
    -->  p1        text
    <--  p2        text
    FORM f_get_bom_data.
    delete i_upload where col1 is initial.
    delete i_upload where col1 cs 'ITEM'.
    read table i_upload into wa_upload with key col1 = 'FINISHED GOOD:'.
    if sy-subrc = 0.
    v_matnr = wa_upload-col2.
    if v_matnr <> p_matnr.
    message e001(zl) with p_matnr.
    endif.
    else.
    message e000(zl).
    endif.
    ENDFORM.                    " f_get_bom_data
    *&      Form  f_get_bom_data1
          text
    -->  p1        text
    <--  p2        text
    FORM f_get_bom_data1.
    loop at i_upload into wa_upload where col1 CS 'FINISHED GOOD'.
    v_start = sy-tabix + 1.
    loop at i_upload into wa_upload1 from v_start .
            if wa_upload1-col1 cs 'FINISHED GOOD'.
              exit.
            else.
    perform f_split_upload_data.
         endif.
    endloop.
          endloop.
    ENDFORM.                    " f_get_bom_data1
    *&      Form  f_split_upload_data
          text
    -->  p1        text
    <--  p2        text
    FORM f_split_upload_data.
    if not wa_upload1-col5 is initial.
    if wa_upload1-col5 cs c_comma.
    split wa_upload1-col5 at c_comma into table i_split.
    loop at i_split into wa_split.
    v_count = v_count + 1.
    endloop.
    if wa_upload1-col4 <> v_count.
       wa_upload1-col4 = v_count.
    endif.
    clear wa_upload1-col5.
    clear wa_split.
    loop at i_split into wa_split.
    wa_upload1-col5 = wa_split-location.
    append wa_upload1 to i_upload1.
    endloop.
    else.
    append wa_upload1 to i_upload1.
    endif.
    else.
    append wa_upload1 to i_upload1.
    endif.
    ENDFORM.                    " f_split_upload_data
    *&      Form  f_call_bapi
          text
    -->  p1        text
    <--  p2        text
    FORM f_call_bapi.
    clear wa_upload1.
    wa_header-material = p_matnr.
    wa_header-plant = p_werks.
    wa_header-bom_usage = p_stlan.
    append wa_header to i_header.
    wa_bomgroup-bom_usage = p_stlan.
    wa_bomgroup-created_in_plant = p_werks.
    append wa_bomgroup to i_bomgroup.
    wa_variant-alternative_bom = 1.
    wa_variant-base_qty = 1.
    wa_variant-valid_from_date = sy-datum.
    append wa_variant to i_variant.
    loop at i_upload1 into wa_upload1.
    wa_item-item_no = wa_upload1-col1.
    wa_item-item_cat = wa_upload1-col2.
    wa_item-component = wa_upload1-col3.
    wa_item-comp_qty = wa_upload1-col4.
    append wa_item to i_item.
    wa_subitem-subitem_qty = '1'.
    wa_subitem-installation_point = wa_upload1-col5.
    append wa_subitem to i_subitem.
    endloop.
    CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
    EXPORTING
      TESTRUN                  = ' '
      ALL_ERROR                = ' '
      TABLES
        BOMGROUP                 = i_bomgroup
        VARIANTS                 = i_variant
       ITEMS                    = i_item
       SUBITEMS                 = i_subitem
        MATERIALRELATIONS        = i_header
      ITEMASSIGNMENTS          =
      SUBITEMASSIGNMENTS       =
      TEXTS                    =
        RETURN                   = i_return.
    if  i_return[] is initial.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    *write: /'BOM created:', stpo-stlnr.
    else.
    *if not i_return[] is initial.
    loop at i_return.
        IF i_return-TYPE = 'E'.
       errmsg-type = i_return-type.
       errmsg-line = i_return-message.
       append errmsg.
          ULINE /1(108).
          write:/ icon_led_RED as icon, i_return-MESSAGE.
          ULINE /1(108).
        ENDIF.
        IF i_return-TYPE = 'W'.
       errmsg-type = i_return-type.
       errmsg-line = i_return-message.
       append errmsg.
          ULINE /1(108).
          write:/ icon_led_YELLOW as icon, i_return-MESSAGE.
          ULINE /1(108).
        ENDIF.
      ENDLOOP.
    *write: / i_return-id, i_return-number, i_return-message(80).
    *endloop.
    *write: /'Error'.
    endif.
    ENDFORM.                    " f_call_bapi

  • Error Message " Enter a Vendor Number "?

    Hi,
    When we are executing MIGO 411 K transaction we are getting error message 'Enter Vendor Number'. My requirement is populate vendor dynamically based on combination of Material, Plant, Storage location and Batch. I got user exit for this User-exit (EXIT_SAPMM07M_001) when click on check button.
    We found a User-exit (EXIT_SAPMM07M_001) triggered when User clicks on 'CHECK' button. But since the vendor field (LIFNR) is a mandatory field in MIGO 411 K transaction, its throwing an error message 'Enter Vendor Number'.
    SO we are not able to populate the vendor number dynamically in user exit.
    Can any one help on this ..how to proceed further...
    Thanks
    Edited by: Venkatesh Padarti on Jan 2, 2008 11:21 PM

    All mandatory fields are checked before any processing happens.
    The simplest way is to enter a dummy vendor number (create a one-time or a dummy vendor for this purpose)
    Hope this helps,
    Lakshman

  • Asset report with vendor number and vendor desc wise

    Hi Gurus
    The requirement is to generate asset reports with the below fields:
    Asset class, Asset number & desc, vendor number & desc
    Suppose say all asset balances should be reported by vendor name and desc.
    I couldn't get the right results using an existing or a custom sort version. Do not want to go with a custom report or a SAP query.
    Any pointers in this regard would be helpful.
    Thanks
    Sekhar

    Hi,
    You can use table ANLA.
    Populate the asset field then go to settings tab and choose fields.
    Check the following fields given below:
    BUKRS
    ANLN1
    ANLKL
    LIFNR
    TXT50
    then execute.
    hope it helps.
    regards,
    otep

  • Query to fetch vendor number with whom this item was last purchased

    Hi All,
    We have a requirement to fetch the vendor number for an item with whom the item was last purchased. We need to derive this by looking at the open Purchase Order or the Material Transactions for the transaction type of ‘PO Receipt’ whichever is the latest.
    For this we are using the below query, but this query is taking a lot of time and doing an INDEX RANGE SCAN on PO_LINES_N1 & MTL_MATERIAL_TRANSACTIONS_N1
    SELECT MAX (v.segment1)KEEP (DENSE_RANK LAST ORDER BY DECODE
    (UPPER (poh.closed_code),
    'OPEN', poh.creation_date,
    mmt.transaction_date
    poh.creation_date) seg1
    FROM po_headers_all poh,
    po_vendors v,
    mtl_material_transactions mmt
    WHERE poh.po_header_id IN (SELECT pol.po_header_id
    FROM po_lines_all pol
    WHERE pol.item_id = p_inv_id)
    AND v.vendor_id = poh.vendor_id
    AND mmt.inventory_item_id(+) = p_inv_id
    AND mmt.transaction_type_id(+) = 18
    AND mmt.transaction_source_id(+) = poh.po_header_id;
    Can anyone please help me in rewriting this query or if we can use different tables to acheive the same functionality.
    Regards,
    Shruti

    Hi,
    Can anyone please help me with the below query.
    Regards,
    Shruti

  • How to retrieve the vendor number during creation of Purchase Order?

    Dear SAP experts,
    For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-
    1) default the delivery address to our plant A address if the vendor is local and
    2) default the delivery address to our plant B address if the vendor is foreign.
    At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.
    The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.
    Thank you in advance.
    Regards,
    Alex

    u can do one thing, create 2 partner function, like 1 for local, and second for import vendor.
    or make 2 batch  n activate vendor batch and make mandatory field from SPRO. 
    then goto SHD0, and do one by one step. first time take 1st requirement and second time take second . like that make two variant .
    i dont know how much it will be helpful. bt i want to suggest smth like that only.
    or, go for ABAPER help
    thanks
    nisha

  • Details of purchasing organization based on vendor number

    Hai experts,
    i want to write a report to extract "the address of supplier and details of purchasing organization based on vendor number"
    : For Supplier Address, i can use EKAN & EKKO table
    : for details of purchase organization means ????
    please help me..

    Hi,
    Take the LIFNR field from EKKO and fetch his address details from LFA1 Table.or take ADRNR field from LFA1 and take other address data from ADRC table.
    Take the EKORG Pur Orgn field and take the details from T024E table.
    reward points if useful
    regards,
    ANJI

  • How to get Vendor number form Address number

    Hi all
    I need help in getting vendor number using address number. I need best performance in this process.
    I have tried
    select single lifnr
      from LFA1
    where adrnr = address
    put this is not good in performance.
    Do any one know better way?

    Hi Salam
      As your requirement is
    <b>address > ????? > LFA1</b>
    Dieter has provided ADRV to replace "?????" in the above.
    so it is address > ADRV > LFA1.
    Substitute <b>address number</b> for field ADDRNUMBER, <b>'LFA1'</b> for field APPL_TABLE in table ADRV to check the result in field APPL_KEY which is combination of key fields in table LFA1 i.e MANDT and LIFNR.
      Please award points to Dieter for this wonderful tip.
      Thanks for the tip Dieter.
    Kind Regards
    Eswar

  • How to get the vendor number that was created using xk01..?

    Suppose i am creating a vendor with all the information by using a bdc program.
    In the same program if i want to go to the XK02 of that particular vendor that was created recently....how it possible..?
    Means how to get that particular vendor number that was created recently...?

    Hi...
    You Can Get the Vendor number after Calling the Transaction 'XK01' as below.
    <b>Declare a table for Collecting messages :</b>
    DATA: T_MSG TYPE TABLE OF BDCMSGCOLL,
              WA_MSG TYPE  BDCMSGCOLL.
    <b>Then Call Transaction Statment:</b>
    CALL TRANSACTION 'XK01'
               USING T_BDCDATA
               MODE 'N'
               MESSAGES INTO t_msg.
    if sy-subrc = 0.
      READ TABLE T_MSG INTO WA_MSG WITH MSGTYP = 'S'.
                                                                    MSGID = 'F2'
                                                                    MSGNR =  '175'.
    <b>Note: Bcoz the XK01 will issue this message</b>
      if sy-subrc = 0.
      write: / WA_MSG-MSGV1.  "This will contrain Vendor Number
    endif.
    endif.
    And you can also Try the Other method i.e. after the Call transaction statement
    <b> GET PARAMETER ID 'LIF' field V_LIFNR.
      WRITE:/ V_LIFNR.</b>
    Reward if Helpful.

  • Relation of issue materials with vendor number???

    Hi Gurus!!!!
    Can anyone tell me that can I find the vendor number by giving material document number and movement type type: 201. i.e. is there any relation of vendor number with issue material..........
    Please give me any solution!!!
    With regards
    Pardeep Sharma

    Hi,
    Pls go to MSEG table, provide the material no in MATNR field and vendor no in LIFNR field and movement type as 201 in BWART field.
    You will get the list of material document nos in the system against the given material no.
    Then you can go to MB03 t-code, key in the material document no and get complete details.
    Hope this helps.
    Regards,
    JLN

  • PO form without vendor number and address

    Dear experts,
    I have an issue, few PO's which sent to the vendor via e-mail are sending with vendor number and vendor address.  I have checked the vendor master there vendor address is maintained.
    Can any help me on it, what might be the problem?  When I check the sost for the PO, there po is displaying with the blank vendor number and address.
    Thanks in advance,
    Regards,
    Krish

    Hi Kris
    display Po
    Output Preview  - click
    Can you see your vendor email id or not?
    br
    muthu

  • SAP Vendor Number and MDG Business Partner mapping table name

    Hello Expert,
    We are using MDG for Materials and Suppliers, while using we found some times error on vendore number and business partner mis-matching.
    Could you please tell me which table I should check where I can see ECC vendor number with MDG business partner number.
    It will help us to validate the wrong mis-matched one to correct in one go.
    Regards,
    Vijay Mittal

    Hello Vijay,
    You can find the Vendors in table LFA1. Your Business Partners are in table BUT000.
    The number ranges transactions are as follows: Vendors - XKN1, Business Parners - BUCF
    You should check the NR Status and make sure your value is greater than the last created LFA1 record, so your PPO does not fail (that's in case you're going the direction BP -> Vendor and don't have the "Same flag" active in view V_TBC001). If you are trying to synch up from Vendor to BP, you'll have to check the view CVIV_VEND_TO_BP1 instead.
    Hope that helps,
    Boris

  • I want to show Vendor Number in CS11 report

    Dear Guru,
    Please help me to display vendor details in report CS11- BOM EXPLOSION LEVEL BY LEVEL.
    INPUT: 1) HEADER:2) PLANT:3) ALTERNATIVE:4) BOM APPLICATIN : BEST
    OUTPUT: VENDOR IS NOT DISPLAY THERE
    where is customization, settings for display vendor.
    MANOJ

    Dear Monoj
    Please enter the following details
    In CS11- BOM EXPLOSION LEVEL BY LEVEL.
    INPUT: 1) HEADER:2) PLANT:3) ALTERNATIVE:4) BOM APPLICATIN : PP01 or as applicable
    Now once you have excuted , system will display a result with qty , BUM, Item detauils etc  .After that you goto Change Layout Option (coulr ful checker box -just beside the Envelope symbol ) -Here you will find list of Filed in hidden column -Select Vendor Filed in the down list  and drag it to Dsiplay colu,mn and SAVE.
    Try and come back
    Regards
    JH

  • Vendor number in FBL3N and FAGLb03 - GRIR clearing account

    Hi,
    I have added a special field BSEG-LIFNR and when i run above reports, it is showing vendor number only against doc type WE and not against any other document types.
    I wanted this facility to be available primarily to track GRIR account postings.
    Can any one help me on this why only a particular document type shows vendor number and not the others.
    Regards,
    Rajanikanth

    If your Purchase Orders are set up to be a 3way match then it is at the time of the Goods Receipt (WE) that the items are expensed.  So if you are looking up the expense GL account then you will only see the vendor field populated on those line items where there was a GR done.  If you are looking up GR/IR clearing account GL Accounts (usually a liability account) then the vendor field is populated for both the GR and IR transactions on those GL Accounts.  That is at least my understanding of how that field populates.  I'm not sure if there are any user exits that would allow us to change that or not.
    Cindy

Maybe you are looking for

  • Saving a pdf without changing map characteristics

    When I save a map from my mapping program as a pdf file, all transparent circles that have symbols under them are saved as solid circles with no ability to see through them.  Am I not selecting something correctly?  This distroys my purpose in creati

  • Unauthorized songs stop play from Party Shuffle.

    I have a mac laptop that is authorized for two iTunes store accounts, and a computer authorized for only one. I get audio files from a shared source, a linux machine with a pair of harddrives in RAID, but after importing all of the songs into iTunes,

  • Inside Identity and Access Control products

    Hello, For the past few months I was working on a blog which can help understanding under the hood of identity and access control products. Please have a look into it and let me know how to improve the contents. http://identitycontrol.blogspot.com

  • Filter plugin from scratch?

    Hello, currently trying to implement my own filter Plugin. I have a problem determining what is essential to a filter plugin. I got one of the example plugins working the way i want but its messy because there is all the stuff from the sample in it.

  • I can't restart after upgrading yosemite software, how to restart?

    i can't restart after upgrading yosemite software, how to restart?