cancel
Showing results for 
Search instead for 
Did you mean: 

file to idoc scenario with controls

rohit_goel
Participant
0 Kudos

I am working on file to idic scenario.

file has four types of lines :

Begin of file.

header.

items.

end of file.

each line has a element Record type and some other elements.for header record type is A , for item its B , for Begin of file its C and for end of file its D.

we have to check for every line that it should have record type as one of these four and if not so we have to send a mail through alert functionality.we have to send a mail which has all errors by checking the whole file for record types.we have to ignore these lines in the file and proceed with the rest.

how can we implement this?

regards,

rohit

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member193376
Active Contributor
0 Kudos

Hi

An alert can be triggered from a UDF, In your message mapping program, check for the record type and if the value does not exist, then you can throw an alert from the UDF itself.

You can have one of the input parameters as the message you need to send as an email.(concatenate all the values of the record)

The following weblog explains how to trigger an alert from UDF. Then you configure the alert to send an email from ALRTCATDEF.

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4077. [original link is broken] [original link is broken] [original link is broken]

Hope this helps,

Saiyog

Former Member
0 Kudos

Hi,

Please go through these links

/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi

/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

/people/sravya.talanki2/blog/2005/08/17/outbound-idocs--work-around-using-party

/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi

Thanks

Vikranth Khimavath

nisarkhan_n
Active Contributor
0 Kudos

Pls clarify

if the input file had suppose 10 lines 8 of them has valid record type and 2 invalid in this case do you want to process 8 lines to IDOC and 2 send e-mail?

or

you dnt want to process this to IDOC and send an email saying 2 lnies are invalid...what i mean is is the IDOC processing should happen with valid lines or you want to stop idoc proecssing if any invalid record type comes.

rohit_goel
Participant
0 Kudos

i want idoc processing to be continued and want to send an email for two incorrect lines.