cancel
Showing results for 
Search instead for 
Did you mean: 

How to map an inbound MT (message field) to an outbound FileName

Former Member
0 Kudos

I have an inbound field mapping that contains the name of the file that needs to be generated on the outbound side... Sender is ABAP Proxy (client side) with the field correctly loaded, but am unable to map this successfully to an outbound FileName (Adapter-Specific Attributes) on the target location

Any ideas?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Dear ALL

Thank you for all your input on this... the issue was resolved. Here were the key findings:

1. Need to create a target node on the target MT and then add an element 'filename' under it

2. Map the inbound source filename field to the target filenode.filename

3. To suppress the 'unwanted' filename on the target payload/file:

- I had to explicitly describe the recordset structure fully under the content conversion tab i.e in my case -> rownode, filenode

- Use 'filenode.fieldFixedLengths = 0' and 'filenode.fixedLengthTooShortHandling = Cut'

Hope this saves time and is useful to others in the future.

Mustafa

henrique_pinto
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi,

Here is a sample configuration needed for implementing the Variable substitution :

File Name Schema: test%var1%.xml

Variable Substitution: Check the Enable Box

Variable name: var1

Reference: payload: Your_Source_MT,1,FirstNode,1,FileNameField,1

Thanks,

Pooja Pandey

Former Member
0 Kudos

Hi Pooja

Thanks for your response

I ran into error -> "The following variable was not found in the message payload: ..."

Here's my payload from SXMB_MONI

<?xml version="1.0" encoding="utf-8" ?>

- <ns1:MT_Label_File_SAP xmlns:ns1="http://xxx"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<plant>3916</plant>

<filename>INPROCESS.PAS</filename>

- <recordset>

<line>*FORMAT,INPROCESS.LWL</line>

<line>quantity,10.000</line>

...

</recordset>

</ns1:MT_Label_File_SAP>

The 'Reference' I use is to arrive at the filename value in the above is -> payload:MT_Label_File_SAP,1,filename,1

Is this correct? do you notice anything...

Thanks much,

Mustafa

prateek
Active Contributor
0 Kudos

You need to use Variable Substitution to get the filename from the payload to the receiver side.

http://help.sap.com/saphelp_nw04s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm

Regards,

Prateek