Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error Reading

Former Member
0 Likes
617

Hi SDNers,

I wrote a function module to get records of all mew/changed materials based on given date.

this function module is going to call by .net application. it reads all materials and saves in thier own db.

now my problem here is, while reading data using FM, if any records fails how to identify which record has been failed.

can any bdy give me some ways to identify the record which one faield.

thansk in advance.

Venkat

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

Hi Venkat,

Since the input for your FM is dates, i see only the error that no records may not found in the date range. So inital check will be that if any records not found then populate some return status table. And also you said that it will be called from .Net then u can consider the connection failure in the exception tab of teh FM.

Please let me know incase of concerns.

Regards,

Aditya

4 REPLIES 4
Read only

Former Member
0 Likes
570

Hi Venkat,

Since the input for your FM is dates, i see only the error that no records may not found in the date range. So inital check will be that if any records not found then populate some return status table. And also you said that it will be called from .Net then u can consider the connection failure in the exception tab of teh FM.

Please let me know incase of concerns.

Regards,

Aditya

Read only

0 Likes
569

Thansk for ur imm response aditya.

Here in FM i wrote all the exceptions if any things wrong from FM side.

From .net they called this FM to read data and insert into their database. At mean time, if connection has been disconnected, by that time some of the values are read by .net. dat time how to find which values are not passed to .net from FM?

Read only

0 Likes
569

hi aditya,

i think u need to send some acknowledgement from .net with material number to SAP and save the acknowledgement in SAP database.

In SAP u can write a small audit program. one example may be..

create a custom table table with all the materials passed to .net

create another table for acknowldgements

compare both tables for particualr date and time..if some mismatch occur then work for that mismatch..

hope u ll get some idea like this..u can do this also in workflows..if some workflow specialist is there in ur project...

cheers

Read only

0 Likes
569

Madan..

Can u pls explain it bit more clear.