Application Development 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: 

Get central abap instance name or DIR_DATA path

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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