This website is not affiliated with, sponsored by, or approved by SAP AG.

0012 - Function Module PC_SPLIT_COMPLETE_FILENAME

Moderators: Snowy, thx4allthefish, Rich, ilya

0012 - Function Module PC_SPLIT_COMPLETE_FILENAME

Postby Rich » Thu Mar 26, 2009 11:58 am

PC_SPLIT_COMPLETE_FILE_NAME.

This function module takes a fully qualified path and file name, returning the constituent parts as variables.

As most people will be after the full file name with extention, they do not provide a variable for the return of the file name itself.

This then causes consternation and a lot of head scratching when the function module returns only the first few characters of the file name in the 'NAME_WITH_EXT' export parameter.

The reason behind this ?? The programmer who wrote the function module used the 'NAME' exporting parameter as a work variable whilst constructing the 'NAME_WITH_EXT' value. Since it's not passed by the calling program it defaults to about 3 characters long.

Mind you - I would've thought that it would of caused a short dump but there you go.
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com
Rich
 
Posts: 7112
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool

Return to ABAPers

Who is online

Users browsing this forum: No registered users and 1 guest





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.