on 08-02-2010 7:28 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.