Hello all,
perhaps some of you faced the same problem. It depends on the variable substitution in XI (PI).
We have got an IDOC - FILE szenario. As far everything is working fine. The XML is created correctly.
Now we want to get two fields from the payload to use both in our receiver file adapter as filename.
The IDOC is a standard ORDRSP.ORDERS05.
(1) The first field is the "job number" and located in the IDOC element: E1EDK01
(2) The second field ist the "purchase order number" and located in the IDOC element: E1EDK02
The fields are both named BELNR (and here seems to be a problem).
To use the variable substitution we did as it is described in help.sap.com and used the following path to get the variables from the payload:
(1) variable name: aufnr ; reference: payload:ORDERS05,1,IDOC,1,E1EDK01,1,BELNR,1
(2) variable name: bstnr ; reference: payload:ORDERS05,1,IDOC,1,E1EDK02,1,BELNR,1
these two variables "aufnr" and "bstnr" we want to use in our filenameschema. So we wrote the following for the schema:
Ordrsp_%aufnr%_%bstnr%.xml
The effect is that both variables always contain the same value, the value of "bstnr".
Strange is that, if we delete one substitution i.e. (2) "aufnr" contains the correct payload value. It seems he overwrites the value of "aufnr" with the value of "bstnr" because of the same name in the IDOC structure (BELNR).
Has anyone any idea what to do?
Many thanks and kind regards,
Steven
PS: Of course points will be rewarded for helpfull answers. :o)