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

Standard Error message

Former Member
0 Likes
478

Hi,

I have a Internal table from which i need to update to a DB table. while Inserting or modfying record to DB table,I need to capture the standard error message. For ex.. PErsonnel number is Locked.

And i need to dispaly all these error message list in a report.

My Q is, How to get the standard error message.

Thanks,

Kanal.

3 REPLIES 3
Read only

Former Member
0 Likes
448

loop at itab.

use FM HR_INFOTYPE_OPERATION to update infotype..

this returns message ..

print them ...

endloop.

Read only

Former Member
0 Likes
448

Hi,

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '0416'

number = p0416-pernr

subtype = p0416-subty

objectid = p0416-objps

lockindicator = p0416-sprps

validityend = p0416-endda

validitybegin = p0416-begda

recordnumber = p0416-seqnr

record = p0416

operation = 'EDQ'

nocommit = nocommit

importing

return = error_message

key = pakey.

Read only

0 Likes
448

Hi,

Its not an Infotype,Im inserting/updating Ztable.

Update ztest from Wa.

Regards,

Kanal