cancel
Showing results for 
Search instead for 
Did you mean: 

Calling LGTST in a Web Dynpro Applikation

Former Member
0 Kudos

Hello together,

I need to get the Logon Groups of a Message Server, this i do with the Call

CALL 'SYSTEM' ID 'COMMAND' FIELD exe_path
              ID 'TAB'     FIELD tabl-*SYS*. 

This works fine in ABAP. But how do i use this in WD4A.

There I'm getting a syntax error:

Field tabl-sys unknown...

My whole code for this Programm is:


DATA: exe_path(192).

TYPES: BEGIN OF tabl,
        line(200),
       END OF tabl.

CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_EXECUTABLE'
                   ID 'VALUE' FIELD exe_path.

CONCATENATE '/usr/sap/SYSID/SYS/exe/run/lgtst -H ' message-server -S 3600' INTO exe_path RESPECTING BLANKS.

CALL 'SYSTEM' ID 'COMMAND' FIELD exe_path
              ID 'TAB'     FIELD tabl-*SYS*.

Can somebody help?

Regards Chris

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If WDA has a problem with this syntax (becuase of the internal only kernel call mechanisms I'd imagine), why not just wrap the logic in a function module or class method? Really your "model" logic should be separated in such a way regardless.

Also consider that this is not the correct approach for call operating system commands since you are using an internal kernel call. Consider the logical external commands API instead:

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm