Skip to Content
avatar image
Former Member

Calling LGTST in a Web Dynpro Applikation

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 02, 2010 at 12:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded