‎2006 May 23 8:54 AM
concatenate ' -classpath . -jar'
' /TEST/test.jar'
string_arg
INTO COMMAND_STR.
CALL FUNCTION 'SXPG_CALL_SYSTEM'
EXPORTING COMMANDNAME = 'ZJAVA'
ADDITIONAL_PARAMETERS = COMMAND_STR
TABLES EXEC_PROTOCOL = IT_BTCXPM
EXCEPTIONS
SECURITY_RISK = 1.
IF SY-SUBRC <> 0.
WRITE : 'Make directory error !'.
ENDIF.
I try using this function for execute external command.
and succesfully done before.
but the problem is sometimes 'string_arg' is exceed 255 charactor long.
ADDITIONAL_PARAMETERS type can hold only 255 charactor long.
is there any function can excute UNIX command with more than 255 charactor parameter?
or any other way to solve this problem?
thank you
‎2006 May 24 11:19 AM
hi,
go to your admins, to write a corresponding unix-script.
if possible, you need only to call the command of the script.
Andreas
‎2006 May 24 11:19 AM
hi,
go to your admins, to write a corresponding unix-script.
if possible, you need only to call the command of the script.
Andreas
‎2006 May 26 1:46 AM
HI.
there is no way to reduce string of parameter.
and what is call the command of the script?
can you show me example or useage?
thank you
‎2006 May 26 9:36 AM
Hi,
what is that Additinal parameter you pass it to The above Fm. i mean what it contains...
Regards
vijay
‎2006 May 26 10:02 AM
parameter is encoded password.
and that string are decoded by some jar(java) file.
there is no way to change that logic to ABAP logic.
should be decoded by only java.
that is problem.
‎2006 May 26 10:07 AM
Why can't you store that in a file, and pass it as an argument to the Command.
can it be done in that way..
Regards
Vijay
‎2006 May 26 10:32 AM
That makes problem too.
cause too many people access same time so server has overload to write and read and delete file even some times make error when write files.
I think need to solve other way...
Regards
Bae.
‎2006 May 26 10:38 AM
Hi,
Not Sure then how to solve.........,
if the String is more than 255 chars..
Regards
Vijay
Message was edited by: Vijay Babu Dudla