Error Files in BDC

Hi,
  I had done an uploading using call transaction method.
I had handled the error records in Exel sheet. But the requirement is to show
only the record having the error field.
For example if we have an error record like
Rec no     date          Begin balance      ending balance     posting date
75     20070426      85000                 90000            20070426
if there is any error in date it must display only the date field not the whole record..like that if there is any error in balance it must show only the balance field in excel sheet .
Iam attaching the code below..          
*&      Form  CALL_TRANSACTION
FORM call_transaction.
  DATA: l_index LIKE sy-tabix.
  CALL TRANSACTION  c_tcode USING bdcdata
                            MODE c_mode
                            MESSAGES INTO messtab.
*POPULATE THE ERROR RECORDS INTO INTERNAL TABLE
  IF SY-SUBRC NE 0.
    GU_DOWNLOAD-HBKID = GU_UPLOAD-HBKID.
   GU_DOWNLOAD-HBKID = GU_UPLOAD-HBKID.
    GU_DOWNLOAD-HKTID = GU_UPLOAD-HKTID.
    GU_DOWNLOAD-AZNUM = GU_UPLOAD-AZNUM.
    GU_DOWNLOAD-AZDAT = GU_UPLOAD-AZDAT.
    GU_DOWNLOAD-ESALD = GU_UPLOAD-ESALD.
    GU_DOWNLOAD-SSALD = GU_UPLOAD-SSALD.
    GU_DOWNLOAD-BUDTM = GU_UPLOAD-BUDTM.
    GU_DOWNLOAD-MNAM1 = GU_UPLOAD-MNAM1.
    GU_DOWNLOAD-JNAME = GU_UPLOAD-JNAME.
    GU_DOWNLOAD-VGMAN = GU_UPLOAD-VGMAN.
    GU_DOWNLOAD-VALUT = GU_UPLOAD-VALUT.
    GU_DOWNLOAD-KWBTR = GU_UPLOAD-KWBTR.
    GU_DOWNLOAD-CHECT_KF = GU_UPLOAD-CHECT_KF.
    APPEND GU_DOWNLOAD.
*DISPLAY THE PROGRESS OF PROCESS
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
   PERCENTAGE       = 0
   TEXT             = 'Downloading is in process'.
*DOWNLOADING THE ERROR RECORD
    LV_OUT = P_FNAME2.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME               =  LV_OUT
        WRITE_FIELD_SEPARATOR  =      'X'
      TABLES
        DATA_TAB                =  GU_DOWNLOAD.
ENDIF.
  IF NOT messtab[] IS INITIAL.
    PERFORM format_message.
  ENDIF.
ENDFORM.                    " CALL_TRANSACTION
*&      Form  DISPLAY-DATA
FORM display-data.
  SKIP.
  WRITE: 'SY-SUBRC' , sy-subrc.
ENDFORM.                    " DISPLAY-DATA

Hi Vijay,
Go through this program u can understand very well.
rePORT ymmbdcmm01
       NO STANDARD PAGE HEADING LINE-SIZE 255.
*&        Table Declarations                                          *
TABLES:rmmg1,makt,mara,mvke, marc,mbew,t100.
TYPE-POOLS: truxs.
DATA: it_raw TYPE truxs_t_text_data.
*&        Data Declarations                                           *
DATA:
     BEGIN OF t_data OCCURS 0,
           data TYPE string,
     END   OF t_data.
DATA:BEGIN OF it_mess OCCURS 0,
  msgtyp(5),
   lms(200),
   msgv1(50),
  END OF it_mess.
DATA: BEGIN OF it_itab OCCURS 0,
        matnr TYPE rmmg1-matnr,
        mbrsh TYPE rmmg1-mbrsh,
        mtart TYPE rmmg1-mtart,
        werks TYPE rmmg1-werks,
        lgort TYPE rmmg1-lgort,
        vkorg TYPE rmmg1-vkorg,
        vtweg TYPE rmmg1-vtweg,
        maktx TYPE makt-maktx,
        meins TYPE mara-meins,
        matkl TYPE mara-matkl,
        spart TYPE mara-spart,
      GEWEI TYPE MARA-GEWEI,
        dwerk TYPE mvke-dwerk,
        versg TYPE mvke-versg,
        mtpos TYPE mvke-mtpos,
        mtvfp TYPE marc-mtvfp,
        tragr TYPE mara-tragr,
        ladgr TYPE marc-ladgr,
        sernp TYPE marc-sernp,
        txline(25), "added
      kordb ,
        mprof TYPE mara-mprof,
        ekgrp TYPE marc-ekgrp,
        dismm TYPE marc-dismm,
        dispo TYPE marc-dispo,
        disls TYPE marc-disls,
        mabst(13) TYPE c,
        beskz TYPE marc-beskz,
        sobsl TYPE marc-sobsl,
        lgpro TYPE marc-lgpro,
        dzeit TYPE c,
        plifz(3) TYPE c,
        webaz TYPE c,
        fhori TYPE marc-fhori,
        eisbe TYPE c,
        strgr(2) TYPE c,
        vrmod TYPE c,
        vint1(3),
        vint2(3),
        wzeit(3),
        sbdkz TYPE marc-sbdkz,
        bklas TYPE mbew-bklas,
       vprsv TYPE mbew-vprsv,
        verpr(11),
       peinh TYPE c,
        ekalr TYPE mbew-ekalr,
        losgr TYPE c,
        RGEKZ(1),
        fevor(3),
      END OF it_itab.
*decl of internal table of table control for BDCDATA & BDCMSGCOLL
DATA : BEGIN OF bdcdata OCCURS 0.
        INCLUDE STRUCTURE bdcdata.
DATA: END OF bdcdata.
DATA:it_msgtab TYPE STANDARD TABLE OF  bdcmsgcoll WITH HEADER LINE,
     it_msgtab1 TYPE STANDARD TABLE OF bdcmsgcoll WITH HEADER LINE.
DATA : fld(50) TYPE c,
       cnt(2) TYPE n,
      l_mstring(150).
START-OF-SELECTION.
*&        File uploading  from  xlsheet  to sap                                          *
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR        =
      i_line_header            =  'X'
      i_tab_raw_data           =  it_raw
      i_filename               =  'C:\Documents and Settings\sapthamm\Desktop\mm02.xls'
    TABLES
      i_tab_converted_data     = it_itab
   EXCEPTIONS
      conversion_failed        = 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.
