Skip to Content
author's profile photo Former Member
Former Member

Sender FCC - avoid blank field on output xml

I have a incoming text field with 10 fields. For the optional fields, in the output XML structure these fields will exist with blank values.

like <ADDR-2 />

<ADDR-3 /> .

My problem is, i use this XML as input for second interface to create an idoc. The idoc has empty segments created for this blank fields. how to avoid these ?

i would rather have the blank field not appear in my XML structure. I used fcc parameter "missingLastfields = ignore" - doesnt seem to work.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 12:51 AM

    Hi Ramchan,

    Since you are once again taking this xml file as an input for your second interface, this values should not be a problem while mapping to a idoc.

    or else in the first mapping try to put a createif before this field mapping so that it will not at all create.

    Regards,

    ---Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 04:16 AM

    Hi,

    You can check the nodes in mapping if they are empty.

    Also make sure to have the IDOC segment occurance as 0..1 or 0..unbounded.

    It will remove the white spaces and will not create the empty segments,.

    Thanks

    Swarup

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Your explanation is creating the confusion.

      You are talking about total 2 interfaces, but I think it is the interface of

      Flat File - (Use FCC)-> XI -


      > IDOC.

      This will be treat as only one interface and File will be sender and IDOC will be receiver.

      You cannot avoid the blank spaces as such with FCC, but you could manipulate it in message mapping.

      Here you just pass the values as it is but make sure to have the occurance as 0 - 1 or 0 - Unbounded.

      Thanks

      Swarup

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.