2007 Feb 14 6:53 PM
Hi everyone.
I´m using this bapi BAPI_OUTB_DELIVERY_SAVEREPLICA but when i´m trying to check the rerturn table the message field is clear and the others fields are filled. This is an example of the content of my table.
Línea TYPE ID NUMBER MESSAGE LOG_NO LOG_MSG_NO MESSAGE_V1 MESSAGE_V2 MESSAGE_V3 MESSAGE_V4 PARAMETER ROW FIELD SYSTEM
1 E VL 864 0 WE 0
2 E VL 667 0 0
How can i obtain the message text?? Exist some SAP-Note??
Thanks & Regards
David
2007 Feb 14 8:24 PM
Hi,
ID is a Messge Class. So, go to Transaction SE91, give message class as VL and go to message number 864. You will get the message. Also, <b>&</b> will be replaced by <b>WE</b> during runtime.
If you want to fetch data programatically then use following code:
DATA : it_string TYPE TABLE OF string,
v_string TYPE string.
LOOP AT it_return.
SELECT SINGLE *
FROM t100
INTO x_t100
WHERE sprsl = sy-langu
AND arbgb = it_return-id
AND msgnr = it_return-number.
IF sy-subrc = 0.
v_string = t100-text.
IF v_string CS '&1'.
REPLACE '&1' WITH it_messtab-msgv1 INTO v_string.
REPLACE '&2' WITH it_messtab-msgv2 INTO v_string.
REPLACE '&3' WITH it_messtab-msgv3 INTO v_string.
REPLACE '&4' WITH it_messtab-msgv4 INTO v_string.
ELSE.
REPLACE '&' WITH it_messtab-msgv1 INTO v_string.
REPLACE '&' WITH it_messtab-msgv2 INTO v_string.
REPLACE '&' WITH it_messtab-msgv3 INTO v_string.
REPLACE '&' WITH it_messtab-msgv4 INTO v_string.
ENDIF.
APPEND v_string TO it_string.
ENDIF.
ENDLOOP.
In the above code, it_return will contain the table returned by BAPI and it_string will contain all the messages.
Reward points if the answer is helpful.
Regards,
Mukul
2007 Feb 14 7:58 PM
Hi,
You can check table T100 or go to transaction SE91 to check the error message.
Regards,
Ferry Lianto
2007 Feb 14 8:24 PM
Hi,
ID is a Messge Class. So, go to Transaction SE91, give message class as VL and go to message number 864. You will get the message. Also, <b>&</b> will be replaced by <b>WE</b> during runtime.
If you want to fetch data programatically then use following code:
DATA : it_string TYPE TABLE OF string,
v_string TYPE string.
LOOP AT it_return.
SELECT SINGLE *
FROM t100
INTO x_t100
WHERE sprsl = sy-langu
AND arbgb = it_return-id
AND msgnr = it_return-number.
IF sy-subrc = 0.
v_string = t100-text.
IF v_string CS '&1'.
REPLACE '&1' WITH it_messtab-msgv1 INTO v_string.
REPLACE '&2' WITH it_messtab-msgv2 INTO v_string.
REPLACE '&3' WITH it_messtab-msgv3 INTO v_string.
REPLACE '&4' WITH it_messtab-msgv4 INTO v_string.
ELSE.
REPLACE '&' WITH it_messtab-msgv1 INTO v_string.
REPLACE '&' WITH it_messtab-msgv2 INTO v_string.
REPLACE '&' WITH it_messtab-msgv3 INTO v_string.
REPLACE '&' WITH it_messtab-msgv4 INTO v_string.
ENDIF.
APPEND v_string TO it_string.
ENDIF.
ENDLOOP.
In the above code, it_return will contain the table returned by BAPI and it_string will contain all the messages.
Reward points if the answer is helpful.
Regards,
Mukul