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

Get central abap instance name or DIR_DATA path

Former Member
0 Likes
1,216

Hi all,

Does anyone knows how I can get the central abap instance name ?

If not I'd like to find the directory DIR_DATA like defined in AL11. But I do not know how. It does not seem like it is possible with file_get_name function module.

Thanks

Sylvain

3 REPLIES 3
Read only

Former Member
0 Likes
772

Try FM

/SDF/INSTANCE_INFO to get the ABAP Instance.

TH_SERVER_LIST to get other details.

Also check other FMs in FunctionGp. THFB

Hope it helps.

Lokesh

PS. please reward helpful posts

Read only

0 Likes
772

Hi Lokesh,

Unfortunately I didn't find what I was looking for in these FM.

My AL11 transaction give me the following dir for DIR_DATA :

/usr/sap/B01/DVEBMGS07/data

I'm able to find B01 dynamicly (this is the sys id) but not the DVEBMGS07.

Best regards,

Sylvain

Read only

0 Likes
772

Hi all,

I found a solution :

  CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'stat/file'
                     ID 'VALUE' FIELD pfad.

This code give me the right url.

Best regards

Sylvain