cancel
Showing results for 
Search instead for 
Did you mean: 

populate a field with Time at which SAP PI picked up the File

vicky20691
Active Contributor
0 Kudos

Hi Experts,

Need help obviously. I have a requirement where I need to populate a field of IDOC with the time SAP PI picked up the file.

I have done the home work and used SourceFileStamp in the channel and created DynamicConfiguration UDF. It has given the Time which I required but, the SourceFileStamp gives time/date when file was created/updated and NOT THE TIME IT WAS PICKED UP BY SAP PI.

So, if the sender system creates file today morning and places the File in afternoon in the pick up area the time which will be populated will be the Time of morning when it was created.

Please HELP ME.

The work around used here is currentDate function with HHmmss format. But I and you know it is "work around". So any solutions?

Regards,

Vikas Kumar Singh

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Vikas,

Have you tried to take the variable TIME_SENT in your UDF:

https://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/StreamTransformationConstants.html

Regards

vicky20691
Active Contributor
0 Kudos

Hi Inaki Vila,

Sorry I have not tried it yet. Can you please how should I use this variable in the UDF. ?

Regards,

Vikas

vicky20691
Active Contributor
0 Kudos

Solved. thank You.

Answers (0)