Problem in uploading HR master Data from excel

Hello
When I am  uploading HR master data using excel , I get the error
"Error in info type 0006 and emp no 00000016 with msg id 00 no. 055 msg Fill in all required entry fields "
I have filled in   the following fields for  infotype 0006:-
SUBTY ='1'
ANSSA = '1'
STRAS  , LOCAT ,ORT01, STATE , PSTLZ , LAND1, TELNR.'
But  I am getting the error  for  filling the required entry fields.
I am using The function module  HR_MAINTAIN_MASTERDATA.
If anyone has an idea...about the problem, please write

No work schedule rule for key 1 0501NORM 20090101 ###
This type of error is a functional one . It simply means you are trying to feed the field with value which is not acceptable (here work schedule does not exist for specific key). Either contatct your functional collegue to check the configuration or change the provided data.
Also as Bala noticed you should always check if relevant record is allowed to be entered directly in PA30. Make sure all required fields are provided too.The best is to either enter it manually or use SHDB to record this entry and get technical field names. You then know which fields you need to provide in order to create a correct entry.
Regards
Marcin

Similar Messages

  • Error while uploading HR master data from inQuality server

    Hi, Expert. While uploading of MAster data from Developement to Quality by BDC. When program starts for Tcode PA40, selecting Hiring Action, it is goining to the Action Screen. Here while taking the position from HR template, it gives error as Position is not in Table T428B. Payroll area on the date (Date of original hiring, of the person) it is taking DM as defalt in place of our created Area and terminating. When i am trying entering the data manually, it is giving same error for Position. I am not able to upload the data. Kindly help me by suggesting me the correct sequence and steps for uploading the data. Correct answer will be provided with STARSSSSSS **. Regds Punit.

    Have all your configurations been transported to Quality?
    Have you created the positions before initiating BDC for Hiring?
    Check Feature ABKRS in Quality. Is this same as in Development?
    Is your BDC running OK in Development?
    Regards,

  • How to upload the master data from legacy to SAP

    Hi Frends,
    how to upload the master data from legacy system to SAP System once the configuration is over.how to carry forward the open items of vendors and customers while uploading.who will upload functional consultantsor ABAPER.
    please clarify me
    Regards
    Sap Guru

    Hi ,
    use LSMW  or BDC for uploading Master & transaction data.
    This work is done by the Respective Functional team.
    Chandra

  • Upload vendor master data from legacy system to internal table tcode xk01

    through batch input program how to upload vendor master data from legacy system to internal table and then to SAP R/3 database(transaction XK01) by using recording method.

    By learning the basics of BDC recording and the use of GUI_UPLOAD

  • How to upload Bulk Customer Data from Excel or Notepad?

    Hi
    Could any body explain me how can we upload bulk customer master data into SAP system. How the LSMW functionality works for it. what are the prerequisites to upload the data into the system, and Could any body explain me the detailed procedure to upload Customer master data into the system.
    As well I request you to know what are the other functionality we use for uploading. What would be the difference between IDOC and BDC functionalities.
    your suggestions will be highly appreciated?
    Raghu Ram

    hi raghu,
    this is sample code of bdc,
    REPORT zbdc_cus_create_ctm NO STANDARD PAGE HEADING MESSAGE-ID zsmep.
    *& Request ID: ECCK900136
    *& Author : seshu
    *& Date : 20/03/2007
    *& This report Creates customer Master Details through BDC-Call transaction
    *& method and download error files to the presentation server.
    DATA: BEGIN OF t_tab OCCURS 0,
    kunnr TYPE kun16,
    bukrs TYPE bukrs,
    vkorg TYPE vkorg,
    vtweg TYPE vtweg,
    spart TYPE spart,
    ktokd TYPE ktokd,
    name1 TYPE name1_gp,
    sortl TYPE sortl,
    ort01 TYPE ort01_gp,
    land1 TYPE land1_gp,
    spras TYPE spras,
    pstlz TYPE pstlz,
    civve TYPE civve,
    akont TYPE akont,
    awahr TYPE awahr,
    waers TYPE waers_v02d,
    kzazu TYPE kzazu_d,
    antlf TYPE string.
    DATA: END OF t_tab.
    DATA: BEGIN OF t_tab1 OCCURS 0,
    kunnr TYPE kun16,
    bukrs TYPE bukrs,
    vkorg TYPE vkorg,
    vtweg TYPE vtweg,
    spart TYPE spart,
    ktokd TYPE ktokd,
    name1 TYPE name1_gp,
    sortl TYPE sortl,
    ort01 TYPE ort01_gp,
    land1 TYPE land1_gp,
    spras TYPE spras,
    pstlz TYPE pstlz,
    civve TYPE civve,
    akont TYPE akont,
    awahr TYPE awahr,
    waers TYPE waers_v02d,
    kzazu TYPE kzazu_d,
    antlf TYPE string.
    DATA: END OF t_tab1.
    DATA: BEGIN OF g_tab_create OCCURS 0,
    kunnr TYPE kunnr,
    messa TYPE string.
    DATA: END OF g_tab_create.
    DATA: BEGIN OF g_tab_error OCCURS 0,
    kunnr TYPE kunnr,
    messa TYPE string.
    DATA: END OF g_tab_error.
    DATA: g_tab TYPE TABLE OF string,
    g_wa TYPE string.
    *DATA: g_tab TYPE TABLE OF t_tab,
    g_wa LIKE LINE OF g_tab.
    DATA: g_tab1 TYPE TABLE OF string.
    *itab for mapping...
    DATA: BEGIN OF tab_map OCCURS 0.
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF tab_map.
    *itab for error messages...
    DATA: BEGIN OF tab_error OCCURS 0.
    INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF tab_error.
    DATA: BEGIN OF l_tab OCCURS 0,
    l_text TYPE string.
    DATA: END OF l_tab.
    *delcarations for blocked alv...
    TYPE-POOLS: slis.
    DATA: l_tab_fieldcatlog TYPE slis_t_fieldcat_alv,
    l_tab_fieldcatlog1 TYPE slis_t_fieldcat_alv,
    l_layout TYPE slis_layout_alv,
    l_events TYPE slis_t_event,
    l_events1 TYPE slis_t_event,
    l_wa_events LIKE LINE OF l_events,
    l_pos TYPE i,
    report TYPE sy-repid,
    path TYPE string,
    path1 TYPE string.
    End generated data section ***
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: file TYPE ibipparms-path OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: file1 TYPE ibipparms-path.
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = file.
    MOVE file TO path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file1.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = file1.
    MOVE file1 TO path1.
    AT SELECTION-SCREEN .
    IF file EQ file1.
    MESSAGE e103(zsmep).
    EXIT.
    ENDIF.
    START-OF-SELECTION.
    *call transaction method...
    PERFORM call_ctm.
    *display the output in blocked alv...
    PERFORM disply_block_alv.
    *& Form call_ctm
    text
    FORM call_ctm.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = path
    filetype = 'ASC'
    HAS_FIELD_SEPARATOR = ' '
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    TABLES
    data_tab = g_tab
    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.
    DATA: text TYPE TABLE OF string.
    LOOP AT g_tab INTO g_wa.
    SPLIT g_wa AT '|' INTO: t_tab-kunnr
    t_tab-bukrs
    t_tab-vkorg
    t_tab-vtweg
    t_tab-spart
    t_tab-ktokd
    t_tab-name1
    t_tab-sortl
    t_tab-ort01
    t_tab-land1
    t_tab-spras
    t_tab-pstlz
    t_tab-civve
    t_tab-akont
    t_tab-awahr
    t_tab-waers
    t_tab-kzazu
    t_tab-antlf,
    TABLE text.
    APPEND t_tab.
    CLEAR g_wa.
    ENDLOOP.
    LOOP AT t_tab.
    REFRESH tab_map.
    PERFORM sub USING 'SAPMF02D' '0100'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'RF02D-KTOKD'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub1 USING 'RF02D-KUNNR'
    t_tab-kunnr.
    PERFORM sub1 USING 'RF02D-BUKRS'
    t_tab-bukrs.
    PERFORM sub1 USING 'RF02D-VKORG'
    t_tab-vkorg.
    PERFORM sub1 USING 'RF02D-VTWEG'
    t_tab-vtweg.
    PERFORM sub1 USING 'RF02D-SPART'
    t_tab-spart.
    PERFORM sub1 USING 'RF02D-KTOKD'
    t_tab-ktokd.
    PERFORM sub USING 'SAPMF02D' '0110'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNA1-SPRAS'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub1 USING 'KNA1-NAME1'
    t_tab-name1.
    PERFORM sub1 USING 'KNA1-SORTL'
    t_tab-sortl.
    PERFORM sub1 USING 'KNA1-ORT01'
    t_tab-ort01.
    PERFORM sub1 USING 'KNA1-LAND1'
    t_tab-land1.
    PERFORM sub1 USING 'KNA1-SPRAS'
    t_tab-spras.
    PERFORM sub1 USING 'KNA1-PSTLZ'
    t_tab-pstlz.
    PERFORM sub USING 'SAPMF02D' '0120'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNA1-LIFNR'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub USING 'SAPMF02D' '0125'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNA1-NIELS'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub USING 'SAPMF02D' '0130'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNBK-BANKS(01)'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM sub USING 'SAPMF02D' '0340'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'RF02D-KUNNR'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM sub USING 'SAPMF02D' '0370'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'RF02D-KUNNR'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM sub1 USING 'KNA1-CIVVE'
    t_tab-civve.
    PERFORM sub USING 'SAPMF02D' '0360'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNVK-NAMEV(01)'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM sub USING 'SAPMF02D' '0210'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNB1-AKONT'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub1 USING 'KNB1-AKONT'
    t_tab-akont.
    PERFORM sub USING 'SAPMF02D' '0215'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNB1-GUZTE'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub USING 'SAPMF02D' '0220'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNB5-KNRMA'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub USING 'SAPMF02D' '0230'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNB1-VRSNR'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub USING 'SAPMF02D' '0310'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNVV-BZIRK'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub1 USING 'KNVV-AWAHR'
    t_tab-awahr.
    PERFORM sub1 USING 'KNVV-WAERS'
    t_tab-waers.
    PERFORM sub USING 'SAPMF02D' '0315'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNVV-LPRIO'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub1 USING 'KNVV-KZAZU'
    t_tab-kzazu.
    PERFORM sub1 USING 'KNVV-ANTLF'
    t_tab-antlf.
    PERFORM sub USING 'SAPMF02D' '0320'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNVV-PERFK'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '/00'.
    PERFORM sub USING 'SAPMF02D' '1350'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'RF02D-KUNNR'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM sub USING 'SAPMF02D' '0324'.
    PERFORM sub1 USING 'BDC_CURSOR'
    'KNVP-PARVW(01)'.
    PERFORM sub1 USING 'BDC_OKCODE'
    '=ENTR'.
    CALL TRANSACTION 'XD01' USING tab_map
    MODE 'N'
    UPDATE 'A'
    MESSAGES INTO tab_error.
    LOOP AT tab_error.
    DATA: l_message TYPE string.
    IF tab_error-msgtyp = 'I' OR tab_error-msgtyp = 'S'.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = tab_error-msgid
    lang = 'EN'
    no = tab_error-msgnr
    v1 = tab_error-msgv1
    v2 = tab_error-msgv2
    v3 = tab_error-msgv3
    v4 = tab_error-msgv4
    IMPORTING
    msg = l_message
    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.
    MOVE: t_tab-kunnr TO g_tab_create-kunnr,
    l_message TO g_tab_create-messa.
    APPEND g_tab_create.
    ELSEIF
    tab_error-msgtyp = 'E'.
    MOVE-CORRESPONDING t_tab TO t_tab1.
    APPEND t_tab1.
    DATA: text1 TYPE string.
    CONCATENATE t_tab-kunnr
    t_tab-bukrs
    t_tab-vkorg
    t_tab-vtweg
    t_tab-spart
    t_tab-ktokd
    t_tab-name1
    t_tab-sortl
    t_tab-ort01
    t_tab-land1
    t_tab-spras
    t_tab-pstlz
    t_tab-civve
    t_tab-akont
    t_tab-awahr
    t_tab-waers
    t_tab-kzazu
    t_tab-antlf
    INTO text1 SEPARATED BY '|'.
    l_tab-l_text = text1 .
    APPEND l_tab.
    *error records downlaod to pc...
    PERFORM gui_downlaod.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = tab_error-msgid
    lang = 'EN'
    no = tab_error-msgnr
    v1 = tab_error-msgv1
    v2 = tab_error-msgv2
    v3 = tab_error-msgv3
    v4 = tab_error-msgv4
    IMPORTING
    msg = l_message
    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.
    MOVE: t_tab-kunnr TO g_tab_error-kunnr,
    l_message TO g_tab_error-messa.
    APPEND g_tab_error.
    ENDIF.
    ENDLOOP.
    REFRESH tab_error.
    CLEAR l_message.
    ENDLOOP.
    ENDFORM. "call_ctm
    *& Form sub
    text
    -->A text
    -->B text
    FORM sub USING a b.
    CLEAR tab_map.
    tab_map-program = a.
    tab_map-dynpro = b.
    tab_map-dynbegin = 'X'.
    APPEND tab_map.
    ENDFORM. "FORM
    " sub
    *& Form sub1
    text
    -->P_0579 text
    -->P_0580 text
    FORM sub1 USING c d.
    CLEAR tab_map.
    tab_map-fnam = c.
    tab_map-fval = d.
    APPEND tab_map.
    ENDFORM. " sub1
    *END-OF-SELECTION.
    *& Form disply_block_alv
    text
    --> p1 text
    <-- p2 text
    FORM disply_block_alv .
    PERFORM fill_fieldcatlog.
    PERFORM fill_fieldcatlog1.
    PERFORM call_block_alv.
    ENDFORM. " disply_block_alv
    *& Form fill_fieldcatlog
    text
    --> p1 text
    <-- p2 text
    FORM fill_fieldcatlog .
    PERFORM build_catlog USING l_pos 'G_TAB_CREATE' 'KUNNR' '16' text-004.
    PERFORM build_catlog USING l_pos 'G_TAB_CREATE' 'MESSA' '90' text-005.
    ENDFORM. " fill_fieldcatlog
    *& Form BUILD_CATLOG
    text
    -->P_L_POS text
    -->P_0844 text
    -->P_0845 text
    -->P_0846 text
    -->P_TEXT_004 text
    FORM build_catlog USING u_pos TYPE any
    value(u_0844) TYPE any
    value(u_0845) TYPE any
    value(u_0846) TYPE any
    u_text TYPE any.
    DATA: l_wa_fieldcatlog TYPE slis_fieldcat_alv.
    ADD 1 TO u_pos.
    l_wa_fieldcatlog-col_pos = u_pos.
    l_wa_fieldcatlog-tabname = u_0844.
    l_wa_fieldcatlog-fieldname = u_0845.
    l_wa_fieldcatlog-outputlen = u_0846.
    l_wa_fieldcatlog-reptext_ddic = u_text.
    APPEND l_wa_fieldcatlog TO l_tab_fieldcatlog.
    ENDFORM. " BUILD_CATLOG
    *& Form fill_fieldcatlog1
    text
    --> p1 text
    <-- p2 text
    FORM fill_fieldcatlog1 .
    PERFORM build_catlog1 USING l_pos 'G_TAB_ERROR' 'KUNNR' '16' text-004.
    PERFORM build_catlog1 USING l_pos 'G_TAB_ERROR' 'MESSA' '90' text-005.
    ENDFORM. " fill_fieldcatlog1
    *& Form build_catlog1
    text
    -->P_L_POS text
    -->P_0913 text
    -->P_0914 text
    -->P_0915 text
    -->P_TEXT_004 text
    FORM build_catlog1 USING u_pos TYPE any
    value(u_0913) TYPE any
    value(u_0914) TYPE any
    value(u_0915) TYPE any
    u_text TYPE any.
    DATA: l_wa_fieldcatlog1 TYPE slis_fieldcat_alv.
    ADD 1 TO u_pos.
    l_wa_fieldcatlog1-col_pos = u_pos.
    l_wa_fieldcatlog1-tabname = u_0913.
    l_wa_fieldcatlog1-fieldname = u_0914.
    l_wa_fieldcatlog1-outputlen = u_0915.
    l_wa_fieldcatlog1-reptext_ddic = u_text.
    APPEND l_wa_fieldcatlog1 TO l_tab_fieldcatlog1.
    ENDFORM. " build_catlog1
    *& Form CALL_BLOCK_ALV
    text
    --> p1 text
    <-- p2 text
    FORM call_block_alv .
    report = sy-repid.
    CLEAR l_events.
    l_wa_events-name = slis_ev_top_of_page.
    l_wa_events-form = 'TOP_OF_PAGE'.
    APPEND l_wa_events TO l_events.
    CLEAR l_wa_events.
    l_wa_events-name = slis_ev_top_of_page.
    l_wa_events-form = 'ETOP_OF_PAGE'.
    APPEND l_wa_events TO l_events1.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = report
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    IT_EXCLUDING =
    IF g_tab_create[] IS INITIAL.
    MESSAGE s101(zsmep).
    EXIT.
    ELSE.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = l_layout
    it_fieldcat = l_tab_fieldcatlog
    i_tabname = 'G_TAB_CREATE'
    it_events = l_events
    IT_SORT =
    I_TEXT = ' '
    TABLES
    t_outtab = g_tab_create
    EXCEPTIONS
    PROGRAM_ERROR = 1
    MAXIMUM_OF_APPENDS_REACHED = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    IF g_tab_error[] IS INITIAL.
    MESSAGE s102(zsmep).
    ELSE.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = l_layout
    it_fieldcat = l_tab_fieldcatlog1
    i_tabname = 'G_TAB_ERROR'
    it_events = l_events1
    IT_SORT =
    I_TEXT = ' '
    TABLES
    t_outtab = g_tab_error
    EXCEPTIONS
    PROGRAM_ERROR = 1
    MAXIMUM_OF_APPENDS_REACHED = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    IS_PRINT =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " CALL_BLOCK_ALV
    *& Form top_of_page
    text
    --> p1 text
    <-- p2 text
    FORM top_of_page .
    WRITE: 'Created Records'.
    ENDFORM. " top_of_page
    *& Form ETOP_OF_PAGE
    text
    --> p1 text
    <-- p2 text
    FORM etop_of_page .
    WRITE: 'Error Records'.
    ENDFORM. " ETOP_OF_PAGE
    *& Form gui_downlaod
    text
    --> p1 text
    <-- p2 text
    FORM gui_downlaod .
    MOVE file1 TO path1.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = path1
    filetype = 'ASC'
    APPEND = ' '
    write_field_separator = '|'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
    IMPORTING
    FILELENGTH =
    TABLES
    data_tab = l_tab
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " gui_downlaod 
    this is one of the bdc method to upload data from notepad to sap.
    regards,
    seshu.

  • Problem with deleting old master Data from 0Material

    Hello, we try to delete the master data from 0Material.
    But we get the message that some data are used and can not be deleted.
    We can see the error message in slg1:
    "Master data 000000000100000007 (SID                                                   7) is used in /BI0/HMATERIAL; is not deleted"
    "Master data R23188 (SID                                                5316) is used in /BI0/D0RT_C071; is not deleted"
    Can we just clear these tables? Is it enough for resolving the problem?
    Thank You.

    Hi,
    no you just can't "clear" these table unless you want to screw your datawarehouse....
    the first message means that the material with SID 7 is used in a hierachy of 0MATERIAL ==> adjust the hierarchy first.
    the second message indicates that the material with SID 5316 is used in the ICube 0RT_C07 and you CANNOT delete master data if it is used in other objects.
    First run RSRV for this dimension in order to see if the DIMID is really used by the fact table. Perform the following test "Entries Not Used in the Dimension of an InfoCube " with your cube and dim.
    if the DIMID is not used then "correct" the error; you'll then be able to delete your SID.
    If the DIMID is used then you'll have to delete your cube data if you really want to delete this material; otherwise you'll have to keep it.
    Finally rerun you master data deletion.
    hope this helps...
    Olivier.
    Edited by: Olivier Cora on Jul 31, 2008 9:07 AM

  • Problem in uploading material master data using BAPI?

    Hi all,
    I am using BAPI_MATERIAL_SAVEDATA to upload materail master data. Here i have to pass moving average price values in two currenices(using account_view and valuationdata in BAPI). But i found only one field for  moving average price i.e moving_pr in valuationdata.
    Please help me on how to upload the moving average price in two currencies?
    Thanks,
    Aravind.

    Hi
    There is function module BAPI_MATERIAL_SAVEREPLICA where
    VALUATIONDATA parameter is in the tables tab.
    But I didn't test it. Try, may be it works as you need.

  • Standard Report to upload Master Data from Excel files

    Hi,
    I am testing some configuration items and I am in need of master data for various scenarios, which is not available in the system now. Is there any standard report that will read data from an excel sheet and upload the corresponding infotypes? This will be of great help.
    Thanks
    K

    Hi,
    As far as I know, there is no standard report in SAP for master data load using excel sheet. You have write a custom z-program with the help of BDC for basic actions or for individual infotypes upload you can use 'Fast Entry' for quickly uploading data for any perticular infoype using Tcode PA30.
    Hope this helps.
    Thanks,
    Sarika.

  • Character problem in toad import table data from excel

    Hi everybody,
    I want to import data from an excel file to an Oracle table, so I'm using Toad's "Import Table Data" tool for this purpose.
    The problem is Oracle doesn't import non-english characters properly.
    My database is XE and character set is 'AL32UTF8'.
    I searched web, but didn't find the solution.
    Please help...

    Hi again,
    Thank you for your reply Srini, but it is not about Toad.
    Character encoding of Excel causes the problem.
    I exported an unicode encoded csv file from excel and tried to load data from that file. It worked.
    Thanks.

  • Uploading Material Master data from legacy system

    Hi all,
    do we have any sap defined bdc for material master data ,if no ho to do that can anybody explain me step by step procedure how to do that
    Thanks in advance
    Santosh R

    Santosh,
    Use BAPI as we already have pre-defined BAPI for material upload given by SAP.
    <b>BAPI_MATERIAL_SAVEDATA</b>
    Also check this BAPI in MM01 uploading for the complete code I have written.
    Regards
    Aneesh.

  • Uploading the Master data From SCAT

    Hi Experts ,
                        Can any one explain how to upload the mater data by using SCAT(In Step Wise).

    SCAT (CATT)

  • Problem in uploading material master data using BDC?

    Hi all,
    I am using  BDC call transaction method to upload material data. Here i am facing a problem that a value in the flat file is going to the wrong screen field . But my recording done properly.
    In recording, after entering the data in the view BASIC DATA1 and trying to enter the text . For this i need to scroll down the scroll bar and after that i am clicking on basic data text and entering the text. Here i am not touching the languge field.
    But the problem is the text to be entered into the basic data text is storing in language and giving error.
    Please help me by specifying the reason and solution for this problem? Whether i did any mistake in recording in scrolling?
    Thanks,
    Vamshi.

    Hi
    Go with BAPI for such huge transactions and screens. Use BAPI: BAPI_MATERIAL_SAVEDATA.
    Regards,
    Vishwa.

  • Problem with uploading data from excel using BDC for tcode f-02

    Hi All,
    I am uploading data from excel using BDC for tcode f-02. The problem here is, while recording, the values of some fields are recording twice. I dont know why it's happening so. But if I run my abap program, I have to give those fields twice in my excel sheet. Otherwise data does not upload. But it is not the feasible way. We must give those fields once in excel. Please tell me, how I can solve the issue.
    With regards,
    Rosaline.

    Hi,
      in BDC each and every action is recording. If your press enter in same screen that also recorded once aging may be this is your case repeating field values will appear. we can solve the problem for repeat fields like below.
    suppose in your excel having repeated field X1 X2 X3 the X2 contains repeated field X3 means delete the X3 field.
    Now In your itab having X1 and X2 fields. While in the LOOP the ITAB pass the X2 field to repeated the fields.
    LOOP at ITAB to WA.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'RM08M-EBELN'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." 1st time pass the X2 fields
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." pass the same value to repeated field
    APPEND bdcdata_wa TO bdcdata_tab.
    Endloop.
    Hope you can understand.
    Regards,
    Dhina..

  • Steps to prepare and upload legacy master data excel files into SAP?

    Hi abap experts,
    We have brand new installed ECC system somehow configured but with no master or transaction data loaded .It is new empty system....We also have some legacy data in excel files...We want to start loading some data into the SAP sandbox step by step and to see how they work...test some transactions see if the loaded data are good etc initial tests.
    Few questions here are raised:
    -Can someone tell me what is the process of loading this data into SAP system?
    -Should this excel file must me reworked prepared somehow(fields, columns etc) in order to be ready for upload to SAP??
    -Users asked me how to prepared their legacy excel files so they can be ready in SAP format for upload.?Is this an abaper job or it is a functional guy job?
    -Or should the excel files be converted to .txt files and then imported to SAP?Does it really make some difference if files are in excel or .txt format?
    -Should the Abaper determine the structure of those excel file(to be ready for upload ) and if yes, what are the technical rules here ?
    -What tools should be used for this initial data loads? CATT , Lsmw , batch input or something else?
    -At which point we should test the data?I guess after the initial load?
    -What tools are used in all steps before...
    -If someone can provide me with step by step scenario or guide of loading some kind of initial master data - from .xls file alignment to the real upload - this will be great..
    You can email me some upload guide or some excel/txt file examples and screenshots documents to excersize....
    Your help is appreciated it.!
    Jon

    hi,
    excel sheet uploading:
    http://www.sap-img.com/abap/upload-direct-excel.htm
    http://www.sap-img.com/abap/excel_upload_alternative-kcd-excel-ole-to-int-convert.htm
    http://www.sapdevelopment.co.uk/file/file_upexcel.htm
    http://www.sapdevelopment.co.uk/ms/mshome.htm

  • Upload data from Excel to Internal table in ECC

    Hello SDN,
    Here I am facing a problem for uploading the data from excel sheet to internal table in ECC6.0
    Main problem is we don't have any FM ALSM_EXCEL_TO_INTERNAL_TABLE.
    Please provide me the solution how to upload the data from excel to internal table through class. If possible please provide me the sample code so that it will be very helpful for me.
    Waitingfor your valuable response.
    Thanks & Regards,
    Kumar.

    Hi,
    you can use OLE to acces (not only) excel, but this will only work in dialog processing.
    regards,
    Hans

Maybe you are looking for

  • New Value Fields in COPA

    hi All COPA configuration with characteristics and value fields is already transported to QAS. I have created three new Value fileds in DEV and want to transport in QAS?

  • MacBook Pro as second monitor for 27" iMac

    Hello, Yesterday I purchased a 13" MacBook Pro and a Thunderbolt cable. I figured out how to use my 27" iMac as an extended display for the MacBook Pro by clicking cmnd F2 on the iMac's keyboard but how do you use MacBook Pro as an extended display f

  • WBS Report in SAP

    Dear Gurus,               When entering any expense GL I can put data in cost center but not in WBS . If I will change the FSG of this Expense GL and make wbs optional or mandatory I can then put  data in WBS . But I want to know without putting Data

  • Delete information in a TAble

    I have a table Z99 ( I create it on SAP , se11 ). When I refresc a TableControl ( table ITAB )... I want to delete all the informaction  on Z99 and insert all the information on ITAB ( for update information base). I try to do : Refresh z99 . But err

  • Font substituion in Keynote

    When I set up my slides the fonts look fine. Once the document has been quit out of, and later re-opened, the spelling of the words has changed. I notice this in Safari as well when navigating through some of Apple's webpages. For ex: I spelled "Anti