cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip a record in flat file to idoc scenario?

Former Member
0 Kudos

Hi,

Anybody have good suggestions on how to skip a record(xi not process the record) based on certain conditions? I don't want to use bpm, anybody has experience with file to idoc can advise how to deal with this situation?

Thanks,

Meg

Accepted Solutions (0)

Answers (1)

Answers (1)

justin_santhanam
Active Contributor
0 Kudos

Meg,

Can u explain little bit more. Based on conditions u want to skip the field or the entire struture prevetnting to post in IDOC.

Best regards,

raj.

Former Member
0 Kudos

Hi Raj,

Thanks for your response, my scenario is e.g. I have 10 material master record in one flat file that I want to send to xi then to r3, on my 7th material master record, it has a Delete status, so I do not want xi to process this record but to continue on the 8th record, I hope I make myself clear...do you know how to handle this kind of situation using xi?

Thanks,

Meg

justin_santhanam
Active Contributor
0 Kudos

Meg,

Its very clear. It can be easily done. I hope u might be knowing about Michal's changing the IDOC occurence blog. Based on that blog change the IDOC occurence to 0...Unbounded.

Now map all the necessary fields to the target IDOC. On the IDOC root node set condition from source if the source field is not Delete then create IDOC else don't create.

Source --- If without else[Check condition if the source is delete] -


IDOC(root node).

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Hope its clear, if not kindly revert back.

Best regards,

raj.

Former Member
0 Kudos

Hi Raj,

Thanks for your help, I noticed some blogs about changing idoc occurance, but missed Michale's blog, can you forward to me again? do I need to change xsd definition or simply change the occurance to 0 to unbounded in the drop down menu of message mapping?

Thanks,

Maggie

justin_santhanam
Active Contributor
0 Kudos

Maggie,

I gave Michal's blog in my previous reply. You can't change in the Mapping. You've to export and change in the XSD and again import using External Definition. If you need any further details, let me know.

Best regards,

raj.

justin_santhanam
Active Contributor
0 Kudos

Maggie

Please note down the below steps. In your message mapping your target must be the External Definition IDOC. But in case of Interface Mapping your target must be the actual IDOC. After clicking read Interfaces, and while choosing mapping you won't find the Mapping , bcoz the mapping is done between your source and External Definition. So what you have to do while choosing the mapping , in the top of the Mapping selection pop-up choose any & any for source and target and locate ur mapping manually.

Best regards,

raj.

Former Member
0 Kudos

Thanks very much raj, I will gave a try, if you click on message tab in interface mapping, in the target message, you can change it to 0 to Unbounded, maybe this will do, sounds simpler?

Meg

justin_santhanam
Active Contributor
0 Kudos

Maggie,

I think that won't work. Bcoz if you do in the Messages tab it will change the occurrence of MATMAS isn't it. But our goal is to change the occurrence of IDOC segment ,how u will do it in the messages tab. Please correct me if i'm wrong.

Best regards,

raj.

Former Member
0 Kudos

Thanks Raj, right, it should be chaning xsd to 0 to unbounded.

Thanks a lot,

Maggie

justin_santhanam
Active Contributor
0 Kudos

U welcome!!

Best regards,

raj.

Former Member
0 Kudos

Hi Raj,

>>think that won't work. Bcoz if you do in the Messages tab it will change the occurrence of MATMAS isn't it

Multi mapping will not work with inbound IDOCs coz the split actually happens in Adapter and IDOC is not a part of AFW.

Regards,

Jai Shankar

justin_santhanam
Active Contributor
0 Kudos

Jai,

Thats true, I didn't thought of saying it,inspite I haven't thought in that angle itself. Coz we want to duplicate the IDOC segment only, So I suggested him not to use Changing the occurrence using messages tab.

@Maggie: I said that it will change the occurrence of MATMAS node only, in addition to that as Jai said, we can't use bcoz Multimapping is not supported by Inbound IDOC's. The next method(Michal's blog) as we discussed will work perfectly.

Thanks for reminiding both of us Jai.:-)

Best regards,

raj.