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

Help Needed

Former Member
0 Likes
570

Hi,

I have an abap program which has 'Logical System' as a Selection Parameter.If i move that program from one system to other(Development to Quality),i have to change the BW client name manually.

Instead of hard coding, is there any way that can be implemented in the abap program to get the client system name on which we are working?

Thanks,

Pra.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
541

Hi,

Use this function Module:

  • get logical system

call function 'OWN_LOGICAL_SYSTEM_GET'

importing

own_logical_system = lv_logsys

exceptions

own_logical_system_not_defined = 01.

Regards,

Fernando

3 REPLIES 3
Read only

Former Member
0 Likes
541

this can work


INITIALIZATION.
  case sy-sysid.
     when  'DEV'.  "<== or whatever your DEV value is
*      set the BW Selection value to Dev's value.     
     when  'TRN'.   "<== or whatever your Quality value is
*      set the BW Selection value to Quality's value.     
     when  'WPD'.  "<== or whatever your Production value is
*      set the BW Selection value to Production's value.   
  endcase.  

Read only

Former Member
0 Likes
541

Hi,

Thanks for your quick reply.

My problem - The Logical System i am using is PDECLNT100.

sy-sysid gives PDE

sy-mandt gives 100.

Instead of that can't i get the whole logical system id PDECLNT100 at once using any other system variable?

To be simple,I need to get the Logical System Id which is similar to the id's present in the table 'TBDLS'

Regards,

Pra.

Read only

Former Member
0 Likes
542

Hi,

Use this function Module:

  • get logical system

call function 'OWN_LOGICAL_SYSTEM_GET'

importing

own_logical_system = lv_logsys

exceptions

own_logical_system_not_defined = 01.

Regards,

Fernando