Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module to create customise filemame convention

Former Member
0 Likes
545

Hi ALL,

I use FTP method to send XML file to different vendor at different location. SAP need to output the files in different folders and vendor will get the file themselves.

The challenge is how to generate filename as <SAP function module -time> <location> and put in different directory from same transaction ?

The solution i have is

1. change te standard function module and extract the "location" from table structure and append as flename.

2. another scrip run at FTP server and automatically move the file to different folder by cheking the filename.

Anyone encounter similar problem as me and have better suggestion ?

Thanks !

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
477

Rejoice,

You can look for "EDI*" FM´s to find more about using ftp and xml.

maybe these FM´s can help you to create the filename(s).

EDI_LPATH_CREATE_CLIENT_DOCNUM

EDI_LPATH_CREATE_USERNAME

EDI_PATH_CREATE_CLIENT_DOCNUM

EDI_PATH_CREATE_DATE_TIME

EDI_PATH_CREATE_LENGTH_LE_8

EDI_PATH_CREATE_POS_UNIX_DOS

EDI_PATH_CREATE_USERNAME

EDI_PATH_CREATE_USERNAME_DT_TM

EDI_PATH_NAME_IN

EDI_PATH_NAME_OUT

EDI_PATH_NAME_OUTXML

EDI_PATH_NAME_STATUS_IN

Hi ALL,

I use FTP method to send XML file to different vendor at different location. SAP need to output the files in different folders and vendor will get the file themselves.

The challenge is how to generate filename as <SAP function module -time> <location> and put in different directory from same transaction ?

The solution i have is

1. change te standard function module and extract the "location" from table structure and append as flename.

2. another scrip run at FTP server and automatically move the file to different folder by cheking the filename.

Anyone encounter similar problem as me and have better suggestion ?

Thanks !

1 REPLY 1
Read only

Former Member
0 Likes
478

Rejoice,

You can look for "EDI*" FM´s to find more about using ftp and xml.

maybe these FM´s can help you to create the filename(s).

EDI_LPATH_CREATE_CLIENT_DOCNUM

EDI_LPATH_CREATE_USERNAME

EDI_PATH_CREATE_CLIENT_DOCNUM

EDI_PATH_CREATE_DATE_TIME

EDI_PATH_CREATE_LENGTH_LE_8

EDI_PATH_CREATE_POS_UNIX_DOS

EDI_PATH_CREATE_USERNAME

EDI_PATH_CREATE_USERNAME_DT_TM

EDI_PATH_NAME_IN

EDI_PATH_NAME_OUT

EDI_PATH_NAME_OUTXML

EDI_PATH_NAME_STATUS_IN