2008 Jun 17 2:58 AM
For example , if I want to get a string from the following code, how can I do?
MESSAGE ID 'COM_PARTNER' TYPE 'I' NUMBER 116.
Best regards,
2008 Jun 17 3:11 AM
Programmatically:
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
type = sy-msgty
cl = sy-msgid
number = sy-msgno
par1 = sy-msgv1
par2 = sy-msgv2
par3 = sy-msgv3
par4 = sy-msgv4
IMPORTING
return = it_ret1.
OR use se91
2008 Jun 17 3:11 AM
Programmatically:
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
type = sy-msgty
cl = sy-msgid
number = sy-msgno
par1 = sy-msgv1
par2 = sy-msgv2
par3 = sy-msgv3
par4 = sy-msgv4
IMPORTING
return = it_ret1.
OR use se91
2008 Jun 17 3:12 AM
Hi,
Try this -
DATA mtext TYPE string.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
INTO mtext
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
OR
call function BAPI_MESSAGE_GETDETAIL.
Cheers.
...Reward if useful