‎2006 Dec 21 7:33 PM
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
‎2006 Dec 21 7:40 PM
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
‎2006 Dec 22 2:59 PM
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