SAP ISH_BAPI_FILL_RETURN_PARAM Function Module for Formatting and Filling the BAPI Return Structure with Message Specifics
ISH_BAPI_FILL_RETURN_PARAM is a standard ish bapi fill return param SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Formatting and Filling the BAPI Return Structure with Message Specifics processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ish bapi fill return param FM, simply by entering the name ISH_BAPI_FILL_RETURN_PARAM into the relevant SAP transaction such as SE37 or SE38.
Function Group: NBAPI
Program Name: SAPLNBAPI
Main Program: SAPLNBAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ISH_BAPI_FILL_RETURN_PARAM pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ISH_BAPI_FILL_RETURN_PARAM'"Formatting and Filling the BAPI Return Structure with Message Specifics.
EXPORTING
MSGTY = "Message Type (S, I, W, E, A)
* FIELD = "Field Name in Parameter
* APPLLOG_NO = "Application log: log number
* APPLLOG_MSG_NO = "Application Log: Message Sequence Number
MSGID = "Message ID
MSGNO = "Message Number
* MSGV1 = "Message Variable 1
* MSGV2 = "Message Variable 2
* MSGV3 = "Message Variable 3
* MSGV4 = "Message Variable 4
* PARAMETER = "Parameter Name
* ROW = "Row in Parameter (for Tables)
IMPORTING
RETURN = "BAPI Return Struct.
IMPORTING Parameters details for ISH_BAPI_FILL_RETURN_PARAM
MSGTY - Message Type (S, I, W, E, A)
Data type: SY-MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
FIELD - Field Name in Parameter
Data type: BAPIRET2-FIELDOptional: Yes
Call by Reference: No ( called with pass by value option)
APPLLOG_NO - Application log: log number
Data type: BAPIRET2-LOG_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
APPLLOG_MSG_NO - Application Log: Message Sequence Number
Data type: BAPIRET2-LOG_MSG_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
MSGID - Message ID
Data type: SY-MSGIDOptional: No
Call by Reference: No ( called with pass by value option)
MSGNO - Message Number
Data type: SY-MSGNOOptional: No
Call by Reference: No ( called with pass by value option)
MSGV1 - Message Variable 1
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV2 - Message Variable 2
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV3 - Message Variable 3
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV4 - Message Variable 4
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PARAMETER - Parameter Name
Data type: BAPIRET2-PARAMETEROptional: Yes
Call by Reference: No ( called with pass by value option)
ROW - Row in Parameter (for Tables)
Data type: BAPIRET2-ROWOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_BAPI_FILL_RETURN_PARAM
RETURN - BAPI Return Struct.
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_BAPI_FILL_RETURN_PARAM Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_msgty | TYPE SY-MSGTY, " | |||
lv_return | TYPE BAPIRET2, " | |||
lv_field | TYPE BAPIRET2-FIELD, " | |||
lv_appllog_no | TYPE BAPIRET2-LOG_NO, " | |||
lv_appllog_msg_no | TYPE BAPIRET2-LOG_MSG_NO, " | |||
lv_msgid | TYPE SY-MSGID, " | |||
lv_msgno | TYPE SY-MSGNO, " | |||
lv_msgv1 | TYPE SY, " | |||
lv_msgv2 | TYPE SY, " | |||
lv_msgv3 | TYPE SY, " | |||
lv_msgv4 | TYPE SY, " | |||
lv_parameter | TYPE BAPIRET2-PARAMETER, " | |||
lv_row | TYPE BAPIRET2-ROW. " |
  CALL FUNCTION 'ISH_BAPI_FILL_RETURN_PARAM' "Formatting and Filling the BAPI Return Structure with Message Specifics |
EXPORTING | ||
MSGTY | = lv_msgty | |
FIELD | = lv_field | |
APPLLOG_NO | = lv_appllog_no | |
APPLLOG_MSG_NO | = lv_appllog_msg_no | |
MSGID | = lv_msgid | |
MSGNO | = lv_msgno | |
MSGV1 | = lv_msgv1 | |
MSGV2 | = lv_msgv2 | |
MSGV3 | = lv_msgv3 | |
MSGV4 | = lv_msgv4 | |
PARAMETER | = lv_parameter | |
ROW | = lv_row | |
IMPORTING | ||
RETURN | = lv_return | |
. " ISH_BAPI_FILL_RETURN_PARAM |
ABAP code using 7.40 inline data declarations to call FM ISH_BAPI_FILL_RETURN_PARAM
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single MSGTY FROM SY INTO @DATA(ld_msgty). | ||||
"SELECT single FIELD FROM BAPIRET2 INTO @DATA(ld_field). | ||||
"SELECT single LOG_NO FROM BAPIRET2 INTO @DATA(ld_appllog_no). | ||||
"SELECT single LOG_MSG_NO FROM BAPIRET2 INTO @DATA(ld_appllog_msg_no). | ||||
"SELECT single MSGID FROM SY INTO @DATA(ld_msgid). | ||||
"SELECT single MSGNO FROM SY INTO @DATA(ld_msgno). | ||||
"SELECT single PARAMETER FROM BAPIRET2 INTO @DATA(ld_parameter). | ||||
"SELECT single ROW FROM BAPIRET2 INTO @DATA(ld_row). | ||||
Search for further information about these or an SAP related objects