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

Reading the Error Log

Former Member
0 Likes
739

Hi All,

if i am running a Trasaction and if in the processing an error occured, i want that the process may stop

at the same instant. for example i am creating a Payment lot by Tcode FPBMC and while running if there is any error in the input file the error is shown in the error log but the payment lot is created with the error, but i wish if there is any error the execution of the tcode must stop. so please let me know any function module or meathod to read the error log values and stop the processing of the tcode.

Regards,

himanshu sharma

1 ACCEPTED SOLUTION
Read only

SujeetMishra
Active Contributor
0 Likes
678

Dear Himanshu,

Please try to find the BADI or EXITS for your tcode.

and write code for stopping the execution of program.

Have a Nice Day,

Regards,

Sujeet

Hi All,

if i am running a Trasaction and if in the processing an error occured, i want that the process may stop

at the same instant. for example i am creating a Payment lot by Tcode FPBMC and while running if there is any error in the input file the error is shown in the error log but the payment lot is created with the error, but i wish if there is any error the execution of the tcode must stop. so please let me know any function module or meathod to read the error log values and stop the processing of the tcode.

Regards,

himanshu sharma

3 REPLIES 3
Read only

SujeetMishra
Active Contributor
0 Likes
679

Dear Himanshu,

Please try to find the BADI or EXITS for your tcode.

and write code for stopping the execution of program.

Have a Nice Day,

Regards,

Sujeet

Read only

Former Member
0 Likes
678

You can use the suitable badi of the following to enhance the code as per your requirements.

Number of BAdIs found for FPBMC : 2

S.No Badi Name Description

1 FKK_TAX_REP_00 Tax reporting for Mexico

2 FKK_WTAX_REP00 US1099 Misc: WT data from FI-CA

Thanks

Satyasuresh

Read only

apoorva_singh
Active Participant
0 Likes
678

Hi Himanshu,

We use FM : BAL_LOG_MSG_READ to read the message from log. It needs the handle for log as input which you can figure out. In CRM , we have FMs : CRM_MESSAGES* in order to read particular or group of mesages.

When you want to ABORT the processing based on some condition : You can choose either to abort or display error message allow user to come out :

1. MESSAGE A300(zcrm_csi_ui). where 300 is message number and zcrm_csi_ui is msgclass

to Abort.

2. MESSAGE E300(zcrm_csi_ui). where 300 is message number and zcrm_csi_ui is msgclass

to display error and asking user to comeout.

Regards

Apoorva