*&        Splitting the Internal Table                                *
  LOOP AT t_data.
    SPLIT t_data-data AT cl_abap_char_utilities=>horizontal_tab INTO
       it_itab-matnr
       it_itab-mbrsh
       it_itab-mtart
       it_itab-werks
       it_itab-lgort
       it_itab-vkorg
       it_itab-vtweg
       it_itab-maktx
       it_itab-meins
       it_itab-matkl
       it_itab-spart
       it_itab-GEWEI
       it_itab-dwerk
       it_itab-versg
       it_itab-mtpos
       it_itab-mtvfp
       it_itab-tragr
       it_itab-ladgr
       it_itab-sernp
       it_itab-mprof
       it_itab-ekgrp
       it_itab-dismm
       it_itab-dispo
       it_itab-disls
       it_itab-mabst
       it_itab-beskz
       it_itab-sobsl
       it_itab-lgpro
       it_itab-dzeit
       it_itab-plifz
       it_itab-webaz
       it_itab-fhori
       it_itab-eisbe
       it_itab-strgr
       it_itab-vrmod
       it_itab-vint1
       it_itab-vint2
       it_itab-wzeit
       it_itab-sbdkz
       it_itab-bklas
    it_itab-vprsv
      it_itab-peinh
       it_itab-ekalr
       it_itab-losgr
    APPEND it_itab.
    CLEAR: it_itab,
           t_data-data.
  ENDLOOP.
*perform open_dataset using dataset.
*perform open_group.
*do.
*read dataset dataset into it_itab.
*if sy-subrc <> 0. exit. endif.
*&        it_itabing of Material Type-HALB                                  *
  LOOP AT it_itab.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '0060'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'RMMG1-MATNR'
                                  it_itab-matnr.
    PERFORM bdc_field       USING 'RMMG1-MBRSH'
                                  it_itab-mbrsh.
    PERFORM bdc_field       USING 'RMMG1-MTART'
                                  it_itab-mtart.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(17)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=P+'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(01)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(02)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(04)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(05)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(06)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(08)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(09)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(12)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(13)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(14)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(15)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(17)'
                                  'X'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(09)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=ENTR'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(01)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(02)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(06)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(07)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(08)'
                                  'X'.
    PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(09)'
                                  'X'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '0080'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'RMMG1-VTWEG'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=ENTR'.
    PERFORM bdc_field       USING 'RMMG1-WERKS'
                                  it_itab-werks.
    PERFORM bdc_field       USING 'RMMG1-LGORT'
                                  it_itab-lgort.
    PERFORM bdc_field       USING 'RMMG1-VKORG'
                                  it_itab-vkorg.
    PERFORM bdc_field       USING 'RMMG1-VTWEG'
                                  it_itab-vtweg.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4004'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MARA-SPART'.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MARA-MATKL'
                                  it_itab-matkl.
    PERFORM bdc_field       USING 'MARA-SPART'
                                  it_itab-spart.
    PERFORM bdc_field       USING 'MARA-GEWEI'
                                  'kg'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4004'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MARA-SPART'
                                  it_itab-spart.
    PERFORM bdc_field       USING 'MVKE-DWERK'
                                  it_itab-dwerk.
    PERFORM bdc_field       USING 'MARA-MATKL'
                                  it_itab-matkl.
    PERFORM bdc_field       USING 'MVKE-SKTOF'
                                  'X'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MG03STEUER-TAXKM(02)'.
    PERFORM bdc_field       USING 'MG03STEUER-TAXKM(01)'
                                  '0'.
    PERFORM bdc_field       USING 'MG03STEUER-TAXKM(02)'
                                  '1'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4200'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
*perform bdc_field       using 'MAKT-MAKTX'
                             it_itab-MAKTX_040.
*perform bdc_field       using 'BDC_CURSOR'
                             'MG03STEUER-TAXKM(05)'.
    PERFORM bdc_field       USING 'MG03STEUER-TAXKM(03)'
                                  '1'.
    PERFORM bdc_field       USING 'MG03STEUER-TAXKM(04)'
                                  '1'.
    PERFORM bdc_field       USING 'MG03STEUER-TAXKM(05)'
                                  '0'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MARA-SPART'
                                  it_itab-spart.
    PERFORM bdc_field       USING 'MVKE-DWERK'
                                  it_itab-dwerk.
    PERFORM bdc_field       USING 'MARA-MATKL'
                                  it_itab-matkl.
    PERFORM bdc_field       USING 'MVKE-SKTOF'
                                  'X'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MVKE-MTPOS'.
    PERFORM bdc_field       USING 'MVKE-VERSG'
                                  it_itab-versg.
    PERFORM bdc_field       USING 'MVKE-MTPOS'
                                  it_itab-mtpos.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MARA-GEWEI'
                                  'KG'.
    PERFORM bdc_field       USING 'MARC-MTVFP'
                                  it_itab-mtvfp.
    PERFORM bdc_field       USING 'MARA-TRAGR'
                                  it_itab-tragr.
    PERFORM bdc_field       USING 'MARC-LADGR'
                                  it_itab-ladgr.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MARC-SERNP'.
    PERFORM bdc_field       USING 'MARC-SERNP'
                                  it_itab-sernp.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4040'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=LTEX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'RSTXT-TXLINE(02)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=TXVB'.
    PERFORM bdc_field       USING 'RSTXT-TXLINE(02)'
                                  'pcb assembly'.
    PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'RSTXT-TXLINE(02)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=TXBA'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4040'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=SP09'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MARC-EKGRP'
                                  it_itab-ekgrp.
    PERFORM bdc_field       USING 'MARA-MATKL'
                                  it_itab-matkl.
    PERFORM bdc_field       USING 'MARC-KORDB'
                                  'X'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MARA-MPROF'.
    PERFORM bdc_field       USING 'MARA-MPROF'
                                  it_itab-mprof.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MARC-EKGRP'
                                  it_itab-ekgrp.
    PERFORM bdc_field       USING 'MARC-DISMM'
                                  it_itab-dismm.
    PERFORM bdc_field       USING 'MARC-DISPO'
                                  it_itab-dispo.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MARC-MABST'.
    PERFORM bdc_field       USING 'MARC-DISLS'
                                  it_itab-disls.
    PERFORM bdc_field       USING 'MARC-MABST'
                                  it_itab-mabst.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARC-BESKZ'
                                  it_itab-beskz.
    PERFORM bdc_field       USING 'MARC-SOBSL'
                                  it_itab-sobsl.
    PERFORM bdc_field       USING 'MARC-LGPRO'
                                  it_itab-lgpro.
    if it_itab-sernp = 'TJSL'.
    PERFORM bdc_field       USING 'MARC-RGEKZ'
    ELSE.
    PERFORM bdc_field       USING 'MARC-RGEKZ'
                                  '1'.
    ENDIF.
    PERFORM bdc_field       USING 'MARC-DZEIT'
                                  it_itab-dzeit.
    PERFORM bdc_field       USING 'MARC-PLIFZ'
                                  it_itab-plifz.
    PERFORM bdc_field       USING 'MARC-WEBAZ'
                                  it_itab-webaz.
    PERFORM bdc_field       USING 'MARC-FHORI'
                                  it_itab-fhori.
    PERFORM bdc_field       USING 'MARC-EISBE'
                                  it_itab-eisbe.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARC-PERKZ'
                                  'M'.
    PERFORM bdc_field       USING 'MARC-STRGR'
                                  it_itab-strgr.
    PERFORM bdc_field       USING 'MARC-VRMOD'
                                  it_itab-vrmod.
    PERFORM bdc_field       USING 'MARC-VINT1'
                                  it_itab-vint1.
    PERFORM bdc_field       USING 'MARC-VINT2'
                                  it_itab-vint2.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MARC-WZEIT'.
    PERFORM bdc_field       USING 'MARC-MTVFP'
                                  it_itab-mtvfp.
    PERFORM bdc_field       USING 'MARC-WZEIT'
                                  it_itab-wzeit.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MARC-SBDKZ'.
    PERFORM bdc_field       USING 'MARC-SBDKZ'
                                  it_itab-sbdkz.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
     PERFORM bdc_field       USING 'MARC-FEVOR'
                                   '001'.
    PERFORM bdc_field       USING 'MARC-LGPRO'
                                  it_itab-lgpro.
    PERFORM bdc_field       USING 'MARC-SERNP'
                                  it_itab-sernp.
    PERFORM bdc_field       USING 'MARC-DZEIT'
                                  it_itab-dzeit.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
