BOM Creation (CS01) in LSMW

Hi I am doing the DI input method of LSMW (OBJECT: 0030, METHOD: 0001). I created 2 source structures and 2 files: HEADER  and ITEM.
After execute the  13th step, ‘Create Batch session’  I am  getting the the following message ' <i><b>E29   811 Transaction will not support'</b></i> and stopping the process. It is not creating an Session.
In the step: <b>'Specify file'</b>, It is asking the logical path, I had given some name. Then it is created the logical path. The name is available in AL11 tcode.
Does we need to create the same logical path name in the Unix system with the help of Basis guys.
Could you please advise how to resolve the issue.
Thanks & Regards
Madhu

Hi,
go through the Code used for BOM upload using Direct Input and modify to your requirements.
ABAP Name   : ZSDBDCP
Description : Bill of Material (direct input)
REPORT ZPPBDCP_BOM
        line-size 150.
                              Tables
Tables: BIKSSK,BIAUSP,MARA.
                           Internal Tables
*-- Internal Table to hold bom data
data : begin of it_class occurs 0,
*KLART(4),
OBJEK(50),
CLASS(18),
ATNAM(30),
ATWRT(30),
       end of it_class.
                     Start of selection
Start-of-selection.
  clear   it_class.
  refresh it_class.
*To Upload Flat file from presentation server
  CALL FUNCTION 'UPLOAD'
       EXPORTING
            filename                = 'C:\WINDOWS\Desktop\class.txt'
            filetype                = 'DAT'
       TABLES
            data_tab                = it_class
       EXCEPTIONS
            conversion_error        = 1
            invalid_table_width     = 2
            invalid_type            = 3
            no_batch                = 4
            unknown_error           = 5
            gui_refuse_filetransfer = 6
            OTHERS                  = 7.
*--Open File on Application Server
  open dataset 'class.txt' FOR OUTPUT IN TEXT MODE.
  loop at it_class.
    IF IT_CLASS-class NE ' '.
         CLEAR MARA-MATNR.
         SELECT SINGLE MATNR INTO MARA-MATNR
                 FROM MARA
                 WHERE BISMT EQ IT_CLASS-OBJEK.
         if sy-subrc ne 0.
          WRITE:/ 'Invalid Old Material',IT_CLASS-OBJEK.
         endif.
      perform popu_BIKSSK.
      transfer BIKSSK  to 'class.txt'.
    ENDIF.
    perform popu_BIAUSP.
    transfer BIAUSP  to 'class.txt'.
  ENDLOOP.
*&      Form  popu_BIKSSK
      text
-->  p1        text
<--  p2        text
FORM popu_BIKSSK.
  BIKSSK-STYPE = 1.
  BIKSSK-TCODE = 'CL20'.
  BIKSSK-MAFID = 'O'.
  BIKSSK-KLART = '001'.
  BIKSSK-OBJEK = mara-matnr.
  BIKSSK-CLASS = IT_CLASS-CLASS.
  BIKSSK-OBTAB = 'MARA'.
ENDFORM.                    " popu_BIKSSK
*&      Form  popu_BIAUSP
      text
-->  p1        text
<--  p2        text
FORM popu_BIAUSP.
  BIAUSP-STYPE = 2.
  BIAUSP-ATNAM = IT_CLASS-ATNAM.
  BIAUSP-ATWRT = IT_CLASS-ATWRT.
ENDFORM.                    " popu_BIAUSP
Regards,
Anji

