CV02n - batch input fails

Hi,
  I am unable to run t-code CV02n in background for batch input purposes.
Please let me know if any OSS is available to correct the issue.
It gives me error as follows:
Control Framework: Fatal error - GUI cannot be reached
Message no. DC 006
Diagnosis
When the Control Framework is started, the system checks whether the installed GUI supports frontend components such as controls. This check failed; the causes may be as follows:
1.) The program is running in the background
2.) A transaction was called using CALL TRANSACTION ... STARTING IN BACKGROUND TASK.
Procedure
Programs that run in the background cannot address controls on the frontend. In this case, the application must either include a fallback that does not depend on the user interface, or the program or transaction must detect for itself that is running in the background and terminate itself.

Hi,
It is not suggested to call EnjoySAP transactions in BDC / LSMW Recordings. You can either use CV01/CV02 or use following LSMW object for creation:
Object               0190   Doc. purch. info rec
Method               0000                      
Program name         RCVBI010                  
Program type         B   Batch input           
Hope this helps.
Regds, Murugesh

Similar Messages

  • COGI Fail in b.ground with msg "No batch input data for screen SAPMSSY0120"

    Hi Experts,
    I have recorded the COGI transaction using SHDB and used in my program.  I have scheduled the program in background and this is always failing with the following error "No batch input data for screen SAPMSSY0 0120".  Please help me in this regard.
    Thanks,
    srinivas.

    Hi Ramya,
    This screen doesn't contain any field.  Also this screen shouldn't come in between of my transaction.  But my program is working fine if I execute online.
    Also I don't know where I need to call that screen. 
    Thanks,
    srinivas.

  • CV02n - Batch inpu / call transaction

    Hi,
    I am unable to run t-code CV02n in background for batch input purposes using LSMW.
    Can we do a BDC for CV02n and run it backgroung mode? Is it possible .. Since it is a enjoy transaction.
    I have also explored a couple of BAPI's, which does not suite my requirement.
    It gives me error as follows when I run it using session method:
    Control Framework: Fatal error - GUI cannot be reached
    Message no. DC 006
    Diagnosis
    When the Control Framework is started, the system checks whether the installed GUI supports frontend components such as controls. This check failed; the causes may be as follows:
    1.) The program is running in the background
    2.) A transaction was called using CALL TRANSACTION ... STARTING IN BACKGROUND TASK.
    Procedure
    Programs that run in the background cannot address controls on the frontend. In this case, the application must either include a fallback that does not depend on the user interface, or the program or transaction must detect for itself that is running in the background and terminate itself.

    CV02N use functions unavailable for batch-input. (actual enjoy transaction)
    So don't even try to use it. before going through [Note 368680 - Short dump using CV01N, CV02N in background|https://service.sap.com/sap/support/notes/368680].
    Did you  look for a BAPI starting with BAPI_DOCUMENT suited to your needs?
    Regards

  • Error in LSMW for MM41 - "No batch input data for screen SAPLMGMW 0100"

    I'm trying to create an LSMW for MM41 to create new Retail articles en Mass. This will be used to only create the Basic view as other LSMW's already exist to maintain the other views. I've created the Recording and setup the LSMW already. My data is read correctly from the source file. When I execute the batch session it fails with the following error - "No batch input data for screen SAPLMGMW 0100".
    I assume the fields in MM41 screen are not setup for batch processing. Could someone with more knowledge or experience in SAP Retail please confirm my assumption and explain where this is setup or provide an alternative to creating new articles en Mass via MM41? The direct input method is more suited for MM01 and not MM41.
    Regards
    Fawaaz

    Hi Guys,
    Thanks so much for all the prompt responses. My issue is now resolved.
    The issue, I'm sure, was my default settings in the MM41 screen which the recording probably took into account or the batch program didn't like. I deleted my recording and created a new one but before I started the recording, I went into the MM41 screen and removed all default values AND view selections. I made my Basic view selection constant in my recording and also in my field mapping. My LSMW for MM41 is now working perfectly.
    Just to answer some of the questions above, my LSMW was Reading and Converting the data in my source file fine. When I display the Read and Converted data, it shows the data fields in the correct place.
    Thanks again.
    Regards
    Fawaaz

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • Handling Batch Input errors in workflow

    Greetings Friends,
    I got a Subworkflow (Pa. process) to get aproves to unblock a Salesdocument.
    After everyone aproves it, the process return to my main-workflow for a Batch input inside in a background task. But the batch input can result in somekind of error and fail. At this time, the workitem is already "lost" (processed?).
    There is a way to recreate the workitem for another user? (I got one hint here at SDN about FM SAP_WAPI_PUT_BACK_WORKITEM)
    There is a container that saves the last workitem processed?
    Att,
    José.
    <Subject edited. Please use a meaningful subject, see the Rules of Engagement (link at the top of each forum) for further info>
    Edited by: Mike Pokraka on Dec 16, 2008 1:54 PM

    Hi Sunny,
    What release are you on?  If the workflow errors out, then it must be telling you some sort of exception message.
    Either at the header level, or at the individual task, where the red lights are.  (if you are on ECC6, you may need to hit CTRL/P to get to the more comprehensive WF Technical Log).
    By all means, populate a custom table with exceptions if you must, or pass the error into the workflow container, but if your task goes into error, it doesn't complete, therefore it can't write the error into the container.
    Give standard SAP functionality a try before building too much into capturing the exception.  It's already done for you, and it works.
    Hope this helps,
    Sue

  • How to rollback batch input process?

    For example:  I wanna post 10 documents, and all the posting should happen as a logical unit of work, i,e. either everything should be posted successfully or nothing should be posted. If error occured in the 7th record, i should rollback the posted 6 documents. How shall i do? It seems can't just use 'call transaction' clause.

    Hello Arthur,
    I'm afraid what you're seeking to accomplish is not possible.
    And I don't think it makes too much sense. Let us say, you are
    using a CALL TRANSACTION, then each CALL TRANSACTION is supposed
    to be consistent and complete in itself.....and you cannot span
    an LUW across multiple transactions....it is so much against the
    concept of an LUW.
    To give you a slightly non-technical explanation, you must first
    ask yourself the question 'Why do we use BATCH INPUT'? Is it not
    to just reduce the manual creation of all the documents in their
    corresponding transactions?
    Now in your case, let us assume that we have only 3 documents to
    be posted and you have decided to post them yourself online, using
    the relevant transactions. You finish successfull posting the first
    two documents and then find that there's some error in the third one.
    How are you going to roll back the previous two? You would have to
    <i>delete</i> them.
    So even in this case, you can only do a delete operation. Not a ROLLBACK.
    By the way, I don't think your requirement makes much sense. Why should
    the other documents be rolled back if something else fails ? They are quite
    independent , right ?
    Now if you really want to stick to this functionality, then the option that
    is left for you is to find out if there are any Function Modules available to
    do the DELETE operation.
    Personally, if I were you, I would use the MESSAGES option for the CALL TRANSACTION
    statement and display them to the user, so that he would know which transaction
    had failed. He can then continue with the remaining documents after detecting the
    error and correcting it.
    Hope that is clear. Please do get back if you have further doubts. Else, please
    reward points and mark the question as "answered".
    Regards,
    Anand Mandalika.

  • No batch input data screen SAPLSDH4 0200

    Hi,
    While doing Check deposit transaction, i got the below error
    " No batch input data screen SAPLSDH4 0200". When i press enter, it is going to FS01 screen and showing the customer number as * =D.xxxx (customer number)*  and a dialogue box is appeared, in that search item and customer number is displayed. When i press enter, it is not accepting. When i clear it and press enter, it is showing all customers. I have selected the customer which i gave at the time of customizing and press enter. Then it is showing the "OK code" again selected ok.. Then the batch process competed. But when i go to SM35, i cant able to see the session again.
    I dont understand why this problem is coming. But the posting were done properly. Can anyone explain me what exactly the problem with this transaction.
    Regards
    Sabera

    Hi,
    These error normally comes if the screen control branches out to different view or a screen.If a session is created for error logs, process the session in foreground mode and see at which point the OK CODE branches out to this particular screen. you also need to debug the particular record which is failing to see if its a data related issue or any particular field value is being wrongly processed. If your program is not creating any session for error logs i request you to generate a session for error logs or else if you are using call transaction ,run it in MODE 'A' to check whats happening.It's quite common to come accross such issues while developing a BDC.

  • No batch input data for screen SAPMF02K 0310 in PROD but ok in DEV & QAS

    Hi gurus,
    I created an LSMW recording for vendors but now I am having erros when uploading to PROD. The error No batch input data for screen SAPMF02K 0310 appears. The strange thing is that it works perfectly in DEV and QAS.
    What would cause this? Would there be a problem with the config?
    Edited by: obie villamosa on Sep 9, 2010 7:35 PM

    Howdy,
    As an example, your recording may work perfectly for a vendor that has not been extended to any purchasing orgs - and so it tests fine in Dev and QAS.
    But when you move to Production your recording may fail against a vendor that has been extended to a purchasing org.
    Just one example.  I notice 0310 is the screen for Vendor purchasing org data, so maybe this is what's happening here.
    Cheers
    Alex

  • No batch input data for screen SAPMSSY0 0120 error while running LSMW

    I created Batch Input Recording for custom check register screen. I completed all the necessary steps but when I process the batch input session, my upload fails and gives me the following error:
    No batch input data for screen SAPMSSY0 0120
    I ran the Batch input in foreground to see what data am I missing and found out that one of the screen required a "DOUBLE CLICK" as user input and seems that LSMW is not able to process the "DOUBLE CLICK" (even though Batch Input recording captured the "DOUBLE CLICK") to move forward with the transaction.
    Does anyone one know How can I overcome this issue or any other workaround.
    Thanks Nirankar

    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

  • No batch input data for screen sapmf05A 0700 during BD20

    Hi,
    In BD20, when there are multiple idocs, after the first idoc is succesfully processd, the other idocs fail, as the first one has locked the screen and we get the message No batch input data for screen sapmf05A 0700. Then the other idocs end in error.
    Any pointers to solve this?

    There are no errors...It is because the first idoc has locked the screen, This error is appearing.

  • Difference between Batch input and Direct Input

    Hi please tell me the difference between Batch Input and Direct Input in BDC?

    hi aparna,
    <b>DIRECT INPUT</b>
    TO ENTER THE DATA INTO THE CORRESPONDING DATABASE TABLES DIRECTLY, THE SYSTEM CALLS A NUMBER OF FUNCTION MODULES THAT EXECUTE ANY NECESSARY CHECKS. IN CASE OF ERRORS, THE DIRECT INPUT TECHNIQUE PROVIDES A RESTART MECHANISM. HOWEVER, TO BE ABLE TO ACTIVATE THE RESTART MECHANISM, DIRECT INPUT PROGRAMS MUST BE EXECUTED IN THE BACKGROUND ONLY. DIRECT INPUT CHECKS THE DATA THOROUGHLY AND THEN UPDATES THE DATABASE DIRECTLY.
    TO MAINTAIN AND STRAT THESE PROGRAMS, USE PGM RBMVSHOW OR THE TRANSACTION BMVO.
    <b>BATCH INPUT</b>
    TYPES – SESSION METHOD, CALL TRANSACTION, DIRECT INPUT.
    TO SAVE DATA IN THE BDCTAB, USE THE FIELDNAME ‘BDC_OKCODE’ AND FIELD VALUE OF ‘/11’.
    BDCDATA
    THIS IS A STRUCTURE WHICH CONTAINS THE FOLLOWING FIELDS.
    PROGRAM – NAME OF TH MOD PROG ASSOCIATED WITH THE SCREEN. SET ONLY FOR THE FIRST RECORD OF THE SCREEN.
    DYNPRO – SCREEN NUMBER. ALSO SET ONLY FOR FIRST RECORD.
    DYNBEGIN – INDICATES THE FIRST RECORD OF THE SCREEN. SET ‘X’ FOR FIRST RECORD OTHERWISE ‘ ‘.
    FNAM – FIELD NAME.
    FVAL – VALUE FOR THE FIELD NAMED IN FNAM.
    THE FIRST STEP IN BDC IS TO UPLOAD DATA FROM THE FLAT FILE OR SEQUENTIAL FILE TO THIS BDCTABLE.
    SESSION METHOD
    WE USE 3 FUNCTION MODULES IN THIS SESSION METHOD.
    1) BDC_OPEN_GROUP
         USER NAME:     USER NAME
         GROUP:          NAME OF THE SESSION
         LOCK DATE:     THE DATE ON WHICH YOU WANT TO PROCESS THE                              SESSION.
         KEEP:          THIS PARAMETER IS PASSED AS ‘X’ WHEN YOU WANT TO RETAIN SESSION AFTER     PROCESSING IT OR ‘ ‘ TO DELETE IT AFTER PROCESSING.
    THIS CREATES A SESSION
    2) BDC_INSERT
         TCODE:          TRANSACTION NAME
         DYNPROTAB:     BDC DATA
    THIS CREATES A SEESION AND DATA IS TRANSFERRED O SESSION.
    3) BDC_CLOSE_GROUP – THIS CLOSES THE BDC GROUP.
    ONLY ONE SESSION CAN BE CREATED USING BDC_OPEN_GROUP. BUT MULTIPLE TRANSACTIONS CAN BE PROCESSED USING BDC_INSERT.
    CALL TRANSACTION
    CALL TRANSACTION     <TCODE> USING <BDCTAB>
                                            MODE <A/N/E>
                                            UPDATE <S/A>
                        MESSAGES INTO <MSGTAB>.
    A – ALL SCREEN MODE. ALL THE SCREEN OF THE TRANSACTION ARE DISPLAYED.
    N – NO SCREEN MODE. NO SCREEN IS DISPLAYED WHEN YOU EXECUTE THE TRANSACTION.
    E – ERROR SCREEN. IF THE SCREEN HAS ERROR RECORD, THEN THAT SCREEN WILL BE DISPLAYED.
    S - IF YOU CHANGE DATA OF ONE TABLE THEN ALL THE RELATED TABLES GETS UPDATED. AND SY-SUBRC IS RETURNED I.E., SY-SUBRC IS RETURNED FOR ONCE AND ALL.
    A - WHEN YOU CHANGE DATA OF ONE TABLE, THE SY-SUBRC IS RETURNED. AND THEN UPDATING OF OTHER AFFECTED TABLES TAKES PLACE.  SO IF SYSTEM FAILS TO UPDATE OTHER TABLES, STILL SY-SUBRC RETURNED IS 0 (I.E., WHEN FIRST TABLE GETS UPDATED
    WHEN YOU UPDATE DATABASE TABLE, OPERATION IS EITHER SUCCESSFUL OR UNSUCCESSFUL OR OPERATION IS SUCCESSFUL WITH SOME WARNING. THESE MESSAGES ARE STORED IN INTERNAL TABLE, WHICH YOU SPECIFY ALONG WITH MESSAGE STATEMENT. THIS INTERNAL TABLE SHOULD BE DECLARED LIKE BDCMSGCOLL, A STRUCTURE AVAILABLE IN ABAP/4. IT CONTAINS THE FOLLOWING FIELDS: TCODE, DYNAME, DYNUMB, MSGTYP, MSGID.
    DIFFERENCE BETWEEN SESSION AND CALL TRANSACTION
              SESSION METHOD               CALL TRANSACTION
    1.          DATA IS NOT UPDATED IN DATABASE TABLE UNLESS SESSION IS PROCESSED.               IMMEDIATE UPDATION IN DATABASE TABLE.
    2.          NO SY-SUBRC IS RETURNED.               SY-SUBRC IS RETURNED.
    3.          ERROR LOG IS CREATED FOR ERROR RECORDS.               ERRORS NEED TO BE HANDLED EXPLICITLY
    4.          UPDATION IN DATABASE TABLE IS ALWAYS SYNCHRONOUS
                   UPDATION IN DATABASE TABLE CAN BE SYNCHRONOUS OR ASYNCHRONOUS.
    5.          ASYNCHRONOUS PROCESSING               SYNCHRONOUS PROCESSING
    6.           TRANSFERS DATA FOR SINGLE TRANSACTIONS               TRANSFERS DATA FOR MULTIPLE TRANSACTIONS
    ERROR HANDLING IN CALL TRANSACTION
    1)     CREATE AN INTERNAL TABLE SIMILAR TO THE STRUCTURE OF YOUR LOCAL FILE.
    2)     CREATE BDCTAB LIKE BDCDATA.
    3)     CREATE BDCMSG LIKE BDCMSGCOLL.
    4)     CREATE AN INTERNAL TABLE SIMILAR TO THE 1ST INTERNAL TABLE.
    5)     UPLOAD FN UPLOADS DATA FROM THE LOCAL FILE TO THE ITAB.
    6)     LOOP AT ITAB.
    POPULATE BDCTAB TABLE.
    CALL TRANSACTION STATEMENT.
    PERFORM CHECK.
    REFRESH BDCTAB.
    ENDLOOP.
    7)     FORM CHECK.
    IF SY_SUBRC <> 0.
    CALL FUNCTION FORMAT_MESSAGE.
    APPEND ITAB2.
    ENDFORM.
    TRANSACTION FOR RECORDING – SHDB.
    MAX TIME ALLOWED FOR ONLINE EXECUTION – 300 SECONDS.
    <b>
    Pls reward if helpful.</b>

  • Using data loading softwares better than SM35 as batch input

    Hi All,
    Can anyone tell me what are the pros and cons of using SM35 batch input in SAP as compared with commercial data loading software like win shuttle, data loader etc
    Thanks in advance.

    Our data loading software runs in the background, with each particular run set as a separate batch. It doesn't matter if this data comes from a program generated on site, or via a data feed interfaced from another system. With the transaction, SM35, I can look at each run and know immediately if any entry within that run did not post correctly, as well as those that did. I can view each transaction and get a detailed log on all that happened. If an entry failed to post, I can see exactly where within the posting process the transaction failed and why it failed.  When we have a problem with a new - or recently changed, interface, SM35 is the tool I use to debug the problem fast. Another benefit of this batch input session is when a user tells me her/his interface failed. Often it didn't; someone just ran off with their interface report. In those cases, I don't have to restore & re-run anything. I just reprint the run to the relief  - and gratitude, of the user.

  • LT04 BATCH INPUT TROUBLE

    Hy guys i have a little trouble with my batch input. in my table t_fabb i have many rows but just after the first batch, i have an error message:MESSAGE e000(zlo) WITH 'Errore conferma OT LT04.
    If i exit from the report ang get in again , the same row that failed , succed but the next row fail etc...
    i can't understand why....
    LOOP AT t_fabb.   
    SELECT *
          FROM ltbk
         WHERE tbnum >= t_fabb-tbnum
           AND lznum  = t_fabb-aufnr
           AND lgnum  = '050'
           AND statu <> 'E'.
          SELECT SINGLE *
            FROM ltbp
           WHERE lgnum  = '050'
             AND elikz <> 'X'
             AND matnr = t_fabb-matnr
             AND tbnum = ltbk-tbnum
             AND charg <> ''.
          IF sy-subrc = 0.
            EXIT.
          ENDIF.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000(zlo) WITH 'Numero OT già confermata'.
          LEAVE SCREEN.SET SCREEN 0.
        ENDIF.
        CLEAR bdcdata.
        REFRESH bdcdata.
        PERFORM bdc_dynpro      USING 'SAPML03T' '0131'.
    *  PERFORM bdc_field       USING 'BDC_CURSOR'
    *                               'LTBK-TBNUM'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LTAK-LGNUM'
                                      '050'.
        PERFORM bdc_field       USING 'LTBK-TBNUM'
                                      ltbp-tbnum.
        PERFORM bdc_field       USING '*LTBP-TBPOS'
                                    ltbp-tbpos.
        PERFORM bdc_field       USING 'RL03T-ALAKT'
                                      'X'.
        PERFORM bdc_field       USING 'RL03T-DUNKL'
                                       'D'.
        CALL TRANSACTION 'LT04' USING bdcdata
    *{   REPLACE        LGPK901791                                        1
    *                     MODE 'N'  UPDATE 'S' MESSAGES INTO messtab.
                         MODE 'E'  UPDATE 'S' MESSAGES INTO messtab.
    *}   REPLACE
        IF sy-subrc = 0.
          SELECT SINGLE *
            FROM ltbp
           WHERE lgnum = '050'
             AND tbnum = ltbp-tbnum
             AND tanum <> ' '.
          IF sy-subrc = 0.
            z311a-ztanum = ltbp-tanum.
          ENDIF.
          PERFORM modify_z331a.
        ELSE.
          MESSAGE e000(zlo) WITH 'Errore conferma OT LT04'.
          LEAVE SCREEN.SET SCREEN 0.
        ENDIF.
        READ TABLE messtab WITH KEY msgtyp = 'S'
                                    msgid = 'LT'
                                    msgnr = '100'.
      ENDLOOP.

    Hi,
    Just check in 'messtab' if there is some error messages.
    Please note that when transfer orders are created in sequence a commit work must be placed between the calls so as to clear the global internal tables associated.
    Instead of call transaction i suggest that you use the FM L_TO_CREATE_TR. Please go through teh documenttation of the FM.
    Also i find that you are doing SELECT within LOOPs. Please try to avoid it. Although it is not related to your issue; but as best practices one should avoid it.
    Regards,
    Ankur Parab

  • 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.

