Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

errors in call transaction

hii frnds plz help me with the folowing code for trapping errrors in call transaction .

loop at messtab.

move-corresponding messtab to messages.

call function 'FORMAT_MESSAGE'

exporting

id = messtab-msgid

lang = messtab-msgspra

no = messtab-msgnr

v1 = messtab-msgv1

v2 = messtab-msgv2

v3 = messtab-msgv3

v4 = messtab-msgv4

importing

msg = messages-text

exceptions

not_found = 01

others = 02.

if sy-subrc <> 0.

clear messages-text.

endif.

append messages.

endloop.

open dataset w_physical_file for output in text mode.

loop at messages..

transfer messages to w_physical_file.

endloop.

close dataset w_physical_file.

i wanted to ask that the file w_physical_file is actualy holding all the errors on our sequential file or not . and suppose i have got 500 errors out of 1000 records then how should i correct the errors and modify our sequential file . i mean to say do i have to do it maualy correcting all the 500 errors in the w_physical_file and modify my sequential file . plz help as i am confused with the error handling in call transaction .

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question