Problem in the BDC program

Hi Experts,
I am trying to post data by using transaction FB01. Probelm is , its not posting the data. its not even throughing any error.
i wrote the program exactly the same of the exiting program in our system which is working. But in my new program BDC is not working. Can any one please help me in this why its not posting.  if you needed any further information please inform me. It is very urgent for me
Thanks
Ravi

Hi Naveen,
Nice to see your message. I am using the custom bdc report program. In which I am recording all the records from the internal table bdc_data and moving into the function module BDC_INSERT WITH TRANSACTION FB01 AS INPUT and bdc_data as a table input.
after executing function module sy-subrc is giving 0 with out any exception.
I am  writing the code below,
if you need any more information please let me know.
I am loading the bdc_data table with my internal table data t_data here.
LOOP AT t_data.
    ADD 1 TO w_recnt.
    IF w_recnt = 1.
      PERFORM generate_email USING '' '' '3A'.
      PERFORM generate_email USING text-m84 '' '3B'.
      PERFORM generate_email USING sy-uline+0(21) '' '3C'.
      PERFORM  dynpro USING:
               'X' 'SAPMF05A' '100',
               ' ' 'BKPF-BLDAT' w_bldat,      " Doc date
               ' ' 'BKPF-BLART' p_blart,      " Doc type
               ' ' 'BKPF-BUKRS' p_bukrs,      " Company Code
               ' ' 'BKPF-BUDAT' w_bldat,      " Posting Date
               ' ' 'BKPF-WAERS' p_waers,      " Currency
               ' ' 'BKPF-BKTXT' p_bktxt.      " Header Text
  Posting Key Debit = 50 - Credit = 40
      IF t_data-dmbtr <> 0.
        ADD t_data-dmbtr TO w_dmbtr.
        IF t_data-dmbtr > 0.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '50'.
        ELSE.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '40'.
        ENDIF.
      ELSE.
        ADD t_data-wrbtr TO w_dmbtr.
        IF t_data-wrbtr > 0.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '50'.
        ELSE.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '40'.
        ENDIF.
      ENDIF.
  G/L Account to post to
      PERFORM  dynpro USING: ' ' 'RF05A-NEWKO' t_data-saknr.
      PERFORM  dynpro USING: ' ' 'BDC_OKCODE'  '/00'.
*---- Assign current values for following loop
      r_data = t_data.
    ELSE.
      CLEAR w_pamnt.
      IF r_data-dmbtr <> 0.
        WRITE r_data-dmbtr TO w_pamnt NO-SIGN NO-GROUPING.
      ELSE.
        WRITE r_data-wrbtr TO w_pamnt NO-SIGN NO-GROUPING.
      ENDIF.
      PERFORM  dynpro USING: 'X' 'SAPMF05A' '300',
                             ' ' 'BSEG-WRBTR' w_pamnt.
  Contra Posting Key Debit = 40 - Credit =50
      IF t_data-dmbtr <> 0.
        ADD t_data-dmbtr TO w_dmbtr.
        IF t_data-dmbtr > 0.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '50'.
        ELSE.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '40'.
        ENDIF.
      ELSE.
        ADD t_data-wrbtr TO w_dmbtr.
        IF t_data-wrbtr > 0.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '50'.
        ELSE.
          PERFORM  dynpro USING: ' ' 'RF05A-NEWBS' '40'.
        ENDIF.
      ENDIF.
      PERFORM  dynpro USING: ' ' 'RF05A-NEWKO' t_data-saknr.
      PERFORM  dynpro USING: ' ' 'BDC_OKCODE'  '/00'.
  Cost Object Posting
      CASE r_data-objtp.
        WHEN 'CST'.
          PERFORM  dynpro USING: 'X' 'SAPLKACB'   '0002',
                                 ' ' 'COBL-KOSTL' r_data-kostl.
        WHEN 'FND'.
          PERFORM  dynpro USING: 'X' 'SAPLKACB'   '0002',
                                 ' ' 'COBL-GEBER' r_data-kostl.
        WHEN 'WBS'.
          PERFORM  dynpro USING: 'X' 'SAPLKACB'   '0002',
                                 ' ' 'COBL-PS_POSID' r_data-projk.
      ENDCASE.
      PERFORM  dynpro USING: ' ' 'BDC_OKCODE'  '=ENTE'.
      CLEAR r_data.
      r_data = t_data.
    ENDIF.
  ENDLOOP.
