CS_BI_BOM_CREATE_BATCH_INPUT1

Can someone tell me how to use this FM CS_BI_BOM_CREATE_BATCH_INPUT1?
Does someone give the sample code the same?

Thanks

Similar Messages

  • "CS_BI_BOM_CREATE_BATCH_INPUT1",  I need to create mutilple items.

    I saw this thread "use "CS_BI_BOM_CREATE_BATCH_INPUT1", only one bom item saved? "  in May.  I am now using this FM, does anyone have the answer?
    Regards,
    Greg

    Hi,
    It is very late reply but this is for others.
    Just keep  BOM_ITEM-XLINE = '0001' for all line items.
    Regards,
    Rupom

  • Is there any BAPI for BOM creation? which does by RCSBI010 / Batch Input.

    Hi Experts,
    I need to Upload the extracted Excel-file(.txt) for BOM creation, so, pls, let me know that, Is there any BAPI for this purpose. In detail the requirement is that,
    The suggested idea shuld work as like as pgm. RCSBI010
    thanq
    Edited by: Srinivas on Feb 14, 2008 6:18 PM

    Hi Srinivas,
    Try these Function Modules
    CS_BI_BOM_CREATE_BATCH_INPUT   - Create BOM Via Batch Input
    CS_BI_BOM_CREATE_BATCH_INPUT1  - Create BOM Via Batch Input (Corrected Session Handling)
    There are two BAPI's too, which can be used
    ALE_MATERIAL_BOM_GROUP_CREATE
    BAPI_MATERIAL_BOM_GROUP_CREATE - Creation of a material BOM group
    Hoe this helps.
    Edited by: Priyabrata Samanta on Feb 15, 2008 3:56 AM

  • Using BOm Function modules

    Hi,
    I have to create/change BOM for multiple plants and i am using below code, but it is not working. I think i am not passing the parameter values properly. Can anyone help me in how to use the below function modules in loop(i mean for multiple plants)?
    *     CHANGE Bom
            CALL FUNCTION 'CS_BC_BOM_CHANGE_BATCH_INPUT'
              EXPORTING
    *           BDC_FLAG           = ' '
                bom_header         = ls_bom_header
                close_group        = 'X'
                commit_work        = 'X'
                group_data         = ls_group
                new_group          = 'X'
                tcode_mode         = ld_mode
                tcode_update       = 'S'
              IMPORTING
                msgid              = ld_msgid
                msgno              = ld_msgno
                msgty              = ld_msgty
                msgv1              = ld_msgv1
                msgv2              = ld_msgv2
                msgv3              = ld_msgv3
                msgv4              = ld_msgv4
              TABLES
                bom_item           = lt_bom_item
                bom_sub_item       = lt_sub_item.
    *   CREATE Bom
            CALL FUNCTION 'CS_BI_BOM_CREATE_BATCH_INPUT1'
              EXPORTING
    *           BDC_FLAG           = ' '
                bom_header         = ls_bom_header
                close_group        = 'X'
                commit_work        = 'X'
                group_data         = ls_group
                new_group          = 'X'
                tcode_mode         = ld_mode
                tcode_update       = 'S'
              IMPORTING
                msgid              = ld_msgid
                msgno              = ld_msgno
                msgty              = ld_msgty
                msgv1              = ld_msgv1
                msgv2              = ld_msgv2
                msgv3              = ld_msgv3
                msgv4              = ld_msgv4
              TABLES
                bom_item           = lt_bom_item
                bom_sub_item       = lt_sub_item.

    Hi Kanishak,
    Thanks for your reply. I am able to create/change bom using the FMs CS_BC_BOM_CHANGE_BATCH_INPUT & CS_BI_BOM_CREATE_BATCH_INPUT1 when i process the IDoc manually in SAP system.
    But in my current situation Idoc will be proceed from third party system automatically. During that time it is not updating and getting the IDoc status as 51. and when i process the same Idoc which is having 51 manually in SAP, it was processed and updated the BOM and the status went to 53.
    This is the problem i am facing. Kindly provide me an alternative solution.

  • BAPI for AFS BOM Creation through Cost Sheet

    Hello Experts,
    Is there any way to create the AFS BOM through BAPI.
    Client requirement is to create the automatic AFS BOM through Cost Sheet (KKE1), I already developed custom Cost Sheet as per the requirement .
    When we create the Cost Sheet Using KKE1 / ZKKE1, automatically AFS BOM should be create in the system with all grid values of component.
    I'm not getting how should I create the AFS BOM using all the components in the Cost Sheet with Grid values.
    There is no issue in creation of simple BOM using Bapi but for AFS BOM I'm facing problem.
    Please suggest and also tell the possibility.
    Thanks & Regards
    Prajyot.D

    Hi!  Thanks for your help.  I used CS_BI_BOM_CREATE_BATCH_INPUT1 and was able to create the BOMs successfully.  My problem now is on the change.  I tried using CS_BI_BOM_CHANGE_BATCH_INPUT but I kept running into various errors.  I think it has something to do with the fields that I am populating in the structures and tables that are being passed to the BAPI.  I tried researching for CS_BI_BOM_CHANGE_BATCH_INPUT but could not find any match.  The function module documentation is not available as well.  If you have used this FM in the past, will appreciate if you could share some inputs on how you were able to make this work.  Thanks a lot!

  • Function to copy BOM object dependencies

    Hi everyone.
    I've had to create a program to copy (or extend) BOMs to other plants, like CS01 and CS07 transactions.
    I did it like in the sample program MAT_BOMGROUP_CREATE_SAMPLE, replacing function ALE_MATERIAL_BOM_GROUP_CREATE with the bapi BAPI_MATERIAL_BOM_GROUP_CREATE.
    The problem is that this functions cannot handle object dependencies. (leaves field STPO-KNOBJ empty)
    I got this two sap notes, but for now it was useless:
    488765
    545676
    Do you know any FM or bapi that do it?
    Thank you.
    Alberto
    Edited by: A. Tabernero on May 21, 2009 4:56 PM

    Any sugestion please?
    Now i'm trying to use the function CS_BI_BOM_CREATE_BATCH_INPUT1 to create a new BOM, but i have a problem: only one item is created. ¿Anybody knows how to create all of them?
    (The table contain all the items)
          CALL FUNCTION 'CS_BI_BOM_CREATE_BATCH_INPUT1'
            EXPORTING
            BDC_FLAG           = ' '
              bom_header         = wa_bicsk
            CLOSE_GROUP        = ' '
              commit_work        = 'X'
              group_data         = wa_bgr00
            NEW_GROUP          = ' '
              tcode_mode         = 'N'
            TCODE_UPDATE       = 'S'
            IMPORTING
              msgid              = v_msgid
              msgno              = v_msgno
              msgty              = v_msgty
              msgv1              = v_msgv1
              msgv2              = v_msgv2
              msgv3              = v_msgv3
              msgv4              = v_msgv4
            TABLES
              bom_item              = it_bom_items
              bom_sub_item       = it_bicsu.
    Thanks,
    regards
    A.Tabernero.

  • Create Bom with alternative using CSAP_MAT_BOM_MAINTAIN

    Hi all,
    I am trying to create a new alternative BOM and thought I had to use the function CSAP_MAT_BOM_MAINTAIN. Creating new BOMs with CSAP_MAT_BOM_CREATE works as well as maintaining them with CSAP_MAT_BOM_MAINTAIN, but I fail in creating a new alternative BOM. In the function
    CS_DI_HEADER_OBJECT_CHECK (called within the maintain-function ) it says (close to the failure )
    "*Anlegen von Alternativen über CSAP nicht erlaubt"
    "creation of alternative using csap not allowed" ....
    Well, sounds like I am using the wrong function, but which should I use instead ???
    Thanx in advance,
    Karsten

    Hi,
    Use : CS_BI_BOM_CREATE_BATCH_INPUT1 To Create a new BOM or New Alt. BOM.
    Use : CS_BC_BOM_CHANGE_BATCH_INPUT to maintain the BOM.

  • BOM creation FM

    Hi,
    I'm using FM CS_BI_BOM_CREATE_BATCH_INPUT1 for Bill-of materials creation.can anyone tell me what parameters need to be passed to the following import parameters.
    BDC_FLAG
    CLOSE_GROUP
    COMMIT_WORK
    NEW_GROUP
    TCODE_MODE
    TCODE_UPDATE
    Thanks in advance.
    Nitu

    Hi,
    Check the following.
    FORM process_bom_create_rfc
         TABLES
           bom_item     STRUCTURE bicsp
           bom_sub_item STRUCTURE bicsu
         CHANGING
           bom_header   LIKE bicsk
           e_return     LIKE cad_return-value
           e_message    LIKE message-msgtx.
    *- definition of local fields
      DATA: l_msgid       LIKE t100-arbgb,
            l_msgno       LIKE t100-msgnr,
            tcode_mode(1) TYPE c,
            lf_error(1)   TYPE c.
    *- convert date valid from
      IF bom_header-aennr IS INITIAL AND
        NOT ( bom_header-datuv IS INITIAL ).
        DATA: lf_dat LIKE sy-datum.                             "HW 441712
        MOVE bom_header-datuv TO lf_dat.                        "HW 441712
        WRITE: lf_dat TO bom_header-datuv DD/MM/YYYY.           "HW 441712
      ENDIF.
    *- clear date when change number and date is set
      IF NOT ( bom_header-aennr IS INITIAL ) AND
         NOT ( bom_header-datuv IS INITIAL ).
        CLEAR: bom_header-datuv.
      ENDIF.
    *- set CAD flag to memory
      EXPORT cad_flag TO MEMORY ID 'CAD'.
      tcode_mode = 'N'.
    *- call BATCH-INPUT
      CALL FUNCTION 'CS_BI_BOM_CREATE_BATCH_INPUT1'
        EXPORTING
          bdc_flag     = space
          bom_header   = bom_header
          commit_work  = 'X'
          group_data   = bgr00
          tcode_mode   = tcode_mode
          tcode_update = 'A'
        IMPORTING
          msgid        = l_msgid
          msgno        = l_msgno
          msgty        = hlp_msgty
          msgv1        = hlp_msgv1
          msgv2        = hlp_msgv2
          msgv3        = hlp_msgv3
          msgv4        = hlp_msgv4
        TABLES
          bom_item     = bom_item
          bom_sub_item = bom_sub_item
        EXCEPTIONS
          OTHERS       = 1.
    note 394776: clear memory id
      CLEAR cad_flag.
      EXPORT cad_flag TO MEMORY ID 'CAD'.
      cad_flag = 'X'.
    *- error -> exit without message
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      hlp_msgid = l_msgid.
      hlp_msgno = l_msgno.
    *- get message string
      CALL FUNCTION 'WRITE_MESSAGE'
        EXPORTING
          msgid  = hlp_msgid
          msgno  = hlp_msgno
          msgty  = hlp_msgty
          msgv1  = hlp_msgv1
          msgv2  = hlp_msgv2
          msgv3  = hlp_msgv3
          msgv4  = hlp_msgv4
          msgv5  = space
        IMPORTING
          error  = lf_error
          messg  = gs_msg
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc = 0. ENDIF.
    *- set return code
      IF gs_msg-msgty = 'E' OR NOT ( lf_error IS INITIAL ).
        e_return = c_error.
      ELSE.
        e_return = c_ok.
      ENDIF.
      e_message = gs_msg-msgtx.
    *- import BICSK from memory (to return the given alternative)
      IF e_return = c_ok.
        CLEAR bicsk.
        IMPORT bicsk FROM MEMORY ID cad_bom_memid.
        MOVE-CORRESPONDING bicsk TO bom_header.
      ENDIF.
    ENDFORM.                             
    Regards,
    Raj.

  • BOM Creation through

    have any used this FM <b>CS_BI_BOM_CREATE_BATCH_INPUT1</b> to create material BOM with multiple items?
    Its not working for multiple BOM components/items....its only considering the first item.Can any 1 help me regarding this.
    thanks in advance.

    Hi,
    See the Std program RCSBI010 for the use of this Fun module.
    regards,
    Anji

  • How to Create Fixed Bom using BAPI

    Hi all,
    Iam using the BAPI "BAPI_BOM_UPLOAD_SAVE" for creation of Fixed BOM of Materials.
    I don't know how that is used,I mean i don't know the inputs,
    Pls can any one Provide me TEST DATA for this Bapi.
    or a sample Program how fixed bom is created.and how can we know thet bom has been created.
    for e.g if we create super bom ,the Bom links are  stored in cs41,so we are able to know super bom has been created but how to check for fixed bom.is that the same for fixed also.
    i have some inputs and with that inputs ,BOM is not being created and the BAPI return table type was E.

    Hi,
      The FM BAPI_BOM_UPLOAD_SAVE is using CSAP_MAT_BOM_CREATE to create the BOM but it does not have any option to specify the alternative to be created.Look for some other FM if you need to create an alternative BOM.Check if the FM BAPI_MATERIAL_BOM_GROUP_CREATE can be used as an alternative
    also  check this FM.
    CS_BI_BOM_CREATE_BATCH_INPUT1 - Create a new BOM or New Alt. BOM.
    CS_BC_BOM_CHANGE_BATCH_INPUT - Maintain the BOM.
    <b>Reward points</b>
    Regards

  • BATCH INPUT FORMAT ERROR TYPE QUAN DEC 3 WHY?

    hi experts,
    i use this function to create BOM CS_BI_BOM_CREATE_BATCH_INPUT1 (transaction IB11) but this is no really relevants, the problem is that when the Batch imput is executed, it stops when try to insert the field RC29P-MENGE becuase is passed the value 11.000 but the program only accept 11,000.
    the field have this configuration:
    MENGE     KMPMG     QUAN     13     3
    the error message is "insert format:  _ ___ ___ __~,___V message No. 00088
    why?
    What i have to do to resolve the problem?
    thanks.

    always use character field when passign data in BDC. define your source field as character, and then you should be able to use that

  • CS_BI_BOM_CREATE_BATCH_INPUT

    Hi,
    I use CS_BI_BOM_CREATE_BATCH_INPUT1
    with CS01 to create BOM. The standard value, in my system, for the flag "cost relevant item" (RC29P-SANKA) is "true". My need is to set it to "false" but in form GENERATE_BDC_ENTRIES(LCSBIF01) this field is skipped out because the source contain a test over the field-symbols <field> (release 46 c, from line 632 to line 636).
    I try to find a oss note but i have't nothing found.
    Thank in advance

    Hi siva,
              Try clicking Double line  to test with multiple records in the FM.

