Hi,
I have an error structure which is getting returned by a function module in main program.
The returned error structure s_err has following values in its fields:
Requi....Unique....Fname
x........................STCD1
Now I have to read the structure s_err.
For the value in Fname column (here STCD1) read the status of its Requi and Unique flag.
Since Requi field is 'X'
raise error message 'stcd1 is required field'
If returned err_sturcture is:
REQUI....Unique....Fname
............X............STCD2
Read the structure s_err.
For the value in Field column (here STCD2) read the status of the Requi and Unique flag.
Since Unique field is 'X'
raise error message 'stcd2 is unique field'
So depending upon the statuses of values in fnames in structure the error message is formulated.
How do I do this in ABAP ?
Can someone tell me considering above stucture in mind.