Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem on 'SXPG_CALL_SYSTEM' function

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

Tags:
Not what you were looking for? View more on this topic or Ask a question