SAP RFC Gets the implementation of BDC message text
Recently when making RFCs, there is a call to a BDC for information entry
When debugging the program, the simple processing is correct, the handling exception is not satisfied, and I want to get specific similar GUI-like prompt message
How do you get the message text?
Messtab content:
A preliminary guess might be a storage table or a function conversion, find the following content:
SE11 table:t100
SE37 Function Module:write_message
In addition, it is important to note that
Messtab has a parameter Msgnr can not directly be the function interface, need to type conversion processing.
Execution Result:
Related code:
"Perform bdc_transaction using ' PA30 '.
Call transaction ' PA30 ' using Bdcdata
Mode mode
Update update
Messages into Messtab.
"Get BDC text by Messtab
LOOP at Messtab.
MOVE Messtab-msgnr to Msgno. "Type conversion
Call FUNCTION ' Write_message '
Exporting
MSGID = Messtab-msgid
Msgno = Msgno
Msgty = Messtab-msgtyp
MSGV1 = Messtab-msgv1
MSGV2 = Messtab-msgv2
MSGV3 = Messtab-msgv3
MSGV4 = Messtab-msgv4
"MSGV5 = messtab-msgv5
Importing
MESSG = MESSAGE.
Concatenate MESSAGE '; ' Into Return-message.
APPEND RETURN.
Clear:msgno,message,return.
Endloop.
SAP RFC Gets the implementation of BDC message text