Application Development 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: 

Find errored out Records from COPA

Former Member
0 Kudos

Hi All,

I have a report program which uploads certain data in a certain format onto the application server which will be used by the T Code KEFC (The data format is as per what KEFC requires). The report then calls the T Code KEFC, I am doing this using the Submit command. My problem is, I need to capture any error-ed out records (That KEFC may return) and create an error log file which contains the whole record that errored out. How do I achieve this? The report will be run as a batch job, how do I identify which was the record that KEFC could not process ? Any inputs?

3 REPLIES 3

Clemenss
Active Contributor
0 Kudos

Hi,

please try something like


data:
  errortab type table of bdcmsgcoll .
LOOP AT itab.
* processing record itab-proc_id.
CALL TRANSACTION ... MESSAGES INTO errortab.
  LOOP AT errortab transporting no fields where msgtyp ca 'EAX'.
* error occurred with record itab-proc_id
  EXIT.
  ENDLOOP.
ENDLOOP.

.

Regards,

Clemens

Former Member
0 Kudos

Hi,

I cannot use call transaction because I will be using a variant stored for the KEFC transaction i.e. I will be using Submit along with the option Variant in my report...any more ideas?

Clemenss
Active Contributor
0 Kudos

Hi Din_Sap,

I never worked with KEFC. Burt I was able to chose 'Help on applivcation" from the help menu.

The documentation has the Evaluating Logs section. Try to access the protocol after the run. You may use the [Post Processing Incorrect Data Records|http://help.sap.com/saphelp_erp60_sp/helpdata/en/3d/733751ccb411d2b4550060941936e3/frameset.htm] information.

If you want to vevaluate programatically, then try to access the protocol records via function group SBAL and related.

Note: First read documentation, then ask questions not answere by documentation. Saves my time and your time. But thank you anyway, because now I know someting I did not know before.

Regards,

Clemens