Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UNIX log needed in SAP

Former Member
0 Likes
533

Hi All,

I need details of  the LOG file (DATE , TIME and User id) for the unix file that was uploaded in SAP.

I tried the same using AL11 . But i need to use those details in Report to maintain the History.

I tried using the command  CALL 'C_DIR_READ_NEXT' but i am not getting the required details in internal table  as per date time and user id .

I am getting it as a Text .

Is there a specific type to define the internal table ?

Does any one have any idea about this or has faced similar issue.

Also please let me know is there any table in sap which maintains these values (Logs).

Regards,

Sam

Hi All,

I need details of  the LOG file (DATE , TIME and User id) for the unix file that was uploaded in SAP.

I tried the same using AL11 . But i need to use those details in Report to maintain the History.

I tried using the command  CALL 'C_DIR_READ_NEXT' but i am not getting the required details in internal table  as per date time and user id .

I am getting it as a Text .

Is there a specific type to define the internal table ?

Does any one have any idea about this or has faced similar issue.

Also please let me know is there any table in sap which maintains these values (Logs).

Regards,

Sam

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
491

Hi satmat,

did you search for a solution?

Google recommends

CALL FUNCTION 'ADS2KIPUPL_GET_FILE_ATTRIBUTES' "Get Application Server File Attributes

  EXPORTING

    i_filepath =                " string        File Path

  IMPORTING

    e_file_name =               " string        File Name

    e_dir_name =                " string        Directory Name

    e_file_type =               " string        File Type

    e_file_len =                " int4          File Length

    e_owner =                   " string        Owner of the File

    e_modification_date =       " char10        Modification Date

    e_modification_time =       " char10        Modification Time

    e_permissions =             " char10        File Permissions

    e_errno =                   " char3         Error No (O/S)

    e_error_message =           " string        O/S Error Message

  EXCEPTIONS

    FAILED = 1                  "               Failed

    .  "  ADS2KIPUPL_GET_FILE_ATTRIBUTES

Or FM EPS_GET_FILE_ATTRIBUTES

Regards

Clemens