cancel
Showing results for 
Search instead for 
Did you mean: 

Last field not shown in MONI if its empty during content conversion-urgent

Former Member
0 Kudos

Hi All,

I have my input structure like

<RECORDSET>

<EMPLOYEE>

<FIRSTNAME>

<LASTNAME>

<PHONENUMBER>

</EMPLOYEE>

</RECORDSET>

I have given my sender Conversion parameters like

Employee.fieldSeparator=*

Employee.endSeparator='nl'

Employee.fieldNames=FIRSTNAME,LASTNAME,PHONENUMBER

It is working fine.But if the value is empty for any of the field it is showing up with empty tag in MONI but for the Last field i.e.,PHONENUMBER if the value is empty the tag is not being shown in MONI. Please help me in this issue.It is very urgent.

Accepted Solutions (0)

Answers (2)

Answers (2)

santhosh_kumarv
Active Contributor
0 Kudos

Hi Dinakar

Try this i am not sure will this work or not

Employee.missingLastfields=ignore.

More Info on Content Conversion Parameter

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm">Converting File Content in a Sender Adapter</a>

Regards

Santhosh

former_member184619
Active Contributor
0 Kudos

Hi Dinakar,

I haven't tried but u can check these parameters and give it a try

<b>NameA.missingLastfields</b>

If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:

&#9675; ignore

Outbound structure only contains the fields in the inbound structure

&#9675; add

Outbound structure contains all fields from the configuration; the fields missing in the inbound structure are empty.

&#9675; error

Conversion is terminated due to the incomplete inbound structure. An error message is displayed.

&#9679; <b> NameA.additionalLastFields</b>

If the inbound structure has more fields than specified in the configuration then the XML outbound structure is created as follows:

&#9675; ignore

Outbound structure only contains the fields in the inbound structure

&#9675; error

Conversion is terminated due to the incomplete inbound structure. An error message is displayed.

The default value is ignore. If you have defined the NameA.fieldFixedLengths parameter, the default value is error.

<b>NameA.lastFieldsOptional</b> (obsolete)

You use this parameter to specify whether the last fields can be omitted (YES) or not (NO) in a comma-separated structure.

If you do not make an entry, the default value is NO.

Check for details:

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

Sachin

Former Member
0 Kudos

Hi Sachin,

Can you please explain in detail?

Thanks in Advance

Dinakar

santhosh_kumarv
Active Contributor
0 Kudos

Hi Dinkar

If u give

Employee.missingLastfields=ignore

then the phonenumber field will not be in the oubound XML if it is empty in the inbound structure.

Employee.missingLastfields=add

then the phonenumber field will be empty in the outbound XML if it is empty in the inbound structure.

Employee.missingLastfields=error

A error will be reported stating that the content conversion is terminated.

Regards

Santhosh

Former Member
0 Kudos

Hi Santhosh,

It is not working when i gave as employee.missinglastfields=add.Any more Suggestions?

Regards,

Dinakar

santhosh_kumarv
Active Contributor
0 Kudos

Hi did u tried out with employee.missinglastfields=ignore

Regards

Santhosh

santhosh_kumarv
Active Contributor
0 Kudos

What is the error ur getting?

Use employee.missingLastfields=ignore/add

Regards

Santhosh