Maybe you are looking for

  • CLOB datatype

    I need to have several columns in a table say 14 which would each hold around 8k of data. Now i want a solution for creating the table and retrieving data from that particular table. I want this solution to be as simple as possible. No triggers and n

  • Creation of mandatory UDF in A.R Invoice

    Dear All, I am facing the problem for mandatory field creation. Even i write this below code when adding A.R Invoice it mandatory field is not working. alter proc SBO_SP_TransactionNotification   @object_type nvarchar(20),     -- SBO Object Type  @tr

  • Initialize indexes array

    Hello! I am new to LabView and  I am struggling with this problem for a couple of days... I have a 2D array CH x spike_time and on each row (1D array) I need to implement a logic that requires the possibility to dynamically initialize two indexes.  

  • HR Programming for Infotype  0041.

    Hello, The data come from infotype 0041. The Date is stored in the field DATxx when DARxx is equal to ‘05’. [xx can have the values from 01 to 12]. Can anyone suggest that how to to the retrieval for this. Best Regards, Pramod Upadhyay

  • Using wlserver to start managed servers

    Hi, all. I was wondering if someone could help me out in understanding how wlserver works. I'm using WL 8.4SP4. I have a cluster with two nodes, and I have the node manager configured properly. I can log in to the Admin console and start and stop the