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

AL11 - table behind

rainer_hbenthal
Active Contributor
0 Likes
21,003

Hi,

which table is behind AL11? Table user_dir contains only some entries from AL11.

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
10,066

Check program RSWATCH0.


* get name of directory with the error files
  CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_HOME'
                     ID 'VALUE' FIELD searchpoints-dirname.

  MOVE: 'DIR_HOME'           TO gs_outtab-sap_dir,
        searchpoints-dirname TO gs_outtab-dirname.
  APPEND gs_outtab TO gt_outtab.
  CLEAR gs_outtab.

All directories are hard coded directly in different paths.

Table USER_DIR will store the directories only which we have created.

Hi,

which table is behind AL11? Table user_dir contains only some entries from AL11.

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
10,066

If you look at program RSWATCH0 (AL11)


  CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_ATRA'
                     ID 'VALUE' FIELD searchpoints-dirname.

  MOVE: 'DIR_ATRA'           TO gs_outtab-sap_dir,
        searchpoints-dirname TO gs_outtab-dirname.
  APPEND gs_outtab TO gt_outtab.

Read only

GauthamV
Active Contributor
0 Likes
10,067

Check program RSWATCH0.


* get name of directory with the error files
  CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_HOME'
                     ID 'VALUE' FIELD searchpoints-dirname.

  MOVE: 'DIR_HOME'           TO gs_outtab-sap_dir,
        searchpoints-dirname TO gs_outtab-dirname.
  APPEND gs_outtab TO gt_outtab.
  CLEAR gs_outtab.

All directories are hard coded directly in different paths.

Table USER_DIR will store the directories only which we have created.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
10,066

Hey Rainer,

I had debugged the program RSWATCH0 which is behind AL11 tcode.

You will be surprised except the entries in USER_DIR all the other directories viz. DIR_DATA, DIR_DBMS, DIR_EXECUTABLE etc. are hardcoded by SAP

The kernel call is used like this to get the directory details:

CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TEMP'
                    ID 'VALUE' FIELD searchpoints-dirname.

For the user defined directories the code is like this :

* get the name and aliases of ALL userdefined directories
    SELECT * FROM user_dir INTO isearchpoints
      WHERE svrname = my_name.
      APPEND isearchpoints.
    ENDSELECT.
    SELECT * FROM user_dir INTO isearchpoints
      WHERE svrname = 'all'.
      APPEND isearchpoints.
    ENDSELECT.

Hope this helps.

BR,

Suhas

PS: Not a good coding practice by SAP to hard code the app server directories. I am sure there might be some for this though

Edited by: Suhas Saha on Mar 2, 2010 4:45 PM