Skip to Content
0

SAP PI Pilot file in receiver file adapter

Jan 02 at 01:22 PM

54

avatar image
Former Member

Hi,

My requirement is file-->SAP PI-->file + another file with some standard data of few lines.

There is no need of reading source file and so i can use passthrough scneario but i need help how can i generate extra file along with actual file.

Thanks for your time in advance.

Thanks

Kishore

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Muniyappan Marasamy Jan 03 at 01:15 PM
0

You mean that you want to create two files, one will be copy of sender file and another file with added extra data.

create two receivers. for extra file, either use message mapping or use adapter module to add the text.

Share
10 |10000 characters needed characters left characters exceeded
Juan Vasquez Jan 03 at 02:03 PM
0

Hello kishore

You can use a UDF.

You must to have a clear format for a specific file

you can use a code like this, with var1, var2, var3 params.

Regards

try
{
	/* 
	var2 = "dd-MMM-yyyy HH:mm:ss"
	var1="2018-01-01T00:00:00"
	var3="MM-dd-yyyy"
	
	*/
   Date dat = new SimpleDateFormat(var2).parse(var1);
   String expDate = new SimpleDateFormat(var3).format(dat);
   return (expDate);
}
catch (Exception ex)
{
   return (var1);
}
Share
10 |10000 characters needed characters left characters exceeded
Chih-Chieh Chan Jan 05 at 02:21 AM
0

How about read "additional files" while setting up communication channel? Whenever every transportation finish, re-generate the same extra file in file source folder.


Share
10 |10000 characters needed characters left characters exceeded