on 04-20-2009 8:16 AM
Dears colleagues,
we have a problem with the File Content Conversion in SAP PI 7.1
We send an IDOC from SAP to PI and a file to an external system. For example we have:
IDOC Z,
Segment S1 with fields
F1
F2
Segment S2 with fields
F3
F4
the mapping contains:
Z-S1-F1 --> File-Fiedl1 ( lenght 5 )
Z-S1-F2 --> File-Field2 ( lenght 5 )
Z-S2-F3 --> File-Field3 ( lenght 5 )
Z-S2-F4 --> File-Field4 ( lenght 5 )
If all the fields come filled the mapping it's ok and the result too, but if for example the second segment didn't come, the mapping it's ok ( no error in sxmb_moni ) but the result doesn't preserve the las 10 positions.
Any idea¿?
Thanks in advance.
JC.
In your mapping just use constant with 5 sapces for all fields. So whenever there is no value present in the fields map this constant. e.g.
IF -> Source-> Not ---> Equals ---> Empty (constant w/o any space) THEN map Source ---> target
ELSE map Constant with 5 space ---> target
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can simply use "mapWithDefault" standard function using 5 space as the parameter while mapping all the target fields.
Regards,
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JC Says..
If all the fields come filled the mapping it's ok and the result too, but if for example the second segment didn't come, the mapping it's ok ( no error in sxmb_moni ) but the result doesn't preserve the las 10 positions.
Use the following parameters in your FCC..
<recordsetName>.fieldFixedLength = 5,5,5,5,5
Regards,
Madan Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.