Skip to Content
0
Former Member
Dec 01, 2011 at 11:26 PM

Generate target filename dynamically / Receiver File Adapter

491 Views

Hi Community Members,

First of all I would like to say hello to everybody, as this is my first post in this forum.

I start with PI and would like to prepare a simple DEBMAS -> .csv interface.

In fact it is already done, but the requirement is to name .csv files according to customer number (KUNNR).

Hence is my question ... how to set CC to be assigning KUNNRs to file names? (like 123456.csv)

From what I can in the net people are using ASMA, but isn't there any simpler solution?

@

What I tried inside message mapping was to bound KUNNR field from my source message to root element of target message.

In addition I also set Field Name Scheme to *.csv in CC settings. Unfortunately I am receiving a CC error

The parameter "argument" has the value "/interfaces/PI/inbound/test/.csv", so it contains the character "/interfaces/PI/inbound/test/.csv" which is not allowed

@

But anyway if I would like to use ASMA I see I need to write a Java funciton as UDF.

Example tutorial [http://www.saptechnical.com/Tips/XI/ASMA/Index.htm]

But what next? How would I implement it into message mapping, to which xml element should it be assigned and what should be passed as function input, to make java function work?

Regards,

bob