SAP RFC Gets the implementation of BDC message text

Source: Internet
Author: User
Tags rfc

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.