on 11-23-2007 10:13 AM
Hi,
I am doing one file to file scenario.
My file structure will be like this.
MT_FILE
->FILE
->LINE01
-> FIELD 1
-> FIELD 2
-> FIELD 3
-> FIELD 4.
IF all the fields are containing values then its working fine.
if at all last field is filled with space the sender adapter is picking the file well and when i see in payload node has not been generated even i have given filed occurence as 1 to 1.
I have kept Fields optional as YES in file content conversion of sender.
as node field4 has not been generated my reciever communication channel is not working.
Would appreciate your suggests.
If last fields are balnk the sender adapter is not at all picking the file itself.
I have even specified lastFieldsOptiona as YES.
even its not picking the file.
Appreciate your help in this regard.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If last fields are balnk the sender adapter is not at all picking the file itself
check with ur mapping wheater u have mapped ur field4 to the target or not .......
and also see the RWB monitoring what the sender adapter status is .......
and let me know what the error message it shows.
thanks ,
Chandra,
Do you use a fieldFixedLenghts
Try this
NameA.missingLastfields add
I
f this doesn't work try using the NameA.additionalLastFields also with te above
Check the last line in the following link
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Hi
Use MapWithDefault and use blank with it.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandra,
Use standard functions Exists & mapwithdefault. for mapwithdefault function choose the property Empty value and give the blank value. If your source fields are doesn't have the values it will pass the blank value.If the source field doesn't exist, then also pass the Blank space to target field.
In target side will get the whole structure.
Cheers
Veera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi chandra,
as u have mentioned this field as optional in content conversion, xml generated doznt have this field and it is mandatory in target, therefore u r getting a prob.
jus remove this from fcc and in ur mapping map the src filed4 to target.
[reward if helpful]
regards,
latika.
Message was edited by:
Latika Sethi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi chandra,
u may try with this:
as ur field is optinal in source structure u have it with minOccurs 0 at source and minOccurs 1 at target.
use 'exists' to see if it exists followed by 'if' where u define that if ut field exists map it with its value else map with a constant. this way it will always get created at target.
[reward if helpful]
regards,
latika.
try using missingLastfields option - http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
/people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.