SAP HRIQ_STUDENT_GRANT_ITEM_REMOVE Function Module for Delete one item from student grants assignment









HRIQ_STUDENT_GRANT_ITEM_REMOVE is a standard hriq student grant item remove SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delete one item from student grants assignment 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 hriq student grant item remove FM, simply by entering the name HRIQ_STUDENT_GRANT_ITEM_REMOVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPIQ00STUDENT_GRANTS
Program Name: SAPLHRPIQ00STUDENT_GRANTS
Main Program: SAPLHRPIQ00STUDENT_GRANTS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HRIQ_STUDENT_GRANT_ITEM_REMOVE 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 'HRIQ_STUDENT_GRANT_ITEM_REMOVE'"Delete one item from student grants assignment
EXPORTING
BUSINESSPARTNER = "Business Partner Number
GRANTS = "Grant
ACAD_YEAR = "Academic Year
ACAD_SESSION = "Academic Session
COT_GROUPING = "Contract Object Type Grouping (COT Grouping)
SEQUENCE_NUMBER = "Sequence Number

TABLES
* RETURN = "Return Parameter
.



IMPORTING Parameters details for HRIQ_STUDENT_GRANT_ITEM_REMOVE

BUSINESSPARTNER - Business Partner Number

Data type: BAPI_STUDENT_GRANTS-PARTNER
Optional: No
Call by Reference: No ( called with pass by value option)

GRANTS - Grant

Data type: BAPI_STUDENT_GRANTS-GRANTS
Optional: No
Call by Reference: No ( called with pass by value option)

ACAD_YEAR - Academic Year

Data type: BAPI_STUDENT_GRANTS-ACAD_YEAR
Optional: No
Call by Reference: No ( called with pass by value option)

ACAD_SESSION - Academic Session

Data type: BAPI_STUDENT_GRANTS-ACAD_SESSION
Optional: No
Call by Reference: No ( called with pass by value option)

COT_GROUPING - Contract Object Type Grouping (COT Grouping)

Data type: BAPI_STUDENT_GRANT_ITEMS-COT_GROUPING
Optional: No
Call by Reference: No ( called with pass by value option)

SEQUENCE_NUMBER - Sequence Number

Data type: BAPI_STUDENT_GRANT_ITEMS-SEQUENCE_NUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HRIQ_STUDENT_GRANT_ITEM_REMOVE

RETURN - Return Parameter

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for HRIQ_STUDENT_GRANT_ITEM_REMOVE 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:
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_businesspartner  TYPE BAPI_STUDENT_GRANTS-PARTNER, "   
lv_grants  TYPE BAPI_STUDENT_GRANTS-GRANTS, "   
lv_acad_year  TYPE BAPI_STUDENT_GRANTS-ACAD_YEAR, "   
lv_acad_session  TYPE BAPI_STUDENT_GRANTS-ACAD_SESSION, "   
lv_cot_grouping  TYPE BAPI_STUDENT_GRANT_ITEMS-COT_GROUPING, "   
lv_sequence_number  TYPE BAPI_STUDENT_GRANT_ITEMS-SEQUENCE_NUMBER. "   

  CALL FUNCTION 'HRIQ_STUDENT_GRANT_ITEM_REMOVE'  "Delete one item from student grants assignment
    EXPORTING
         BUSINESSPARTNER = lv_businesspartner
         GRANTS = lv_grants
         ACAD_YEAR = lv_acad_year
         ACAD_SESSION = lv_acad_session
         COT_GROUPING = lv_cot_grouping
         SEQUENCE_NUMBER = lv_sequence_number
    TABLES
         RETURN = lt_return
. " HRIQ_STUDENT_GRANT_ITEM_REMOVE




ABAP code using 7.40 inline data declarations to call FM HRIQ_STUDENT_GRANT_ITEM_REMOVE

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 PARTNER FROM BAPI_STUDENT_GRANTS INTO @DATA(ld_businesspartner).
 
"SELECT single GRANTS FROM BAPI_STUDENT_GRANTS INTO @DATA(ld_grants).
 
"SELECT single ACAD_YEAR FROM BAPI_STUDENT_GRANTS INTO @DATA(ld_acad_year).
 
"SELECT single ACAD_SESSION FROM BAPI_STUDENT_GRANTS INTO @DATA(ld_acad_session).
 
"SELECT single COT_GROUPING FROM BAPI_STUDENT_GRANT_ITEMS INTO @DATA(ld_cot_grouping).
 
"SELECT single SEQUENCE_NUMBER FROM BAPI_STUDENT_GRANT_ITEMS INTO @DATA(ld_sequence_number).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!