*perform bdc_field       using 'MARA-IPRKZ'
                              it_itab-IPRKZ.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-GEWEI'
                                  'KG'.
    PERFORM bdc_field       USING 'MARC-SERNP'
                                  it_itab-sernp.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MARA-SPART'
                                  it_itab-spart.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MBEW-VPRSV'.
    PERFORM bdc_field       USING 'MBEW-BKLAS'
                                  it_itab-bklas.
*perform bdc_field       using 'MBEW-EKLAS'
                             it_itab-EKLAS.
    PERFORM bdc_field       USING 'MBEW-VPRSV'
                                  'v'.
    PERFORM bdc_field       USING 'MBEW-PEINH'
                                  '1'.
perform bdc_field       using 'MBEW-VERPR'
                              it_itab-VERPR.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'MARA-MEINS'
                                  it_itab-meins.
    PERFORM bdc_field       USING 'MBEW-EKALR'
                                  'X'.
    PERFORM bdc_field       USING 'MARC-AWSLS'
                                  '000001'.
    PERFORM bdc_field       USING 'MARC-LOSGR'
                                  '1'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'MAKT-MAKTX'
                                  it_itab-maktx.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MBEW-ZPLPR'.
*perform bdc_field       using 'MBEW-ZPLPR'
                             '6000'.
    PERFORM bdc_field       USING 'MBEW-BKLAS'
                                  it_itab-bklas.
    PERFORM bdc_field       USING 'MBEW-VPRSV'
                                  'V'.
    PERFORM bdc_field       USING 'MBEW-PEINH'
                                   '1'.
    PERFORM bdc_dynpro      USING 'SAPLSPO1' '0300'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=YES'.
    CALL TRANSACTION 'MM01' USING bdcdata MODE 'A'
                                          UPDATE 'S'
                                         MESSAGES  INTO it_msgtab.
    CLEAR bdcdata[].
    CLEAR it_itab.
PERFORM error.
  ENDLOOP.
*&        Declaration of Error Handling                               *
   i
   it_msgtab1-msgv1 =  it_msgtab-msgv1.
   it_msgtab1-msgv2 =  it_msgtab-msgv2.
   it_msgtab1-msgv3 =  it_msgtab-msgv3.
   APPEND it_msgtab1.
ENDLOOP.
download error message to a file by using function module
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
   BIN_FILESIZE                    =
      filename                        = 'C:\Documents and Settings\sapthamm\Desktop\error.xls'
     filetype                        = 'ASC'
   APPEND                          = ' '
     write_field_separator           = 'X'
   HEADER                          = '00'
   TRUNC_TRAILING_BLANKS           = ' '
   WRITE_LF                        = 'X'
   COL_SELECT                      = ' '
   COL_SELECT_MASK                 = ' '
   DAT_MODE                        = ' '
   CONFIRM_OVERWRITE               = ' '
   NO_AUTH_CHECK                   = ' '
   CODEPAGE                        = ' '
   IGNORE_CERR                     = ABAP_TRUE
   REPLACEMENT                     = '#'
   WRITE_BOM                       = ' '
   TRUNC_TRAILING_BLANKS_EOL       = 'X'
   WK1_N_FORMAT                    = ' '
   WK1_N_SIZE                      = ' '
   WK1_T_FORMAT                    = ' '
   WK1_T_SIZE                      = ' '
   WRITE_EOL                       = ABAP_TRUE
IMPORTING
   FILELENGTH                      =
    TABLES
      data_tab                        = it_mess
   FIELDNAMES                      =
