Problems Batch Input BDC-okCODE = LIST

Hi experts!!
I've a batch Input that must change the data from the infotype 2001. I do this steps...
1. Go to PA30
2. Insert the pernr and the code 2001
3. Press the button LIST
4. Choice the row I want to change, only the rows that are ocked
5. Update and save...
I'm trying to do this with a Batch Input, but I don't know how to indicate what row I want to change...I have a data that has all the positions that are locked in 2001 but I don't know how to know what row is from what row of my table... can anybody help me?
Thanks a lot
Regards,
Rebeca

Hi Rebeca,
It is difficult to find the locked recods dynamically using your  BDC approach.
The other way to delete the locked records is....
Select the all the records from PA2001 infotype where SPRPS equal to 'X' ( Locked Entries ) into the itab internal table.
later Loop the table and delete the record from 2001 using BDC on PA30.
Do the recording for deleting individual  record.

Similar Messages

  • Batch input of a list of values

    Hello,
    I have to make a batch input of a list.
    The screen of the transaction contains a list with 9 lines, if i enter a value in one, another line is added to the list.
    I did record this transaction and have an incremented list in the generated program that looks like this :
    it begins whith ADRPCIT-POST_CODE(01) and increments till 09
    perform bdc_dynpro      using 'SAPLSZRL' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ADRPCDCITY-POST_CODE(08)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'ADRPCDCITY-POST_CODE(08)'
                                  record-POST_CODE_08_017.
    perform bdc_dynpro      using 'SAPLSZRL' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ADRPCDCITY-POST_CODE(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'ADRPCDCITY-POST_CODE(09)'
                                  record-POST_CODE_09_018.
    perform bdc_dynpro      using 'SAPLSZRL' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ADRPCDCITY-POST_CODE(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPLSZRL' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ADRPCDCITY-POST_CODE(07)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'ADRPCDCITY-POST_CODE(07)'
                                  record-POST_CODE_07_019.
    perform bdc_dynpro      using 'SAPLSZRL' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ADRPCDCITY-POST_CODE(08)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'ADRPCDCITY-POST_CODE(08)'
                                  record-POST_CODE_08_020.
    perform bdc_dynpro      using 'SAPLSZRL' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ADRPCDCITY-POST_CODE(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'ADRPCDCITY-POST_CODE(09)'
                                  record-POST_CODE_09_021.
    perform bdc_dynpro      using 'SAPLSZRL' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ADRPCDCITY-POST_CODE(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    What i did is setting the value of the incremented number to 09 if it's greater than 09 but i'm not sure it's the right way to do it cause i get only 9 records
    My code :
    LOOP AT gt_record ASSIGNING <fs_record>.
        IF sy-tabix > 9.
          ligne = 9.
        ELSE.
          ligne = sy-tabix.
        ENDIF.
        IF ligne > 1.
          IF city_mem EQ <fs_record>-city_code_001.
            flag_end = 'X'.
          ELSE.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=SAVE'.
            PERFORM bdc_transaction USING 'SR10'.
            CLEAR flag_end.
          ENDIF.
        ENDIF.
        city_mem = <fs_record>-city_code_001.
        IF flag_end NE 'X'. "premier passage
          PERFORM bdc_dynpro      USING 'SAPLSZRC' '0100'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'ADRCITYD-CITY_CODE'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'ADRCITYD-CITY_CODE'
                                        <fs_record>-city_code_001.
          PERFORM bdc_field       USING 'ADRCITYD-COUNTRY'
                                        'FR'.
          PERFORM bdc_field       USING 'ADRCITYD-LANGU'
                                        'F'.
          PERFORM bdc_dynpro      USING 'SAPLSZRC' '0200'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'ADRCITYD-COMMU_CODE'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'ADRCITYD-FLAG_STRTS'
                                        'X'.
          PERFORM bdc_field       USING 'ADRCITYD-CITY_NAME'
                                        <fs_record>-city_name_005.
          PERFORM bdc_field       USING 'ADRCITYD-REGION'
                                        <fs_record>-region_006.
          PERFORM bdc_field       USING 'ADRCITYD-TIME_ZONE'
                                        'CET'.
          PERFORM bdc_field       USING 'ADRCITYD-COMMU_CODE'
                                        <fs_record>-commu_code_008.
          PERFORM bdc_field       USING 'ADRCITYD-DEF_LANGU'
                                         'F'.
          PERFORM bdc_dynpro      USING 'SAPLSZRC' '0200'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'ADRCITYD-CITY_NAME'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=PSTC'.
          PERFORM bdc_field       USING 'ADRCITYD-FLAG_STRTS'
                                        'X'.
          PERFORM bdc_field       USING 'ADRCITYD-CITY_NAME'
                                        <fs_record>-city_name_005.
          PERFORM bdc_field       USING 'ADRCITYD-REGION'
                                        <fs_record>-region_006.
          PERFORM bdc_field       USING 'ADRCITYD-TIME_ZONE'
                                        'CET'.
          PERFORM bdc_field       USING 'ADRCITYD-COMMU_CODE'
                                        <fs_record>-commu_code_008.
          PERFORM bdc_field       USING 'ADRCITYD-DEF_LANGU'
                                        'F'.
    *      PERFORM bdc_dynpro      USING 'SAPLSZRL' '0400'.
        ENDIF.
        PERFORM bdc_dynpro      USING 'SAPLSZRL' '0400'.        "ajout2
        lignec = ligne.
        CONCATENATE 'ADRPCDCITY-POST_CODE(' lignec ')' INTO cp.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      cp.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING cp
                                      <fs_record>-post_code_01_016.
      ENDLOOP.
    *  deniere sauvegarde
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SAVE'.
      PERFORM bdc_transaction USING 'SR10'.
      CLEAR flag_end.
      PERFORM close_group.
      PERFORM close_dataset USING dataset.
    Can somebody help me on this one ?
    Thank you,
    Tom.

    If it is table control you may have to pass PageDown after 9 rec & again start with (01)
    record number remains 1 to 9 but Top_line parameter will change to 9or10 after 1 pagedown.
    Cxould be P++
    you can record Pagedown & check recording.

  • Problem Batch Input SAPLSLVC_FULLSCREEN 0700

    Hi experts,
    I have a problem during my batch input recording. The requirement I have is to maintain the communication type TLX (Télex) when i´m creating a new vendor. I'm creating a BDC for XK01, and when i´m trying to input the "other communication" details for the vendor, recording stop. I saw on SDN similar problems: (  ) But i don´t see the solution.
    My code is like this:
       PERFORM bdc_dynpro      USING 'SAPMF02K' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR' 'RF02K-KTOKK'.
        PERFORM bdc_field       USING 'RF02K-KTOKK' i_sol-ktokk.
        PERFORM bdc_field       USING 'RF02K-BUKRS' i_sol-bukrs.
        PERFORM bdc_field       USING 'RF02K-EKORG' ekorg.
        PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
         PERFORM bdc_dynpro      USING 'SAPMF02K' '0111'.
          PERFORM bdc_field       USING 'BDC_CURSOR'   'ADDR1_DATA-REGION'.
          PERFORM bdc_field       USING 'ADDR1_DATA-NAME1' i_sol-name1.
          PERFORM bdc_field       USING 'ADDR1_DATA-POST_CODE1' i_sol-pstlz.
          PERFORM bdc_field       USING 'ADDR1_DATA-STREET' i_sol-stras.
         PERFORM bdc_field       USING 'ADDR1_DATA-NAME2' i_sol-name2.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT1' i_sol-sort1.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT2' i_sol-sort2.
          PERFORM bdc_field       USING 'BDC_OKCODE' '=$MCO'.
          PERFORM bdc_dynpro      USING 'SAPLSLVC_FULLSCREEN' '0700'.     
          PERFORM bdc_field       USING 'BDC_OKCODE' '=%_GC 117 3'.
          PERFORM bdc_dynpro      USING 'SAPLSZA6' '0500'.
          PERFORM bdc_field       USING 'BDC_CURSOR' 'ADTLX-TLX_NUMBER(01)'.
          PERFORM bdc_field       USING 'ADTLX-TLX_NUMBER(01)' i_sol-telx1.
          PERFORM bdc_field       USING 'BDC_OKCODE' '=CONT'.
    I think the problem is that the cursor in dynpro 700 appears in first position (Fax) and i want to put it on the télex position, but any codes i try resolved it.
    Thanks in advanced.
    Edited by: Noaser on Aug 19, 2010 11:47 AM

    Hello,
    Solved problem, I changed my code:
          PERFORM bdc_dynpro    USING 'SAPMF02K'                     '0111'.
          PERFORM bdc_field       USING 'BDC_OKCODE'                '=$TLX'.
          PERFORM bdc_field       USING 'BDC_CURSOR'                 'ADDR1_DATA-REGION'.
          PERFORM bdc_field       USING 'ADDR1_DATA-NAME1'    i_sol-name1.
          PERFORM bdc_field       USING 'ADDR1_DATA-POST_CODE1' i_sol-pstlz.
          PERFORM bdc_field       USING 'ADDR1_DATA-STREET'  i_sol-stras.
          PERFORM bdc_field       USING 'ADDR1_DATA-HOUSE_NUM1'  i_sol-house_num1.
          PERFORM bdc_field       USING 'ADDR1_DATA-CITY1'      i_sol-ort01.
          PERFORM bdc_field       USING 'ADDR1_DATA-COUNTRY' spras.
          PERFORM bdc_field       USING 'ADDR1_DATA-REGION'   i_sol-regio.
          PERFORM bdc_field       USING 'ADDR1_DATA-LANGU'    i_sol-spras.
          PERFORM bdc_field       USING 'ADDR1_DATA-NAME2'    i_sol-name2.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT1'    i_sol-sort1.
          PERFORM bdc_field       USING 'ADDR1_DATA-SORT2'    i_sol-sort2.
          PERFORM bdc_field       USING 'ADDR1_DATA-REMARK' i_sol-comentarios.
          PERFORM bdc_field       USING 'SZA1_D0100-TEL_NUMBER' i_sol-telf1.
          PERFORM bdc_field       USING 'SZA1_D0100-FAX_NUMBER' i_sol-telfx.
          PERFORM bdc_field       USING 'SZA1_D0100-SMTP_ADDR'  i_sol-email.
          PERFORM bdc_field       USING 'SZA1_D0100-MOB_NUMBER' i_sol-mob_number.
          PERFORM bdc_dynpro      USING 'SAPLSZA6'                    '0500'.
          PERFORM bdc_field       USING 'BDC_CURSOR'                 'ADTLX-TLX_NUMBER(01)'.
          PERFORM bdc_field       USING 'ADTLX-TLX_NUMBER(01)' i_sol-telx1.
          PERFORM bdc_field       USING 'BDC_OKCODE'                 '=CONT'.
          PERFORM bdc_dynpro      USING 'SAPMF02K'                    '0111'.
          PERFORM bdc_field       USING 'BDC_OKCODE'                 '/00'.
    Regards.

  • BDC OKCODE LIST

    Hai all,
    I need BDC OKCODE Value List.
    For example:
    OKCODE Value for NEW ENTRIES in table fields.
    PERFORM bdc_field       USING 'BDC_OKCODE' '=NPE'.
    Please give me the list of BDC OKCODE Value and function of like '=NPE'.
    Regards
    Naga

    Thanks, Andreas.
    Your reply is really helpful.
    But I still have a question:
    When coding using BDC OKCODE, some of those function codes require a "=" sign prefix, while others requires the '/' sign.
    Let's take a look at PA30, for example:
    PERFORM bdc_field USING 'BDC_OKCODE'  '=INS'. " for Create
    PERFORM bdc_field USING 'BDC_OKCODE'  '/E'.   " for Cancel
    I don't see this info in the Menu Painter (trans. SE41).
    How can I know, without recording using SHDB, what is the required prefix for each function code?
    Thanks,
    Isaac

  • Problem with "Input text with List of Value"

    Hi,
    I have a table where i am storing country code using "Input text with List of Value". I want a another non base table item where i would like to show the "Country Name" of the select LOV. Kindly let know a way to implement the LOV where it returns the "Country code" to base table item and "Country name" to the non base table item.
    thanks
    Sanjay

    Hi,
    I am getting lazy in chasing down the JDeveloper release by the ADF Faces component mentioned.. So I ask: Which verson of JDeveloper are you on ?
    Frank

  • Change document log not created for customer in Batch input/BDC

    Hi Guys,
    Change document log is created when you manually change the customer using XD02 but when run the Batch/BDC the values are Changed but the change document is not created.
    Please someone can give me some hints?
    Luca.

    Any update guys????
    Regards,
    guru singh

  • LSMW for routing with standard batch input

    Hello All,
    I am trying to prepare one LSMW for routing upload for PP module. Routing data contains header data, operation data and master inspection characteristics data.
    I have created three source structures viz. material- task list header, task header data, operation and inspection.
    Header has been assigned to target structure BIMPL- Batch Input Structure for Allocation of Mat. to Task Lists,
    Task header data source structure has been assigned to BIPKO- Batch Input Structure for Task List Header,
    Operation source structure has been assigned to target structure BIPPO- Batch input structure for task list operation,
    and inspection source structure has been assigned to BIPMK- Inspection characteristics for batch input of task lists.
    Every source structure has been identified with an identifier value of which have been set as H, I,J,K for all source structures resp.
    The excel file has been prepared as follows,
    H     MATNR     WERKS     PLNNR     PLNAL               
    H     100045     1000     50000043     1               
    H     100045     1000     50000043     2               
    I     MATNR     WERKS     PLNNR     PLNAL     VALID_FROM     USAGE     STATUS
    I     100045     1000     50000043     1     01012000     1                1
    I     100045    1000     50000043     2     01012000     1                 1
    I have mentioned here the combination of first two structures only. But it contains data of other two source structures as well (for identifier J & K).
    The data from the excel is copied to the flat file and same is specified in LSMW in the step 'Specify file'.
    In 'Assign file' step the flat file is assigned to all the four source structure.
    Now at the time of reading data system is throwing me an error as 'Ensure field sequence is correct for data for mutiple source structures' Message no. /SAPDMC/LSMW_OBJ_060026
    How to overcome this?
    <removed by moderator> answers will be greatly appreciated........
    Mimiri
    Edited by: Thomas Zloch on Jul 11, 2011 10:16 AM

    Hello ,
    have you maintained this check box for the key fields"
    LSMW>Maintain Source fields>double click on fieds : MATNR WERKS PLNNR PLNAL
    Selection Parameter for "Import/Convert Data"-->Tick this check box
    regards

  • Authorisation to transactions for batch input

    We have a reuirement where in the user should have access to create vendors through batch input (BDC) but the user should not have direct access to tcode XK01. Is this possible?

    you can do that, normally what is followed in that case is to designate a single user Id for BDC executiona nd give it all the access so that it can be useful in tracking down the changes and all the other work too.
    Also, this will help in avoiding other users from making changes,
    But for using this option you have to discuss with you project manager and the client.
    Regards,
    Amit
    Reward all helpful replies.

  • Batch Input Problem with PB10 - Updating IT22 via BDC

    Hi out there,
    I'm using PB10 to persist new applicants data.
    Im processing after save the IT22.
    In dialogmode i can just go back without putting input to it22. After going back the new applicant is saved successfully. Now it is possible to use pb30 to maintain (or new creation) of it22 for this applicant.
    Now I recorded this "process" and after call transaction the system brings back an error that mandatory field p0022-endda is missing. this error exists also, if i fill the recorded map with data.
    Batch Input in Background Mode ->Error
    Batch Input  in Dialog Mode -> IT22 Dialog appears with empty data
    ....Using "normal" Dialog Transaction OK!
    Here's the code:
    PERFORM: bdc_dynpro      USING 'SAPMPAP4' '0100',
               bdc_field       USING 'BDC_OKCODE' '=UPD',
               bdc_field       USING 'PSPAR-BEGDA' d_beginn,
               bdc_field       USING 'Q4000-WERKS' '0001',
               bdc_field       USING 'P0001-BTRTL' '0001',
               bdc_field       USING 'Q4000-APGRP' '1',
               bdc_field       USING 'Q4000-APTYP' aptyp,
               bdc_field       USING 'Q0002-ANREX' anrex,
               bdc_field       USING 'P0002-VORNA' vorna,
               bdc_field       USING 'P0002-NACHN' nachn,
               bdc_field       USING 'Q0002-GBPAS' d_gbpas,
               bdc_field       USING 'P0002-SPRSL' sprac,
               bdc_field       USING 'P0002-NATIO' natio,
               bdc_field       USING 'P0006-LAND1' land1,
               bdc_field       USING 'P0006-STRAS' stras,
               bdc_field       USING 'P0006-PSTLZ' pstlz,
               bdc_field       USING 'P0006-ORT01' ort01,
               bdc_field       USING 'P0006-TELNR' telnr,
               bdc_field       USING 'EMAIL' stamm-email,
               bdc_field       USING 'P4001-SPAPL' aptyp,
    *IT22
               bdc_dynpro      USING 'MP002200' '2000',
               bdc_field       USING 'BDC_OKCODE' '=UPD',
               bdc_field       USING 'P0022-BEGDA' d_beginn,
               bdc_field       USING 'P0022-ENDDA' '31129999',
               bdc_field       USING 'P0022-SLART' 'XX',
               bdc_field       USING 'P0022-INSTI' 'FH Irgendwo',
               bdc_field       USING 'P0022-SLABS' '50',
               bdc_field       USING 'P0022-EMARK' '1.7',
               bdc_field       USING 'P0022-SLAND' 'DE',
               bdc_dynpro      USING 'SAPMPAP4' '0100',
               bdc_field       USING 'BDC_OKCODE' '/EEBAC'.
      CALL TRANSACTION 'PB10'  USING bdcdata
                               MODE 'E'
                               MESSAGES INTO messtab.
    Error in messtab
    Edited by: Timo Ehl on Oct 24, 2011 9:05 AM

    Hi Kevin,
    Is it really FB01<b>L</b>? I cannot find it in my 46c system?
    Anyway, you can control this message as follows. Go to SM30, enter V_T100C and 'Maintain'. Enter 'F5' for application area in the subsequent pop-up.
    In the table control, see if message number 192 is already there. If it is there, then change the value under column 'BatchI' to 'I' and save. If it is not there, then enter a new record for 192.
    Hope this helps,
    Srinivas

  • Problems while creating a batch input

    Hi Experts,
    I tried to create a batch input program for the transaction CRMD_ORDER for some changes on to the configuration tab to enable the BOM to work. This cannot be done by the BAPIs. I have included the batch input program in a RFC enabled function module to do this job. I am getting the error control framework: fatal error - GUI cannot be reached  and Runtime error RAISE_EXCEPTION has occured. This happens only in the mode N, if i re run the session with the other modes there are no problems.
    I am call the function module through a method in the controller class.
    Replies are highly appreciated.
    Thanks in Advance.
    Regards,
    Suthagar

    Hi Durai,
    I tried that option too. Ufortunately the same error has happened. The problem is solved using 3 other function modules, by not using the BDC.
    Appreciate your reply. Thanks!
    Regards.
    Suthagar

  • "no batch input data for screen SAPLMR!M 6220  in BDC while holding Invoice

    Hi
         I am facing a problem while uploading Invoice data and to hold the data in miro transaction I am getting the error
         "no batch input data for  screen SAPLMR!M  6220 " . It is for non PO data only I am facing this problem using BDC.
         But for  Po based Invoice  I am getting Invoice number while holding the Invoice. I am  Using SHBDB to record the    
          transaction   details
        Please give me some solution regrading this.
    Samir

    Krish ,
                I am doing it in same transaction MIRO  for both  PO and NON-PO. I am able to generate an Invoice number while holding   the Invoice  For NON-PO taking vendor as invoice Party .While I am recording it in SHDB and trying to use the
    same in my BDC Programe it is throughing this error and also by testing the program which has been generated by the 
    SHDB trnasaction i am getting the same Error . Is there any diferrent trnasaction that is used to hold NON_PO invoice ?
    Where Invoice number will be generated automatically ?

  • 'S' message in BDC and message of type 'A' in batch input session

    We have to upload data for ABZON transaction of assets. When we use LSMW with recording method and try to upload say 3 records. All teh records are updated successfully but the batch input session log says last two records with a message of type 'A' "leave transaction is not possible in batch input"
    But when we upload the same data with BDC program with call transaction then teh log shows same message with type 'S'.
    what could be the reason for this?
    Though data gets uploaded successfully the 'A' message is being displayed in LSMW batch input log.
    if anyone has encountered a similar problem pls let us know how to resolve this asap.
    Thanks,
    Simmi

    Did your batch input end with save ( /11 ) or what ok_code are you using ?

  • BDC - Session Method - No batch input data for screen  SAPMZ_TPSCREEN02 100

    Hi ABAP Experts,
    I have written a Dialog Program For a Screen Which contains 5 fields namely,
    carrid,
    connid,
    fldate,
    price,
    planetype.
    I have written the PAI logic to insert whatever entries entered in the fields, into Database Table SFLIGHT.
    I created a Transaction and Tested whether the entries are succesfully entetered into the Database Table and it works just fine.
    Now i planned to write a BDC program for the above Transaction so that i can upload data to the Database table from a flat file.
    I went to SHDB transaction and created a new recording and transferred the program to generate a source code.
    include bdcrecx1.
    start-of-selection.
    loop at itab.
    perform open_group.
    perform bdc_dynpro      using 'SAPMZ_TPSCREEN02' '1000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CREA'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'SFLIGHT-PLANETYPE'.
    perform bdc_field       using 'SFLIGHT-CARRID'
                                  'AA'.
    perform bdc_field       using 'SFLIGHT-CONNID'
                                  '0017'.
    perform bdc_field       using 'SFLIGHT-FLDATE'
                                  '11/01/2007'.
    perform bdc_field       using 'SFLIGHT-PRICE'
                                  '767'.
    perform bdc_field       using 'SFLIGHT-PLANETYPE'
                                  'A310-200F'.
    perform bdc_transaction using 'Z_TPSCREEN02'.
    perform close_group.
    Then i defined an internal table which contains the same fields as those in my Screen and Transaction.
    I populated the internal table from a flat file using GUI_UPLOAD function module.
    I want to clarify - I got this flat file by using the GUI_DOWNLOAD module and later i uploaded the same file using GUI_UPLOAD.
    I tested whether the internal table is populated or not using LOOP  AT ITAB. WRITE Statements.
    Its working just fine.
    Finally my code look like this.
    report ZVMREC
           no standard page heading line-size 255.
    TABLES: sflight.
    DATA: BEGIN OF itab OCCURS 0,
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
    price TYPE sflight-price,
    planetype TYPE sflight-planetype,
          END OF itab.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'C:\users\vamc\documents\flightinfo.txt'
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
      tables
        data_tab                      = itab.
    include bdcrecx1.
    start-of-selection.
    loop at itab.
    perform open_group.
    perform bdc_dynpro      using 'SAPMZ_TPSCREEN02' '1000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CREA'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'SFLIGHT-PLANETYPE'.
    perform bdc_field       using 'SFLIGHT-CARRID'
                                  'AA'.
    perform bdc_field       using 'SFLIGHT-CONNID'
                                  '0017'.
    perform bdc_field       using 'SFLIGHT-FLDATE'
                                  '11/01/2007'.
    perform bdc_field       using 'SFLIGHT-PRICE'
                                  '767'.
    perform bdc_field       using 'SFLIGHT-PLANETYPE'
                                  'A310-200F'.
    perform bdc_transaction using 'Z_TPSCREEN02'.
    perform close_group.
    endloop.
    I checked for errors, activated and executed.
    I gave session name and executed, it generated same number of sessions as number of records.
    I went to SM35 and Processed one of the sessions in foreground.
    It brought my screen up with all fields fill up by the fields of first record in the internal table and with
    OK Code popping up.
    I check the OK Code.
    Now the problem has come up, its says
    *No batch input data for screen SAPMZ_TPSCREEN02 1000 *
    My session was now incorrectly processed,
    Please help me to fix this problem.
    I searched so many forums and google it a lot.
    But i didn't find any clue.
    Kindly take your time and have a look at this problem and let me know how can i fix it.
    Thank you very much all.
    Shiv
    Edited by: Sivaram  Naga on Apr 15, 2008 5:57 AM

    I used this code to convert the date format. I'm still getting the short dump.
       DATA: v_yyyy(4) TYPE c,
           v_mm(2) TYPE c,
           v_dd(2) TYPE c,
           v_date(8) TYPE c.
    v_yyyy = itab-fldate(4).
    v_mm = itab-fldate+4(2).
    v_dd = itab-fldate+6(2).
    concatenate v_yyyy v_mm v_dd  into v_date. 
    I'm once again, putting my code.
    report ZVMREC
           no standard page heading line-size 255.
    TABLES: sflight.
    DATA: BEGIN OF itab OCCURS 0,
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
    price TYPE sflight-price,
    planetype TYPE sflight-planetype,
          END OF itab.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'C:\users\vamc\documents\flightinfo.txt'
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
      tables
        data_tab                      = itab.
    include bdcrecx1.
    start-of-selection.
    loop at itab.
    DATA: v_yyyy(4) TYPE c,
           v_mm(2) TYPE c,
           v_dd(2) TYPE c,
           v_date(8) TYPE c.
    v_yyyy = itab-fldate(4).
    v_mm = itab-fldate+4(2).
    v_dd = itab-fldate+6(2).
    concatenate v_yyyy v_mm v_dd  into v_date.
    perform open_group.
    perform bdc_dynpro      using 'SAPMZ_TPSCREEN02' '1000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CREA'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'SFLIGHT-PLANETYPE'.
    perform bdc_field       using 'SFLIGHT-CARRID'
                                   ITAB-CARRID.
    perform bdc_field       using 'SFLIGHT-CONNID'
                                   ITAB-CONNID.
    perform bdc_field       using 'SFLIGHT-FLDATE'
                                  V_DATE.
    perform bdc_field       using 'SFLIGHT-PRICE'
                                   ITAB-PRICE.
    perform bdc_field       using 'SFLIGHT-PLANETYPE'
                                  ITAB-PLANETYPE.
    perform bdc_transaction using 'Z_TPSCREEN02'.
    perform close_group.
    endloop.
    Kindly take a look at it and please help me out. I tried very hard. But i dont understand why?
    Thanks
    Shiv
    Edited by: Sivaram  Naga on Apr 15, 2008 5:46 PM

  • A strange problem about batch input (VA01)

    Dear experts,
    I have created one batch input program about VA01,When the selection screen is full window and run,one error occurs.Opposition the screen is not full window ,and the error do not occur.
    Could you help me?
    Thanks and regards,
    collysun

    Hi Collysun,
         The problem what you are facing is due to the resolution setting of individual desktop. This is a known issue in BDC's. Pls do one more recording of VA01 by putting the screen into default size from the tri color button that comes at the right corner of the application tool bar of your session window.
         The advantage is that when the BDC is executed in background automatically the size of the session which is doing the job for you goes to the original size as the one in the recording and it will work irrespective of the windows screen resolution.
    Cheers
    JK
    PS: Award points if this answer is helpful

  • No batch input data for screen SAPMSSY0 0120 when running BDC in background

    Hi Experts,
    I am facing an  issue "No batch input data for screen SAPMSSY0 0120" when running a BDC for VA01 in background.
    The scenario is like we have EDI orders coming into SAP in the form Idocs. These EDI orders are processed by Function module
    IDOC_INPUT_ORDERS. This FM module internally calls VA01 (Call Transaction) to create Sales Orders in SAP.
    Now we have a scenario in which we want a popup screen to come up  & ask for selection of record from list of records displayed on popup screen. In background since we can not show up a screen, we are programatically selecting the record we want & going ahead.
    Now what is happening is during foerground the functionality is working abosultely fine, that is incoming idoc is getting posted successfully in SAP with status of 53. Incase of back ground processing of the same we are getting an error
    No batch input data for screen SAPMSSY0 0120
    I have checked this screen through screen painer(SE51) & i did not find any element on this screen but Element list
    shows one field Syst-Xcode.
    Kindly guide me how to fix the issue so that the same can work as expected in background.
    Regards,
    Chetan.

    Hi Chetan,
    List screens utilize SAPMSSY0/0120. Please check within your ABAP coding if you have any customer exit that tries to issue WRITE statements. If so, either remove them or add logic to not issue them in background (e.g. SY-BATCH = 'X'). Another culprit might be a SUBMIT statement in a user exit, which triggers a report with list output. I'm not completely sure, but I think the screen is also used for some value helps (do you have any coding forcing a value help popup?).
    Hope this helps, harald

Maybe you are looking for

  • Problem with Xmonad, laptop & presentation

    Hi, I am trying to figure out how I can have Xmonad show a presentation both on the laptop screen as well as on the projector. At this moment I can only either show the presentation on the projector or the laptop, but not both at the same time except

  • Connecting with a building

    Hi,can anyone help me out, i have three pcs in different rooms, and i have a Cisco work group router, and one of the rooms got an internet connection from a cable modem, and i need to conect the other two rooms so they could access the internet, how

  • 3 facts and 4 dimensions

    Hi, In my RPD I have 3 facts and 4 dimensions and the joins defined are as below Physical layer - All joins are FK and inner (1:N) FACTA-------------- Dim1,Dim2,Dim3,Dim4 FACTB-------------- Dim1,Dim5,Dim6 FACTC-------------- Dim1,Dim7,Dim8,Dim9 BM l

  • Applications option is missing from workspace

    Hi Friends, Applications option is missing from workspacee. Please help me to resolve it. Thanks in Advance

  • Parsing PDF, iText

    Hi all, I just realized that u cant parse a pdf with iText. Like to insert a string of text at 'marker'. Anyone got a better tool or idea? Thanks...Peter