Purchase Requisition for Order BOM components ?

Dear Members :
Can I generate purchase requisition for Order BOM components from VA01 ? Mine is TAQ - the header itm cat and TAE for sub-items (finished prod) . While navigating within Sales Order and branching to a particular component's shced. line - the pruch req col is blank. The schedule line cat for the sub-item is CT.
Could someone please explain the configuration steps I need to maintain for the above ? What I am expecting is when I save the Sales Order it should create Purch Req for the components which do not have enough stock.
Thanks
Atanu

Hi :
Thanks for your advice. Couple of things :
1. In my system in auto acc assignment, I already have consumption acc under posting key GBB. Now I am getting error in VA01 - which states that "The system was not able to determn a consumption acc for purchase order item with acc assignment" and also suggesting to address "GBB posting key". I made the following changes for CT :
    movt : 101
    order type : NB
    item cat : 0
    acc assignment cat : F/C
2. Obviously SAP is expecting a consumption GL acc, which though is there under GBB-AUF from my existing setup. For generating purch req this is strange becoz I haven't yet gone upto PO generation step nor released the supposed to be Purch Req.  for BOM component - and this is before I save the Sales Order .
3. In spro->acc grouping for mov type; I don't see the following combination in SAP  ie,
101(MvT) - B (MvT) - GBB (TEKey) - AUF. I need B instead of F which is already there and is for production order but the BOM comp has to be for PO but the combination is not there.
Do you think this could be the reason that SAP couldn't find the GL acc ?
4. Also my purpose was not just to raise a purch req every time the sales order is created for the BOM components - only if there is shortage in stock - but then again for CT once I assign the above, it doesn't allow to check the boxes like Availbility , Requrmnt etc. (??)
Am I clear and could you please suggest me what I am missing or doing wrong ? What movement type do you siggest to enter in CT fields.
Thanks so much for your time.
Atanu

