cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI Pilot file in receiver file adapter

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

JayChan
Active Participant
0 Kudos

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

juan_vasquez2
Active Participant
0 Kudos

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);
}
Muniyappan
Active Contributor
0 Kudos

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.