EXCEPTIONS
   FILE_WRITE_ERROR                = 1
   NO_BATCH                        = 2
   GUI_REFUSE_FILETRANSFER         = 3
   INVALID_TYPE                    = 4
   NO_AUTHORITY                    = 5
   UNKNOWN_ERROR                   = 6
   HEADER_NOT_ALLOWED              = 7
   SEPARATOR_NOT_ALLOWED           = 8
   FILESIZE_NOT_ALLOWED            = 9
   HEADER_TOO_LONG                 = 10
   DP_ERROR_CREATE                 = 11
   DP_ERROR_SEND                   = 12
   DP_ERROR_WRITE                  = 13
   UNKNOWN_DP_ERROR                = 14
   ACCESS_DENIED                   = 15
   DP_OUT_OF_MEMORY                = 16
   DISK_FULL                       = 17
   DP_TIMEOUT                      = 18
   FILE_NOT_FOUND                  = 19
   DATAPROVIDER_EXCEPTION          = 20
   CONTROL_FLUSH_ERROR             = 21
   OTHERS                          = 22
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
*&      Form  BDC_DYNPRO
      text
     -->PROGRAM    text
     -->DYNPRO     text
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO
       Insert field                                                  *
FORM bdc_field USING fnam fval.
IF FVAL <> .
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.
ENDIF.
ENDFORM.                    "BDC_FIELD
  form error.
  LOOP AT it_msgtab.
    IF it_msgtab-msgtyp = 'E'.
      SELECT SINGLE * FROM t100 WHERE sprsl = it_msgtab-msgspra
                                AND   arbgb = it_msgtab-msgid
                                AND   msgnr = it_msgtab-msgnr.
      IF sy-subrc = 0.
        l_mstring = t100-text.
        IF l_mstring CS '&1'.
          REPLACE '&1' WITH it_msgtab-msgv1 INTO l_mstring.
          REPLACE '&2' WITH it_msgtab-msgv2 INTO l_mstring.
          REPLACE '&3' WITH it_msgtab-msgv3 INTO l_mstring.
          REPLACE '&4' WITH it_msgtab-msgv4 INTO l_mstring.
        ELSE.
          REPLACE '&' WITH it_msgtab-msgv1 INTO l_mstring.
          REPLACE '&' WITH it_msgtab-msgv2 INTO l_mstring.
          REPLACE '&' WITH it_msgtab-msgv3 INTO l_mstring.
          REPLACE '&' WITH it_msgtab-msgv4 INTO l_mstring.
        ENDIF.
        CONDENSE l_mstring.
        it_mess-msgtyp = it_msgtab-msgtyp.
        it_mess-lms = l_mstring.
        it_mess-msgv1 = it_msgtab-msgv1.
        APPEND it_mess.
       WRITE: / it_msgtab-msgtyp, l_mstring(150).
      ELSE.
       WRITE: / it_msgtab.
        it_mess-msgtyp = it_msgtab-msgtyp.
        it_mess-lms = l_mstring.
        it_mess-msgv1 = it_msgtab-msgv1.
        APPEND it_mess.
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDFORM.
LOOP AT it_msgtab.
Rgds,
P.Nag

