BDC for quality info

Hello.
Appreciate your help on this...
I am using the BDC for updating the quality info record in transaction QI01.
under quality agreement tab.i have a multiple linked document.against the material and vendor.
So in this case how to handle the multiple item record .
Please reply back ASAP..
Thanks
Manoj

Hello,
This is quite simple. This can be achieved by a easy recording step in the following way:
1. Navigate to the "Quality agreement" tab in Change mode.
2. Place the cursor in the first line of the table control. Push "Insert Line" button which will create a blank line in first line.
3. Fill the data and push "Save" button.
You can repeat this step for every document addition in QINF.
Hope this helps,
Best Regards, Murugesh AS

Similar Messages

  • BAPI or IDOCs  for Quality info records

    I want to know which BAPI or IDOCs is used to upload the Quality info records data from legacy system to SAP.

    Hi Raghu
    Below is the BDC program I was used for the same.
    Program Name : YX30_UPLOAD_QUALITY_INFO
    Author : Rameshwar Yadav *
    Date : 2006-11-27 *
    Description : The purpose of this program is to upload the *
    Quality Info Record for I30 System *
    Original Transport Number : I30K903055 *
    SYS id: SYS_30_1502_03_41_Upload Quality Info Records *
    TDS id: TD_30_1502_03_41_Upload Quality Info Records *
    UT ID: UT_30_1502_03_41_Upload Quality Info Records *
    ======================================================================
    Change History *
    Date | Change No | Name | Description *
    yyyy/mm/dd | AAAYYYYMMDD | xxxxxxxxxxxx | *
    REPORT YX30_UPLOAD_QUALITY_INFO MESSAGE-ID yx30_conversions
    no standard page heading line-size 255.
    include yx30_upload_quality_info_top. "Include for Variable Declaration & Selection Screen
    include yx30_upload_quality_info_data. "Include for File read & Authority Check
    *& At Selection Screen Output *
    AT SELECTION-SCREEN OUTPUT. "PBO
    PERFORM fill_parameters.
    *& Start Of Selection Event *
    start-of-selection.
    Perform Authority_check. "Subroutine for authority check
    Perform prepare_file. "Subroutine for preparing file
    perform file_read. "Subroutine for File read
    perform update_qi01. "Subroutine for Uploading data
    perform write_error_log1. "Subroutine for writing error log
    *& Form write_error_log
    text
    --> p1 text
    <-- p2 text
    *& Include YX30_UPLOAD_QUALITY_INFO_TOP
    Type Declaration
    Types: Begin of type_qtyinf,
    matnr type matnr, "Material No
    lieferant type char10, "Vendor
    werk type werks_d, "Plant
    frei_dat type char10, "Frei_Dat
    stsma type char8, "Stsma
    anwso_01 type char1, "ANWSO(01)
    anwso_02 type char1, "ANWSO(02)
    anwso_03 type char1, "ANWSO(03)
    end of type_qtyinf.
    Internal Table Declaration
    Data: itab_qtyinf type standard table of type_qtyinf. "Internal table for QTYINF.
    Work Area Declaration
    Data: wa_qtyinf type type_qtyinf. "Work Area for QTYINF.
    Variable Declaration
    Data: v_file_qtyinf type string, "Source File Name
    v1 type string,
    v2 type string,
    v3 type string,
    v_file_return type string,
    v_lin TYPE n.
    *Selection Screen Declaration
    selection-screen *
    SELECTION-SCREEN BEGIN OF BLOCK blk1
    WITH FRAME TITLE text-s01.
    PARAMETER:
    p_sysid(3) TYPE c OBLIGATORY , "Source System
    p_bukrs(4) TYPE c OBLIGATORY , "Source CompCode
    p_samshr type char30 lower case obligatory default '/sap_upload/' , "Samba Share Drive
    p_object TYPE CHAR10 OBLIGATORY default 'MAT' . "Migration Data Object
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN SKIP 3.
    PARAMETER:
    cb_pfill TYPE c AS CHECKBOX DEFAULT 'X' . "Prefill values?
    SELECTION-SCREEN COMMENT /1(79) text-s1a.
    SELECTION-SCREEN BEGIN OF BLOCK blk3
    WITH FRAME TITLE text-s03.
    PARAMETER:
    pa_filn1(500) TYPE c LOWER CASE
    VISIBLE LENGTH 50 , "Filename AppServer
    pa_dlimt TYPE c DEFAULT ';' . "Field Delimter
    SELECTION-SCREEN END OF BLOCK blk3.
    include bdcrecx1. "Include for the subroutine
    *& Include YX30_UPLOAD_QUALITY_INFO_DATA
    *& Form file_read
    Subroutine for reading the source file into internal table
    --> p1 text
    <-- p2 text
    FORM file_read .
    DATA:
    single_line TYPE string .
    *-- read file, split lines into fields and put data into table
    OPEN DATASET v_file_qtyinf FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
    IF sy-subrc EQ 0.
    DO.
    READ DATASET v_file_qtyinf INTO single_line. "Reading the content of file into line
    IF sy-subrc = 0.
    IF sy-index > 1. "skip header-line
    SPLIT "Split the content of line into work area
    single_line
    AT ';'
    INTO
    wa_qtyinf-matnr "Material No
    wa_qtyinf-lieferant "Vendor
    wa_qtyinf-werk "Plant
    wa_qtyinf-frei_dat "Frei Date
    wa_qtyinf-stsma "STSMA
    wa_qtyinf-anwso_01 "ANWSO_01
    wa_qtyinf-anwso_02 "ANWSO_02
    wa_qtyinf-anwso_03. "ANWSO_03
    APPEND wa_qtyinf TO itab_qtyinf. "Appending Work Area to internal table
    ENDIF.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CLOSE DATASET v_file_qtyinf. "Closing the files
    ELSE.
    MESSAGE e015 .
    ENDIF.
    DESCRIBE TABLE itab_qtyinf LINES v_lin.
    IF v_lin LT 0.
    MESSAGE e016 .
    ENDIF.
    ENDFORM. " file_read
    *& Form fill_parameters
    Subroutine for getting the file name
    FORM fill_parameters .
    IF cb_pfill = 'X'.
    Preparing QTYINF File
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_QTYINF_' p_bukrs '.CSV' INTO v2.
    CONCATENATE p_samshr v3 '/' p_object '/' v2 INTO pa_filn1.
    ENDIF.
    ENDFORM. " fill_parameters
    *& Form Authority_check
    Authority Check
    --> p1 text
    <-- p2 text
    FORM authority_check .
    Authority Check For the Migration
    AUTHORITY-CHECK OBJECT 'YX30_MIGR'
    ID 'SYSTEM' FIELD p_sysid
    ID 'BUKRS' FIELD p_bukrs
    ID 'YX30_DMOBJ' FIELD p_object
    ID 'ACTVT' FIELD '16'.
    IF sy-subrc <> 0.
    MESSAGE e010 WITH p_sysid p_bukrs p_object.
    ENDIF.
    ENDFORM. " Authority_check
    *& Form prepare_file
    text
    --> p1 text
    <-- p2 text
    FORM prepare_file .
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_QTYINF_' p_bukrs '.CSV' INTO v2.
    CONCATENATE p_samshr v3 '/' p_object '/' v2 INTO v_file_qtyinf.
    CLEAR v3.
    CLEAR v2.
    Prepare Return File
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_RETRUN_LOG_' p_bukrs '.CSV' INTO v2.
    CONCATENATE '/sap_upload/' v3 '/' 'MAT' '/' v2 INTO v_file_return.
    ENDFORM. " prepare_file
    *& Form update_qi01
    text
    FORM update_qi01.
    PERFORM open_group. "Opening a session
    CLEAR wa_qtyinf.
    LOOP AT itab_qtyinf INTO wa_qtyinf.
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0100'. "Subroutine for mapping data
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-MATNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'QINF-MATNR'
    wa_qtyinf-matnr. "Mapping the material
    PERFORM bdc_field USING 'QINF-LIEFERANT'
    wa_qtyinf-lieferant. "Mapping the vendor
    PERFORM bdc_field USING 'QINF-WERK'
    wa_qtyinf-werk. "Mapping the plant
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0101'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=STAN'.
    PERFORM bdc_field USING 'QINF-FREI_DAT'
    wa_qtyinf-frei_dat.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-STSMA'.
    PERFORM bdc_field USING 'QINF-STSMA'
    wa_qtyinf-stsma. "Mapping the status
    PERFORM bdc_dynpro USING 'SAPLBSVA' '0201'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'J_STMAINT-ANWSO(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=OKAY'.
    IF wa_qtyinf-anwso_01 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01. "Mapping the anwso(01)
    ELSEIF wa_qtyinf-anwso_02 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02. "Mapping the anwso(02)
    ELSEIF wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03. "Mapping the anwso(03)
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_02 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ELSEIF wa_qtyinf-anwso_02 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_02 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ENDIF.
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0101'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-FREI_DAT'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=QMBU'.
    PERFORM bdc_field USING 'QINF-FREI_DAT'
    wa_qtyinf-frei_dat.
    PERFORM bdc_field USING 'QINF-STSMA'
    wa_qtyinf-stsma.
    PERFORM bdc_transaction USING 'QI01'.
    ENDLOOP.
    PERFORM close_group. "Closing the session
    ENDFORM. "update_qi01
    *& Form write_error_log
    text
    --> p1 text
    <-- p2 text
    FORM write_error_log1 .
    DATA:
    single_line TYPE string,
    v_msg TYPE string,
    v_msg1 TYPE string.
    *-- read file, split lines into fields and put data into table
    OPEN DATASET v_file_return FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
    IF sy-subrc EQ 0.
    CONCATENATE text-020 v_lin INTO v_msg SEPARATED BY space.
    CONCATENATE text-021 v_lin INTO v_msg1 SEPARATED BY space.
    TRANSFER: v_msg TO v_file_return.
    TRANSFER: v_msg1 TO v_file_return.
    WRITE:/ v_msg.
    WRITE:/ v_msg1.
    ENDIF.
    ENDFORM. " write_error_log
    Regards,
    Sree

  • BDC for Purchase info records in AFS

    Hi Everyone,
    I could not found any BAPI,IDOC,FM with supports for uploading purchase info records in AFS, is the only way is to do is recording or any thing else supports.
    Regards,
    Srinath.

    Hi Srinath,
    You have posted on a wrong forum.  Please close your thread.
    You may check this thread and post to your question there:
    *The operation cannot be carried out with this node type*
    Thanks,
    Gordon

  • Need BAPI for change of quality info record (Tcode: QI02)

    Hi,
       Currenrly iam using BDC for creation of Quality info record (QI01) and now i need to do this creation as a back ground task. for which BDC is not supporting. So, i need to know the relavent BAPI for creation/change of QI02.
    Regards,
    Krishna.

    Hi,
    Have you tried doing this in ECATT??
    See this Link:
    http://help.sap.com/bestpractices/BBLibrary/Documentation/G09_BB_InstallGuide_EN_DE.doc

  • Quality info records: different pack configurations for same raw material

    how can i differentiate different pack configuration for same raw material in quality info records, as one might approved and the other not? that is, besides creating different material master for each packaging?
    thanks
    Alisa

    You need to use the MPN profile functionality that is a standard part of SAP.
    In Config under the purchasing define the MPN profile.  There are several options you can turn on/off including info records.
    You assign the MPN profile to your material. It now is considered by SAP to be an internal material number. 
    You then create a HERS material type for each separate manufacturer material number you have.  You only need the purchasing view for these materials.  You can also create purchasing text views, classification and some others if you wish.
    In the SAP approved vendors list (AVL), you then assign each manufacturer vendor(s) with the HERS material created.
    You create a Q-info record for each manufacturer/HERS material combination.
    Now, when you specify the internal material number in a PO, the system will tell you to order the MPN material.  When you do the drop down for the material now, it will show you the approved manufacturers allowed in the AVL for the ordering plant.
    When the 01 inspection lot is created you will have a vendor number as well as a manufacturer's number in the inspection lot.  The DMR can be done by the manufacturer or the vendor depending on how you set up the inspection plan. Q-info record will be used accordingly.
    Take a look at it and research it.  It's not hard to set up.
    FF

  • Quality info Record for SD

    Hi all
    Let me know about Quality info Record for SD (QV51, QV52, QV53). I want to know whether Info record is created or not for particular customer.
    I have to create a alert to QM Department.  Whenever usering create a sale order, system should check info. record is available or not for the Customer for sale order. If info. record is not there, we should trigger alert to QM department for creating alert.
    How can i proceed?

    Hi Muthu,
    The info record has to data sections (look in Goto menu in the Info Record screen):
    i. General Data (NOT at POrg and Plant level)
    ii. POrg. Data 1 (POrg. and Plant level)
    iii. POrg. Data 2 (POrg. and Plant level)
    iv. Text (POrg. and Plant level)
    Purchasing info records determine the prices suggested in purchasing documents in two ways:
    The system,
    • 1st searches under POrg. Data 1 - Conditions:
    Conditions are included if they have been maintained for an info record manually or from a quotation (but can be changed manually afterwards)
    • 2nd searches under POrg. Data 2 – Last Purch Doc.:
    If an info record does not contain any conditions (under POrg. Data 1), the system reads the number of the last purchasing document in the info record and then suggests the price from this document.
    ‘Info Update’ indicator for Conditions (in PO, RFQ/Quotation, Contract) :
    • for PO – the update occurs in POrg Data 2 (last purch doc)
    • for RFQ/Quotation - the update occurs at POrg Data 1 – Conditions (can be changed manually afterwards) and POrg Data 2.
    • for Contract – the update occurs at POrg Data 1 - Conditions, IF at the time of the contract creation there is No info rec. Otherwise the info rec is updated with the last release order under POrg. Data 2.
    cheers,
    Hema.

  • BAPI for Sampling scheme and Quality Info Record in QM Module.

    Hi techies,
    I have a two object(Sampling Scheme,Quality info record)  for which i need a BAPI for uploading the data.
    Please tell me if any one knows.
    Richard.

    Vineeth,
    Usually, I wouldn't think the follow-up action would be an issue with system performance.  You say 7000 items, but do you mean 7000 UD's?  I.e. an inspection lot of 1000 units isn't unusual and that would be 7 inspection lots.  You've also now said that the program needs to look across plants for UD rejections and for notifications.  That is another level of complexity.
    While the UD follow-up action should still be able to handle that, I can't say it won't affect performance.  I was going to suggest you have it only run on certain UD codes, but since you now need to reveiw this across plants that might not work.
    What happens if my vendor/material is in a skip stage at plant A and Plant B opens a notification agains the vendor?  Since there is no UD, the follow-up action wouldn't run and change the DMR at plant A.
    If you need to look at a bunch of stuff, instead of the follow-up action, you may need to run a program in batch and have it run once an hour or every 10 minutes.  Depending on how you write it, it could be pretty efficient. 
    Craig

  • Mass Maintenance for flag in Status Profile (Quality Info-record)

    Hi Experts !
    I have thousands materials to change in mass the level in the status profile of Quality info-record.
    Unfortunately, QI05 - QI06 - QI07 don't allow to do this in mass maintenance mode. We can add, change or delete status profile but no more. You don't have access to the different level to apply for example LEVEL 3 (Ship to line) for all list of materials.
    Many thanks for your help.
    Stéphane

    Using your way, we can not change the flag with mass maintenance.
    You can just add a new one or delete an existing one.
    What I would like to do is :
    Change in mass maintenance all flag from Level 1 to Level 2 in Status profile of all existing Quality info-record or list of them.
    QCC2 is customizing for Notification.

  • BDC for multiple line items (VA01)

    Hi Experts,
      I create a BDC for VA01 transaction for single line item in that now i want to upload multiple line items also with  o/p of total no. of records uploaded, no. of records posted and the no. of error records...
    Can any body explain with sample code...

    Hi,
    if the flat file is containing header and item records...
    first split those records tooo two internal tables header and item..
    Loop at header ...
      process of recording steps for header....
    Loop at item...
    here create a varialbe with char 2 .. for index value....
      process of item recording steps..
      increment the index value by 1....
      here u have to pass  'p+'  OK_CODE..
    Endloop ..(item)
    Endloop...(header)
    for more info goo through this link...
    http://www.sap-img.com/bdc.htm
    hope helpful
    Raghunath.S

  • Creation of BDC for a part of process.

    Hi,
    We are creating a BDC for PA40 action. It has a series of Info Types which come one by one. Now our requirement is to skip the last Info Type and create a recording for the process. is this possible.
    We require this as the last Info type is Pensions Fund GB, this takes us through all the old records before we can make a new entry and the number of old records for different employees is different, hence no standard recording is possible. Can anyone suggesta way forward.
    Thank you,
    Arpita Arora

    Hi,
    In BDC program, when you are running the loop for each employee,You initially check the number of record for that employee in It0071 in that loop itself.
    in your code then write,
    Do N times.
    BDC recording to exit screen with OK_CODE = '/ENXT'
    enddo.
    This will be in the loop of each employee record.
    Thanks,
    Sutapa.

  • Configuration steps for Quality and Batch Management.

    Hi Friends,
    We are implementing QM along with Batch Management for testing the material like purity,pathology tests.
    I am new to Quality and Batch Management.
    Could any one guide me, how to configure material master for QM and Batch to test the material?.
    Thanks

    1) Maintain Material with Classification and Quality Management view
    2) Tick the Check box Quality key Active in QM View->QM view->Inspection Set up and activate the inspection type for which the inspection lot.(e.g insp. type 01 - GR against PO)
    3) Create Quality Info Record(QI01)
    4) In PO the stock automatically goes to Quality stock.
    5) Check MMBE stock
    6) Do Result Recording and Usage Decision(QA32)
    7) Check stock (MMBE).
    There are few steps where the PP/QM Consultant need to help you in QI01,QA32 and in Creating characteristics and class according to  Requirement(purity...etc).
    Regards,
    eswarmanu...
    Edited by: eswarmanu on Oct 21, 2008 7:09 PM

  • System message:Procurement of material&blocked for quality reasons(0006 883

    Hi Greetings!
    I have the following issue.
    I need to make the message "Procurement of material & blocked for quality reasons" as Error message . Message number - 00 06 883.
    This will not allow to create PO , if the "Blocking Function" - 02 "Block Request and Purchase order " is set in the QM info record.
    Even though i ahve set this message as "Error" in the configuration ( Materials Management --> Purchasing --> Define Attributes of System Messages), i am getting only warning message during PO creation.
    Can you please let me know if am missing any setting.
    Gobinathan G

    Dear sir,
    GO to material master of that item go to .. PURCHASING VIEW there is a Plant specific material status chk if that is 01- blocked for production 02- blocked for BOM chk and change it then system will allow you to purchase the parts.
    Kaustubh

  • Restrict PO creation as material blck for quality reason in other plant

    Hi QM Experts,
    one material (say MAT-1) in maintained in  two plants (Say- X & Y).
    qm in procurement active in material for both the plants.
    created two Q-info records with material MAT-1, vendor ( Say- V-1). one info record for plant X & other for plant Y.
    while creating PO for material -( MAT-1)  in plant X, system giving error- material blocked for quality reason.
    even though in Q-info record for plant X, material is not blocked . it is blocked in Q-info record of plant Y.
    why system looking for plant Y, even when we are trying to create PO in plant X for same material and vendor.
    please guide on same,
    Thanks & Regards,
    Roshan
    Edited by: roshan s on Dec 16, 2011 6:29 AM

    hi,
    Please check ur Q-info of Mat-1 V1 and X properly and please also check ur material master in X, whethere some control key is defined in QM in Procurement or Not. If any control key is there than chcek the settings of that control key and as per ur requirement remove it .
    regards

  • MM02 Upload Problem in BDC in Quality

    Hello Experts ,
    Currently I have situation here with BDC for MM02 . In sandbox I have recoded for only Quality Management View (which is at the 10th position). For all material types this is working fine.
    But , when in Quality Server , the position of the views are changing dynamically with each material type. Hence BDC fails to select only Quality View during Upload.
    Can anybody tell me if there is a way to encounter this ?
    Thanks ,
    Trishna

    Hi!
    use fm  'MATERIAL_BTCI_SELECTION_NEW' to get view positon
    FORM GET_POSITION USING    P_MATNR    LIKE MARA-MATNR
                      CHANGING P_POSITION TYPE N.
      DATA:
        S_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
      CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'
           EXPORTING
                MATERIAL                  = P_MATNR
                SELECTION                 = 'D'  <-- put here you view
                TCODE                     = 'MM02'
    *    IMPORTING
    *         SELSTATUS                 =
    *         SELSTATUS_IN              =
           TABLES
                BTCI_D0070                = S_BDCDATA
         EXCEPTIONS
              MATERIAL_NOT_FOUND        = 1
              MATERIAL_NUMBER_MISSING   = 2
              MATERIAL_TYPE_MISSING     = 3
              MATERIAL_TYPE_NOT_FOUND   = 4
              NO_ACTIVE_DYNPRO_SELECTED = 5
              NO_AUTHORITY              = 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.
      ELSE.
    *-> in der Annahme, dau043F der Dispobereich immer auf der Sicht
    *-> 'Dispositon 1' zu finden ist.
        READ TABLE S_BDCDATA WITH KEY FVAL = K_CHAR_X.
        P_POSITION = SY-TABIX - 1.
      ENDIF.
    ENDFORM.                               " GET_POSITION
    Search forum for MATERIAL_BTCI_SELECTION_NEW and you find more examples.

  • How to handle bdc for more than one transaction?

    how to handle bdc for more than one transaction?

    Hi srk,
    I am providing you with some references below. Hope this prove to be helpful to you.
    Method 1:
    Use one BDC_OPEN_GROUP
    Multiple BDC_INSERT 
    One BDC_CLOSE_GROUP.
    Call function BDC_OPENGROUP.
    Build BDC data and call lBDC_INSERT for transaction 1
    Build BDC data and call lBDC_INSERT for transaction 2
    Build BDC data and call lBDC_INSERT for transaction 3
    paas the tcodes to bdc_insert.
    call function BDC_CLOSE_GROUP.
    Also check this out:
    Here we need to record 2 transactions (shdb).
    Once completion of the recording. Populate the data into input internal table .
    Loop the internal table and process the 2 transactions
    like
    1. BDC_OPEN_GROUP
    2. LOOP AT ITAB
    a. Populate first transaction recording data
    and pass transaction to the BDC_INSERT_GROUP.
    BDC_INSERT_GROUP.
    b. Populate second transaction recording data
    and pass transaction to the BDC_INSERT_GROUP.
    BDC_INSERT_GROUP.
    ENDLOOP.
    3. BDC_CLOSE_GROUP
    the above info can be found at : How to use 2 transactions in BDC?
    Also check this out:
    Suppose u have created recordings for transactions 'MM01' 'XK01' and 'VA01'.
    Then do this:
    bdc_open_group.
    after this we have to fill the bdcdata structure for one transaction.here 'MM01'.
    bdc_insert.
    refresh bdcdata.
    after this we have to fill the bdcdata structure for one transaction.here 'xk01'.
    bdc_insert .
    refresh bdcdata.
    after this we have to fill the bdcdata structure for one transaction.here 'va01'.
    bdc_insert.
    bdc_close_group.
    Hope these are useful to you.
    Please reward if any of the above are useful.
    Regards,
    Kalyan

Maybe you are looking for