Get data with more than 128 chars

Dear all

Using function “XPG_COMMAND_EXECUTE” returns a table with the field “MESSAGE” 128 chars long.

I’m using it to execute the ms-dos command DIR to find some files in a Windows server.

The problem is that the path of some fields is longer than 128.

Is there a function that return a table with more than 128 chars (I need about 240 chars)?

I’m using it like this:

  CALL FUNCTION ‘SXPG_COMMAND_EXECUTE’
    EXPORTING
      commandname  lv_command_name   “–>>  added in SM69  as  ZDIR_CMD    cmd.exe /c dir /S /L /W /B

      additional_parameters lv_campo   
    TABLES
      exec_protocol         lt_output
    EXCEPTIONS
      no_permission         1

thank you

Daniel

Scroll to Top