SAP HRIQ_STUDENT_CREATE_FROM_BP Function Module for Create Student for Business Partner (Dialog)









HRIQ_STUDENT_CREATE_FROM_BP is a standard hriq student create from bp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Student for Business Partner (Dialog) 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 create from bp FM, simply by entering the name HRIQ_STUDENT_CREATE_FROM_BP into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPIQ00STUDENT_BP
Program Name: SAPLHRPIQ00STUDENT_BP
Main Program: SAPLHRPIQ00STUDENT_BP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRIQ_STUDENT_CREATE_FROM_BP 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_CREATE_FROM_BP'"Create Student for Business Partner (Dialog)
EXPORTING
* IV_PARTNER = "BP number
* IV_STUDENTNUMBER = "Student Number

IMPORTING
EV_PARTNER = "Business Partner Number
EV_STUDENTNUMBER = "Student Number
EV_STOBJID = "Student Object ID
EV_PLVAR = "Plan Version
EV_XDATA_SAVED = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

CHANGING
* CT_RETURN = "Return Parameter Table
.



IMPORTING Parameters details for HRIQ_STUDENT_CREATE_FROM_BP

IV_PARTNER - BP number

Data type: BU_PARTNER
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_STUDENTNUMBER - Student Number

Data type: PIQSTUDENT12
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HRIQ_STUDENT_CREATE_FROM_BP

EV_PARTNER - Business Partner Number

Data type: BU_PARTNER
Optional: No
Call by Reference: No ( called with pass by value option)

EV_STUDENTNUMBER - Student Number

Data type: PIQSTUDENT12
Optional: No
Call by Reference: No ( called with pass by value option)

EV_STOBJID - Student Object ID

Data type: PIQSTUDENT
Optional: No
Call by Reference: No ( called with pass by value option)

EV_PLVAR - Plan Version

Data type: PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

EV_XDATA_SAVED - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

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

CHANGING Parameters details for HRIQ_STUDENT_CREATE_FROM_BP

CT_RETURN - Return Parameter Table

Data type: BAPIRET2_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HRIQ_STUDENT_CREATE_FROM_BP 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_ct_return  TYPE BAPIRET2_T, "   
lv_ev_partner  TYPE BU_PARTNER, "   
lv_iv_partner  TYPE BU_PARTNER, "   
lv_ev_studentnumber  TYPE PIQSTUDENT12, "   
lv_iv_studentnumber  TYPE PIQSTUDENT12, "   
lv_ev_stobjid  TYPE PIQSTUDENT, "   
lv_ev_plvar  TYPE PLVAR, "   
lv_ev_xdata_saved  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'HRIQ_STUDENT_CREATE_FROM_BP'  "Create Student for Business Partner (Dialog)
    EXPORTING
         IV_PARTNER = lv_iv_partner
         IV_STUDENTNUMBER = lv_iv_studentnumber
    IMPORTING
         EV_PARTNER = lv_ev_partner
         EV_STUDENTNUMBER = lv_ev_studentnumber
         EV_STOBJID = lv_ev_stobjid
         EV_PLVAR = lv_ev_plvar
         EV_XDATA_SAVED = lv_ev_xdata_saved
    CHANGING
         CT_RETURN = lv_ct_return
. " HRIQ_STUDENT_CREATE_FROM_BP




ABAP code using 7.40 inline data declarations to call FM HRIQ_STUDENT_CREATE_FROM_BP

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 BOOLE FROM BOOLE INTO @DATA(ld_ev_xdata_saved).
 


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!