Session method back ground error

Hi All,
I am doing BDC for XK01 transaction it's giving error when we run the session in back ground but the same is running fine in the foreground? is there any parameter we have to pass for bdc session fun module when we run back ground?
Thanks&Regards
mahesh

Hi..,
<b>If u r populating data from presentation server file,u will get a dump obviously..</b>
becoz it will not have any contact with presentation server while running in back ground.
To make it run successfully, First store the file on <b>Application server</b>.. then onli it will work...
To store a file in application server u need to use OPEN DATASET  and  CLOSE DATA SET....
reward all helpful answer..
aruna.

Similar Messages

  • BDC-Process session in back ground

    HI to all,
    Is there any FM to call session in back ground
    i am using RSBDCSUB apart form this if there is any FM please tell me.
    regarda
    raadha

    Hi,
    Use this sample code
    DATA:    RUNTIME        TYPE I.             "Runtime
    DATA:    GROUP          LIKE APQI-GROUPID,     " Mappenname
             BDCIMMED       LIKE RFIPI-BDCIMMED,   " nur BDC: sof. Abspielen
             BDCSTRTDT      LIKE TBTCJOB-SDLSTRTDT,  "nur BDC: Startdatum
             BDCSTRTTM      LIKE TBTCJOB-SDLSTRTTM.  "nur BDC: Startzeit
    form mappe_abspielen_im_batch.
      GET RUN TIME FIELD RUNTIME.
      JOBNAME    = 'RFEBFD00-FIEB'.
      JOBNAME+14 = RUNTIME.
    eak-point.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                JOBNAME          = JOBNAME
                JOBGROUP         = 'FIEB'
           IMPORTING
                JOBCOUNT         = JOBCOUNT
           EXCEPTIONS
                CANT_CREATE_JOB  = 01
                INVALID_JOB_DATA = 02
                JOBNAME_MISSING  = 03.
      IF SY-SUBRC NE 0.
        MESSAGE E015  RAISING SESSION_NOT_PROCESSABLE.
      ENDIF.
      SUBMIT RSBDCSUB AND RETURN
                      USER SY-UNAME
                      VIA JOB JOBNAME NUMBER JOBCOUNT
                    with mappe    =  group
                      WITH MAPPE    =  BI-NAME
                      WITH VON      =  SY-DATUM
                      WITH BIS      =  SY-DATUM
                      WITH Z_VERARB =  'X'.
        BDCSTRTDT =  SY-DATUM.
        BDCSTRTDT =  SPACE.
        BDCSTRTTM =  SPACE.
        BDCIMMED  =  'X'.
      bdcstrttm =  runtime.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                JOBNAME              = JOBNAME
                JOBCOUNT             = JOBCOUNT
                STRTIMMED            = BDCIMMED
                SDLSTRTDT            = BDCSTRTDT
                SDLSTRTTM            = BDCSTRTTM
           EXCEPTIONS
                CANT_START_IMMEDIATE = 01
                JOBNAME_MISSING      = 02
                JOB_CLOSE_FAILED     = 03
                JOB_NOSTEPS          = 04
                JOB_NOTEX            = 05
                LOCK_FAILED          = 06.
      IF SY-SUBRC NE 0.
        MESSAGE E015  RAISING SESSION_NOT_PROCESSABLE.
      ENDIF.
      CLEAR  BDCIMMED.
      BDCSTRTDT = SPACE.
      BDCSTRTTM = SPACE.
    Regards
    Krishna

  • BDC Back ground error

    I have created BDC for PA30 transaction for infotye 24. It is working fine in fore ground but not uploading the data in background.
    Is there solution for this like ctu parameters ??

    Hi,
    check this program........
    REPORT  ZBDC_LFH2 .
    TABLES:LFA1.
    PARAMETERS:FILE(200) TYPE C.
    DATA:BEGIN OF ITAB OCCURS 0,
          LIFNR TYPE LIFNR,
          NAME1 TYPE NAME1,
          LAND1 TYPE LAND1,
          END OF ITAB.
    *DATA:ITAB LIKE LFA1 OCCURS 0 WITH HEADER LINE.
    DATA:JTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
       CLIENT                    = SY-MANDT
       GROUP                     = 'LFUP'
       USER                      = SY-UNAME.
      OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    OPEN DATASET file IN TEXT MODE ENCODING DEFAULT FOR INPUT.
       DO .
       READ DATASET FILE INTO ITAB.
       APPEND ITAB.
       IF SY-SUBRC <> 0.
       EXIT.
       ENDIF.
    LOOP AT ITAB.
    REFRESH JTAB.
       PERFORM SUB USING 'ZVIF' '0100'.
       PERFORM SUB1 USING:'LFA1-LIFNR' ITAB-LIFNR,
                          'LFA1-NAME1' ITAB-NAME1,
                          'LFA1-LAND1' ITAB-LAND1.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
       TCODE                  = 'ZVIF'
      TABLES
        DYNPROTAB              = JTAB.
        ENDLOOP.
        ENDDO.
        CLOSE DATASET FILE.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    FORM SUB USING A B.
    CLEAR JTAB.
    JTAB-PROGRAM = A.
    JTAB-DYNPRO = B.
    JTAB-DYNBEGIN = 'X'.
    APPEND JTAB.
    ENDFORM.
    FORM SUB1 USING C D.
    CLEAR JTAB.
    JTAB-FNAM = C.
    JTAB-FNAM = D.
    APPEND JTAB.
    ENDFORM.
    Regards
    Shaik.

  • Back ground job bdc session

    Hai All,
    Can any one tell me how to catch the erros in BDC session method back ground job.
    I need to update Sales orders in BDC session, back ground job.
    Finally at the end I need to generate a report which contains all the succesfull updates & errors.
    I tried this using call transaction with messtab and is working fine.
    Please tell me how to do this in Session method.
    Thanks & Regards,
    Bhaskar.

    Hi Bhaskar,
    In Session method what you need to do is before processing of hte BDC first you need to check all the data. And if any error found then populate it into the internal table. And that internal table you need to display it on the output......
    I think this is the solution but I am not to sure........
    &********Reward Point if helpful*******&

  • Error message log in session method of ALV report,

    In ALV report please let me know:
    1) In session method:
    where all error messages are stored,I know that error messages are stored in a log file, so please tell me where is it stored.
    2)transaction method:
    How to handle error messages in transaction methos(for eg if a weight field text box value is negative)

    Ans for 2nd point.
    CALL TRANSACTION c_mb USING i_bdcdata
                              MODE g_ctumode
                              UPDATE g_cupdate
                              MESSAGES INTO i_messtab.
       COMMIT WORK.
       IF sy-subrc EQ 0. " BDC Executed Successfully
         CLEAR wa_messtab.
         LOOP AT i_messtab INTO wa_messtab .
           IF wa_messtab-msgtyp  = 'S' AND
              wa_messtab-msgid   = 'M7' AND
              wa_messtab-msgnr   = '060'.
             CALL FUNCTION 'MESSAGE_TEXT_BUILD'
               EXPORTING
                 msgid               = wa_messtab-msgid
                 msgnr               = wa_messtab-msgnr
                 msgv1               = wa_messtab-msgv1
                 msgv2               = wa_messtab-msgv2
                 msgv3               = wa_messtab-msgv3
                 msgv4               = wa_messtab-msgv4
               IMPORTING
                 message_text_output = l_msg.
             APPEND l_msg TO i_sucsess.
             CLEAR l_msg.
             g_docsuc = 1.
           ELSE.
             IF wa_messtab-msgtyp  = 'E'.
               CALL FUNCTION 'MESSAGE_TEXT_BUILD'
                 EXPORTING
                   msgid               = wa_messtab-msgid
                   msgnr               = wa_messtab-msgnr
                   msgv1               = wa_messtab-msgv1
                   msgv2               = wa_messtab-msgv2
                   msgv3               = wa_messtab-msgv3
                   msgv4               = wa_messtab-msgv4
                 IMPORTING
                   message_text_output = l_msg.
               g_errflg = 1.
               APPEND l_msg TO i_error.
               CLEAR: l_msg.
             ENDIF.

  • Error log with session method

    hi frnds
              we can handle error in call transaction method by using bdcmsgcoll,
              error is handled by system using session method and these errors can be analysed by going to tr sm35 . <b>is there is any way by which i will use session method in my program and all the errors will be written in the o/p of the list.
    is this is possible , if so pls give me some sample code</b>
    thanks
    pankaj

    Hi,
    check the belwo sample code.
    Declaration of local constants
      CONSTANTS : lc_tcode  TYPE tstc-tcode VALUE 'ME31K',
                  lc_n      TYPE ctu_mode   VALUE 'N'.
    Declaration of local variables
      DATA: lv_msg   TYPE string,
            lv_subrc LIKE sy-subrc,
            lv_opt   TYPE ctu_params.
      lv_opt-defsize = c_x.
      lv_opt-dismode = lc_n.
      lv_opt-updmode = c_l.
      REFRESH i_messtab.
    Call the transaction to create the Purchasing Contracts
      CALL TRANSACTION lc_tcode USING i_bdcdata
                       OPTIONS FROM lv_opt
                       MESSAGES INTO i_messtab.
      MOVE sy-subrc TO lv_subrc.
    IF lv_subrc NE 0.
       v_err_cnt = v_err_cnt + 1.
        IF NOT i_messtab[] IS INITIAL.
          READ TABLE i_messtab WITH KEY msgtyp = 'E'.
          IF sy-subrc EQ 0.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id   = i_messtab-msgid
                lang = sy-langu
                no   = i_messtab-msgnr
                v1   = i_messtab-msgv1
                v2   = i_messtab-msgv2
                v3   = i_messtab-msgv3
                v4   = i_messtab-msgv4
              IMPORTING
                msg  = lv_msg.
            MOVE: p_wa_header-lifnr TO wa_error-lifnr,
                  p_wa_header-evart TO wa_error-evart,
                  p_wa_header-vedat TO wa_error-vedat,
                  p_wa_header-ekorg TO wa_error-ekorg,
                  p_wa_header-ekgrp TO wa_error-ekgrp,
                  p_wa_header-epstp TO wa_error-epstp,
                  p_wa_header-knttp TO wa_error-knttp,
                  p_wa_header-bukrs TO wa_error-bukrs,
                  p_wa_header-kdatb TO wa_error-kdatb,
                  p_wa_header-kdate TO wa_error-kdate,
                  p_wa_header-ktwrt TO wa_error-ktwrt,
                  p_wa_header-waers TO wa_error-waers,
                  p_wa_header-wkurs TO wa_error-wkurs,
                  p_wa_header-inco1 TO wa_error-inco1,
                  p_wa_header-inco2 TO wa_error-inco2,
                  p_wa_header-ihran TO wa_error-ihran,
                  p_wa_header-angnr TO wa_error-angnr,
                  lv_msg            TO wa_error-msg.
            APPEND wa_error TO i_error.
            CLEAR wa_error.
          ELSE.
            READ TABLE i_messtab WITH KEY msgtyp = 'S'.
            IF sy-subrc EQ 0.
              CALL FUNCTION 'FORMAT_MESSAGE'
                EXPORTING
                  id   = i_messtab-msgid
                  lang = sy-langu
                  no   = i_messtab-msgnr
                  v1   = i_messtab-msgv1
                  v2   = i_messtab-msgv2
                  v3   = i_messtab-msgv3
                  v4   = i_messtab-msgv4
                IMPORTING
                  msg  = lv_msg.
            ENDIF.
          ENDIF.
        ENDIF.
    ELSE.
       v_cnt  = v_cnt + 1.
    ENDIF.
      REFRESH i_bdcdata.
    *&      Form  prepare_field_catalog
          Prepare Field catalog
         <--P_I_FIELDCAT[]  Internal table for Field Catalog
    FORM prepare_field_catalog  CHANGING pt_fieldcat TYPE t_fieldcat.
    Declaration of local workarea
      DATA: lwa_fieldcat TYPE slis_fieldcat_alv.
    Declaration of local constants
      CONSTANTS : lc_long_text(1)   TYPE c VALUE 'L'.
    *--Call the functino module to get the field catalog.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-repid
          i_internal_tabname     = 'I_SUCCESS'
          i_inclname             = sy-repid
        CHANGING
          ct_fieldcat            = pt_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_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.
      ELSE.
        LOOP AT pt_fieldcat INTO lwa_fieldcat.
          CASE lwa_fieldcat-fieldname.
            WHEN 'VEDAT'.
              lwa_fieldcat-ddictxt    = lc_long_text.
              lwa_fieldcat-seltext_l  = text-004.
              MODIFY i_fieldcat FROM lwa_fieldcat
                   INDEX sy-tabix TRANSPORTING ddictxt seltext_l .
              CLEAR lwa_fieldcat.
            WHEN 'KDATB'.
              lwa_fieldcat-ddictxt    = lc_long_text.
              lwa_fieldcat-seltext_l  = text-005.
              MODIFY i_fieldcat FROM lwa_fieldcat
                   INDEX sy-tabix TRANSPORTING ddictxt seltext_l .
              CLEAR lwa_fieldcat.
            WHEN 'KDATE'.
              lwa_fieldcat-ddictxt    = lc_long_text.
              lwa_fieldcat-seltext_l  = text-006.
              MODIFY i_fieldcat FROM lwa_fieldcat
                   INDEX sy-tabix TRANSPORTING ddictxt seltext_l .
              CLEAR lwa_fieldcat.
            WHEN 'IHRAN'.
              lwa_fieldcat-ddictxt    = lc_long_text.
              lwa_fieldcat-seltext_l  = text-007.
              MODIFY i_fieldcat FROM lwa_fieldcat
                   INDEX sy-tabix TRANSPORTING ddictxt seltext_l .
              CLEAR lwa_fieldcat.
          ENDCASE.
        ENDLOOP.               "LOOP AT pt_fieldcat INTO lwa_fieldcat.
      ENDIF.                   "IF sy-subrc <> 0
    ENDFORM.                   " prepare_field_catalog
    *&      Form  display_output
      To display the success contracts output in ALV
    FORM display_output .
    Declaration of local workarea
      DATA : lwa_layout TYPE slis_layout_alv.
    Declaration of local constants
      CONSTANTS : lc_chk(1)  TYPE c VALUE 'X',
                  lc_page    TYPE slis_formname VALUE 'SUB_TOP_OF_PAGE'.
    Subroutine to prepare the Field Catalog
      PERFORM prepare_field_catalog CHANGING i_fieldcat[].
    Subroutine to build layout
      lwa_layout-box_tabname       = 'I_SUCCESS'.
      lwa_layout-no_input          = lc_chk.
      lwa_layout-colwidth_optimize = lc_chk.
      lwa_layout-zebra             = lc_chk.
      lwa_layout-cell_merge        = lc_chk.
    FM to call the ALV Grid
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = sy-repid
          i_bypassing_buffer     = c_x
          i_callback_top_of_page = lc_page
          is_layout              = lwa_layout
          it_fieldcat            = i_fieldcat[]
        TABLES
          t_outtab               = i_success
        EXCEPTIONS
          program_error          = 1
          OTHERS                 = 2.
      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.                    " display_output
    Rewrad if helpful.
    Regards,
    Nagaraj

  • LOG HANDLING IN SESSION METHOD

    Hi,
    My requirement is handle the errors in to internal table and then capture those errors in to flat file by using session method. I am using RSBDC_ANALYSE in my program, but it is display only the errors in the output screen like sm 35 log analyse session. How can i capture that errors in to internal table to flat file.
    anybody tell me and give the code for error (log file) handling in to internal table.
    Thanks
    margani

    hI
    The system'll create a session error with only the transactions failed and you can run it again.
    If you want to check which transaction u should che the log file generated by session, see the program RSBDC_ANALYSE.
    But the problem can be how to match the transaction failed with the record of original file.
    check these threads...
    How to find and separate the Erraneous records in Session Method?
    Handling errors in BDC?
    Handling sessions in BDC
    The error details can be retrived using the database tables;
    APQI and APQD...
    these tables stores the complete details about the log which occurred in the session method..
    check these tables.. it has the QUEUE id.. logs etc..

  • ERROR IN BDC SESSION BACK GROUND ( USING PP03 T.CODE)

    Hi Experts,
    When i am executing the session ( pp03 T.Code) ,it is working fine in fore ground as well as in display errors mode. But it is not working in back ground mode.
    it is raising the exception ( cntl-system-error).
    I used flat file which is in the presentation server . I accessed it by gui_upload Function Module.
    <b> I am also getting the error using data sets . After upload the presentation server data into one internal table .I sent it to application server using open data set ( transfer ) , after that i read the application server data using open dataset ( read )
    into another internal table ( i declared with same structure of flat file ) .</b>
    But this time also it is giving same error ( runtime exception).
    Please tell me how can i handle using datasets .  Its Very urgentttttttt
    Please any body help meee ( If any one worked on this (pp03 T.code) ) .
    Send the code  or Inform the full detailsss as soon as possibleeee
    regards ,
    dattu malge.

    Hi,
    Go to the transaction SM35 and select your session and then click the Process Button.
    Here you select the Processing Mode as "Background".
    It is not possible to execute the same session by more than one user at a same time.
    RSBDCSUB is used to automate the processing of Batch input session.
    Cheers,
    Hakim

  • BACK GROUND SCHEDULING OF THE SESSION METHOD

    Dear experts,
    i am using session method for data transfer,i need  update the data periodically.
    how can i do this?
    i am following this method, in sm35i am processing the session in background---thruough this data is updfating at atime.
    but i wnat to schedule it...can any one give stpe by step guidse to make this possible ,,,for session method, i know t.codes sm6 and sm...but how to use them?
    guide me ........thanks in advance

    Hi,
    use the following code.
    submit rsbdcsub
              with mappe eq 'ssession name'
               exporting list to memeory and return.
    reward if helpful
    Rgds
    Umakanth

  • Call transaction and session method error

    hi,
      suppose i have 100 records, there is an error in 91 record, then my doubt is up to 90 records data is process to database or not?
    Please clear doubt
    1. if it is call transaction,
    2.if it is session method.

    hi,
    in session method if u go for fore ground process it will process record by record
    suppose if error record is entered it doesnt proceed further, u had to enter correct record
    then it allows u to proceed furtherafter procesing all the records it asks u to save
    then all records get stored uin data base tables.
    suppose if u go for back ground process in error mode,
    all the records get processed, except the error record.
    in call transaction,
      wen ever error record occurs it wont proceed further untill correct record is entered,
    finally all the records is processed it will ask u to save then only records get saved in data base.
    regards
    siva

  • Any restictions on back ground job when submit the session?

    Hello friends
    below is my code part. problem is when i execute this program in back ground the data is not picking from APQI. but in fore ground it is picking . for this SESSION submission in back ground am i missing any thing here. please suggest me , any restiction is their in back ground? if possible please send a sample code to submit SESSION automatically in background.
        SUBMIT rsbdcsub AND RETURN
                        USER sy-uname
                        WITH mappe    =  p_group
                        WITH von      =  sy-datum
                        WITH bis      =  sy-datum
                        WITH z_verarb =  'X' .
          SELECT userid credate groupid qstate FROM apqi
             INTO TABLE it_apqi
             WHERE userid  = sy-uname
             AND   credate = sy-datum
             AND   groupid = p_group
             AND   qstate  = 'E'.              "Only look for 'Error' status
       DESCRIBE TABLE it_apqi[] LINES temp.

    Codes for Submitting the session through RSBDCSUB (via Job)...
    " The function module JOB_OPEN is called to create the job.
        call function 'JOB_OPEN'
             exporting
                  delanfrep        = 'X'  "Delete job after execution
                  jobname        = fv_jobname  "Job name
             importing
                  jobcount         = fv_jobcount  "Internally generated
             exceptions
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  others           = 4.
        if sy-subrc = 0.
          submit rsbdcsub
                 with       mappe = v_filec
                 with            von = sy-datum      "From
                 with            bis = sy-datum      "To
                 with     z_verarb = 'X'
                 with         fehler = ' '
                 with      batchsys = space
                 with         logall = ' '
                 via  job          fv_jobname
                      number       fv_jobcount
                 and return.
          call function 'JOB_CLOSE'
               exporting
                    jobcount             = fv_jobcount
                    jobname              = fv_jobname
                    strtimmed            = 'X'
               exceptions
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    others               = 8.
    Hope this helps!
    Edited by: Vin on Jun 4, 2009 10:58 AM

  • Error in BDC Back Ground Processing

    Dear All,
    I am facing problem on while executing BDC program. First i am executing in Foreground method there it displaying errors occured,
    means it showing full discription or error.
    But when i used Back ground processing its displayig the full error discription like "No posting object defined for 1230/ / / " here i need full error discription.
    please do the need full.
    Regrads,
    Srinivas.

    Hi
    In background processing you cannot see the error message, for that you have to write logic for capturing messages.
    Use 'Format_Message' function module so that you can get the complete message and then you can display that on the screen.
    Hope it helps...

  • Error in my BDC SESSION METHOD

    Hi,
    I was trying work on BDC SESSION METHOD AND MY TCODE IS XK01.
    Here is my code can some one tell me where i am doing wrong becoz its not giving the output as I expected. And I am uploading a tab delimeter file.
    report ZAN_BDCVENDOR
           no standard page heading line-size 255.
    include bdcrecx1.
    DATA: I_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF RECORD OCCURS 0,
    LIFNR(016),
    BURKS(004),
    EKORG(004),
    KTOKK(004),
    AKONT(010),
    FDGRV(010),
    WAERS(005),
    END OF RECORD.
    start-of-selection.
    perform open_group.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'C:\VENDOR.TXT'
    FILETYPE                      = 'ASC'
      tables
        data_tab                      = RECORD
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT RECORD.
    perform bdc_dynpro      using 'SAPMF02K' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'USE_ZAV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  '8765'.
    perform bdc_field       using 'RF02K-BUKRS'
                                  '1000'.
    perform bdc_field       using 'RF02K-EKORG'
                                  '1000'.
    perform bdc_field       using 'RF02K-KTOKK'
                                  '0001'.
    perform bdc_field       using 'USE_ZAV'
                                  'X'.
    perform bdc_dynpro      using 'SAPMF02K' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-FDGRV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPDA'.
    perform bdc_field       using 'LFB1-AKONT'
                                  '160000'.
    perform bdc_field       using 'LFB1-FDGRV'
                                  'A1'.
    perform bdc_dynpro      using 'SAPMF02K' '0310'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFM1-WAERS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPDA'.
    perform bdc_field       using 'LFM1-WAERS'
                                  'usd'.
    perform bdc_transaction using 'XK01'.
    ENDLOOP.
    perform close_group.
                  CALL FUNCTION 'BDC_OPEN_GROUP'
                   EXPORTING
                    CLIENT                    = SY-MANDT
                    DEST                      = FILLER8
                     GROUP                     = 'SESSION1'
                    HOLDDATE                  = FILLER8
                    KEEP                      = FILLER1
                     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.
                  WRITE 'ERROR IN OPEN_GROUP'.
                  ENDIF.
                   CALL FUNCTION 'BDC_INSERT'
                   EXPORTING
                     TCODE                  = TCODE
                     POST_LOCAL             = NOVBLOCAL
                     PRINTING               = NOPRINT
                     SIMUBATCH              = ' '
                     CTUPARAMS              = ' '
                     TABLES
                       dynprotab              = I_BDCDATA
                   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.
                   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.
    I appreciate

    Hi,
    i guess, the error is due to, u didnt pass the TCODE parameter in BDC_INSERT FM.
    Try by passing it...
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    TCODE = TCODE*
    POST_LOCAL = NOVBLOCAL
    PRINTING = NOPRINT
    SIMUBATCH = ' '
    CTUPARAMS = ' '
    TABLES
    dynprotab = I_BDCDATA
    EXCEPTIONS
    INTERNAL_ERROR = 1
    NOT_OPEN = 2
    QUEUE_ERROR = 3
    TCODE_INVALID = 4
    PRINTING_INVALID = 5
    POSTING_INVALID = 6
    OTHERS = 7
    Hope it works!!
    Regards,
    Pavan

  • Error while activating ODS is not caught in the back ground job..

    Hi All,
    We have a back ground job to load data to ODS and to activate it..If there is any error while loading or activating the data, back ground job is going into loop instead of cancelling the job..As the job is going into loop we are unable to trace the error unless we cancel the job manually and checking it..We have switched off displaying any messages while doing the back ground job...also we can not set any time limit for the job as it always depends on the volume of the data.
    My requirement is , back ground job must get cancelled if there is any error while loading the ODS..Can anybody suggest any idea on this..
    Thanks for reading.
    Umamaheswar kumar

    Hi Uma,
    A few hints for running and schedule and monitoring process chains:
    - always schedule the process chain in tcode RSPC
    - check the log in RSPC for error messages, or
    - check BW monitor for the ODS concerned (tcode RSMO, tab Details)
    if anything is not working fine, the status of the corresponding load will show you the errors, warnings ...
    either in RSPC - log or RSMO.
    hope it helps.
    Regards,
    Lilly

  • Error in Back Ground processing of a report.

    Hi All,
    I have a report wherein I need to schedule it in background. Its an ALV report and it has got user defined GUI status. But for one of the selection options, only output is being displayed. Can this be scheduled in Back Ground?

    Hi all,
    Thanks for your reply.
    I  got the solution. When a program is scheduled in background, if it is written in classes and ALV grid display is used, we get this error. I am able to schedule when I change the function module to LIST_DISPLAY.

Maybe you are looking for

  • Unable to load a class specified in your ejb-jar.xml

    I was trying an example on entity bean CMP, i created the bean and tried to deploy it.I got the following error :- Exception:weblogic.management.ApplicationException: prepare failed for CMP Module: CMP Error: Exception preparing module: EJBModule(CMP

  • Error when re-scheduling a report in WebI XI 3.1 SP2

    Hi, Im running BOE XI3.1 SP2 and I get that error when re-scheduling a report in WebI. We have just recently patched the system to SP2. Any idea what this error relates to? Thanks Frank

  • IWeb text colors not as specified

    I've got a site that works fine in almost every regard, save one. The text colors do not seem to stay for certain menu items. I've created a navigation menu of six words: home, projects, about, and so on. http://www.christopherosolin.com/COD/Southpaw

  • How to setup a different user/group  menu language than the server?

    Hi, I want to keep my server environment (menus) in English. The users use Spanish and French. Is it possible to do in Work group manager? thanks

  • SAPconnect: Address type

    iam using the function module SO_OBJECT_SEND and prg RSCONN01 to send the report output to external user thru internet mail. when iam executing only a meesage is displayed as delivered message. please help me in order to find the report output . wher