cancel
Showing results for 
Search instead for 
Did you mean: 

Dispaly message with multiple customer no.s

Former Member
0 Kudos

Hi All,

I have arequirement to display all the customer no.s in the message for whom there is no tax code defined. Foe example

if I have customers 1000, 1001, 1002, 1003 for whom the taxcode is not defined then I should get the below message:

"No Tax code defined for customers 1000, 1001, 1002, 1003 "

Regards,

Santosh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Get all the customer numbers for whom the tax code is not defined into an internal table, loop them and concatenate the numbers into a string and pass the string to the message statement.

describe table cust lines w_line.
loop at cust.
if sy-tabix < w_line.
concatenate cust-no ',' into cust-string separated by space.
endif.
endloop.
concatenate 'No tax code defined for customers' cust-string into cust-string 
                                                                  separated by space.
message  w_string type 'E'.

Regards

Sarves

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check this FM to format the Message FORMAT_MESSAGE