Application Development 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: 

Error message

Former Member
0 Kudos

Hi,

Please give the code.

I am having the customer number as XXXXXXX

and i should populate a message " customer number XXXXXXX does not exist

Thanks in advance

Ajay

4 REPLIES 4

Former Member
0 Kudos

*--if var contains customer no. then....

message e000 with 'customer number' var 'does not exist'.

if u don't want spaces in between....

data : var1(7) type c,var2 type string.

write var to var1.

condense var1 no-gaps.

concatenate 'customer number' var1 'does not exist' into var2 separated by space.

*--now use....

message e000 with var2.

Former Member
0 Kudos

Hi,

MESSAGE e000(give message class if applicable) with 'Customer number' &tblename-fieldname& 'does not exist'.

example:

PARAMETER: p_number TYPE char20.

MESSAGE e000(zmessclass) with 'Customer number' p_number 'does not exist'.

Pls do reward if useful.

Regards,

Farheen

Former Member
0 Kudos

Hi,

Try like this.

DATA: msg(50).

CONCATENATE 'customer number' KUNNR 'does not exist' INTO msg SEPERATED BY SPACE.

MESSAGE msg TYPE 'E'.

Rewards points if helpful.

Regards,

Srinivas Ch

Former Member
0 Kudos

hi

good

create your own message class to solve your problem.

go thorugh this link which will give you detail idea about the message class.

http://help.sap.com/saphelp_nw04/helpdata/en/cd/5892c9b06311d2957b00a0c94260a5/content.htm

thanks

mrutyun^