‎2008 Apr 29 2:13 PM
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.
‎2008 Apr 29 3:29 PM
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
‎2008 Apr 29 2:23 PM
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.
‎2008 Apr 29 3:04 PM
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.
‎2008 Apr 29 3:29 PM
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