Similar Messages

  • BAPI to create Purchase Requisition for selective BOM Material

    Dear Experts,
    I need ur help, Actually I am developing a module Pool prg to create Purchase Requisition for selective Bom Material .
    Actually, standard T.Code (ME21N) create PR for a multiple BOM Materia lwhich are used to create a prepared material. But my requirement is PR should be generate for selective BOM material .
    Multiple BOM Material is used to prepared a complete Material .
    I have checked a particular BOM Material, for this matrial Purchase Requisition should be genrate.
    Please suggest me the related code and Bapi which helps me .
    Thanks & Regards,
    Swapnika

    Hi
    you can Use BAPI   BAPI_REQUISITION_CREATE
    Hope Its  help You.
    Regards
    Ajit

  • MRP creating additional purchase requisitions for the existing sales order

    Hi,
    We have scenario where we switch materials from POD material to ARP material. POD material is just like make to procurement which creates purchase requisition and purchase order upon saving the sales order. ARP (Auto replenishment) material creates purchase requisition based on sales order and re-order point while running MRP.
    When the material is POD title, it created purchase requisition and purchase order (example: 4500000110) while saving the sales order (example: 1000000010) for the quantity 10. After some time this material is switched to ARP and it has open sales order (1000000010) and purchase order (4500000110).
    We have special MRP run for ARP materials based on MRP type, which creates purchase requisition.. What is happening is when we run MRP; it is creating new purchase requisition for the old sales order (1000000010) for the quantity 10. But old sales order (1000000010) is already having purchase order (4500000110) to fulfill. So we donu2019t want to create new purchase requisition for the old sales orders. It should create purchase requisition only for new sales orders.
    Please advise
    Thanks in advance
    Srinivas

    Mangesh,
    If the components are Inhouse production then you can think of using collective orders by assigning special procurement key 52. If raw material exists then your requirement cannot be met..as i think your scenario is of assembly processing. The idea of assembly processing is that component materials will always be available and only assembly will be done based on Sale Order.
    Regards,
    Prasobh

  • Planned Order and Purchase Requisition for total Plan

    HI
    As per my client requirement whenever i am giving a plan in Demand Management in MD61 say for quantity 100. System should create purchase requisition for quantity 40 and Planned Order of 60.
    Please let me know if it is possible.
    Regards,
    Anand

    HI
    Thanks a lot. Its working with quota arrangement.
    Regards,
    Anand.

  • Multiple Document Types For Purchase Requisition For Different Order Types

    Dear SAP Gurus,
    I want to have different document types of Purchase Requisition for different Order types.
    For Example:
    for Order Type ZT01- Document Type used should be YR01
    for Order Type YA01- Document Type used should be ZR01
    How could this be achieved?
    Regards.

    hi
    Kindly check the user exit for the same
    COZF0001 or COZF0002
    regards
    thyagarajan

  • One Purchase Requisition for One Maintenance Order

    Dear Consultants,
    We have implemented mySAP ECC 6.0.   We have more than 20 line items in one Maintenance order for  Item category N. Curently system is generating Purchase requisitions by line itemwise for Item category N(Non-stock items). Our client requires only one purchase requisition for every Maintenance Order. Is it possible to generate one PR for one Maintenance Order? If possible please give us the solution.
    Thanks,
    Dev

    Dear Pete Atkin,
    With your help my issue has been resolved. Thank you very much.
    With Best Regards,
    Dev

  • Purchase requisitions for  raw materials

    Iam having multilevel BOM and when I do Sales order MRP then Iam getting planned order for Semi finished items but not getting Purchase requisitions for  raw materials.

    Hi,
    Planing File Entry :-
    The planning file is used to limit the scope of the planning run for the
    total planning run. For this purpose, all materials that have been
    assigned a valid MRP type are automatically entered in the planning
    file.
    System will check the Planing file entry only in the case of Total MRP (MD01) or Total MPS (MD40).
    While there is no need in the case of MD02,MD03,MD41,MD42,MD50.
    Now how this Planing File entry activates,
    - Once MRP is activated at Plant level (T.code OMDU)system automatically maintains entry in Planning file for all those materials which contains the Active MRP type.
    - So if materials which are created before this activation of MRP in that case you have to maintain this planing file entry manual.You can do this either by MD20 or by using Back Ground Jon OMD0.
    Regards,
    Dhaval

  • Purchase requisition for service activity / element cannot be generated

    Dear SAP MM Experts,
    This is a service Creation from the PM order to Purchase Sercive Requisition.
    The Error Message Is Generated :Purchase requisition for service activity / element cannot be generated
    Diagnosis
         Due to the system settings, the system is trying to generate a purchase
         requisition for a service activity or a service activity element.
    No service package has been created for the activity/element.
    As a result, the system cannot generate a purchase requisition.
    The activity/element is created or released, but the indicator for
    generating a purchase requisition is not set.
    Create a service package for the activity/element and then generate a
    purchase requisition.
    regards,
    A S

    Solved From PM side

  • Purchase Requisition & Planned Order link to sales order

    Dear Gurus,
    please help me to find the link between
    - sales order item
    and
    - ( purchase requisition & Planned orders for semi-finished )
    that created from running the MRP.
    dispite we can see all these data in one screen
    in TCode (MD4C) or (MD09)
    thnak you .
    Edited by: Alvaro Tejada Galindo on Feb 5, 2008 10:50 AM

    Hi,
    For third party order, either you can create the material master with item category group as BANS, so the system will automatically pick TAS in the sales order for the material or you can change the item category manually to TAS in the order.
    This will trigger a PR, based on the PR a PO will be generated.
    Defining Item Category Group
    IMG ® Sales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item category groups
    Defining Item CategorySales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item Categories
    Item category TAS
    Description 3rd party with SN CM
    Item type Blank
    Completion rule Blank
    Special stock Blank
    Relevant for billing B
    Billing plan type Blank
    Billing block Blank
    Pricing X
    Statistical value Blank
    Revenue recognition Blank
    Delimit. start date Blank
    Business data item X
    Sched. line allowed X
    Item relev. for delivery Blank
    Returns Blank
    Weight/Vol.- relevant X
    Credit active X
    Determine cost X
    Aut. batch determ. Blank
    Rounding permitted Blank
    Order qty = 1 Blank
    Incomplete proced. 28
    PartnerDetermProced T
    TextDetermProcedure 01
    Item cat. status group 1
    Screen seq. group N
    Status profile Blank
    Create PO autom. Blank
    Config. strategy Blank
    Mat. variant action Blank
    ATP material variant Blank
    Structure scope Blank
    Application Blank
    Value contract material Blank
    Contract release ctrl Blank
    Repair procedure Blank
    Billing form Blank
    DIP profile Blank
    Assigning Item Category
    IMG  Sales and Distribution  Sales  Sales Documents  Sales Document Item  Assign Item categories
    Creating Material
    MM01
    1. On the screen Create Material (Initial Screen) enter the material number if External.
    2. Choose Select View(s). (Basic View 1&2, Sales Views, Purchasing views and accounting views).
    3. Enter the relevant data and save the material. Use material group BANS in the item material group field.
    Creating SD Pricing Conditions for material
    VK11
    Creating Vendor Master
    XK01
    Regards

  • How to create a Purchase Requisition for a material component in WBS or NW?

    Hello All,
    I have created a project with the following structure:
    Project Defination (Construction of Sub station)
          Main WBS
                   Level 1 WBS
                             Level 2 WBS
                                       Network for level 2 WBS
                                                      Activity  (Procuring Material)
                                                                 Material Component - MATXXX (Stock Item)
    Now in the above structure i have a activity where in i am procuring all the materails required to construct a Substation.
    So under this activity i have assigned all the materials which are needed to build Substaion.
    After i change the status of the project to release, there  a reservation created for the quantity of the material which i have mentioned in the material component under the activity.
    Now my querey is, how should i create a Purchase requisition for the reserved materail quantity in order to bring in the stock against the WBS / network / Project ?
    Awaiting your reply.
    Thanks and Regards,
    Sudarshan.

    Hi Sudarshan,
    In your case you can run Me5J to check the list of PR created against your project.
    Then Create PO and similarly you can check list of PO in Me2J.
    Then followed by GR and check if any GR release exist in MIGO. Then once after doing GR you can check the Material in Stock which will move material from Unrestricted stock to Project Stock which you can check it in MMBE.
    Then you can do the Good Issue in MIGO itself and run MIRO to complete the cycle.
    Regards'
    syed

  • MRP - Single Purchase requisition for multiple Items

    Hi
    We have recently introduced MRP module in SAP .In some specific scaeanrios , we want to create a single Purchase Requisition for multiple items .Standard SAP generate different Purchase requisition for each item
    Is there any way out

    Sandeep,
    This topic has been covered numerous times in this forum and in the MM forum.  You evidently have not used the search feature.  There are thousands of posts in these forums, and the search function will be very helpful for you in future questions.
    To answer your question, No, nothing is available to make standard SAP MRP create Purchase requisitions for multiple items.
    Most companies address this issue during the conversion of Purchase Requisitions to Purchase orders.  During this process, you can add many items to a single purchase order.
    Rgds,
    DB49

  • Settings for order bom

    Dear All,
    Can anyone tell me setting for order bom so that the order BOM is exploded in sales order and MRP can be carried out on this BOM
    Regards
    Prashant

    Hi,
    Pls. find the details of Maintaining an Order BOM without Variant Configuration as below :
    Create an Order BOM :
    Prerequisites:
    You have entered the sales order for which you want to create the order BOM.
    Procedure:
    1.Choose Logistics ® Production ® Master data ® Bills of material ® Bill of material ® Order BOM ® Create.
    The Create Order BOM: initial screen appears.
    2.Enter the sales order number, the order item, the material number and the BOM usage.
    If you want to use a material BOM, or an existing order BOM to copy from, go to step 4. If you want to create an order BOM without a reference, click  and go to step 7.
    You cannot use a configurable BOM as a reference.
    3.Click  Order BOM (copy order BOM) or  Material BOM (copy material BOM).
    The Copy material BOM or Copy order BOM dialog box appears.
    4.Enter the data required and click .
    The item overview appears, for the bill of material you are using as a reference.
    5.Select the items you want to copy to the order BOM and click .
    The item overview for your new order BOM appears. The items you transferred are displayed in the item overview.
    6.Enter new items and alter items if necessary. Entering items in order BOMs is similar to entering items in material BOMs. However, you cannot enter class items in order BOMs. You can find further information in the Bills of Material documentation in  Creating New Items.
    Save your order BOM.
    Example: Creating Order BOM Without Variant Configuration :
    The material BOM for material A contains components B and C, which are themselves assemblies. The material BOM for material C contains components D and E and the material BOM for material C contains components F and G.
    A sales order is created for customer Smith, with the number 821. Material A is inserted under sales order item 10 in this sales order. At the request of customer Smith, for this sales order, the bill of material for assembly C is changed manually. Component H is added to components F and G. This change should not take effect in the material BOM, because assembly C is only expected to be produced once in this form, for customer Smith.
    An order BOM is generated from the material BOM for material C. Since nothing was changed in the bills of material for materials A and B, in this sales order the material BOM will continue to be used for these assemblies.
    Hope this helps.
    Revert if any doubt and reward if useful.
    Regards,
    Tejas

  • Planned orders to Purchase Requisitions and orders

    Hi,
            Just wondering if this is possible. I heard this from a client and want to confirm if it's true.
    The client owns the technology and has contractors manufacture the product.
    A planned order is generated by the client and based on the type of contractor, some of them are converted to Purchase orders and others to Purchase requisitions.
    Is this possible? I was thinking, planned orders ans purchase requisitions are completely different entities. Planned orders are for internal manufacturing which are subsequently changed to Production orders and purchase requisitions are for external procurement that would be converted to Purchase orders.
    But converting the Planned orders to Purchase Requisitions and orders is what I could not digest.
    Is there any possibility of this case?
    Thanks.

    Hi,
    We can create planned orders & convert them into purchase requisition or into production order.
    In the material master ,mrp2 view give the procurment type as 'X', for both internal & external procurement.
    Also include purchasing view for this material.
    When you run mrp using md02, a planned order will be created for the rquirement (Eg:say 100 nos given using t.code md61).
    Use t.code md04 to view the stock/requirement list.
    Here double click the planned order, you can see tabs such as convert into purchase requisition, into production order, into process order.
    Click convert into pur req & enter 50 Nos. Then a pur req will be created which can be further converted into pur order.
    Again come to md04 screen.
    You can see a planned order & pur req for 50 nos.
    This planned order can be converted into production order & 50 nos can be produced internally.
    Hope this clears your doubt.
    Regards,
    Senthilkumar SD

  • PURCHASE REQUISITION FOR SERVICE

    HELLO
    IN THE TRANSACTION ME21N FOR PURCHASE REQUISITION FOR SERVICE. IN THE SERVICE VIEW AT ITEM LEVEL, THERE IS A LIST DISPLAYED, SO I NEED TO ADD A FIELD WITH INFORMATION OF THE MATERIAL GROUP.
    ANYBODY KNOW HOW TO DO THAT?
    THANK YOU
    ELENA

    Hi,
    ME21N is the transaction for a PO creation.
    On the full screen services view you can enter either a service number (if you have maintained service masters in transaction AC01) or  you can enter just a short text to describe your service.
    There is also the column material group (ESLL-MATKL) available to fill in your material group (screen SAPLMLSP 0201). You can also enter your material group by selecting the service line and going to the detail view (popup "display service details", tab "basic data" (screen SAPLMLSP 0220).
    What do you mean by "list"? Have you switched on the outline view for your services? You can turn on and off this outline overview by hitting F6.
    Regards,
    Edit

  • BAPI  for Order BOM

    Hi All,
    Is there any BAPI for Order BOM
    PLS can you help me
    thanks
    mars

    Hi,
    Check ds BAPI..
    BAPI_MATERIAL_BOM_GROUP_CREATE Creation of a material BOM group
    BAPI_MAT_BOM_EXISTENCE_CHECK   Check whether BOM for material exists
    CSUL                           CRM Upload of BOM Data
    BAPI_BOM_UPLOAD_SAVE           Main Module for BOM Update (Upload from CRM)
    Code_
    DATA: BEGIN OF i_bom OCCURS 0,
          matnr(18),
          werks(4),
          stlan(1),
          stlal(2),
          stktx(40),
          bmeng(16),
          menge(16),
          posnr(4),
          postp(1),
          meins(3),
          datuv(10),
          fmeng(1),
          idnrk(18),
          potx1(40),
          ausch(7),
          END OF i_bom.
    Extracting Document and Doc type for POSTP = D.
    DATA : BEGIN OF i_stpo OCCURS 1,
           doknr(25),
           dokar(3),
           posnr(4),
           stlnr LIKE mast-stlnr,
           END   OF i_stpo.
    Local work area
    DATA:  g_my_rec_in   LIKE i_bom.
    Declare internal table for Call Transaction and BDC Session
    DATA: i_bdc_table LIKE bdcdata OCCURS 0 WITH HEADER LINE.
                         Global Variables                                *
    DATA: g_counter(2) TYPE n,
          g_field_name(18) TYPE c,
          zc_yes  TYPE syftype VALUE 'X'.
                         Selection Screen                                *
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
    PARAMETERS: p_fname1 TYPE localfile .
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
    PARAMETERS: p_rloc1 AS CHECKBOX  DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-005.
    PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZBOM'.
    SELECTION-SCREEN END OF BLOCK c.
    SELECTION-SCREEN END OF BLOCK b.
    SELECTION-SCREEN END OF BLOCK a.
    **WRITE the report header
    TOP-OF-PAGE.
      INCLUDE zheading.
                         Start of selection                              *
    START-OF-SELECTION.
    Load Input file
      PERFORM f_load_input_file.
    Create BDC records.
      PERFORM create_bdc_records .
    *&      Form  Create_BDC_records
          text:* perform the BDC for the records in the internal table
    -->  p1        text
    <--  p2        text
    FORM create_bdc_records .
      DATA: v_stlnr LIKE mast-stlnr.
      DATA: v_postp(1) VALUE 'D'.
      IF NOT i_bom[] IS INITIAL.
    Open BDC session
        PERFORM open_bdc_session.
        SORT i_bom BY matnr werks posnr.
        SELECT  SINGLE stlnr  INTO v_stlnr
        FROM mast
        WHERE    matnr = i_bom-matnr
         AND     werks = i_bom-werks.
        SELECT doknr dokar posnr stlnr
                    INTO TABLE i_stpo
                    FROM stpo
                    FOR ALL ENTRIES IN i_bom
                    WHERE postp = v_postp
                    AND   posnr = i_bom-posnr
                    AND   stlnr = v_stlnr.
        SORT i_stpo BY posnr stlnr.
        LOOP AT i_bom.
          g_my_rec_in = i_bom.
          READ TABLE i_stpo WITH KEY posnr = i_bom-posnr
                                     stlnr = v_stlnr
                                     BINARY SEARCH.
          AT NEW matnr.
            CLEAR i_bdc_table[].
            PERFORM insert_screen_header.
          ENDAT.
    Setting up counter for 20 line items
          IF g_counter = 20.
            g_counter = 1.
          ENDIF.
          PERFORM bdc_field  USING 'BDC_OKCODE'
                                        '/00'.
    *next screen
          PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
          PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29P-FMENG(01)'.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          CONCATENATE 'RC29P-POSNR('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-posnr.
          CONCATENATE 'RC29P-IDNRK('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-idnrk.
          CONCATENATE 'RC29P-MENGE('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-menge.
          CONCATENATE 'RC29P-MEINS('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-meins.
          CONCATENATE 'RC29P-POSTP('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-postp.
          CONCATENATE 'RC29P-FMENG('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-fmeng.
    *next screen
          PERFORM bdc_dynpro USING 'SAPLCSDI' '0130'.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
    Check the Item category to direct the screen flow accordingly.
          CASE i_bom-postp.
            WHEN 'B'.
              PERFORM item_text_insert.
            WHEN 'Z'.
              PERFORM item_text_insert.
            WHEN 'T'.
              PERFORM item_text_insert.
            WHEN 'N'.
              PERFORM bdc_field   USING 'BDC_CURSOR' 'RC29P-AUSCH'.
              PERFORM bdc_field   USING 'RC29P-AUSCH' i_bom-ausch.
    next screen
              PERFORM item_text_insert.
    *next screen
              PERFORM bdc_dynpro  USING 'SAPLCSDI' '0133'.
              PERFORM bdc_field   USING 'BDC_OKCODE' '/00'.
              PERFORM bdc_field   USING 'RC29P-EKORG' ' '.
            WHEN 'D'.
              PERFORM bdc_field   USING 'RC29P-DOKNR' i_stpo-doknr.
              PERFORM bdc_field   USING 'RC29P-DOKAR' i_stpo-dokar.
    next screen
              PERFORM item_text_insert.
    When POSTP = X, L.
            WHEN OTHERS.
              PERFORM bdc_field   USING 'BDC_CURSOR' 'RC29P-AUSCH'.
              PERFORM bdc_field   USING 'RC29P-AUSCH' i_bom-ausch.
    next screen
              PERFORM item_text_insert.
          ENDCASE.
          g_counter = g_counter + 1.
    next screen
          PERFORM bdc_dynpro      USING 'SAPLCSDI' '0140'.
          PERFORM bdc_field       USING 'BDC_CURSOR' 'RC29P-POSNR(01)'.
          PERFORM bdc_field       USING 'BDC_OKCODE' '=FCBU'.
          AT END OF matnr.
            PERFORM insert_bdc_new.
          ENDAT.
        ENDLOOP.
        CLEAR i_bom[].
        PERFORM close_bdc_session.
    Release the BDC sessions created
        PERFORM release_bdc.
      ENDIF.
    ENDFORM.                    " open_group
    *&      Form  bdc_dynpro_start
          Initialize the screen
         -->P_G_PROGRAM_1
         -->P_G_SCREEN
    FORM bdc_dynpro USING    p_g_program_1
                                    p_g_screen.
      CLEAR i_bdc_table.
      i_bdc_table-program  = p_g_program_1.
      i_bdc_table-dynpro   = p_g_screen.
      i_bdc_table-dynbegin = 'X'.
      APPEND i_bdc_table.
    ENDFORM.                    " bdc_dynpro_start
    *&      Form  bdc_field
           Insert field                                                  *
    FORM bdc_field USING f_name f_value.
      CLEAR i_bdc_table.
      i_bdc_table-fnam = f_name.
      i_bdc_table-fval = f_value.
      APPEND i_bdc_table.
    ENDFORM.                    "bdc_insert_field
    *&      Form  open_bdc_session
         Open the BDC session
    FORM open_bdc_session .
    Open BDC session and creat and update condition records
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client                    = sy-mandt
          DEST                      = FILLER8
          group                     = p_group
          HOLDDATE                  = FILLER8
          keep                      = 'X'
          user                      = sy-uname
          RECORD                    = FILLER1
          PROG                      = SY-CPROG
        IMPORTING
          QID                       =
    EXCEPTIONS
       client_invalid            = 1
       destination_invalid       = 2
       group_invalid             = 3
       group_is_locked           = 4
       holddate_invalid          = 5
       internal_error            = 6
       queue_error               = 7
       running                   = 8
       system_lock_error         = 9
       user_invalid              = 10
       OTHERS                    = 11
      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.                    " create_bdc_session
    *&      Form  insert_screen_header
          Insert the Header data into the screens
    FORM insert_screen_header .
      g_counter = 1.
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0100'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29N-STLAL'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
      PERFORM bdc_field  USING 'RC29N-MATNR' g_my_rec_in-matnr.
      PERFORM bdc_field  USING 'RC29N-WERKS' g_my_rec_in-werks.
      PERFORM bdc_field  USING 'RC29N-STLAN' g_my_rec_in-stlan.
      PERFORM bdc_field  USING 'RC29N-STLAL' g_my_rec_in-stlal.
      PERFORM bdc_field  USING 'RC29N-DATUV' g_my_rec_in-datuv.
    next screen
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0110'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29K-BMENG'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
      PERFORM bdc_field  USING 'RC29K-STKTX' g_my_rec_in-stktx.
      PERFORM bdc_field  USING 'RC29K-BMENG' g_my_rec_in-bmeng.
    *next screen
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0111'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29K-LABOR'.
    ENDFORM.                    " insert_screen_header
    *&      Form  insert_bdc
         Insert the BDC session
    FORM insert_bdc_new .
      CALL FUNCTION 'BDC_INSERT'
         EXPORTING
           tcode                  = 'CS01'
          POST_LOCAL             = NOVBLOCAL
          PRINTING               = NOPRINT
          SIMUBATCH              = ' '
          CTUPARAMS              = ' '
         TABLES
           dynprotab              = i_bdc_table
      EXCEPTIONS
        internal_error         = 1
        not_open               = 2
        queue_error            = 3
        tcode_invalid          = 4
        printing_invalid       = 5
        posting_invalid        = 6
        OTHERS                 = 7
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CLEAR i_bdc_table[].
    ENDFORM.                    " insert_bdc
    *&      Form  close_bdc_session
          Close the BDC session
    FORM close_bdc_session .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
           EXCEPTIONS
                not_open    = 1
                queue_error = 2
                OTHERS      = 3.
      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.                    " close_bdc_session
    *&      Form  f_load_input_file
         Load the file into the Internal table
    FORM f_load_input_file.
      IF p_rloc1 = zc_yes.
        CALL FUNCTION 'WS_UPLOAD'
             EXPORTING
                  filename                = p_fname1
                  filetype                = 'DAT'
             TABLES
                  data_tab                = i_bom
             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.
          STOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    " f_load_input_file
    *&      Form  release_bdc
         Release BDC session
    FORM release_bdc.
      SUBMIT rsbdcsub WITH mappe EQ p_group
                      WITH von EQ sy-datum
                      WITH bis EQ sy-datum
                      WITH fehler EQ '.'
                      EXPORTING LIST TO MEMORY
                      AND RETURN.
    ENDFORM.                    " release_bdc
    *&      Form  item_text_insert
          Repetitive code in the screen flow
    FORM item_text_insert.
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0131'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29P-POTX1'.
      PERFORM bdc_field  USING 'RC29P-POTX1' i_bom-potx1.
    ENDFORM.                    " item_text_insert
    Reward If Helpfull
    regards,
    Mehul

Maybe you are looking for

  • Problem in Product Category after upgrade

    Hi Experts, The problem occur after upgrade from CRM 6 to CRM 7. When doing the creation of campaign after inputting the Product ID a error message appear 'Invalid Parent Category for Product ____' . Found out that this checking was not available in

  • F150 - Dunning

    How Do Everyone, Can anyone tell me how we can have the reminders spooled into individual files as oppose to just one big spool file? Thanks Andy

  • What can i do if my iphone was stolen?

    How can i find my Mobile, it was stolen, i cant see it on icloud, can i search it by the imei nr. ??? thanks for answers

  • Question about muti-line block

    Hello, I have a multi-row block in a form and I want to know If it's possible to limite the user to don't create a new line when he click on a empty one. I got a button to do the job of adding a new line. Also, it is possible to avoid the loose of a

  • JDev11g : Rollback problem

    I have a table with LOV which is filtered by view accessor ( id is binded into viewCriteria of second VO (filtered one) ) Looks like this: VO1(in adf table with LOV) ----conected by view accessor (variable id is binded to VO2 vievCriteria)---> VO2 I