One problem I'm running into with SAP and file operations is the original developers assumed there would be very small file names and file paths.
Function module SXPG_COMMAND_EXECUTE accepts only 255 characters for optional parameters.
If I am trying to copy a file which is nested in a directory that is 200 characters in length to another, it will simply truncate.
How can we work around this shortcoming? Can we nest command execution to do a "cd". Or, is there some way to alias a path name or something?
Thanks for any suggestions you can offer here.
This wiki page is a great resource, by the way: [ABAP:Creation of External Commands with the help of UNIX Coding in SAP]