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

store run time value in a variable

Former Member
0 Likes
717

hi,

i want to store error message to one char variable say 'errtext'.

along with that error message, i want to store key value of table which will come at run time.

please suggest me how to achieve this?

like my final errtext should look like: 'error message in record -


'.

Thank you in advance!

4 REPLIES 4
Read only

Former Member
0 Likes
606

Hi

your question is not clear .

if you wants to display the field in the error text message, you can concatenate the error text with the wa-field .

for example

concatenate 'error message in record ' wa-field 'some messsage' into ERRTEXT.

Regds

R

Read only

0 Likes
606

no,

i want to write my errors in one file i.e. one errorfile

so, m storing the error in string and then writing it to errorfile

Read only

Former Member
0 Likes
606

Hi,

You can concatenate and the value which is coming at runtime in errtext and keep.

Use concatenate statement.

Thanks & Regards,

Navneeth K.

Read only

Former Member
0 Likes
606

Hi,

If you are writing to a list then u can write it as

write : 'error message in record -


', value.

Venkat