cancel
Showing results for 
Search instead for 
Did you mean: 

How to create node

former_member581827
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member581827
Participant
0 Kudos

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

Former Member
0 Kudos

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 ,

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

Use MapWithDefault and use blank with it.

Thanks

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member581827
Participant
0 Kudos

Hi Latika,

Thanks for your reply.

If I remove lastFeildOptional in FCC the fadapter will not pick the file as some times it will not be filled.

Regards,

Chandra.

Former Member
0 Kudos

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.

Shabarish_Nair
Active Contributor
0 Kudos

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