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

Generate Dynamic Message no.

Former Member
0 Likes
2,076

Hi experts,

How can i generate dynamic message number.

Like this :

data: msgno(4) type c.

if check = abap_true.

msgno = 'E101'.

else.

msgno = 'W120'.

endif.

message msgno(v1).

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,164

message id 'ZF' type 'E' number '102'.

Just pass the message type and message no to the above statement dynamically.

The messgae will get displayed

3 REPLIES 3
Read only

Former Member
0 Likes
1,164

Check FM BALW_BAPIRETURN_GET2.

Refer Link:

[Dynamic Message Using Message Pool|;

Read only

Former Member
0 Likes
1,164

Hi....

is not more simply if you do like follow?


if check = abap_true.
message 'E101(v1).
else.
message W120(v1).
endif.

regards

Marco

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,165

message id 'ZF' type 'E' number '102'.

Just pass the message type and message no to the above statement dynamically.

The messgae will get displayed