How To upload a infotype via BDC recording

Hi ,
I am looking to do a BDC recording to upload a infotype which is 105 for communications My office head quarters are moving so they are changing the first 6 digits of the tlefone numbers but the extensions will remain the same so how is this possible .
regards

A better approach to BDC would be to use a BAPI function module, for example BAPI_EMPLCOMM_CHANGE to change the current data. Make sure you specify the correct Subtype for the telephone number communication. Pass the new telephone number in the COMMUNICATIONID importing interface parameter.
Make sure you lock (BAPI_EMPLOYEE_ENQUEUE) the employee before calling the BAPI and unlock afterwards (BAPI_EMPLOYEE_DEQUEUE).
Hope this helps.
JB

Similar Messages

  • How to capture F4 help during bdc recording

    Hello All,
    I need one help to solve one of the requrimkents..
    In transaction Co02, user have to add the compoenents manually..but before user adds the components manually, i need to call the transaction co02, then i have do F4 help and fill the data for the user and then user will handle it manually...
    So till F4 help and filling the data in F4 help, i need to do through my program using bdc...when i try to do, F4 help is not captured in my recording..
    So please help me how to capture F4 help during BDC recording.
    Thanks in advance
    Sangeetha

    HI Sangeetha,
    I have one question for you!!!!
    Capturing F4 help  in BDC recording is secondary thing. First, If you want the user to select the value from the F4 help, then in that case user will have to run the BDC program in the foreground mode which is not possible and time consuming if your file is having more records (say >100). Then in that case will you prompt the user every time for selecting the component values, as many records there will be in the file to be uploaded??? I think it is not a way of handling or capturing the component values. I would prefer that pass the component values in the file which has to be uploaded.
    Please let me know if you still have some doubts on the same.
    Thanks
    VJ

  • How to upload a file in bdc  from application server

    how to upload a file in bdc  from application server

    Hi
    Check if this is useful and reward.
    PERFORM UNIX_UPLOAD.
    FORM unix_upload.
      DATA : lv_string(600) TYPE c.
      lv_string = p_fname. "p_fname is the filename  in path
    OPEN DATASET lv_string FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc <> 0.
        MESSAGE 'File Not Found' TYPE 'I'.
        LEAVE PROGRAM.
      ENDIF.
      DO .
        READ DATASET lv_string INTO gs_gfile.
        IF sy-subrc NE 0 .
          EXIT.
        ENDIF.
        APPEND gs_gfile TO gt_gfile .
        CLEAR  gs_gfile .
      ENDDO.
      CLOSE DATASET lv_string.
      CLEAR lv_string.
      DATA: lc_split TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
      LOOP AT gt_gfile INTO gs_gfile .
        SPLIT gs_gfile AT lc_split INTO
                                       gs_ipfile-field1                           
                                       gs_ipfile-field2.
      ENDLOOP.
    ENDFORM.                    "unix_upload
    here gs_ipfile is the same structure as your input file to upload
    and
    gs_gfile is the work area of the internal table containing characters as :
    TYPES  : BEGIN OF  ygs_gfile    ,
              data(600)             ,
             END OF    ygs_gfile    .
    *Internal table declaration for input file as text
    gt_gfile   TYPE STANDARD TABLE OF ygs_gfile  INITIAL SIZE 0 ,
    *Work area declaration for input file
           gs_gfile   TYPE ygs_gfile                                   .
    Thanks and Regards
    A Swarna

  • BDC Recording - IL02

    Hi,
    I'm new to abap.  Hope any expert able to help me out.
    I'm doing upload program to link the document to functional location via BDC recording IL02.
    1) How i proceed to check the floc is whether exist in the system?
    2) Display the out the floc name if not exist.
    3) skip/ delete this floc and proceed rest of uploading.
    Below are part of my code & recording. Appreciate can provide guide code to me.
    Thanks!!
    <u><b>Internal Table:</b></u>
    DATA : BEGIN OF i_input OCCURS 0,
            tplnr LIKE iflo-tplnr,         "Functional Location
            dokar LIKE draw-dokar,   "Document Type
            doknr LIKE draw-doknr,   "Document
            doktl LIKE draw-doktl,     "Document Part
            dokvr LIKE draw-dokvr,    "Document Version
    END OF i_input.
    <u><b>BDC Recording</b></u>
    FORM BDC_Functional_Location.
      DATA : wa_file LIKE i_input.
      IF NOT i i_input[] IS INITIAL.
        SORT  i_input BY tplnr.
        LOOP AT i_input.
          wa_file = i_input.
          REFRESH i_bdcdata.
          CLEAR i_bdcdata.
        <u>Screen 1</u>
          PERFORM bdc_dynpro      USING 'SAPMILO0' '1110' c_on.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'IFLO-TPLNR'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'IFLO-TPLNR'
                                        wa_file-tplnr.
        <u>Screen 2</u>
          PERFORM bdc_dynpro      USING 'SAPMILO0' '2100' c_on.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'IFLO-PLTXT'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=T\05'.
        <u>Screen 3</u>
          PERFORM bdc_dynpro      USING 'SAPMILO0' '2100' c_on.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CV140_INS'.
        <u>Screen 4</u>
          PERFORM bdc_dynpro      USING 'SAPMILO0' '2100' c_on.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'DRAW-DOKVR(01)'.
          PERFORM bdc_field       USING 'DRAW-DOKAR(01)'
                                        wa_file-dokar.
          PERFORM bdc_field       USING 'DRAW-DOKNR(01)'
                                        wa_file-doknr.
          PERFORM bdc_field       USING 'DRAW-DOKTL(01)'
                                        wa_file-doktl.
          PERFORM bdc_field       USING 'DRAW-DOKVR(01)'
                                        wa_file-dokvr.
          PERFORM bdc_field       USING 'GF_ALLE'
                                        'X'.
       <u>Screen 5</u>
          PERFORM bdc_dynpro      USING 'SAPMILO0' '2100' c_on.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=BU'.
          PERFORM bdc_transaction USING ' ' 'IL02' 'N'.
        ENDLOOP.
      ENDIF.
    ENDFORM.

    Hi All,
    Below is my code... I only need to update the cost center belongs to the affected functional location... Please help... Thanks.
    data:  PATH TYPE STRING,
           FULLPATH TYPE STRING,
           USER_ACTION  TYPE I,
           PCFILEX  TYPE STRING,
           g_pathresult TYPE string,
           g_file TYPE string.
    DATA: gt_fltab TYPE filetable,
          g_rcode  TYPE i.
    data:   DATALINE TYPE STRING.
           INFILE TYPE STANDARD TABLE OF STRING.
    data: begin of infile occurs 0,
              c1(30) type C,
              C2(10) type C,
          end of infile.
    DATA: IT_BDCDATA TYPE STANDARD TABLE OF BDCDATA,
          WA_BDCDATA TYPE BDCDATA.
    data: begin of it_final occurs 0,
              tplnr like bdcdata-fval,        "Function Location, iflo-tplnr
              kostl like bdcdata-fval,        "Cost Center, itob-kostl
             tplnr(25) type C,
             kostl(10) type C,
          end of it_final.
    *****include bdcrecx1.
    Selection screen
    PARAMETERS: p_fnam   LIKE rlgrap-filename OBLIGATORY.
    *initialization.
    At SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fnam.
      INCLUDE yzz_incldefaultdir.
      MOVE: g_filename TO g_pathresult.
    Get filename for upload
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      EXPORTING
          DEFAULT_FILENAME        = g_pathresult
      CHANGING
          file_table              = gt_fltab
          rc                      = g_rcode
          USER_ACTION             = USER_ACTION
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        READ TABLE gt_fltab INDEX 1 INTO p_fnam.
      ENDIF.
    IF USER_ACTION EQ 0.
    g_file = p_fnam.
    CALL METHOD cl_gui_frontend_services=>gui_upload
       EXPORTING
         filename                = fullpath
         filetype                = 'ASC'
         has_field_separator     = 'X'
       CHANGING
         data_tab                = it_final[]
       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
         not_supported_by_gui    = 17
         error_no_gui            = 18
         OTHERS                  = 19.
       IF SY-SUBRC <> 0.
         MESSAGE ID 'ZU' TYPE 'E' NUMBER '007' WITH p_fnam.
       ELSE.
         READ TABLE gt_fltab INDEX 1 INTO p_fnam.
       ENDIF.
    ENDIF.
    start-of-selection.
      perform f_upload.
    *perform open_group.
    *perform bdc_dynpro      using 'SAPMILO0' '1110'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'IFLO-TPLNR'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '/00'.
    *perform bdc_field       using 'IFLO-TPLNR'
                                 'AK31-AP1-010-B700  -B700'.
    *perform bdc_field       using 'RILO0-TPLKZ'
                                 'PMST1'.
    *perform bdc_dynpro      using 'SAPMILO0' '2100'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'IFLO-PLTXT'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '=T\03'.
    *perform bdc_field       using 'IFLO-PLTXT'
                                 'ABS WASTE WATER STORAGE TANK'.
    *perform bdc_dynpro      using 'SAPMILO0' '2100'.
    *perform bdc_field       using 'BDC_OKCODE'
                                 '=BU'.
    *perform bdc_field       using 'IFLO-PLTXT'
                                 'ABS WASTE WATER STORAGE TANK'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'ITOB-KOSTL'.
    *perform bdc_field       using 'ITOB-BUKRS'
                                 'KP01'.
    *perform bdc_field       using 'ITOB-KOSTL'
                                 'C68312'.
    *perform bdc_field       using 'ITOB-IWERK'
                                 'KP13'.
    *perform bdc_field       using 'ITOB-INGRP'
                                 'MP1'.
    *perform bdc_field       using 'ITOBATTR-GEWRK'
                                 'MECH #1'.
    *perform bdc_field       using 'ITOBATTR-WERGW'
                                 'KP13'.
    *perform bdc_field       using 'ITOB-RBNR'
                                 'M'.
    *perform bdc_transaction using 'IL02'.
    *perform close_group.
    *&      Form  begin
          text
         -->P_0191   text
         -->P_0192   text
         -->P_0193   text
    FORM begin  USING    PROG TYPE BDCDATA-PROGRAM     
                     DYNPRO TYPE BDCDATA-DYNPRO
                     DYNBEGIN TYPE BDCDATA-DYNBEGIN.
    CLEAR WA_BDCDATA.
    WA_BDCDATA-PROGRAM = PROG.
    WA_BDCDATA-DYNPRO = DYNPRO.
    WA_BDCDATA-DYNBEGIN = DYNBEGIN.
      CLEAR wa_BDCDATA.
      wa_BDCDATA-PROGRAM  = PROG.
      wa_BDCDATA-DYNPRO   = DYNPRO.
      wa_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO IT_final.
    APPEND WA_BDCDATA.
    ENDFORM.                    " begin
    *&      Form  info_tc
          text
         -->P_0197   text
         -->P_IT_FINAL_TPLNR  text
    FORM info_tc  USING    FNAM TYPE any
                       FVAL TYPE any.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_final.
    ENDFORM.                    " info_tc
    *&      Form  f_upload
          text
    -->  p1        text
    <--  p2        text
    FORM f_upload .
      clear: g_file.
      g_file = p_fnam.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = g_file
          filetype            = 'ASC'
          has_field_separator = '|'
        TABLES
          data_tab            = infile
        EXCEPTIONS
          file_open_error     = 1
          file_read_error     = 2
          no_batch            = 3
          disk_full           = 4
          OTHERS              = 5.
        IF SY-SUBRC <> 0.
          MESSAGE ID 'ZU' TYPE 'E' NUMBER '007' WITH p_fnam.
        ENDIF.
        perform f_call_trans.
    ENDFORM.                    " f_upload
    *&      Form  f_call_trans
          text
    -->  p1        text
    <--  p2        text
    FORM f_call_trans .
    types:  begin of t_Data,
              C1 TYPE BDCDATA-FVAL,      "Material#
              C2 TYPE BDCDATA-FVAL,      "Industry Sect.
            end of t_data.
    DATA: C1 TYPE BDCDATA-FVAL,
          C2 TYPE BDCDATA-FVAL.
    data: IT_DATA TYPE STANDARD TABLE OF t_Data,
          WA_DATA like line of infile.
        LOOP AT infile INTO WA_DATA.
          CLEAR it_bdcdata. REFRESH it_bdcdata.
              PERFORM begin USING 'SAPMILO0' '1110' 'X'.
              perform info       using 'BDC_CURSOR' 'IFLO-TPLNR'.
              perform info       using 'BDC_OKCODE' '/00'.
              PERFORM info       USING 'IFLO-TPLNR' WA_DATA-C1.
              perform info       using 'BDC_OKCODE' '/00'.    "=BU
              PERFORM begin USING 'SAPMILO0' '2100' 'X'.
              perform info       using 'BDC_OKCODE' '/00'.    "=BU
             perform info using 'BDC_CURSOR' 'ITOB-KOSTL'.
              PERFORM info USING 'ITOB-KOSTL' WA_DATA-C2.
              perform info using 'BDC_OKCODE' '=YES'.
            CALL TRANSACTION 'IL02' USING it_FINAL MODE 'A' UPDATE 'L'.
        ENDLOOP.
    ENDFORM.                    " f_call_trans
    *&      Form  info
          text
         -->P_0397   text
         -->P_0398   text
    FORM info  USING  fnam type any
                      fval type any.
    *FNAM TYPE BDCDATA-FNAM
                      FVAL TYPE BDCDATA-FVAL.
                      VALUE(LINNO) TYPE I.
    CLEAR WA_BDCDATA.
    WA_BDCDATA-FNAM = FNAM.
    WA_BDCDATA-FVAL = FVAL.
        CLEAR wa_BDCDATA.
        wa_bDCDATA-FNAM = FNAM.
        wa_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_final.
    APPEND WA_BDCDATA.
    ENDFORM.                    " info

  • BDC Recording - Make a field required

    Dear Experts,
    We are using a BDC recording to call MIRO and send it to an agent via workflow using a z-table.
    The customer wants the baseline date on this recording grey'ed out and the business area field required.
    The baseline date is on the "PAYMENT" tab of MIRO and Business Area on the "DEATILS" tab. 
    I have created a screen and transaction variant a year ago and assigned it to the t-code, but now with the BDC calling MIRO for the INVOICE Scanning project, these fields can be overwritten and left out.
    How can I do it via BDC?
    Transnet Freight Rail
    Edited by: Annelize Meyer on Mar 17, 2010 1:39 PM

    You could create a on-submit pl/sql validation on 'p2_estim_val'. The validation code will return a failure if the value of p2_estim_val is not specified if the value of p2_reason_to_scap_sell is non-null
    The validation code could be something as simple as
    if not :p2_reason_to_scap_sell is null and :p2_estim_val is null then
       return 'A value is required for p2_estim_val';
    end if;varad

  • Bdc recording for trancastion ME01

    Hi,
    Can u help me in BDC recording for transaction 'ME01' .
    I have no idea for transaction 'ME01'  & here i like to know how to handle table ctr during bdc recording?
    give sample code if possible.
    Thanks

    See the sample attached code for ME51 using table control.
    similarly record the same for ME01 and copy the TC logic from this.
    REPORT zmm_pr_upload_mat
    NO STANDARD PAGE HEADING
    LINE-SIZE 255.
    Standard Include for Selection Screen
    INCLUDE bdcrecx1.
    Internal Table for Upload Data
    DATA: BEGIN OF i_pr OCCURS 0,
    Header Screen
    sno(3), " SNo
    bsart(004), " PR Type
    epstp(001), " Item Category
    knttp(001), " Account Assignment
    eeind(010), " Delivery Date
    lpein(001), " Category of Del Date
    werks(004), " Plant
    lgort(004), " Storage Location
    ekgrp(003), " Purchasing Group
    matkl(009), " Material Group
    bednr(010), " Tracking No
    afnam(012), " Requisitioner
    Item Details
    matnr(018), " Material No
    menge(017), " Quantity
    badat(010),
    frgdt(010),
    preis(014), " Valuation Price
    waers(005), " Currency
    peinh(005),
    wepos(001),
    repos(001),
    sakto(010), " GL Account
    kostl(010), " Cost Center
    bnfpo(005),
    END OF i_pr.
    Internal Table for header Data
    DATA: BEGIN OF it_header OCCURS 0,
    sno(3), " SNo
    bsart(004), " PR Type
    epstp(001), " Item Category
    knttp(001), " Account Assignment
    eeind(010), " Delivery Date
    werks(004), " Plant
    lgort(004), " Storage Location
    ekgrp(003), " Purchasing Group
    matkl(009), " Material Group
    bednr(010), " Tracking No
    afnam(012), " Requisitioner
    END OF it_header.
    Internal Table for Item Data
    DATA: BEGIN OF it_item OCCURS 0,
    sno(3), " SNo
    matnr(018), " Material No
    menge(017), " Quantity
    preis(014), " Valuation Price
    sakto(010), " GL Account
    kostl(010), " Cost Center
    END OF it_item.
    Data Variables & Constants
    CONSTANTS : c_x VALUE 'X'. " Flag
    DATA : v_l(2), " Counter
    v_rowno(5), " Row No
    v_2(2), " Counter
    v_rows LIKE sy-srows, " Rows in TC
    v_field(45). " String
    Parameters
    PARAMETERS: p_file LIKE ibipparms-path. " Filename
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    program_name = syst-cprog
    dynpro_number = syst-dynnr
    IMPORTING
    file_name = p_file.
    Start of Selection
    START-OF-SELECTION.
    Open the BDC Session
    PERFORM open_group.
    Upload the File into internal Table
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'DAT'
    TABLES
    data_tab = i_pr
    EXCEPTIONS
    conversion_error = 1
    invalid_table_width = 2
    invalid_type = 3
    no_batch = 4
    unknown_error = 5
    gui_refuse_filetransfer = 6
    OTHERS = 7.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SORT i_pr BY sno.
    LOOP AT i_pr.
    MOVE-CORRESPONDING i_pr TO it_item.
    APPEND it_item.
    CLEAR it_item.
    AT END OF sno.
    READ TABLE i_pr INDEX sy-tabix.
    MOVE-CORRESPONDING i_pr TO it_header.
    APPEND it_header.
    CLEAR it_header.
    ENDAT.
    ENDLOOP.
    SORT it_header BY sno.
    SORT it_item BY sno.
    v_rows = sy-srows - 6.
    Upload the Data from Internal Table
    LOOP AT it_header.
    Header Data
    PERFORM bdc_dynpro USING 'SAPMM06B' '0100'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'EBAN-BEDNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'EBAN-BSART'
    it_header-bsart.
    PERFORM bdc_field USING 'RM06B-EPSTP'
    it_header-epstp.
    PERFORM bdc_field USING 'EBAN-KNTTP'
    it_header-knttp.
    PERFORM bdc_field USING 'RM06B-EEIND'
    it_header-eeind.
    PERFORM bdc_field USING 'RM06B-LPEIN'
    it_header-lpein.
    PERFORM bdc_field USING 'EBAN-WERKS'
    it_header-werks.
    PERFORM bdc_field USING 'EBAN-LGORT'
    it_header-lgort.
    PERFORM bdc_field USING 'EBAN-EKGRP'
    it_header-ekgrp.
    PERFORM bdc_field USING 'EBAN-MATKL'
    it_header-matkl.
    PERFORM bdc_field USING 'EBAN-BEDNR'
    it_header-bednr.
    PERFORM bdc_field USING 'EBAN-AFNAM'
    it_header-afnam.
    Item Details
    v_l = 0.
    To add no. of rows
    v_2 = 0 .
    As the screen is showing 13 rows defaulted to 130
    v_rowno = 130 .
    LOOP AT it_item WHERE sno = it_header-sno.
    v_l = v_l + 1.
    IF v_l = 14 .
    IF v_2 = 12 .
    v_2 = 12 .
    v_l = 2 .
    From second time onwards it is displaying 12 rows only
    v_rowno = v_rowno + 120 .
    PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RM06B-BNFPO'.
    PERFORM bdc_field USING 'RM06B-BNFPO'
    v_rowno.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    ELSE.
    V_2 initialized to 12 for second screen purpose
    v_2 = 12 .
    v_l = 2 .
    PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RM06B-BNFPO'.
    PERFORM bdc_field USING 'RM06B-BNFPO'
    v_rowno .
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    ENDIF.
    ENDIF.
    PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    CLEAR v_field.
    CONCATENATE 'EBAN-MATNR(' v_l ')' INTO v_field.
    PERFORM bdc_field USING v_field it_item-matnr.
    CLEAR v_field.
    CONCATENATE 'EBAN-MENGE(' v_l ')' INTO v_field.
    PERFORM bdc_field USING v_field it_item-menge.
    PERFORM bdc_dynpro USING 'SAPMM06B' '0102'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'EBAN-PREIS'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'EBAN-PREIS'
    it_item-preis.
    PERFORM bdc_dynpro USING 'SAPMM06B' '0505'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'EBKN-SAKTO'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTE'.
    PERFORM bdc_field USING 'EBKN-SAKTO'
    it_item-sakto.
    Cost Center
    PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'COBL-KOSTL'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTE'.
    PERFORM bdc_field USING 'COBL-KOSTL'
    it_item-kostl.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTE'.
    ENDLOOP.
    PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RM06B-BNFPO'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BU'.
    Call The Transaction
    PERFORM bdc_transaction USING 'ME51'.
    ENDLOOP.
    Close the BDC Session
    PERFORM close_group.
    reward if useful
    Regards
    Vasu

  • Handling popups in bdc recording

    Hi,
    I am doing bdc recording for a transaction, and there is a popup screen to be handled by the user, but when i am doing recording it is not recording the popup menus. can you please tel me how i can handle popups in BDC recording.
    It is very urgent.
    Thank you.

    Hi Ameen,
    Award points if useful...
    Step by Step approach to ceate simple BDC session program using reusable template.
    This step by step approach can be used to create a Simple BDC program i.e for a transaction which does not have any table control / looping at screen table. The same can also be enhanced to develop a program for transactions involving table controls .
    1. Create a new program as executable program using SE38 transaction code.
    2. Copy the following template code into your program .
    ---- Start of Template -
    REPORT  NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 300.
    *-- DATA DECLARATION--
    *---Types
    DATA : BEGIN OF t_upload,
    FIELD1(10),
    FIELD2(2),
    FIELD3(18),
    FIELD4(35),
    END OF t_upload.
    *--- Tables
    DATA : BEGIN OF i_bdcdata OCCURS 0."to hold the transaction record
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF i_bdcdata.
    DATA: i_upload LIKE STANDARD TABLE OF t_upload," to hold file data.
    i_upload1 LIKE STANDARD TABLE OF t_upload." to hold file data.
    *--- Work Areas
    DATA: wa_upload2 LIKE t_upload,
    wa_upload LIKE t_upload,
    wa_upload1 LIKE t_upload.
    *--- Variables
    DATA: v_count1(4) TYPE n,
    v_error TYPE c,
    v_session(12),
    v_field(21) TYPE c,
    v_message(60) type 'C'.
    *--Constants
    DATA: c_open TYPE c VALUE '(',
    c_close TYPE c VALUE ')',
    c_x TYPE c VALUE 'X'.
    *---Initialisation
    initialization.
    refresh : i_upload , i_upload1 ,i_bdcdata.
    -------Selection Screen Design -
    *Selection screen for input of upload file address
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
    PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk1.
    ---AT SELECTION SCREEN -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    *--For popup to select file.
    PERFORM give_help.
    -----START OF SELECTION -
    START-OF-SELECTION.
    *--Data upload using WS_Upload.
    PERFORM get_data.
    *-- OPEN SESSION
    PERFORM open_group.
    *--Insert transactions using BDCDATA table in the session.
    PERFORM do_transaction .
    *-- Close the session.
    PERFORM close_group.
    END-OF-SELECTION.
    *& Form f_get_data
    For data upload from external file.
    FORM get_data.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'DAT'
    TABLES
    data_tab = i_upload
    EXCEPTIONS
    conversion_error = 1
    file_open_error = 2
    file_read_error = 3
    invalid_type = 4
    no_batch = 5
    unknown_error = 6
    invalid_table_width = 7
    gui_refuse_filetransfer = 8
    customer_error = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    DELETE I_UPLOAD INDEX 1.
    ENDIF.
    ENDFORM. " f_get_data
    *& Form F_open_group
    To open session in session management.
    FORM open_group.
    v_session = 'TCODE'.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = v_session
    user = sy-uname
    keep = 'X'.
    ENDFORM. " F_open_group
    *& Form f_do_transaction
    Insert transactions in session after passing values to BDCDATA
    FORM do_transaction.
    LOOP AT i_upload INTO wa_upload .
    *---- insert your generated codes from recording at SHDB here
    *----- insertion ends
    perform bdc_transaction using 'TCODE'.
    REFRESH : I_BDCDATA.
    CLEAR : WA_UPLOAD.
    ENDIF.
    ENDLOOP.
    ENDFORM. " f_do_transaction
    *& Form bdc_dynpro
    For appending screen details to BDCDATA
    FORM bdc_dynpro USING program dynpro.
    CLEAR i_bdcdata.
    i_bdcdata-program = program.
    i_bdcdata-dynpro = dynpro.
    i_bdcdata-dynbegin = 'X'.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. "bdc_dynpro
    *& Form bdc_field
    For appending field details to bdcdata table
    FORM bdc_field USING fnam fval.
    CLEAR i_bdcdata.
    i_bdcdata-fnam = fnam.
    i_bdcdata-fval = fval.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. " bdc_field
    *& Form bdc_transaction
    For inserting Transaction in the session
    FORM bdc_transaction USING tcode.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = tcode
    TABLES
    dynprotab = i_bdcdata.
    ENDFORM. " bdc_transaction
    *& Form F_close_group
    For closing the session created in Session manager SM35
    FORM close_group.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    concatenate 'Session ' v_session 'successfully created' into v_field.
    MESSAGE v_field type 'I'..
    CALL TRANSACTION 'SM35'.
    ENDFORM. "f_close_group
    *& Form f_give_help
    For user help to select file
    FORM give_help.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    mask = ',.,..'
    mode = 'O'
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    IF sy-subrc <> 0 AND NOT sy-msgty IS INITIAL.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " f_give_help
    ---- End of Template -
    3.Go to the transaction SHDB in another session ( you can also give TCODE - OSHDB in transaction code window and hit enter ).
    4.Create you transaction recording in SHDB . Ensure your transaction recording takes care of input values to all the
    fields to which you intend to pass values in the BDC.
    5.Once your recording is done correctly create the program from recording in the SHDB transction . You will find the button to create program in SHDB . Choose the option of creating from file when you proceed through the subsequent steps.
    6. Define data type t_upload and structure wa_upload in the template program with fields of structure 'RECORD' from the program generated using SHDB recording ( replace the field1, field2 and so on as per your requirement). For your understanding you can remove the suffixes to the
    field name but keep the field size unchanged.
    7.Copy the coding existing between 'do' and 'enddo' statement from the generated program . Insert the copied code between the loop and endloop code of form 'Do_transaction '. Replace fields of structure 'RECORD' with respective fields of structure wa_upload.Insert constant values wherever possible in transaction recording.You can also handle customised data conversions here.
    8.Replace 'TCODE' in the template program with the transaction code you intend to process in this BDC.
    9.Please carry out further syntax check and resolve the related issues.
    This program will provide for input help to select upload file from local machine. The file needs to be in Tab delimited format and is assumed to have first row as column headers .
    On successful creation of session you will be prompted with a Information popup giving the name of session ,and will take you to the SM35 transaction to process your session.

  • How to upload records into Infotype 382(Awards)

    Hi,
      Could anyone suggest me how to upload records into infotype 382(Awards) of an Employee.
    For solutions points rewarded.
    Regards,
    Radhu

    Hi
    you can develop a <b>BDC</b> for transaction <b>PA30</b>
    using infotype 382.
    (or)
    can upload using batch input recording in <b>LSMW</b>.
    regards,
    Thangesh

  • How do I get videos that I recorded off of my iPhone so I can upload them to Facebook? I cannot send them via email nor MMS because it says they're too big.

    How do I get videos that I recorded off of my iPhone so I can upload them to Facebook? I cannot send them via email nor MMS because it says they're too big.

    iTunes is not used to move photos and videos from an iPhone to a computer (it is used to move them the other direction).
    Also note that a connected phone or camera does not show in the Finder on a Mac. It should show in Image Capture or iPhoto.
    The following has instructions on how to move them: iOS: Import personal photos and videos from iOS devices to your computer
    Another option is 3rd party software such as http://www.photosync-app.com

  • How to upload datas in excel sheet through BDC

    Hi,
        I know how to upload datas in Text format  through BDC...Suppose even when datas are in .xls format,I saved that file as Text(tab delimited) format...then file become text format and it can be easily uploaded....
        So, I want to know How to upload datas in excel sheet through BDC

    hi,
    try this Example, hope useful to u, assign me point.
    report ZMSV1_BDC_CALL
           no standard page heading line-size 255.
    *include bdcrecx1.
    *parameters: dataset(132) lower case.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: begin of record,
    data element: BUKRS
            BUKRS_001(004),
    data element: KTOKK
            KTOKK_002(004),
    data element: NAME1_GP
            NAME1_003(035),
    data element: SORTL
            SORTL_004(010),
    data element: ORT01_GP
            ORT01_005(035),
    data element: LAND1_GP
            LAND1_006(003),
    data element: SPRAS
            SPRAS_007(002),
    data element: BANKS
            BANKS_01_008(003),
    data element: BANKK
            BANKL_01_009(015),
    data element: BANKN
            BANKN_01_010(018),
          end of record.
    End generated data section ***
    data: itab like record occurs 0 .
    data: it_bdc type bdcdata occurs 0 with header line.
    data: it_msg type bdcmsgcoll occurs 0 with header line.
    parameter p_file type rlgrap-filename default 'c:\vendor.txt' obligatory
    start-of-selection.
    perform open_dataset using p_file.
    perform open_group.
    *perform close_group.
    *perform close_dataset using dataset.
    *&      Form  open_dataset
          text
         -->P_P_FILE  text
    form open_dataset  using    p_p_file.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
      FILENAME                      = p_file
      FILETYPE                      = 'DAT'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        data_tab                      = itab
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      FILE_OPEN_ERROR               = 2
      FILE_READ_ERROR               = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " open_dataset
    *&      Form  open_group
          text
    -->  p1        text
    <--  p2        text
    form open_group .
    loop at itab into record.
    perform bdc_dynpro      using 'SAPMF02K' '0105'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-BUKRS'
                                  record-BUKRS_001.
    perform bdc_field       using 'RF02K-KTOKK'
                                  record-KTOKK_002.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-ORT01'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                  record-NAME1_003.
    perform bdc_field       using 'LFA1-SORTL'
                                  record-SORTL_004.
    perform bdc_field       using 'LFA1-ORT01'
                                  record-ORT01_005.
    perform bdc_field       using 'LFA1-LAND1'
                                  record-LAND1_006.
    perform bdc_field       using 'LFA1-SPRAS'
                                  record-SPRAS_007.
    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-KOINH(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'LFBK-BANKS(01)'
                                  record-BANKS_01_008.
    perform bdc_field       using 'LFBK-BANKL(01)'
                                  record-BANKL_01_009.
    perform bdc_field       using 'LFBK-BANKN(01)'
                                  record-BANKN_01_010.
    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 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    call transaction 'FK01' using it_bdc mode 'A' update 'S'
                                 messages into it_msg.
      write:/ sy-subrc.
        perform message_formatwrite.
    refresh it_bdc.
    clear it_bdc.
    endloop.
    endform.                    " open_group
    *&      Form  message_formatwrite
          text
    -->  p1        text
    <--  p2        text
    form message_formatwrite .
    data:l_msg(10).
    loop at it_msg.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
       ID              = SY-MSGID
       LANG            = sy-langu
       NO              = SY-MSGNO
       V1              = SY-MSGV1
       V2              = SY-MSGV2
       V3              = SY-MSGV3
       V4              = SY-MSGV4
    IMPORTING
       MSG             = l_msg
    EXCEPTIONS
       NOT_FOUND       = 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.
    endloop.
    endform.                    " message_formatwrite
    *&      Form  bdc_dynpro
          text
         -->P_0112   text
         -->P_0113   text
    form bdc_dynpro  using    value(p_0112)
                              value(p_0113).
    it_bdc-program = p_0112.
      it_bdc-dynpro = p_0113.
      it_bdc-dynbegin = 'X'.
      append it_bdc.
      clear it_bdc.
    endform.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0117   text
         -->P_0118   text
    form bdc_field  using    value(p_0117)
                             value(p_0118).
    it_bdc-fnam = p_0117.
      it_bdc-fval = p_0118.
      append it_bdc.
      clear it_bdc.
    endform.                    " bdc_field
    Regards
    fareedas

  • How to upload data in infotype 0025 (Appraisals)

    I want to make an upload program for infotype 0025 (Appraisals). The program will upload the data in 'Potentials' but I cannot make a recording work in it. Each time the system posts the data into next row and recording does not work since the line number is fixed in recording. There is no + sign to add a row at the top. Can someone please tell me a way to do this or if there is a Function Module that can upload data into infotype 0025.
    Thanks

    Dear Sohaib,
    This upload could not be performed by BDC recording. You will have to make use of around four Appraisal BAPI's to create an entry in Infotype 25(Appraisals). I had the same scenario of uploading appraisal data here at NBP(National Bank of Pakistan). Here is the link for the article i wrote,covering this topic in depth,along with the complete solution:
    http://scn.sap.com/docs/DOC-32084
    If you like this article,kindly flag it as a 'Correct Answer.
    Regards,
    Fahad

  • Data Migration- Infotypes BDC Recording

    Hi All,
    Iam currently working on data migration project.
    Before i joined here,they developed the upload programes,by using Function modules.But when we are doing that,we are able to see in Over veiw,But when we go to change mode,nothing is there on screen.Then we tried Using BDC Recording for IT0105.Then working perfectly.
    So i need a help,if any one of you any idea on list of the Infotypes which need BDC Recording.
    I need the List of infotypes,so that i make sure,we use BDC .
    Its on priority,Pls have some inputs.
    Thanks,
    Anitha

    Hey Anitha,
    BDC and LSMW are both data loading techniques.
    In both cases you will need input files in a specific format so that these are read by your BDC or LSMW program
    The main difference is
    Using BDC you can validate the data in the system. Suppose you want to check if an employee is active before loading the data then BDC is advisable because you can check the employment status of the employee and then upload data or else give a message that employee is terminated and data loading has been skipped
    If there is a straight forward upload without any validation then go for LSMW
    Finally it depends on your requirements
    Cheers
    Ajay
    As stated above IT 0008 has to be filled using table control hence BDC is helpful
    Edited by: Ajay  Hosur on Apr 13, 2010 6:41 AM

  • BDC Recording for uploading data into Fi01

    HI,
    I need to upload date from a file into SAP Fi01 transaction
    i used a sample program and added my bdc recording to it as per instrucrion
    there is a error while uploading.
    i believe it is at the place i am pointing in bold. it is at read dataset. could you advice me how to solve it.
    CODE:
    REPORT Z_BANK_DIRECTORY
    NO STANDARD PAGE HEADING
    LINE-SIZE 200
    LINE-COUNT 300.
    *-- DATA DECLARATION--
    *---Types
    DATA : BEGIN OF t_upload,
    data element: BANKS
            BANKS_001(003),
    data element: BANKK
            BANKL_002(015),
    data element: BANKA
            BANKA_003(060),
    data element: REGIO
            PROVZ_004(003),
    data element: STRAS_GP
            STRAS_005(035),
    data element: ORT01_GP
            ORT01_006(035),
    data element: BRNCH
            BRNCH_007(040),
    data element: SWIFT
            SWIFT_008(011),
    data element: BGRUP
            BGRUP_009(002),
    data element: AD_TITLETX
            TITLE_MEDI_010(030),
    data element: AD_NAME1
            NAME1_011(040),
    data element: AD_STRSPP1
            STR_SUPPL1_012(040),
    data element: AD_STRSPP2
            STR_SUPPL2_013(040),
    data element: AD_STREET
            STREET_014(060),
    data element: AD_CITY2
            CITY2_015(040),
    data element: AD_CITY3
            HOME_CITY_016(040),
    data element: AD_PSTCD1
            POST_CODE1_017(010),
    data element: LAND1
            COUNTRY_018(003),
    data element: AD_POBX
            PO_BOX_019(010),
    data element: AD_PSTCD2
            POST_CODE2_020(010),
    data element: SPRAS
            LANGU_021(002),
    data element: AD_TLNMBR1
            TEL_NUMBER_022(030),
    data element: AD_MBNMBR1
            MOB_NUMBER_023(030),
    data element: AD_FXNMBR1
            FAX_NUMBER_024(030),
    data element: AD_SMTPADR
            SMTP_ADDR_025(132),
    data element: BANKA
            BANKA_026(060),
    data element: REGIO
            PROVZ_027(003),
    data element: STRAS_GP
            STRAS_028(035),
    data element: ORT01_GP
            ORT01_029(035),
    data element: BRNCH
            BRNCH_030(040),
    data element: SWIFT
            SWIFT_031(011),
    data element: BGRUP
            BGRUP_032(002),
    END OF t_upload.
    *--- Tables
    DATA : BEGIN OF i_bdcdata OCCURS 0."to hold the transaction t_upload
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF i_bdcdata.
    DATA: i_upload LIKE STANDARD TABLE OF t_upload," to hold file data.
    i_upload1 LIKE STANDARD TABLE OF t_upload." to hold file data.
    *--- Work Areas
    DATA: wa_upload2 LIKE t_upload,
    wa_upload LIKE t_upload,
    wa_upload1 LIKE t_upload.
    *--- Variables
    DATA: v_count1(4) TYPE n,
    v_error TYPE c,
    v_session(12),
    v_field(21) TYPE c,
    v_message(60) type C.
    *--Constants
    DATA: c_open TYPE c VALUE '(',
    c_close TYPE c VALUE ')',
    c_x TYPE c VALUE 'X'.
    *---Initialisation
    initialization.
    refresh : i_upload , i_upload1 ,i_bdcdata.
    -------Selection Screen Design -
    *Selection screen for input of upload file address
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
    PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk1.
    ---AT SELECTION SCREEN -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    *--For popup to select file.
    PERFORM give_help.
    -----START OF SELECTION -
    START-OF-SELECTION.
    *--Data upload using WS_Upload.
    PERFORM get_data.
    *-- OPEN SESSION
    PERFORM open_group.
    *--Insert transactions using BDCDATA table in the session.
    PERFORM do_transaction .
    *-- Close the session.
    PERFORM close_group.
    END-OF-SELECTION.
    *& Form f_get_data
    For data upload from external file.
    FORM get_data.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'DAT'
    TABLES
    data_tab = i_upload
    EXCEPTIONS
    conversion_error = 1
    file_open_error = 2
    file_read_error = 3
    invalid_type = 4
    no_batch = 5
    unknown_error = 6
    invalid_table_width = 7
    gui_refuse_filetransfer = 8
    customer_error = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    DELETE I_UPLOAD INDEX 1.
    ENDIF.
    ENDFORM. " f_get_data
    *& Form F_open_group
    To open session in session management.
    FORM open_group.
    v_session = 'FI01'.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = v_session
    user = sy-uname
    keep = 'X'.
    ENDFORM. " F_open_group
    *& Form f_do_transaction
    Insert transactions in session after passing values to BDCDATA
    FORM do_transaction.
    LOOP AT i_upload INTO wa_upload .
    *---- insert your generated codes from recording at SHDB here
    read dataset <b>wa_upload</b> into t_upload.
    if sy-subrc <> 0. exit. endif.
    perform bdc_dynpro      using 'SAPMF02B' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BNKA-BANKL'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BNKA-BANKS'
                                  t_upload-BANKS_001.
    perform bdc_field       using 'BNKA-BANKL'
                                  t_upload-BANKL_002.
    perform bdc_dynpro      using 'SAPMF02B' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BNKA-BGRUP'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ADDR'.
    perform bdc_field       using 'BNKA-BANKA'
                                  t_upload-BANKA_003.
    perform bdc_field       using 'BNKA-PROVZ'
                                  t_upload-PROVZ_004.
    perform bdc_field       using 'BNKA-STRAS'
                                  t_upload-STRAS_005.
    perform bdc_field       using 'BNKA-ORT01'
                                  t_upload-ORT01_006.
    perform bdc_field       using 'BNKA-BRNCH'
                                  t_upload-BRNCH_007.
    perform bdc_field       using 'BNKA-SWIFT'
                                  t_upload-SWIFT_008.
    perform bdc_field       using 'BNKA-BGRUP'
                                  t_upload-BGRUP_009.
    perform bdc_dynpro      using 'SAPLSZA1' '0201'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'SZA1_D0100-SMTP_ADDR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CONT'.
    perform bdc_field       using 'SZA1_D0100-TITLE_MEDI'
                                  t_upload-TITLE_MEDI_010.
    perform bdc_field       using 'ADDR1_DATA-NAME1'
                                  t_upload-NAME1_011.
    perform bdc_field       using 'ADDR1_DATA-STR_SUPPL1'
                                  t_upload-STR_SUPPL1_012.
    perform bdc_field       using 'ADDR1_DATA-STR_SUPPL2'
                                  t_upload-STR_SUPPL2_013.
    perform bdc_field       using 'ADDR1_DATA-STREET'
                                  t_upload-STREET_014.
    perform bdc_field       using 'ADDR1_DATA-CITY2'
                                  t_upload-CITY2_015.
    perform bdc_field       using 'ADDR1_DATA-HOME_CITY'
                                  t_upload-HOME_CITY_016.
    perform bdc_field       using 'ADDR1_DATA-POST_CODE1'
                                  t_upload-POST_CODE1_017.
    perform bdc_field       using 'ADDR1_DATA-COUNTRY'
                                  t_upload-COUNTRY_018.
    perform bdc_field       using 'ADDR1_DATA-PO_BOX'
                                  t_upload-PO_BOX_019.
    perform bdc_field       using 'ADDR1_DATA-POST_CODE2'
                                  t_upload-POST_CODE2_020.
    perform bdc_field       using 'ADDR1_DATA-LANGU'
                                  t_upload-LANGU_021.
    perform bdc_field       using 'SZA1_D0100-TEL_NUMBER'
                                  t_upload-TEL_NUMBER_022.
    perform bdc_field       using 'SZA1_D0100-MOB_NUMBER'
                                  t_upload-MOB_NUMBER_023.
    perform bdc_field       using 'SZA1_D0100-FAX_NUMBER'
                                  t_upload-FAX_NUMBER_024.
    perform bdc_field       using 'SZA1_D0100-SMTP_ADDR'
                                  t_upload-SMTP_ADDR_025.
    perform bdc_dynpro      using 'SAPMF02B' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BNKA-BANKA'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPDA'.
    perform bdc_field       using 'BNKA-BANKA'
                                  t_upload-BANKA_026.
    perform bdc_field       using 'BNKA-PROVZ'
                                  t_upload-PROVZ_027.
    perform bdc_field       using 'BNKA-STRAS'
                                  t_upload-STRAS_028.
    perform bdc_field       using 'BNKA-ORT01'
                                  t_upload-ORT01_029.
    perform bdc_field       using 'BNKA-BRNCH'
                                  t_upload-BRNCH_030.
    perform bdc_field       using 'BNKA-SWIFT'
                                  t_upload-SWIFT_031.
    perform bdc_field       using 'BNKA-BGRUP'
                                  t_upload-BGRUP_032.
    *----- insertion ends
    perform bdc_transaction using 'FI01'.
    REFRESH : I_BDCDATA.
    CLEAR : WA_UPLOAD.
    ENDIF.
    ENDLOOP.
    ENDFORM. " f_do_transaction
    *& Form bdc_dynpro
    For appending screen details to BDCDATA
    FORM bdc_dynpro USING program dynpro.
    CLEAR i_bdcdata.
    i_bdcdata-program = program.
    i_bdcdata-dynpro = dynpro.
    i_bdcdata-dynbegin = 'X'.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. "bdc_dynpro
    *& Form bdc_field
    For appending field details to bdcdata table
    FORM bdc_field USING fnam fval.
    CLEAR i_bdcdata.
    i_bdcdata-fnam = fnam.
    i_bdcdata-fval = fval.
    APPEND i_bdcdata.
    CLEAR i_bdcdata.
    ENDFORM. " bdc_field
    *& Form bdc_transaction
    For inserting Transaction in the session
    FORM bdc_transaction USING tcode.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = 'FI01'
    TABLES
    dynprotab = i_bdcdata.
    ENDFORM. " bdc_transaction
    *& Form F_close_group
    For closing the session created in Session manager SM35
    FORM close_group.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    concatenate 'Session ' v_session 'successfully created' into v_field.
    MESSAGE v_field type 'I'..
    CALL TRANSACTION 'SM35'.
    ENDFORM. "f_close_group
    *& Form f_give_help
    For user help to select file
    FORM give_help.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    mask = ',.,..'
    mode = 'O'
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    IF sy-subrc <> 0 AND NOT sy-msgty IS INITIAL.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " f_give_help
    ---- End of Template -

    Actually, there is no need for the dataset statemant at all.  Comment that out, and add a line that moves the data from wa_upload to t_upload,  or you could change the rest of the references to point to wa_upload and forget about t_upload.  Your choice.
    LOOP AT i_upload INTO wa_upload .
    *---- insert your generated codes from recording at SHDB here
    *read dataset wa_upload into t_upload.
    *f sy-subrc <> 0. exit. endif.
    t_upload = wa_upload.
    Regards,
    RIch Heilman

  • What is the tcode for bdc recording and how to do in hr-abap for pa and om

    hi,
         I need to do the bdc recording for pa and om. So, can any of you tell me how to do and what are the tcodes we have to use.
    thanks & regards,
        Sekhar.

    Hi ,
    Here is the link from you will get all the transaction code
    http://www.sap-basis-abap.com/saphr004.htm
    As far PA specfic some tcodes are given below
    PA20  Display HR Master Data
    PA30  Maintain HR Master Data
    PA40  Personnel Actions
    PA41  Correct Actions
    PA42  Fast Entry for Actions
    PA46  Import from Resumix
    PA47  Export to Resumix
    PA48  Hiring from non-SAP system
    PA51  Display Time Data
    PA53  Display Time Data
    PA61  Maintain Time Data
    PA62  List Entry of Additional Data
    PA63  Maintain Time Data
    PA64  Calendar Entry
    PA70  Fast Entry
    PA71  Fast Entry of Time Data
    PA88  Benefits
    For OM specific
    PP01  Maintain Plan Data (menu-guided)

  • How to upload above20000 records csv files into oracle table,Oracle APEX3.2

    Can any one help me how to CSV upload more than 20,000 records using APEX 3.2 upload process.i am using regular upload process using BOLB file
    SELECT blob_content,id,filename into v_blob_data,v_file_id,v_file_name
    FROM apex_application_files
    WHERE last_updated = (select max(last_updated)
    from apex_application_files WHERE UPDATED_BY = :APP_USER)
    AND id = (select max(id) from apex_application_files where updated_by = :APP_USER);
    I tried to upload but my page getting time out. my application best working up to 1000 records. after that its getting timed out.Each record is storing 2 secornds in the oracle table.So 1000 records it taking 7 minuts after that APEX upload webpage getting timed out
    please help me with source how to speed upload csv file process or help another best with with source example.
    Thanks,
    Sant.
    Edited by: 994152 on Mar 15, 2013 5:38 AM

    See this posting:
    Internet Explorer Cannot Display
    There, I provided a couple of links on this particular issue. You need to change the timeout on your application server.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • IPhone 5s, call quality, periodic echo

    I upgraded from the iPhone 4 to the 5s 4 months ago.  Ever since I upgraded, I have periodic issues with call quality.  In the middle of a call I will all the sidden start to hear myself talk and the person on the other end cant hear me at all and I

  • How do I change Safari's assumed and unwanted email address?

    I can't for the life of me find where Safari stores my preferred email address.  This becomes trouble when click on an email address within a web page.  Craigslist, for instnace. Safari assumes I want to send email from my google mail address.  I don

  • I want .swf in InDesign to loop

    I created a slideshow in InDesign by placing each element on a different layer and then setting the timing and effects. There is no "Loop" setting when exporting a .swf from InDesign like there is in Illustrator. When the slideshow .swf was placed in

  • How to Correctly Trap PL/SQL Errors for APEX

    This is probably a simple fix but, I have been at it for a while and can't seem to find the magic combination. I have a page process that calls back end PL/SQL. I have a page item that is populated by said PL/SQL procedure, P35_PROCESSING_MSG. As you

  • What are the DAC endpoints for the Brazil and Japan data centers?

    Microsoft really should publish what the DAC endpoints for the new Brazil and Japan regions are. For instance, the one for North Central US is https://ch1prod-dacsvc.azure.com/DACWebService.svc and the one for Hong Kong is https://hkgprod-dacsvc.azur