Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

SXPG_COMMAND_EXECUTE limitation of 255 characters

$
0
0

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]

http://wiki.sdn.sap.com/wiki/x/vARXCQ


Viewing all articles
Browse latest Browse all 8332

Trending Articles