cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc XML empty field

Former Member
0 Kudos

Hi,

My scenario is an outbound XML IDoc.

My problem: when a field of a IDoc segment is empty, this field will not write to XML file.

I checked standard program and i have founded this ABAP line during standard creation of XML:

program: LEDI7F05

line: 704 = 'check not string is initial'.

Why that solution? Is there problem to have in XML file empty field?

Is there a solution to insert also empty field in XML file?

Thanks lot.

Matteo Vernile.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Ok, so my first question is:

if i skip this standard control with a custom modification, there are problems for XML file (in general, i don't know xml language) having empty fields?

Thanks,

Matteo Vernile.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

no, there are no problems if you have null fields in a XML.

except if any of this fields is mandatory, in this case an error is thiggered.

Thanks

Rodrigo

Former Member
0 Kudos

like IDocs can have many segmenst and fields, and this impact and IDoc size, is the reason for empty segments and field and cutting

Ok, but here the deleation is not changeable, and in my opinion is not correct: if i have small idoc why i can set also empty fields.

The external system which i have to send XML wants empty fields also.

Thanks.

Matteo Vernile.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi mateo,

this kind of rules are defined in r3.

Thanks,

Rodrigo

ps:rewards points if useful

Former Member
0 Kudos

Hi,

The mapping editor you are talking about is on XI, not R/3, right?

Which is the reason for on R/3 the empty fields are cutted? If I delete the ABAP line in standard program (LEDI7F05, line 704) which skip empty field on R/3, is it a problem?

Thanks lot.

Matteo Vernile.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

like IDocs can have many segmenst and fields, and this impact and IDoc size, is the reason for empty segments and field and cutting

Thnks

Former Member
0 Kudos

I'm sorry, but i don't understand where i can set the node function as

'Source filed---> Exists ->if true then pass the field else pass constant with no value in it -


> mapWithDefaultValue->Target field'.

I'm on R/3, and there is no adapter.

Thanks.

Matteo Vernile.

Former Member
0 Kudos

Obiviously in mapping editor you have to do it.

It will not be possible if you are expecting that the IDOC xml coming from R/3 should be with empty xml that need to be manipulate in mapping.

Former Member
0 Kudos

Hi !

Use the standard function "mapWithDefault" in your graphical mapping to assign a default value to those fields you requiere to appear in the destination message that doesn't have input value.

Regards,

Matias

ps: please award points if helpful.

Former Member
0 Kudos

Hi,

You could add the empty field in the XML.

Please follow below logic.

Normally any IDOC use to have some mandatory fields which will have always have value for e.g. segment number.

Then use node function as

Source filed---> Exists ->if true then pass the field else pass constant with no value in it -


> mapWithDefaultValue->Target field

Try it out

Thanks

Swarup