Similar Messages

  • BOM Creation - CS01

    Hi all.
    i need to write a BDC for creating BOM. are there any BAPI
    available.untill now i came across two :
    BAPI_BOM_UPLOAD_SAVE
    BAPI_MATERIAL_BOM_GROUP_CREATE
    Which one is the apt one or is it better to do bdc?
    Thanks,
    kavitha

    bapi for BOM
    chk this

  • Bdc for tocde CS01(BOM CREATION)

    Hi,
    I want to make a bdc for the tcode CS01(BOM Creation),but the thing when i perform the Recording then there is a point that the BOM having the sub - items which might be 3 or 2 or maybe 10 . how can i manage that during the recording.
    plzz provide me guidelines for solving this problem.

    Hi,
    This code for BOM creation/Change,
    using BAPI as well as BDC check this.
                    LOOP AT it_bom_create INTO wa_bom_create.
    * Begin of CCT51465 - B09794 - 11/28/2007
    *                  PERFORM f_bdc_dynpro      USING 'SAPLCSDI' '0100'.
    *                  PERFORM f_bdc_field       USING 'BDC_OKCODE'
    *                                                  '/00'.
    *                  PERFORM f_bdc_field       USING 'RC29N-MATNR'
    *                                                  wa_bom_create-matnr.
    *                  PERFORM f_bdc_field       USING 'RC29N-WERKS'
    *                                                  wa_mbew-bwkey.
    *                  PERFORM f_bdc_field       USING 'RC29N-STLAN'
    *                                                  '2'.
    *                  PERFORM f_bdc_field       USING 'RC29N-STLAL'
    *                                                  '01'.
    *                  PERFORM f_bdc_dynpro      USING 'SAPLCSDI' '0110'.
    *                  PERFORM f_bdc_field       USING 'BDC_OKCODE'
    *                                                  '/00'.
    *                  CONDENSE wa_bom_create-bmeng.
    *                  PERFORM f_bdc_field       USING 'RC29K-BMENG'
    *                                                  wa_bom_create-bmeng.
    *                  PERFORM f_bdc_dynpro      USING 'SAPLCSDI' '0111'.
    *                  PERFORM f_bdc_field       USING 'BDC_OKCODE'
    *                                                  '/00'.
    *                  CONDENSE wa_bom_create-menge.
    *                  PERFORM f_bdc_dynpro      USING 'SAPLCSDI' '0140'.
    *                  PERFORM f_bdc_field       USING 'BDC_CURSOR'
    *                                                  'RC29P-IDNRK(01)'.
    *                  PERFORM f_bdc_field       USING 'BDC_OKCODE'
    *                                                  '/00'.
    *                  PERFORM f_bdc_field       USING 'RC29P-IDNRK(01)'
    *                                                  wa_bom_create-idnrk.
    *                  CONDENSE wa_bom_create-menge.
    *                  PERFORM f_bdc_field       USING 'RC29P-MENGE(01)'
    *                                                  wa_bom_create-menge.
    *                  PERFORM f_bdc_field       USING 'RC29P-POSTP(01)'
    *                                                  'L'.
    *                  PERFORM f_bdc_dynpro      USING 'SAPLCSDI' '0130'.
    *                  PERFORM f_bdc_field       USING 'BDC_OKCODE'
    *                                                  '/00'.
    *                  PERFORM f_bdc_dynpro      USING 'SAPLCSDI' '0131'.
    *                  PERFORM f_bdc_field       USING 'BDC_OKCODE'
    *                                                  '/00'.
    *                  PERFORM f_bdc_dynpro      USING 'SAPLCSDI' '0140'.
    *                  PERFORM f_bdc_field       USING 'BDC_OKCODE'
    *                                                  '=FCBU'.
    *                  PERFORM f_bdc_transaction USING 'CS01'.
                      it_stko1-base_quan = wa_bom_create-bmeng.
                      CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
                        EXPORTING
                          material                 = wa_bom_create-matnr
                          plant                    = wa_marc-werks
                          bom_usage                = '2'
                          valid_from               = v_valid              " CCT52206 - B09794 - 12/10/2007
    *                     CHANGE_NO                =
    *                     REVISION_LEVEL           =
                          i_stko                   = it_stko1
    *                     FL_NO_CHANGE_DOC         = ' '
                          fl_commit_and_wait       = 'X'
    *                     FL_CAD                   = ' '
                          fl_default_values        = ' '
                        IMPORTING
                          fl_warning               = flg_warning
    *                     BOM_NO                   =
                        TABLES
                          t_stpo                   = it_stpo1
    *                     T_DEP_DATA               =
    *                     T_DEP_DESCR              =
    *                     T_DEP_ORDER              =
    *                     T_DEP_SOURCE             =
    *                     T_DEP_DOC                =
    *                     T_LTX_LINE               =
    *                     T_STPU                   =
                        EXCEPTIONS
                          error                    = 1
                          OTHERS                   = 2.
                      IF sy-subrc <> 0.
    * Begin of CCT59311 - B09794 - 07/01/2008
                        IF p_show = 'X'.
                          PERFORM f_check_lock.
                        ENDIF.
    * End of CCT59311 - B09794 - 07/01/2008
                        CALL FUNCTION 'FORMAT_MESSAGE'
                          EXPORTING
                            id        = sy-msgid
                            lang      = sy-langu
                            no        = sy-msgno
                            v1        = sy-msgv1
                            v2        = sy-msgv2
                            v3        = sy-msgv3
                            v4        = sy-msgv4
                          IMPORTING
                            msg       = v_mstring
                          EXCEPTIONS
                            not_found = 1
                            OTHERS    = 2.
                        IF sy-subrc = 0.
                          CONDENSE v_mstring.
                          wa_errormsg-matnr = wa_bom_create-matnr.
                          wa_errormsg-werks = wa_marc-werks.
                          wa_errormsg-mtart = v_mat_typ.
                          wa_errormsg-msgtyp = sy-msgty.
                          IF sy-msgid = '29' AND sy-msgno = '037'.
                            v_mstring = text-027.                                   "  Costing BOM already exist (For Material -
                            CONCATENATE v_mstring wa_marc-matnr ')' INTO v_mstring.
                            wa_errormsg-msgtxt = v_mstring.
                          ELSE.
                            wa_errormsg-msgtxt = v_mstring.
                          ENDIF.
                          APPEND wa_errormsg TO it_errormsg1.
                          CLEAR wa_errormsg.
                        ENDIF.
                      ELSE.
                        wa_successmsg-matnr = wa_marc-matnr.
                        wa_successmsg-werks = wa_marc-werks.
                        wa_successmsg-mtart = v_mat_typ.
                        wa_successmsg-msgtyp = 'S'.
                        v_mstring = text-017.       "   Costing BOM created successfully (For Material -
                        CONCATENATE v_mstring wa_marc-matnr ')' INTO v_mstring.
                        wa_successmsg-msgtxt = v_mstring.
                        APPEND wa_successmsg TO it_successmsg.
                        CLEAR wa_successmsg.
                      ENDIF.
    Code Formatted by: Alvaro Tejada Galindo on Dec 23, 2008 10:21 AM

  • Alternative BOM creation problem in CS01

    Hi.
    I have created a BOM with CS01 with list of components. Now i want to create an alternative BOM for the same FG.
    When I am trying to create alternative BOM using CS01, I added the components, system is showing me in the header as Alternative BOM 2. But when i try to save this BOM system is giving me the error as "Alternative BOM cannot be created for this material".
    Can you please help me how to create alternative BOM for this FG.
    Regards,
    Padmavathi

    Dear Padma,
    If my understanding is correct,if the check box for multiple BOM inactive is set in OS27 means,you will not be allowed to even
    enter into the BOM item maintenance screen.
    It seems the system is allowing you to enter the second alternative BOM,but at the time of save the system is blocking from
    doing so.check what's the message and check whether by means of exit this check has been incorporated in the system.
    Check and revert back.
    Regards
    Mangalraj.S

  • BOM creation TCODE

    Dear Gurus
    Are there any other Tcodes for BOM creation other than CS01? Any Tcodes I could use for BOM creation for LSMW upload?
    Need help ASAP. Points assured
    Thanks in advance

    Hi Obie,
    As all experts has suggested there are only two transaction codes for material BOM,
    1. CS01 for creation of BOM
    2. CS02 for editing of BOM
    There are diffrenet t codes if you want to create equipment BOM like IB01 & IB11.
    Hope this will resolve your querry.
    Regards,
    Avinash.

  • Plant specific BOM creation

    Hello,
          My requirement is User must be able to create plant specific BOM creation. For this, Do we need to do any SPRO config in Material master side? or any other settings needs to be done? Kindly let me know... Thanks!!
    Regards,
    Saravana

    Make the field Plant for CS01 via transaction variant SHD0.
    Then user can't continue without enter plant.
    Regards
    Dev

  • What  is use of  Item Category N(non-stock item) in BOM creation

    Dear Experts,
                       What  is use of  Item Category N(non-stock item) in BOM creation ?
    regards
    rajakarthik

    Hi,
    This item category is used for components which are not kept in stock if they are used in a bill of material (BOM). Non-stock items can be entered in the BOM with or without a master record. To enter a non-stock item without a master record, you must simply enter a descriptive text.
    When you use this item category, the system automatically creates a purchase requisition for these components,
    Special functions
    The following functions are supported for non-stock items
    • You maintain purchasing data for non-stock items in the bill of material.
    • In the planning run, the system generates purchase requisitions
    instead of dependent requirements for components that are procured directly. When you configure your R/3 System for MRP, you can define whether direct procurement is triggered by the planning run or by production order management.
    • Product costing processes take valuation data from the BOM item.
    The system determines the release strategy on the basis of the price data you enter. The material group is required to produce a purchase requisition.
    Pavan

  • REGARDING BOM CREATION

    At the time of BOM creation We choose copy from.After that which material ,which plant needs to be copied  how will we come to know about this?Do we need do to select all the items from the BOM of source material.After copying items of the source material can i change the item quantity there .Please giude me on that.

    Dear,
    First you are enetering material and plant of BOM to be created, in copy screen you enter the material and plant form which you want to copy the material BOM
    example
    Material A in plant 0001 is existing BOM
    Copy function can be used for
    Case 1 create BOM for a Material B and  plant 0001. Now you want to copy from Material A plant 0001.
    Here you use the copy frumction and enter material A and plant 0001.
    Once you entrer you will see the items of material A/plant 0001, you can select all items or you can select some of them and click on copy, then system will take you to BOM of B in plant 0002 and items of B. here you can delete/add/change the qty, items whatever and save it...so that Material B BOM willbe created. Nothin will happen to material A BOM
    Case 2 create BOM for a Material B and  plant 0002. Now you want to copy from Material A plant 0001.
    Here you use the copy frumction and enter material A and plant 0001.
    Once you entrer you will see the items of material A/plant 0001, you can select all items or you can select some of them and click on copy, then system will take you to BOM of B in plant 0002 and items of B. here you can delete/add/change the qty, items whatever and save it...so that Material B BOM willbe created. Nothin will happen to material A BOM
    I hope you got it

  • Sample bom creation and explosion in sales order

    hi,
         can any one help to create a simple bom with atleast one sub item for the bom and create a sales order in which the bom explodes ( i mean when u enter the main bom item it should list its sub items as its line item below it)...
    (also mention what item categories are to be taken care ... )
    rewards for sure
    thanks
    mmn

    Hi MMn,
    Bill of materials (BOM)
    1. In the SAP System, you can use BOMs to represent different objects (such as materials, equipment, functional location BOMs, and documents) and to maintain object-specific data.
    2. Document BOM: A complex document may be made up of several documents, such as a program, technical drawings, papers, and photographs. These related information and documentation objects are grouped together as a unit using a document structure – a BOM for a document.
    3. Equipment BOMs are used to describe the structure of equipment and to assign spare parts to equipment for maintenance purposes. Bills of material for functional locations group together the elements of a technical structure, such as the functional unit of an entire plant.
    4. You work with order BOMs when you specially tailor the make-to-order production of your products to the requirements of your customers. In order to meet the customer requirements, sales order specific modifications to various assemblies are often required. Furthermore, assemblies are often specially constructed for a particular sales order.
    5. Before you can create a BOM for the component parts of an object, the object must have a valid master record in your system.
    6. A bill of material that you create for a material is known as a material BOM in the SAP System. A BOM explosion answers the question: What is the product made of? This question arises in various situations, such as when you want to:
    Determine material requirements for a product
    Look at the overall structure of a product in a design department
    See an overview of the parts and materials required
    Calculate the effects of changes to costs
    7. BOM is a collection of materials that make up a product. For example – computer, home theatre system. Material BOM is complex and is dependent on sales and distribution, material management or production planning.
    8. The most important rule is that the material type has to be a FINISHED PRODUCT (FERT) in order to categorise it as a BOM.
    9. BOM processing is divided into two different ways – either at the MAIN item level if the item is assembled or at the sub-item level (i.e. at the component level) if the material is not assembled.
    10. BOM is configured at the item category level (VOV7) and transaction code to create a BOM is CS01.
    11. In case of single level BOM, main item categories TAQ and TAP should represent single level BOM in VOV7 and in case of multi level BOM, the main item categories should represent multi level BOM.
    Main item level processing
    1. The material master records should have the item category group ERLA in the sales org.2 screen of the finished product. In this case, the associated sub items function only as text items, and thus are not relevant for delivery. This process ensures that pricing, inventory control and delivery processing is carried out the header level that is for the finished product only. This is mainly relevant to the assembled products.
    2. item category group – ERLA; main item category – TAQ (schedule line – CP) and sub item category – TAE (schedule line – CT)
    Sub-item level processing
    1. If the business prefers to have the sub-items be responsible for pricing, inventory control and delivery processing, the item category group should be LUMF on screen sales org.2 of the respective material master record. This ensures that subcomponents are relevant for processing. This is relevant to the products that are not assembled.
    2. item category group – LUMF; main item category – TAP (schedule line is CT), sub item category – TAN (schedule line is CP)
    Multi-level BOM
    In order to activate the multi-level BOM, structure scope in VOV7 has to be changed from single level explosion to multi level explosion.
    Try this and revert back fr clearifications
    Reward Points if helpful.
    Regards
    Srini

  • Cideon / Autocad 2007 / Material BOM Creation from autocad

    Hi,
    we are using Cideon integration for AutoCad 2007 & SAP ERP communication. DIR's in DMS are created from AutoCad drawings via SAP menu.
    We want to create Material & Material BOM from AutoCad but we cannot see any option present in SAP menu. We can just create Header Material from SAP menu in AutoCad, no BOM option. What steps should be taken to enable material & bom creation from AutoCad SAP menu.
    Thanks
    Edited by: Rob Burbank on Oct 22, 2010 3:56 PM

    Moderator message - Welcome to SCN
    Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    In particular, offering points is against forum rules
    Rob

  • 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

  • How to create material bom through CS01 if bom created by using ppe

    Hi experts,
    I have created a material bom through PPE of material A. Now i want to create bom through CS01for same material A.
    system shows error "A breakdown (PVS/VA) already exists in iPPE for material".
    So how can create bom through CS01?
    Suggest me.
    Regards,
    Nitin Nerkar

    Hi,
    Please check and implement the below note,
    [1311089|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1311089]
    Thanks
    Hrishi

  • Planning BOM creation

    Hi,
    What status should have the customer BOM for us to create planing BOM?
    I have the message : "the customer BOM don't have a valid status"
    Tks for help! : )

    HI
    In OS28 the BOM status is 1 then check in CS02 for your BOM > header> quants/longtxt> BOM status it shoul be again 1
    make it 1 in CS02 if it is not 1
    or try with create new BOM in CS01 with usage 5 or in CS61
    Check and revert
    Regards
    Anupam Sharma

  • Error when ECO and BOM creation using IDoc

    Hi experts,
    now i am doing an interface about ECO/BOM creation and changing using IDoc.The idoc type is ECMMAS02 ans BOMMAT04.
    since i know a little about ECO/BOM, can anyone provide some good materials for me?
    and i don't know which fields are mandatory in idoc segment, so i go to tansaction BD30 to run a BOM changing. i input a change number but the idoc log shows that change number does not exist. what is the change number using? where i can implement the changes, e.g, change the quantity? should the change number be used when creation and changing? how can i get this change number?
    thanks a lot in advance!

    Hi experts,
    now i am doing an interface about ECO/BOM creation and changing using IDoc.The idoc type is ECMMAS02 ans BOMMAT04.
    since i know a little about ECO/BOM, can anyone provide some good materials for me?
    and i don't know which fields are mandatory in idoc segment, so i go to tansaction BD30 to run a BOM changing. i input a change number but the idoc log shows that change number does not exist. what is the change number using? where i can implement the changes, e.g, change the quantity? should the change number be used when creation and changing? how can i get this change number?
    thanks a lot in advance!

  • Plant specific BOM creation SPRO settings

    Hello,
          My requirement is User must be able to create plant specific BOM creation. For this, Do we need to do any SPRO config in Material master side? or any other settings needs to be done? Kindly let me know... Thanks!!
    Regards,
    Saravana

    Hi Saravana,
    As such there is no SPRO setting for it.
    Please check the authorization object C_STUE_WRK  -CS BOM Plant (Plant Assignments)
    Regards,
    R.Brahmankar

Maybe you are looking for

  • 10.6.5 - iCal - MobileMe - "Server not recognize"

    Since upgrading to 10.6.5 iCal cannot log into MobileMe. The error says the server did not recognize my account. MobileMe in Mail is fine, MobileMe is fine when logging in/out from System Prefs, I did the whole resync thing, (which went fine), and we

  • T-code deletion urgent.. for security purpose

    Dear Gurus.. I hav deleted the t-code in role but still it is showing in executable transactions.. how to remove tht transaction completely pls help our version is MySAP ERP ECC 6 thanks in advance Sreeni

  • .PDF organization

    Hello all! I am going paperless with my life.  Included in my library will be MS documents (Word/excel/Power P/Etc) and scanned in documents.  PDF files are great, because they are the scanner standard!  I recently learned how to use MS File Tags to

  • IPod touch (4th gen.) doesn't charge via USB 3.0 ports in MacBook Pro Retina Display

    Hi, my iPod doesn't charge in my MBP Retina. How to fix this so I can charge him from my Mac?

  • MOVED: My computer randomly shuts down...

    This topic has been moved to AMD64 VIA based forum for more discussionsAMD64 VIA/AMD/ATI based board. My computer randomly shuts down...