Skip to Content
avatar image
Former Member

how do I download the logfile for my record.

Hi ,

I have used "/SAPSLL/MARC_UPLOAD_R3" for data conversion.

Data conversion went through, but how do I download the logfile after the execution of data conversion program for my record. ?.

thanks

siva

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 09, 2008 at 04:02 AM

    hi,

    Use Program : RSBDCLOG

    In Call Transaction we can download errors directly by using the function Module 'download'. But in session method there is only one way to download the errors .ie By running the the program RSBDCLOG U can get the error details .

    Hope it will help you

    Thanks and Regards

    Rahul Sharma

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      After the data load I can see the load log on the screen. How do I download the same into some file. I don't find any menu item which will enable me to do the same.

      Is there any easy solution than the one already suggested.

      thanks

      siva

  • avatar image
    Former Member
    Sep 09, 2008 at 04:03 AM

    Hi Sivanantham ,

    you can use the below given code for that...

    *--DOWNLOAD ERROR FILE TO PRESENTATION SERVER

    CONCATENATE p_fname '.err' INTO l_filename.

    *-- FUNCTION MODULE TO UPLOAD INTERNAL TABLE TO THE FILE

    CALL FUNCTION 'GUI_DOWNLOAD'

    EXPORTING

    filename = l_filename

    filetype = 'ASC'

    TABLES

    data_tab = i_error_table

    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.

    PERFORM fill_error_table USING c_e

    'ZMSG_MM'

    '095'

    space space space space.

    ENDIF.

    ELSE.

    *--DOWNLOAD ERROR FILE TO APPLICATION SERVER

    CONCATENATE p_fname1 '.err' INTO l_filename.

    *--OPEN DATASET TO WRITE THE FILE.

    OPEN DATASET l_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

    IF sy-subrc EQ 0.

    *--DOWNLOAD ERROR FILE TO THE APPLICATION SERVER

    LOOP AT i_error_table INTO wa_error_table.

    TRANSFER wa_error_table TO l_filename.

    ENDLOOP.

    ENDIF.

    CLOSE DATASET l_filename.

    ENDIF.

    ENDIF.

    ENDFORM. " download_error_file

    here the erroneous records will be present in the internal table i_error_table.

    still any problem please elaborate on what actually you r seeking off.

    Ankit

    Add comment
    10|10000 characters needed characters exceeded