Thanks
Ravi

Similar Messages

  • Problem in the BDC program to upload the data from a flat file.

    Hi,
    I am required to write a BDC program to upload the data from a flat file. The conditions are as mentioned below:-
    1) Selection Screen will be prompted to user and user needs to provide:- File Path on presentation server (with F4 help for this obligatory parameter) and File Separator e.g. @,#,$,%,... etc(fields in the file will be separated by using this special character) or fields may be separated by tab(tab delimited).
    2) Finally after the data is uploaded, following messages need to be displayed:-
    a) Total Number of records successfully uploaded.
    b) Session Name
    c) Number of Sessions created.
    Problem is when each record is fetched from flat file, the record needs to be split into individual fields separated by delimiter or in case tab separated, then proceeding in usual manner.
    It would be great if you provide me either the logic, pseudocode, or sample code for this BDC program.
    Thanks,

    Here is an example program,  if you require the delimitor to be a TAB, then enter TAB on the selection screen, if you require the delimitor to be a comma, slash, pipe, whatever, then simply enter that value.  This example is simply the uploading of the file, not the BDC, I assume that you know what to do once you have the data into the internal table.
    REPORT zrich_0001.
    TYPES: BEGIN OF ttab,
            rec TYPE string,
           END OF ttab.
    TYPES: BEGIN OF tdat,
           fld1(10) TYPE c,
           fld2(10) TYPE c,
           fld3(10) TYPE c,
           fld4(10) TYPE c,
           END OF tdat.
    DATA: itab TYPE TABLE OF ttab.
    data: xtab like line of itab.
    DATA: idat TYPE TABLE OF tdat.
    data: xdat like line of idat.
    DATA: file_str TYPE string.
    DATA: delimitor TYPE string.
    PARAMETERS: p_file TYPE localfile.
    PARAMETERS: p_del(5) TYPE c.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      DATA: ifiletab TYPE filetable.
      DATA: xfiletab LIKE LINE OF ifiletab.
      DATA: rc TYPE i.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        CHANGING
          file_table = ifiletab
          rc         = rc.
      READ TABLE ifiletab INTO xfiletab INDEX 1.
      IF sy-subrc = 0.
        p_file = xfiletab-filename.
      ENDIF.
    START-OF-SELECTION.
      TRANSLATE p_del TO UPPER CASE.
      CASE p_del.
        WHEN 'TAB'.
          delimitor = cl_abap_char_utilities=>horizontal_tab.
        WHEN others.
          delimitor = p_del.
      ENDCASE.
      file_str = p_file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename = file_str
        CHANGING
          data_tab = itab.
      LOOP AT itab into xtab.
        CLEAR xdat.
        SPLIT xtab-rec AT delimitor INTO xdat-fld1
                                         xdat-fld2
                                         xdat-fld3
                                         xdat-fld4.
        APPEND xdat to idat.
      ENDLOOP.
      LOOP AT idat into xdat.
        WRITE:/ xdat-fld1, xdat-fld2, xdat-fld3, xdat-fld4.
      ENDLOOP.
    Regards,
    Rich Heilman

  • What is the bdc program for vendor master?

    what is the bdc program for vendor master?

    Hi,
    Find the code here.
    And do create your text file data in the order of itab structure.
    {report ZBDC_XK01
           no standard page heading line-size 255.
    data: bdcdata like bdcdata occurs 0 with header line.
    data: begin of itab occurs 0,
    lifnr like lfa1-lifnr,
    bukrs like RF02K-bukrs,
    ekorg like RF02K-ekorg,
    ktokk like RF02K-ktokk,
    anred like lfa1-anred,
    name1 like lfa1-name1,
    sortl like lfa1-sortl,
    land1 like lfa1-land1,
    spras like lfa1-spras,
    waers like lfm1-waers,
    end of itab.
    selection-screen begin of block blk1 with frame.
      parameters: p_file like rlgrap-filename OBLIGATORY.
    selection-screen end of block blk1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      perform f4_help_p_file.
    start-of-selection.
      perform get_data.
      perform upload.
    END-OF-SELECTION.
    *&      Form  f4_help_p_file
          text
    -->  p1        text
    <--  p2        text
    form f4_help_p_file .
    data: v_file like p_file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = v_file.
      CHECK sy-subrc EQ 0.
      p_file = v_file.
    endform.                    " f4_help_p_file
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .
    data: s_file type string.
      s_file = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = s_file
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
       DAT_MODE                      = 'D'
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      = itab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    stop.
    ENDIF.
    endform.                    " get_data
    *&      Form  upload
          text
    -->  p1        text
    <--  p2        text
    form upload .
    loop at itab.
    perform bdc_dynpro      using 'SAPMF02K' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'  itab-lifnr.
    perform bdc_field       using 'RF02K-BUKRS' '0001'.
    perform bdc_field       using 'RF02K-EKORG'  '1000'.
    perform bdc_field       using 'RF02K-KTOKK' '0001'.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-SPRAS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-ANRED' itab-anred.
    perform bdc_field       using 'LFA1-NAME1' itab-name1.
    perform bdc_field       using 'LFA1-SORTL' itab-sortl.
    perform bdc_field       using 'LFA1-LAND1' itab-land1.
    perform bdc_field       using 'LFA1-SPRAS' itab-spras.
    perform bdc_dynpro      using 'SAPMF02K' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02K' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-AKONT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0215'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-ZTERM'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB5-MAHNA'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0310'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFM1-WAERS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFM1-WAERS' itab-waers.
    perform bdc_dynpro      using 'SAPMF02K' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    call transaction 'XK01' using bdcdata mode 'A'.
    refresh bdcdata.
    clear itab.
    endloop.
    endform.                    " upload
    *&      Form  bdc_dynpro
          text
         -->P_0126   text
         -->P_0127   text
    form bdc_dynpro  using   program dynpro.
    clear bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0316   text
         -->P_0317   text
    form bdc_field  using    fnam fval.
    clear bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      append bdcdata.
    endform.                    " bdc_field}
    Reward points if you find it helpful
    Thanks,
    Prasanna

  • Problem in the BDC Table Control for the T.Code VA01

    Hi,
      I faced probelm in the BDC of the VA01. In the Table Control
    the records are entered upto 12 line items. after 13th line item overwrites the first record. How to solve the Problem.
    Please help me.

    or use this
    Internal table definition *
    data : begin of bdcdata occurs 0.
            include structure bdcdata.
    data : end of bdcdata.
    data: begin of messtab occurs 0.
            include structure bdcmsgcoll.
    data: end of messtab.
    data: v_chr_opengrp type c,
          r_matnr like mara-matnr,                       "variable for material conversion
          r_werks like marc-werks,                       "variable for plant
          v_str_fname   type string.
    data: begin of count2,
          inrec(9) type n,                               " input I_MATERIAL count
          create(9) type n,                              " create count
          error(9) type n,                               " error count
          bdc(9) type n,                                 " count of BDC creates
          end of count2.
    types: begin of ty_source,
    partn_numb(10) type n ,"Customer Number 1
    ref(035),
    sales_org(4) , "Sales Organization
    distr_chan(2) , "Distribution Channel
    division(002), "DIVISION
    doc_type(4) , "Sales Document Type
    purch_no(020), "Purchase order
    material like vbap-matnr,
    reqqty(018),
    reqdate(010),
    end of ty_source,
    begin of ty_header ,
    partn_numb(10) ,"Customer Number 1
    ref(035),
    sales_org(4) , "Sales Organization
    distr_chan(2) , "Distribution Channel
    division(002), "DIVISION
    doc_type(4) , "Sales Document Type
    purch_no(020), "Purchase order
    end of ty_header,
    begin of ty_item,
    partn_numb(10) ,"Customer Number 1
    ref(035),
    material like vbap-matnr,
    reqqty(018),
    reqdate(010),
    end of ty_item.
    data : msg(240) type c, " Return Message
    e_rec(8) type c, " Error Records Counter
    rec_no(8) type c, " Records Number Indicator
    s_rec(8) type c, " Successful Records Counter
    t_rec(8) type c, " Total Records Counter
    v_matnr like mara-matnr.
    data: val(2) type n value 01.
    data : begin of bdc_itab occurs 0.
            include structure bdcdata.
    data : end of bdc_itab.
    data : t_source type standard table of ty_source   with header line,
    t_header type standard table of ty_header initial size 1,
    t_item type standard table of ty_item initial size 1,
    t_target type standard table of bdcdata initial size 1.
    data : w_source type ty_source,
    w_source1 type ty_source,
    w_header type ty_header,
    w_item type ty_item,
    w_target type bdcdata,
    count type i,
    count1 type n.
    Variable Declaration
    data: w_fname type string,
    fnam(20),
    date1(10),
    i(2) type n,
    v_count type i,
    v_group type apqi-groupid.
    *& selection screen
    selection-screen :begin of block bl1 with frame title  text-001.
    parameters : p_fname type rlgrap-filename,                         "Input file
                 p_update(1) default 'N',                              "Input for update mode
                 p_bdcgrp(12) default 'SD_ORDERS'.                     "Input for session name
    selection-screen end of block bl1.
    **&SELECTION SCREEN VALIDATIONS
    at selection-screen on value-request for p_fname.
      call function 'KD_GET_FILENAME_ON_F4'
        exporting
          program_name  = 'ZMATERIAL'
          dynpro_number = '1000'
          field_name    = 'P_FNAME'
        changing
          file_name     = p_fname.
    *& Start of selection
    start-of-selection.
      if  p_fname is initial.
        message i016(rp) with 'Please enter a file name'.
        leave list-processing.
      else.
        move p_fname to  v_str_fname.
      endif.
      call function 'GUI_UPLOAD'
        exporting
          filetype                = 'ASC'
          filename                = v_str_fname
          has_field_separator     = 'X'
        tables
          data_tab                = t_source
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          others                  = 17.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      sort t_source by ref partn_numb.
      loop at t_source into w_source.
        add 1 to count2-inrec.
        w_source1 = w_source.
       AT NEW PARTN_NUMB.  "10/31 KVB
        at new ref.
          w_header-doc_type = w_source1-doc_type..
          w_header-sales_org = w_source1-sales_org .            "'0001'
          w_header-distr_chan = w_source1-distr_chan.           "'01'
          w_header-division = w_source1-division.               " '01'
          w_header-purch_no = w_source1-purch_no.
          w_header-partn_numb = w_source1-partn_numb.
          w_header-ref = w_source1-ref.
          append w_header to t_header.
        endat.
        w_item-partn_numb = w_source1-partn_numb.
        w_item-material = w_source1-material.
        w_item-reqqty = w_source1-reqqty.
        w_item-ref = w_source1-ref.
        w_item-reqdate = w_source1-reqdate.
        append w_item to t_item.
        clear :w_item,w_header.
      endloop.
      loop at t_header into w_header.
        perform bdc_dynpro      using         'SAPMV45A'                  '0101'       .
        perform bdc_field       using         'BDC_CURSOR'                'VBAK-SPART'.
        perform bdc_field       using         'BDC_OKCODE'                '/00'.
        perform bdc_field       using         'VBAK-AUART'                w_header-doc_type.
        perform bdc_field       using         'VBAK-VKORG'                w_header-sales_org.
        perform bdc_field       using         'VBAK-VTWEG'                w_header-distr_chan.
        perform bdc_field       using         'VBAK-SPART'                w_header-division.
        perform bdc_dynpro      using         'SAPMV45A'                  '4001'     .
        perform bdc_field       using         'BDC_OKCODE'                '/00'.
        perform bdc_field       using         'BDC_CURSOR'               'VBKD-BSTKD'.
        perform bdc_field       using         'VBKD-BSTKD'                w_header-purch_no.
        perform bdc_field       using         'KUWEV-KUNNR'               w_header-partn_numb.
        i = 1.
        loop at t_item into w_item where partn_numb = w_header-partn_numb
                                         and ref = w_header-ref.
          at new partn_numb.
            clear count1.
            count = 0.
          endat.
          count = count + 1.
          if count gt 5.
            clear i.
            i = 2.
            perform bdc_dynpro      using 'SAPMV45A' '4001'      .
            perform bdc_field       using 'BDC_OKCODE' '=POAN'.
          endif.
          count1 = count1 + 1.
          concatenate 'VBAP-POSNR(' i ')' into fnam.
          perform bdc_field       using  fnam
                                        count1.
          concatenate 'RV45A-MABNR(' i ')' into fnam.
          perform bdc_field    using fnam                            w_item-material.
          concatenate 'RV45A-KWMENG(' i ')' into fnam.
          perform bdc_field       using  fnam                        w_item-reqqty..
          concatenate 'RV45A-ETDAT(' i ')' into fnam.
          perform bdc_field       using  fnam                         w_item-reqdate.
          concatenate 'VBKD-BSTKD_E(' i ')' into fnam.
          perform bdc_field       using  fnam                         w_item-ref.
          i = i + 1.
          clear:  w_item.
        endloop.
        clear w_header.
        perform bdc_dynpro      using 'SAPMV45A' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=SICH'.
        perform post_transaction.
        refresh bdc_itab.
        clear   bdc_itab.
      endloop.
    *endloop.
    end-of-selection.
      perform finalization.
           Start new screen                                              *
    form bdc_dynpro using program dynpro.
      clear bdc_itab.
      bdc_itab-program  = program.
      bdc_itab-dynpro   = dynpro.
      bdc_itab-dynbegin = 'X'.
      append bdc_itab.
    endform.                    "bdc_dynpro
           Insert field                                                  *
    form bdc_field using fnam fval.
      if fval <> ''.
        clear bdc_itab.
        bdc_itab-fnam = fnam.
        bdc_itab-fval = fval.
        append bdc_itab.
      endif.
    endform.                    "bdc_field
    **&      Form  get_filename
          text
    -->  p1        text
    <--  p2        text
    *form get_filename .
    *call function 'WS_FILENAME_GET'
       exporting
         def_filename     = space
         def_path         = file
         mask             = ',.,..'
         mode             = 'N'
         title            = text-015
       importing
         filename         = file
       exceptions
         inv_winsys       = 1
         no_batch         = 2
         selection_cancel = 3
         selection_error  = 4
         others           = 5.
    *endform.                    " get_filename
    *&      Form  post_transaction
          text
    -->  p1        text
    <--  p2        text
    form post_transaction .
      refresh messtab.
      clear   messtab.
      call transaction  'VA01' using bdc_itab
                  mode   p_update
                update  'S'
              messages into messtab.
      read table messtab with key msgtyp = 'E'.
      if sy-subrc eq 0.
        perform process_error_messages.
        add 1 to count2-bdc.
        if v_chr_opengrp is initial.
          perform bdc_open_group.
        endif.
        call function 'BDC_INSERT'
          exporting
            tcode          = 'VA01'
          tables
            dynprotab      = bdc_itab
          exceptions
            internal_error = 1
            not_open       = 2
            queue_error    = 3
            tcode_invalid  = 4
            others         = 5.
        if sy-subrc <> 0.
          case sy-subrc.
            when 1.
              write: / 'Internal error'.
            when 2.
              write: / 'Not open error'.
            when 3.
              write: / 'queue error'.
            when 4.
              write: / 'tcode invalid error'.
            when others.
              write: / 'other error'.
          endcase.
        endif.
      else.
        add +1 to count2-create.
        format intensified off.
        format color col_normal.
        format color col_normal off.
      endif.
      clear   bdc_itab.
      refresh bdc_itab.
    endform.                    " post_transaction
    *&      Form  finalization
          text
    -->  p1        text
    <--  p2        text
    form finalization .
      if v_chr_opengrp = 'X'.
        call function 'BDC_CLOSE_GROUP'
          exceptions
            not_open    = 1
            queue_error = 2
            others      = 3.
      endif.
      get time.
      skip 2.
      write: / 'Time', sy-uzeit.
      skip.
      format color col_total on.
      write: / 'Total Records: ',           40 count2-inrec.
      write: / 'PERNR not of Emp Group 6 ', 40 count2-error.
      write: / 'Records Created: ',         40 count2-create.
      write: / 'BDC Create in group: ',     40 count2-bdc.
      if v_chr_opengrp = 'X'.
        skip 1.
        format intensified on.
        format color col_negative on.
        write: / 'PLEASE USE TRANSACTION "SM35" ',
                 'TO PROCESS THE GENERATED BDC SESSION ... ',
                 p_bdcgrp.
      endif.
    endform.                    " finalization
    *&      Form  bdc_open_group
          text
    -->  p1        text
    <--  p2        text
    form bdc_open_group .
      call function 'BDC_OPEN_GROUP'
        exporting
          client              = sy-mandt
          group               = p_bdcgrp
          holddate            = sy-datum
          keep                = 'X'
          user                = sy-uname
        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 eq 0.
        v_chr_opengrp = 'X'.
      endif.
    endform.                    " bdc_open_group
    *&      Form  process_error_messages
          text
    -->  p1        text
    <--  p2        text
    form process_error_messages .
      data: begin of loc_aux_message.
              include structure message.
      data: end of loc_aux_message.
      data : msgno type sy-msgno.
      loop at messtab.
        move messtab-msgnr to msgno.
        call function 'WRITE_MESSAGE'
          exporting
            msgid  = messtab-msgid
            msgno  = msgno
            msgty  = messtab-msgtyp
            msgv1  = messtab-msgv1
            msgv2  = messtab-msgv2
            msgv3  = messtab-msgv3
            msgv4  = messtab-msgv4
          importing
            messg  = loc_aux_message
          exceptions
            others = 1.
        if sy-subrc eq 0.
          format color col_negative on.
          write: /10 loc_aux_message.
          format color col_negative off.
        else.
          format color col_negative on.
          write: /10 t_source-partn_numb.
          write: / 'Error creating message'.
          format color col_negative off.
          exit.
        endif.
      endloop.
    endform.                    " process_error_messages

  • Problem with creating BDC program

    Hi All,
    I was trying to create a BDC program for transaction SE63 (language translation). I am doing it for text modules translation. For this, screen contains two fields, one is source language and another is target language and both are input disabled. We can input entries only through F4 help.
    Now the problem is while doing recording through transaction SHDB, it is not recognizing the F4 help and so i am not able to make any entry in that through BDC. Since field is input disabled so I can not make the entries directly.
    Can anyone please help me, how to make entries in this type of field through BDC?
    Regards,
    Akhil

    Thanks Keshav for your valueble reply but this function module is giving me error saying go to SE63 for translation. Can you mull over any other option and suggest me the same.

  • Please  Help me How write the BDC program for the MIGO inbound Delivery

    Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
    Not in LSMW.  Required call transaction or Session Method. Please help me.
    Mohan

    Run transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.

  • Premiere Pro CS4 - Problem with the monitor program.

    Hi. I'm not able solving problems with the monitor using PremiereProCS4. When I drag a photo (also only one photo) in the timeline and play it in the monitor program, vision in the monitor program doesn't run:black monitor or a little part of the photo appear... sometimes distort colours. Asus P5QPRO, Intel 9550 and Sparkle Nvidia GeForce 9800 GTX+ 1024 DDR3; last gpu driver and directX are installed. Different configuration of stratch disks were tested. Where am I wrong?

    Dear Bill,
    thanks for your answer and your article. I tried with your NTSC 4:3 720x480 PAR 0.9 and, "magically", no more problem!!! I used the script pocedure in Photoshop CS4 to resize my images. Now, before starting my workflow and hoping not to overuse your patience, I would like to indicate you my equipment and my target: I use a Canon Eos 7D (generally for still images, 90% are vertical, and just some videos) and I use Premiere Pro CS4 to burn a dvd (normal, 4.7 Gb or double side, more than 8 Gb) with a 16.9 lcd tv (I'm Italian); my camera save as .jpg and .raw (but why use heavy .raw files if I've to redute to 720x480?!??).
    So, according to your "everyone wants the highest quality that they can obtain when doing theri videos..." and "your video project may vary, so you will need to plug in the dimensions for YOUR video project in that case", I've a question: which is the best for me?
    And then:
    1 - Premiere Pro CS4 havn't a batch or a script procedure for still image like PS (only for videos)!?!
    2 - Premiere does'nt allow you to import images like 4.181 Kb (a too large dimension file error appears)!
    3 - In the timeline of Premiere, after you dragged images, you can select them and right click to perform "resize to frame size": it seems to run good without problem, but what appen to the photo? Which is it's pixel?
    4 - In the general preferences of Premiere you can to optimize rendering for "memory" or not: which is the best for you?
    5 - I attached file with a screen of something strange in Premiere: dragging an image (the first of the project) in the timeline, the timeline appears distort (you can see the part in the yellow square): then, when I render the project and play in the monitor program, it becames normal.
    Thanks!

  • Restrict clicking enter key in the bdc program

    Hi all,
             There is one BDC program for Vendor Master creation. In the output it is waiting for the enter key for each vendor creation. Suppose we have 1000 vendors to be created. Then we need to click enter key 1000 times.
    Anybody please suggest me whether can I change the BDC code to stop entering the Enter Button each time a vendor is created.
    Thanks and Regards,
    Murali Krishna T

    Hi Raghava,
                        Thanks for your prompt reply. There are no information messages inside the loop.
    This is the code block inside the loop.
      Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
    Edited by: Rob Burbank on Apr 23, 2010 10:26 AM

  • The BDC program for Transaction COGI not workign -need some alternative

    Hi,
         We are doing a SAP upgrade from 4.6c to ECC. One of the custom tcodes which were using BDC programming on COGI is now broken.Since , COGI is now changed in Ecc 6.0  with respect to the output which is now inALV and the earlier Date funtionaliy button is no more there in ECC6.0.
    We are still not to able to find relevant BAPI/function module/alternative for that matter.Rerecording COGI for new environment is not working since it involves alv call functions, which cannot be recorded in BDC.
    Please provide any inputs/valuable suggestions for same.

    HI
    You can try below method.
    there is one check box in COGI transaction named List Display. In your BDC recording, default that field value with 'X'.
    By activating this, list will be displayed as in earlier versions.
    Regards,
    Krishna Mohan

  • Problems with the HelloWorld program

    I cannot run the helloworld program can someone help me with that. I am completely new to java programming.

    That's a rather vague description of the problem.
    What happens when
    you type this:
    javac -version
    java -versionCarefull there Jos. You'll probably have to specify where to type in that
    stuff. Otherwise the OP might type it in his IDE/text-editor...His what?!?!1!!!*one*!!!111??? how perverted ...
    kind regards,
    Jos ;-)

  • Problem with the servlet program

    I created a simple servlet program and tried to deploy the same through Sun Microsystem's J2EE Application Server 1.4. But after I included the servlet file to the deploytool and selected the servlet option, it gives an error msg. that says the file included is not a valid servlet file.
    However, all the other types like jsp, etc. is working fine.
    I am new to this servlet. I know it might be a small mistake that I may be making. Can anyone please help me to resolve the same.

    Have you looked up a servlet tutorial to see if your code maybe isn't missing something?
    There is little help anyone can give you at this point as you basically do not share anything that you can be helped with. Post the servlet code, judging by the error message the problem most likely lies there.

  • G530 - problems with the "easy program access" key

    I have a 3000 G530 (model 4151) laptop, and so far I haven't really had any problems with it. Although recently, something happened with a little touch-sensitive button above my keyboard, in the upper right, next to the volume controls. I guess what it does is you can set it so that whenever you press it, it will just open up the program or document that you set it to. I'm not sure how this happened, but recently it started acting like I was repeatedly pressing it over and over. The setup window for the key opened about twice a second. I restarted my computer, and tried pressing the key. I set it to open a document I had (just to test it), and now it just opens up that document whenever I press it. Occassionally it will randomly open the document over and over, even when my hands were nowhere near it. Anyone know how I can fix this?

    Did a little workaround... and all things went like a candy :)
    I simply had to enter in the web.xml
    <servlet-mapping>
    <servlet-name>Index</servlet-name>
    <url-pattern><path>/Index</url-pattern>
    </servlet-mapping>
    IDE is trully beautiful, many new features (will definately try CVS)...
    But with my 1Gb RAM its hard game, previous Jdeveloper version used much less memory :(

  • Problems with the downloaded programs from sites on Internet

    Hi,
    I just recently got interested in downloading a program from the site myspace.com, but I have been interested in other programs earlier in my time as a MacBook user. Unfortunately, I have not discovered how to open them properly. What is the best way to get an understanding of how to open these non-universal programs, such as Instant messenger from myspace.com?
    I would like to know if I need to find the rosetta application somehow on my applications window, because I already know now, that the rosetta application won't work yet on the instant messenger that I tried to install to my computer.
    If anyone has a clue about how to get my application "Install Messenger.exe to open with rosetta, like I have read about yet don't know how to get running yet, please would you be kind to send a thread to mine on apple discussions?!
    This is really confusing, and I need to be able to do the instant messenger on Myspace so that I can become good friends with my new friends on myspace!

    Any applications that ends in .exe is a Windows application and cannot run natively on a Mac. The only way to run those applications would be to install Windows, either via BootCamp or one of the third-party systems such as Parallels Desktop. For any of those, you'd need to purchase a copy of Windows.

  • I can't up date my iPad, due to problems with the mobilebackup program, what am I supposed to do now?.

    I've being trying to up date my iPad, but this has turn an impossible mission.
    At first I was happy with my new NO VIRUSES allowed toy; but I have just realized that this is a piece of ****, as any other Microsoft BS equipment.
    Now is the "mobile backup" problem...then what?
    If anyone can tell me what to do to fix this "mobile backup" problem, I will really appreciate it.
    I am sooooooooooo disappointed with this product. They told me, it was trouble free.
    Please help me solve this problem.

    I was going to suggest doing an explicit backup to see if that fails as well. You would do that by right clicking on the iPad icon in iTunes but...
    Another user was able to get the Mobile Backup to work by changing the time zone to an equivalent time zone. https://discussions.apple.com/message/11784549#11784549
    They do not state whether they changed the setting on the Windows side or on the iPad. It is possible the backup is trying to match so if you have not done so, try checking that first. What country/timezone are you in?
    I'll look through the discussions to see if I see any other solutions. You probably will need to contact Apple directly for support. I think for Windows iTunes there is a Connection Diagnostic tool. Using that may provide more details for why the backup is failing.

  • Problem with the DVD program

    When i shutdown the computer and closed it. This begin to restart and open the program of the DVD, I have to shutdown five or six times all the time, somebody know what is happening??

    Jessie wrote:
    When i shutdown the computer and closed it. This begin to restart and open the program of the DVD, I have to shutdown five or six times all the time, somebody know what is happening??
    This may sound silly, but I've got to ask if there still is a DVD in the drive.

Maybe you are looking for

  • CUE 8.6.3 ringing busy

    Hi, We are having an issue where CUE has stopped working.  It had been working just fine but now when we call it we get a busy signal.  I tried to reset the module but still have the same issue.  When I do a service-module integrated-service-engine 0

  • Firefox will not open a new window How do I fix it?

    When on a web page, If I right click and choose "Open In A New Window", it will open a new window but the window is always blank. I can copy the address and paste in in the new window and it will then take me to the web site but will not automaticall

  • IPhoto-Share-send to iDVD, errors everytime

    the SHARE > send to iDVD starts to process, and results in an ERROR window everytime. I have tried a basic slide show & the special Photobook slideshow... nothing works. Prompt help is GREATLY appreciated. Software added is: Adobe CS (works fine) Lig

  • Error in running InstallOracleProfile.sql

    goog evening, i installed oracle XE and odac tool kit for asp.net in my pc.when i am trying to run InstallOracleProfile.sql i am getting ORA-01917: user or role 'ORA_ASPNET_PROF_FULLACCESS' does not exist can any one help me in solving this problem t

  • TS4002 Syncing notes

    Having problems wi notes and reminders syncing to my iCloud.com email on my iPad 3. Restored and reset I don't know how many times. Please help.