cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed width file...FCC

Former Member
0 Kudos

Hi

I am using fixed width file,(FCC with file adapter) for my rek. But I want to validate the input file like........ whenever mandatory field value (data) comes to be zero, mapping should fail or warning should come. How can we do this through FCC (File Content Conversion ) ?? Is there any otherway to handle this ??

Regards

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Kumar,

You make the target field for which it is mapped as the occurrence 1..1 Then you map as:

Source>condition (check the value not equals to zero)>createif-->target.

So when ever the value is not equal to zero it returns true to createif and the target field will be there. If the value is equal to zero then the condition gives false. Then the createif will be failed to map and your target is 1..1 so the mapping will be failed.

You configure alerts for all the mapping errors.

Regards,

---Satish

Answers (4)

Answers (4)

nisarkhan_n
Active Contributor
0 Kudos

with the key field value in the FCC, XI will only pick the record that has the value mentiond in the FCC, if you want to trigger the mail still then you have to take care this in the Mapping program ( check vaule of the filed=='123') with this condition you can either do the receiver determination runtime ( which points to the BS triggering mail) or use this condition in interface det, which trigger the mail

Former Member
0 Kudos

why do u want to do this in mapping or FCC?

just check the condition in conditional receiver determination,give as many conditions as u want to,then give a dummy Business system name,an exception will be triggered and an e-mail will be sent provided alerts are configured correctly

Thanx

Aamir

Former Member
0 Kudos

Hi,

Refer to these links

/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

/people/valery.silaev/blog/2007/05/15/fast-return-with-java-exceptions

/people/udi.dahan/blog/2007/03/27/errors-exceptions-and-asynchronous-web-services

http://help.sap.com/saphelp_nw04/helpdata/en/da/a3a7408f031414e10000000a1550b0/frameset.htm

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

Regards,

Kumar

Former Member
0 Kudos

This can be achieved in the message mapping.Writing a java code to do this can suffice.