Fonction SAP BALW_BAPIRETURN_GET2 - Fills the BAPI Return Parameter with Field Entries as of 4.0A

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CL SYST-MSGID C 20 Message Class (Message ID)
FIELD BAPIRET2-FIELD C 30 SPACE X Field Name
LOG_MSG_NO BAPIRETURN-LOG_MSG_NO N 6 SPACE X Current Number in Application Log
LOG_NO BAPIRETURN-LOG_NO C 20 SPACE X Application Log ID
NUMBER SYST-MSGNO N 3 Message Number
PAR1 SYST-MSGV1 C 50 SPACE X Variable 1
PAR2 SYST-MSGV2 C 50 SPACE X Variable 2
PAR3 SYST-MSGV3 C 50 SPACE X Variable 3
PAR4 SYST-MSGV4 C 50 SPACE X Variable 4
PARAMETER BAPIRET2-PARAMETER C 32 SPACE X Parameter Name
ROW BAPIRET2-ROW I 4 0 X Line Number
TYPE BAPIRETURN-TYPE C 1 Message Type

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 BAPI Return Parameter

Functionality
This function module fills the BAPI return parameter. The texts of thesystem variables are included in the message text.

Notes

The standard name for BAPI return parameters is "return".

Compatiblity of 3.0/3.1 and 4.0
The function takes the enhanced name range of the message class intoaccount as of 4.0. For 3.0 and 3.1 we recommend you use only the firsttwo characters in the message class. This ensures that field entriesmade in T100 in 3.0 or 3.1 are compatible.

Assigning Messages to Fields
Using parameters 'parameter', 'line' and 'field' you can assign errormessages to individual fields in a parameter, provided that theparameter names in the methods in the BOR are the same as the parameternames in the function module. This is checked by 'ToDo' when thereference structure BAPIRET2 is used.

Further Information
- BAPI Programming
- Documentation on reference structure BAPIRET2