0% found this document useful (0 votes)
297 views

SAP Process Integration - SAP PI - Dynamic File Name Generation PDF

This document discusses how to dynamically generate file names in SAP Process Integration (PI). It involves configuring the file receiver to allow dynamic file names and using a user-defined function in the message mapping to generate the file name with a specific format, such as including the date, customer ID, and sequence number. The message mapping code shown creates the dynamic file name in the required format and stores it in the dynamic configuration for use by the file receiver.

Uploaded by

ankaiah_yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
297 views

SAP Process Integration - SAP PI - Dynamic File Name Generation PDF

This document discusses how to dynamically generate file names in SAP Process Integration (PI). It involves configuring the file receiver to allow dynamic file names and using a user-defined function in the message mapping to generate the file name with a specific format, such as including the date, customer ID, and sequence number. The message mapping code shown creates the dynamic file name in the required format and stores it in the dynamic configuration for use by the file receiver.

Uploaded by

ankaiah_yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

2/3/2015

SAPProcessIntegration:SAPPIDynamicFileNamegeneration
0

More NextBlog

SAPProcessIntegration
Thursday,August2,2012

AboutMe

GawshanBhim

SAPPIDynamicFileNamegeneration

InsomecasestherequirementsofthefilebeingdroppedbyPIrequirestobecertainspecificformats.Fore.g.Dateorsequencenumbers
required.EventhoughthereisadatestampprividedbytheFileadapter,itisnotveryflexibleintermsofformat.Thusthebelowmethodis
quitehelpful.Everythinghappensinthemessagemapping.

Viewmycomplete
profile

BlogArchive

2012(4)

ThereisoneconfigrequiredintheFileReceiverintheIntegrationDirectory:

August(3)

MakinganRFCcallfroma
UDFinPIForUKMS

SAPPIDynamicFileNam
generation
MDMECCintegration
March(1)

MyBlogList

ThenextthingtoconfigureisthemessagemappingintheESR,createaUDFinthemessagemappingasfollows:

http://gawshanpi.blogspot.in/2012/08/sappidynamicfilenamegenerationin.html

1/3

2/3/2015

SAPProcessIntegration:SAPPIDynamicFileNamegeneration

ThereasonwhyIamimportedtheSeeburgerfunctionsarebecauseinthisparticularcase,thefilenamerequiredasequencenumberwhich
incrementsforeachcustomer.Thusitcreatesaseeburgervariableandgetsthenextsequencenumber.AlsothisUDFshouldbecalled
onceonlyinthemapping.Itshouldbasicallyhavethefollowingcodetomakethefilenamebeasperwhatyoudefine:
DynamicConfigurationconf=(DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION)
DynamicConfigurationKeykey=DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName")
SimpleDateFormatdateformat=newSimpleDateFormat("yyyyMMdd")
Stringtimestamp=dateformat.format(newDate())
Stringfilename1="OTI_I_18_"+customerGLN+"_"+customerNumber+"_"+".txt"
conf.put(key,filename1)
Theaboveshoulddothetrickforaspecialdateformattedfilename.

PostedbyGawshanBhimjeeat3:15AM

Recommend this on Google

Labels:DynamicFileReceiver,SAPPI

3comments:
yektektraining March18,2014at8:18AM
nicepostthankyou
Reply

sivasankarSankar May2,2014at6:37PM
nicepostthanksforsharingfromSwathi
Reply

YekTekOnlineTraining May12,2014at6:41PM
excellentpostthanksforsharingfromKajal
Reply

http://gawshanpi.blogspot.in/2012/08/sappidynamicfilenamegenerationin.html

2/3

2/3/2015

SAPProcessIntegration:SAPPIDynamicFileNamegeneration

Enteryourcomment...

Commentas:

Publish

GoogleAccount

Preview

NewerPost

Home

OlderPost

Subscribeto:PostComments(Atom)

Simpletemplate.PoweredbyBlogger.

http://gawshanpi.blogspot.in/2012/08/sappidynamicfilenamegenerationin.html

3/3

You might also like