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

help needed

Former Member
0 Likes
386

Hi can anyone tell me how to get the

message below the status number for an idoc in we05

iam talking about the message below the status no, not about the message beside or right to the status number.

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
360

Hi,

Try this example..

TABLES: edids.

DATA: v_text(50).

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

id = edids-stamid

lang = sy-langu

no = edids-stamno

v1 = edids-stapa1

v2 = edids-stapa2

v3 = edids-stapa3

v4 = edids-stapa4

IMPORTING

msg = v_text

EXCEPTIONS

not_found = 1

OTHERS = 2.

WRITE: / v_text.

Thanks,

Naren

Read only

0 Likes
360

Hi ALL,

Instead of this code

TABLES: edids.

DATA: v_text(50).

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

id = edids-stamid

lang = sy-langu

no = edids-stamno

v1 = edids-stapa1

v2 = edids-stapa2

v3 = edids-stapa3

v4 = edids-stapa4

IMPORTING

msg = v_text

EXCEPTIONS

not_found = 1

OTHERS = 2.

WRITE: / v_text.

iam using this code , would there be any difference.

TABLES: edids.

DATA: v_text(50).

CALL FUNCTION 'MESSAGE_PREPARE'

EXPORTING

msg_id = edids-stamid

msg_no = edids-stamno

MSG_VAR1 = edids-stapa1

MSG_VAR2 = edids-stapa2

MSG_VAR3 = edids-stapa3

MSG_VAR4 = edids-stapa4

IMPORTING

msg_text = v_text

EXCEPTIONS

not_found = 1

OTHERS = 2.

WRITE: / v_text.

let me know thanks