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'


id = messtab-msgid

lang = messtab-msgspra

no = messtab-msgnr

v1 = messtab-msgv1

v2 = messtab-msgv2

v3 = messtab-msgv3

v4 = messtab-msgv4


msg = messages-text


not_found = 01

others = 02.

if sy-subrc <> 0.

clear messages-text.


append messages.


open dataset w_physical_file for output in text mode.

loop at messages..

transfer messages to w_physical_file.


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 .

Former Member

Helpful Answer

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