Similar Messages

  • Capturing EPC error List into a local file using BDC

    Can anyone let me know the Code for downloading the EPC check Results into a local File using BDC...[<b></b>

    You can use the function module
    EXTENDED_PROGRAM_CHECK to get the errors and warnigs of a epc for a program.
    then you can download that internal table information using GUI_DOWNLOAD fm.
    Regards,
    Ravi

  • Reg : Error in flat file in BDC

    hi friends...
    let consider 10 records in my flat file...
    suppose 5th record is error means
    In BDC Session method, what happen records before and after the error record, its get update or not ? like
    In BDC Call Transaction method, what happen records before and after the error record, its get update or not ?
    please give me some detail...
    Regards
    Selva

    Hi,
    In call transaction method you will have an option of Displaying No screens, all screens and Error screens,
    If you select No screens all other records except error records will be process and messages will be collected by an internal table of type bdcmsgcoll.
    In all screens you need to process each screen manually yourself by selecting the OK code. It is kinda like debugging. So when you encounter the error screen you can change the error data and proceed.
    When you select error screens it will stop when the error occurs. So you need to correct the error and continue with the further processing.
    Regards,
    Pramod

  • Error while importing BDC models to SharePoint from SAP

    Hi Team,
    I am facing error while importing the BDC models to SharePoint from SAP Duet environment. Please find the attached screen shot and text document for reference.
    Below are the tasks performed before importing the BDC models.
    1) SSL & STS certificated created in the SharePoint environment.
    2) Certificates are uploaded to the SAP duet environment.
    3) SSL certificate created in SAP duet environment is uploaded to Trust location in SharePoint central admin.
    Error while importing the BDC models manually through Central Admin.
    Application definition while import failed. The following error occurred: The BDC model file is not well-formed. Data at root level is invalid at. Line 1,position 1.
    C:\Program Files\Duet Enterprise\1.0>duetconfig/importbdc C:\Users\adm-in.itsupp
    ort\Desktop\Rahul\BDC\models.xml
    Starting import of models from C:\Users\adm-in.itsupport\Desktop\Rahul\BDC ...
    Attempting to import model: Account
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '48' and Position: '20'.
    Failed to import model: Account
    Attempting to import model: AccountDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: AccountDocumentStorageCategory
    Attempting to import model: AccountDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: AccountDocumentTypeStatus
    Attempting to import model: AccountDocuments
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: AccountDocuments
    Attempting to import model: AccountTitle
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: AccountTitle
    Attempting to import model: BOM
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: BOM
    Attempting to import model: Contact
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: Contact
    Attempting to import model: ContactTitle
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: ContactTitle
    Attempting to import model: CountryCode
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '48' and Position: '20'.
    Failed to import model: CountryCode
    Attempting to import model: CustomerInquiry
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: CustomerInquiry
    Attempting to import model: CustomerInquiryItem
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '44' and Position: '20'.
    Failed to import model: CustomerInquiryItem
    Attempting to import model: CustomerInquiryPartner
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '44' and Position: '20'.
    Failed to import model: CustomerInquiryPartner
    Attempting to import model: CustomerQuotation
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '49' and Position: '20'.
    Failed to import model: CustomerQuotation
    Attempting to import model: CustomerQuotationItem
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: CustomerQuotationItem
    Attempting to import model: CustomerQuotationPartner
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: CustomerQuotationPartner
    Attempting to import model: Employee
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: Employee
    Attempting to import model: InquiryItemDocument
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '49' and Position: '20'.
    Failed to import model: InquiryItemDocument
    Attempting to import model: InquiryItemDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: InquiryItemDocumentStorageCategory
    Attempting to import model: InquiryItemDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: InquiryItemDocumentTypeStatus
    Attempting to import model: JobFunction
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: JobFunction
    Attempting to import model: Product
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: Product
    Attempting to import model: ProductDocument
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '42' and Position: '20'.
    Failed to import model: ProductDocument
    Attempting to import model: ProductDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: ProductDocumentStorageCategory
    Attempting to import model: ProductDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: ProductDocumentTypeStatus
    Attempting to import model: QuotationItemDocument
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: QuotationItemDocument
    Attempting to import model: QuotationItemDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: QuotationItemDocumentStorageCategory
    Attempting to import model: QuotationItemDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: QuotationItemDocumentTypeStatus
    Attempting to import model: ReportTemplate
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '49' and Position: '20'.
    Failed to import model: ReportTemplate
    Attempting to import model: Role
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '65' and Position: '20'.
    Failed to import model: Role
    Attempting to import model: UserRoles
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '42' and Position: '20'.
    Failed to import model: UserRoles
    Attempting to import model: SAP.Office.DuetEnterprise.Workflow.UserSubscription
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '42' and Position: '20'.
    Failed to import model: SAP.Office.DuetEnterprise.Workflow.UserSubscription
    Attempting to import model: SAP.Office.DuetEnterprise.Workflow
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '11'.
    Failed to import model: SAP.Office.DuetEnterprise.Workflow
    [WARNING] Duet Enterprise configuration utility has completed importing the BDC
    models but some models could not be imported. Review the logs for detailed infor
    mation on the errors which occurred during the import operation.
    Failed to import the following models -
    Account
    AccountDocumentStorageCategory
    AccountDocumentTypeStatus
    AccountDocuments
    AccountTitle
    BOM
    Contact
    ContactTitle
    CountryCode
    CustomerInquiry
    CustomerInquiryItem
    CustomerInquiryPartner
    CustomerQuotation
    CustomerQuotationItem
    CustomerQuotationPartner
    Employee
    InquiryItemDocument
    InquiryItemDocumentStorageCategory
    InquiryItemDocumentTypeStatus
    JobFunction
    Product
    ProductDocument
    ProductDocumentStorageCategory
    ProductDocumentTypeStatus
    QuotationItemDocument
    QuotationItemDocumentStorageCategory
    QuotationItemDocumentTypeStatus
    ReportTemplate
    Role
    UserRoles
    SAP.Office.DuetEnterprise.Workflow.UserSubscription
    SAP.Office.DuetEnterprise.Workflow
    C:\Program Files\Duet Enterprise\1.0>
    C:\Program Files\Duet Enterprise\1.0>
    Qucik response is much appreciated.
    Regards,
    Rahul Reddy.

    Take a look at this blog post,
    http://brainof-dave.blogspot.com/2008/08/remote-certificate-is-invalid-according.html
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Error handling in bdc Fb01along with erros in Idoc.

    Hi,
    Can any one send me the sample code for the error handling in bdc Fb01along with erros in Idoc. Actually, mail should be sent
    Thanks
    Avi.

    Hi,
    This may help you.
    <b>FORM send_mail USING   receiver.
      CLEAR: w_lines,tbl_packing_list,tbl_object_header,
                 tbl_contents_txt, tbl_receivers.
      REFRESH:tbl_packing_list, tbl_object_header,
               tbl_contents_txt,tbl_receivers.
      SORT tbl_err.
      DELETE ADJACENT DUPLICATES FROM tbl_err COMPARING ALL FIELDS.
      IF NOT tbl_err[] IS INITIAL.
    Preparing the email.
        PERFORM prepare_email.
      ELSE.
       If sy-subrc NE 0.
          MOVE sy-subrc TO w_code.
       ENDIF.
        EXIT.
      ENDIF.
    Get  the content of header e-mail document data
      PERFORM document_data.
    Get details of the error file attached (like type of file and format)
      PERFORM packing_list.
    Get receiver mail id's
      tbl_receivers-receiver = receiver.
      tbl_receivers-rec_type = 'C'.
      tbl_receivers-express  = c_flag.
      tbl_receivers-sap_body = c_flag.
      APPEND tbl_receivers.
    Call FM to send E-mails to receivers
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                document_data              = st_document_data
                put_in_outbox              = 'X'
           TABLES
                packing_list               = tbl_packing_list
                object_header              = tbl_object_header
                contents_txt               = tbl_contents_txt
                receivers                  = tbl_receivers[]
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    ENDFORM.                    " send_mail
    *&      Form  prepare_email
          text
    -->  p1        text
    <--  p2        text
    FORM prepare_email.
    E-Mail body content
      IF NOT w_lifnr IS INITIAL.
        CONCATENATE text-015 w_docnum text-016
               INTO tbl_contents_txt-line
          SEPARATED BY space.
      ENDIF.
      APPEND tbl_contents_txt.
      CLEAR tbl_contents_txt.
    E-mail error file attachment header
      CONCATENATE text-063 text-064
                   text-065 text-066 c_comma
             INTO tbl_contents_txt-line
        SEPARATED BY c_comma.
      APPEND tbl_contents_txt.
      CLEAR tbl_contents_txt.
    E-mail error file attachment content
      LOOP AT tbl_err.
        CONCATENATE w_docnum tbl_err-v_segnum
                    tbl_err-msg tbl_err-type
          INTO tbl_contents_txt-line
          SEPARATED BY c_comma.
        CONCATENATE c_linefeed tbl_contents_txt-line c_comma
               INTO tbl_contents_txt-line.
        APPEND tbl_contents_txt.
        CLEAR tbl_contents_txt.
      ENDLOOP.
    ENDFORM.                    " prepare_email
    *&      Form  document_data
          text
    -->  p1        text
    <--  p2        text
    FORM document_data.
      CLEAR w_line.
      IF NOT w_lifnr IS INITIAL.
        CONCATENATE text-075 text-027 sy-datum sy-uzeit INTO w_line
        SEPARATED BY c_uscore.
      ENDIF.
      st_document_data-obj_name  = w_line.
      st_document_data-obj_descr = w_line.
      st_document_data-priority  = 1.
      st_document_data-obj_prio  = 1.
    ENDFORM.                    " document_data
    *&      Form  packing_list
          text
    -->  p1        text
    <--  p2        text
    FORM packing_list.
      CLEAR w_lines.
      DESCRIBE TABLE tbl_err LINES w_lines.
      READ TABLE tbl_contents_txt INDEX w_lines.
      tbl_packing_list-head_start = 1.
      tbl_packing_list-head_num   = 1.
      tbl_packing_list-body_start = 1.
      tbl_packing_list-body_num   = 1.
      tbl_packing_list-doc_type   = 'RAW'.
      APPEND tbl_packing_list.
      tbl_packing_list-head_start = 1.
      tbl_packing_list-head_num   = 0.
      tbl_packing_list-body_start = 2.
      tbl_packing_list-body_num   = w_lines + 1.
      tbl_packing_list-doc_type   = 'CSV'.
      tbl_packing_list-obj_descr  = 'Error_Attachment'(060).
      IF NOT w_lifnr IS INITIAL.
        tbl_packing_list-obj_name   = 'Idoc Number is'(072).
      ENDIF.
      tbl_packing_list-doc_size   = 255 * ( w_lines + 1 ).
      APPEND tbl_packing_list.
    ENDFORM.                    " packing_list
    </b>
    Thanks
    Manju.

  • Error Records in BDC Call transaction

    Hi.....
         I am new to BDC concept... Can any of u tell me how to collect error records in BDC  Call transaction... I already collected error messages through BDCMSGCOL... but  i dont know how to collect those error records... here i am using two different flat files for header and line item...  and kindly tell me if there is an error in line item how to get it so with relevent header details...
    thanks,

    Hi,
          LOOP AT t_bdcmsgcoll INTO w_bdcmsgcoll.
            PERFORM f_format_msg USING w_bdcmsgcoll CHANGING w_return.
         ENDLOOP.
    Form format_msg 
      DATA : l_mstring(480).
      CALL FUNCTION 'FORMAT_MESSAGE'                          
        EXPORTING
          id        = w_bdcmsgcoll-msgid
          lang      = w_bdcmsgcoll-msgspra
          no        = w_bdcmsgcoll-msgnr
          v1        = w_bdcmsgcoll-msgv1
          v2        = w_bdcmsgcoll-msgv2
          v3        = w_bdcmsgcoll-msgv3
          v4        = w_bdcmsgcoll-msgv4
        IMPORTING
          msg       = l_mstring
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.
    End format_msg 
    you can use the l_mstring to process further and pass to the bapiret2 table
    Regards,
    Vijaya

  • Error is not getting logged in error file while running dataload maxl

    Hello All,
    I am running a Maxl to load data in a database which is running fine but noted a weird issue that the errors are not getting logged in error file. Suppose i changed the name of data file then it should give error something like
    ERROR - {Error no.} - Unable to open file {filename} which should be logged in error file but my error file is still empty.
    I am using the Maxl -
    import database {dbname} data from data_file {filename} on error append to "D:/Error/errorfile.err";
    Any inputs please...
    Thanks

    Try to use single quotes and the backslash. It may depend on the operating system and /or the version of essbase used. This is an example from one of my maxls:
    on error append to 'D:\Hyperion\logfiles\myload.err';
    cheers, chris

  • Error: "File couldn't be opened for writing" with CinemaDNG sequence

    Using a Premiere Pro > After Effects workflow with my colorist.
    I created a project in Premiere CS6 and used MOV transcodes because Premiere CS6 does not read CinemaDNG sequences. I do not have CC installed on my computer. My colorist, on his computer (we are both using Mavericks), imported the .prproj into AE CS6. We tried to replace MOV files with CinemaDNG sequences, and AE returned this error:
    After Effects error: File couldn't be opened for writing: "[file path]". ( 3 :: 0 )
    Normally when you replace footage with a CinemaDNG sequence in AE, Adobe Camera Raw pops open so you can make changes before the file is important. I have never seen this error before.
    My colorist has CC installed as well as CS6, so we tried that instead.
    Colorist opened the Premiere CS6 project in Premiere CC, creating a new Premiere CC project. Replaced MOV files with CinemaDNG sequences within Premiere CC with no error, project plays fine in Premiere CC. Finally! So we imported the new Premiere CC project in AE CC, and all linked CinemaDNG sequences appear as color bars (unlinked footage). When testing to import a CinemaDNG sequence, AE CC returned the same error as AE CS6.
    So we tried opening the same CinemaDNG files in Photoshop CS6 and Photoshop CC to see if there was an error with Camera Raw. Both versions of Photoshop open the CinemaDNG files correctly in Camera Raw (version 8.3). So now we have CinemaDNG files functioning properly in Premiere Pro, Photoshop, but... not AE?
    Tried replicating this on a second, Mountain Lion computer with both versions of AE, and returned the same issue.
    CinemaDNG files from a different source DID open in AE CC and AE CS6 on both computers, which leads me to believe there is some kind of permissions/metadata issue in this particular set of CinemaDNG files I'm using that's causing problems for AE, but NOT Premiere Pro or Photoshop. Anyone experience anything like this?

    try the "oddball problems" fix:
    http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Why does FCP error "File Not Found" when I try to open my sequences????

    I recently updated all of my software and the following day I started getting errors "file not found" when I would try to open a sequence. Now all of my sequences are being lost and I am losing time and money because I can't meet deadlines! This *****!!! With one sequence I had to reedit the entire thing from scratch and when I did for some reason the old one would then open. But the next time I opened FCP both sequences would error out. Following the "file not found" the computer responds with another error "error: out of memory" What the devil is going on with this crap?

    I seem to have figured out what my problem was. After trying to build the same project (that failed on the Mac Pro) on my laptop and encountering the same errors, I realized that the problem had to be with one or more of my assets and not my new version of FCP, since my PowerBook is running FCP 5.0.4 and my Mac Pro is running FCP 5.1.2.
    In my case the "corrupt" file was a Photoshop PSD file. In the past (FCP 4.5) I was able to use PSD files with hidden layers. I would merge the visible layers into one layer, keep the hidden layers and save the file. Once in FCP, I imported the PSD file and kept right on truckin'. I've done this for years. For some reason now with FCP 5.1.2 (and 5.0.4), that's not flying anymore. Once I "Flattened" the PSD file in Photoshop (deleting all of the hidden layers) I was able to build the project without any errors.
    Interestingly, the technique I used to figure out which file was "corrupt" also allowed me to salvage parts of some of my "lost" sequences. I saw this posted in a forum at Creative Cow (creativecow.net). Basically, I opened up the project, clicked the OK button after the File Not Found error, went into the Browser, right clicked on the offending sequence, selected "Make Offline". When I double clicked the sequence it opened in the timeline with all of my assets offline. Then in the timeline, one by one, I right clicked on each clip and selected "Reconnect Media". Once I linked up the media, if I didn't get an error message, I would save as a new project (to salvage what WAS working), and go to the next clip. I did this until I found the offending PSD files.
    I hope this helps. Now it's time to play "catch-up"
    Mac Pro 3Ghz, 1GB RAM, ATI Radeon X1900 XT   Mac OS X (10.4.8)  

  • [SOLVED] == ERROR: file not found: `/sbin/dmsetup'

    [EDIT] A much simpler way to deal with this is to explicitly ignore the kernel update during a full system update:
    pacman -Syu --ignore linux
    Then explicitly update the kernel alone:
    pacman -S linux
    [EDIT] First, after a full system update I had to move the STUB kernel image from the UEFI directory back to /boot, them recreate the images a second time. The systemd service moved it back to the UEFI directory.
    [EDIT] The use of 'mdadm_udev' in HOOKS= also seems to be no longer just 'preferred' to the 'mdadm' hook but instead is now mandatory.
    I've read the news item...
    Changes to LVM
    2013-02-12 - Thomas Bächler
    With lvm2 2.02.98-3, we now utilize lvmetad to activate LVM volumes automatically. This implies the following changes:
        The lvm2 initramfs hook now requires the udev hook.
        The use_lvmetad = 1 must be set in /etc/lvm/lvm.conf. This is the default now - if you have a lvm.conf.pacnew file, you must merge this change.
        You can restrict the volumes that are activated automatically by setting the auto_activation_volume_list in /etc/lvm/lvm.conf. If in doubt, leave this option commented out.
        If you need monitoring (needed for snapshots), run systemctl enable lvm-monitoring.service.
        The lvmwait kernel command line option is no longer needed and has no effect.
    If you run pacman -Syu and update device-mapper, linux and lvm2 at the same time, you will get an error message that /sbin/dmsetup is missing. Run mkinitcpio -p linux again after the update to avoid any problems.
    ...and I do get the message...
    ==> ERROR: file not found: `/sbin/dmsetup'
    ...but after a full system update with...
    pacman -Syu
    ...when I execute...
    mkinitcpio -p linux
    ...this is what I get...
    Building image from preset: 'default'
    /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ERROR:specified kernel image does not exist: `/boot/vmlinuz-linux'
    Building image from preset: 'fallback'
    /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ERROR:specified kernel image does not exist: `/boot/vmlinuz-linux'
    So of course if I reboot I get the dreaded 'No volume groups found' message.
    I should mention that I use the systemd path and service to move the kennel after it has been updated.
    Last edited by KairiTech (2013-04-07 02:45:12)

    With lvm2 2.02.98-3, we now utilize lvmetad to activate LVM volumes automatically. This implies the following changes:
        The lvm2 initramfs hook now requires the udev hook.
        The use_lvmetad = 1 must be set in /etc/lvm/lvm.conf. This is the default now - if you have a lvm.conf.pacnew file, you must merge this change.
        You can restrict the volumes that are activated automatically by setting the auto_activation_volume_list in /etc/lvm/lvm.conf. If in doubt, leave this option commented out.
        If you need monitoring (needed for snapshots), run systemctl enable lvm-monitoring.service.
        The lvmwait kernel command line option is no longer needed and has no effect.
    Just to confirm. You did all these steps, right?
    EDIT: I just noticed something:
    KairiTech wrote:HOOKS="base udev autodetect sata mdadm usbinput keymap encrypt lvm2 filesystems timestamp shutdown"
    Replace
    mdadm
    with
    mdadm_udev
    . Maybe this is nothing, but it is recommended to use this one instead of the other.
    NEW EDIT: Expecially this one
    The use_lvmetad = 1 must be set in /etc/lvm/lvm.conf. This is the default now - if you have a lvm.conf.pacnew file, you must merge this change.
    Last edited by s1ln7m4s7r (2013-03-24 20:42:55)

  • Error File not Found in CS 5.5

    When I go to open up PP CS 5.5 it provides a list of possible projects I can open up. Click on a project and it opens accordingly. However, over the past 2 days it has become problematic. I can click on the listed project but I now receive an error message: Error file not found. PP will not open up. I haven't moved any files, folders or projects around. I have simply closed the project, quit PP and then opened it again when wanting to edit. I have tried opening up the auto saved project file and I receive the same message?

    Hi Todd both your solutions (and the one suggested by Colin) works initially. Dbl click the project file and it opens PPro.  However, I tried this on another project which has a 3rd party pllugin (Smartsound Sonic Fire Pro) in it. Things get interesting with Smartsound being activated with me unable to quit out of it and I am not able to access Premier Pro. I have to Force Quit both programs. Then when I try to dbl click on the program that opened up OK the error message returns: File format not supported. There is no Smartsound file involved in this project? Same thread? New thread? many thanks for your responses

  • The dreaded "Video Error-File Not Installed" When trying to watch LiveTV in WMC

    I'm getting the following error message when trying to use Live TV in WMC:
    Video Error
    Files needed to display video are not installed or are not working correctly. Restart Windows Media Center or restart the computer.
    On this system my tuners are the Hauppauge HVR 2250 and the Hauppauge HD PVR.  It took awhile to set up, but when I click play on a channel I get 10 seconds of video, an audio loop of the same sound over & over followed by the above error message.
    I ran into this problem once before on my Home Theater HTPC when trying to access the ATI Cable Card solution.  To get that to work I had to uninstall and reinstall Playready.  I tried 3 different ways of doing this on my new build & it did
    not fix the problem.  The only fix I didn't try was the one on Ceton's website that involves a whole lot of deleting of folders.
    Since this current build doesn't have a cablecard installed, and gets the non-clear QAM stations from settop box through HD PVR, would it still be the Playready needing to be reset?  The symptoms look identical to when I had the previous problem.
    These same files play in the BeyondTV that I'm trying to migrate from, so all codecs appear to be onboard.  I am using the latest HDPVR MediaCenter driver from the Hauppauge website & the latest drivers on the HVR-2250.
    Thanks for any help!

    I had this problem after upgrading my graphics card to an AMD 5450 and the solution after a couple of days of hair pulling was one I hadn't come across before in relation to this problem.
    It turned out that the problem was caused by the screen refresh rate, it was set to 60Hz by default and I got the Video Error message but if I changed it to 50Hz then playback of recorded programs or watching live TV worked.

  • [solved] 'ERROR: file not found:' when running 'mkinitcpio -p linux'

    $ sudo mkinitcpio -p linux
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.13.5-1-ARCH
    -> Running build hook: [systemd]
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [consolefont]
    -> Running build hook: [keymap]
    ==> Generating module dependencies
    ==> Creating cat initcpio image: /boot/initramfs-linux.img
    ==> WARNING: errors were encountered during the build. The image may not be complete.
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.13.5-1-ARCH
    -> Running build hook: [systemd]
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [consolefont]
    -> Running build hook: [keymap]
    ==> Generating module dependencies
    ==> Creating cat initcpio image: /boot/initramfs-linux-fallback.img
    ==> WARNING: errors were encountered during the build. The image may not be complete.
    Things seems to work, but I'm a bit worried.
    It has just started. PS/2 atkbd stuff went fine.
    journalctl shows
    Feb 26 22:36:09 localhost systemd-udevd[62]: failed to execute '/usr/lib/udev/ata_id' 'ata_id --export /de
    Feb 26 22:36:09 localhost systemd-udevd[63]: failed to execute '/usr/lib/udev/scsi_id' 'scsi_id --export -
    Feb 26 22:36:09 localhost systemd-udevd[64]: failed to execute '/usr/lib/udev/ata_id' 'ata_id --export /de
    Feb 26 22:36:09 localhost systemd-udevd[65]: failed to execute '/usr/lib/udev/scsi_id' 'scsi_id --export -
    Feb 26 22:36:09 localhost kernel: sda: sda1 sda2 sda3 sda4
    Feb 26 22:36:09 localhost kernel: sd 0:0:0:0: [sda] Attached SCSI disk
    Feb 26 22:36:09 localhost systemd-udevd[66]: failed to execute '/usr/lib/udev/ata_id' 'ata_id --export /de
    Feb 26 22:36:09 localhost systemd-udevd[67]: failed to execute '/usr/lib/udev/scsi_id' 'scsi_id --export
    I'm using [testing] but I don't know if it matters.
    What should I post?
    Last edited by karol (2014-03-15 15:03:56)

    The systemd build hook looks like this:
    build() {
    local rules unit
    # from base
    add_binary /bin/mount
    add_binary /usr/bin/kmod /usr/bin/modprobe
    # systemd
    add_binary /usr/lib/systemd/systemd /init
    add_binary /usr/bin/systemd-tmpfiles
    # generate sysroot.mount and sysroot-usr.mount
    add_file "/usr/lib/systemd/system-generators/systemd-fstab-generator"
    # udev rules and systemd units
    map add_udev_rule "$rules" \
    50-udev-default.rules \
    60-persistent-storage.rules \
    64-btrfs.rules \
    80-drivers.rules \
    99-systemd.rules \
    map add_systemd_unit \
    ctrl-alt-del.target \
    initrd-cleanup.service \
    initrd-fs.target \
    initrd-parse-etc.service \
    initrd-root-fs.target \
    initrd-switch-root.service \
    initrd-switch-root.target \
    initrd-udevadm-cleanup-db.service \
    initrd.target \
    kmod-static-nodes.service \
    sockets.target \
    [email protected] \
    systemd-journald.service \
    systemd-tmpfiles-setup-dev.service \
    systemd-udev-trigger.service \
    systemd-udevd-control.socket \
    systemd-udevd-kernel.socket \
    systemd-udevd.service
    add_symlink "/usr/lib/systemd/system/default.target" "initrd.target"
    # libdbus needs the passwd info of the root user
    # TODO: make sure this is no longer necessary when systemctl moves to sd-bus
    add_file "/etc/nsswitch.conf"
    add_file "/etc/passwd"
    add_binary "$(readlink -f /usr/lib/libnss_files.so)"
    # udev wants /etc/group since it doesn't launch with --resolve-names=never
    add_file "/etc/group"
    Do all of those files exist on your sytemd? I'm not running testing nor systemd in my initrd, so I can't do much checking.
    Edit: You're not the only one. Bug report: https://bugs.archlinux.org/task/39059
    Last edited by Scimmia (2014-02-27 06:59:55)

  • Error: file not found

    Hello,
    I am using a labview program which already exists. The program
    inputs a file ( txt file with some numerical data) and gives the output
    file at the required location after performing some calculations to it.
    The problem is when I input my file path and run the program it always
    gives an error ' file not found'. Please help me.
    Thanks
    Laxmikanth

    Hi Laxmikanth,
    Some more info would be helpful. Such as posting a image of your program, which version of labview, platform etc.
    that being said if you are literally typing in the filepath that is the most likely source for the error. Is there a browse button visible to the right of the filepath control? If not try right clicking and under the visible menu make sure the browse button is selected. Then click on the browse button and find/select your disk file. Now run the program and see if you get the same error.
    Cheers,
    --Russ

  • Error : file not found in SharePoint 2010

    I have a problem of error "file not found" in a site collection SharePoint 2010.
        I cannot access to home page, the page of list/library/permission,etc. All pages will appear an error "file not found"
        I can access to the page of "all content"
        I can access to the site setting page, but I cannot open the link on this page. For example, I select "quick launch" in "Look and feel" section, it will show an error "file not found".
        I think I must reset my master page, but I cannot use SharePoint Designer (forbidden in my application), I cannot open the link on site setting page, and I cannot open library page to check the master page
        I can access to mobile view, and all pages work well in mobile view, but I did not find site setting page
    How could I check the master page? Or this problem has other solution?
    Thank you in advance.

    You might have referred an image or style sheet or some file from an invalid path. Check the error in detail, where you might be able to know which file or file path is not correct. Then recorrect it in the master page and then refresh the site.
    UPDATE - Can you configure the web.config to display the detailed error? Make -
    <CustomErrors Mode="Off">, CallStack="true" and
    <compilation debug="true" />
    Do an IISReset and then refresh the site.

Maybe you are looking for