Maybe you are looking for

  • Tungsten / E2 installation problem on windows 7 home premiun

    I have the original tungsten/E2 installation CD  and now I have a brand new descktop system ,  with the windows 7 - 64bit  home premiun edition I am not able to install the software using the original CD .  Windows 7 does not accept it. Any tip how t

  • Non-scrolling topic - CSS change doesn't take effect

    I am trying to create a non-scrolling region in WebHelp, RH 9. I followed some instructions to change the style tag for the area that I don't want to have scroll to position="fixed." Unfortunately, this doesn't seem to change my output at all and the

  • Printing Problems GI Slip and GR Slip

    Hullo fello Sapians I have printing problems regarding the above. When I have only one output type configured eg WA01 and no WE's the goods issue prints perfectly however the GR slip also prints but in the form of a returns delivery note. I have not

  • Swf shrinks in chrome, fine in IE FF

    I have a swf that loops continuously as a comin soon image. Two weeks ago it worked fine across the board. Now it works fine in IE and FF, but in chrome it is TINY. the website is www.djomi.com I am not incredibly experienced with any of this, its pr

  • How to maintain IT 0041 for leave?

    Hello Experts, I have requirement while taking leave AWL and Suspension the date should get reflected in IT 0041. Now I would like to know is it possible to do through configuration or I have to maintain IT 0041 manually? Kindly reply. Thank You Manj