Skip to Content
avatar image
Former Member

SAP PI Pilot file in receiver file adapter

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 03 at 01:15 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 03 at 02:03 PM

    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);
    }
    
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 05 at 02:21 AM

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

    Add comment
    10|10000 characters needed characters exceeded