SAP HRIQ_STNOTE_CREATE Function Module for









HRIQ_STNOTE_CREATE is a standard hriq stnote create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 stnote create FM, simply by entering the name HRIQ_STNOTE_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function HRIQ_STNOTE_CREATE 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_STNOTE_CREATE'"
EXPORTING
* IV_PLVAR = "
IV_STOBJID = "
IV_NOTE_TYPE = "
* IV_LANGU = SY-LANGU "
IS_CONTEXT = "
* IV_TITLE = "
* IT_LINES = "
* IV_XBUFFER = ' ' "

IMPORTING
ES_NOTE_INFO = "

EXCEPTIONS
NOTE_TEXT_SAVE_ERROR = 1 INFTY_INSERT_ERROR = 2 DATA_CHECK_ERROR = 3
.



IMPORTING Parameters details for HRIQ_STNOTE_CREATE

IV_PLVAR -

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

IV_STOBJID -

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

IV_NOTE_TYPE -

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

IV_LANGU -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_CONTEXT -

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

IV_TITLE -

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

IT_LINES -

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

IV_XBUFFER -

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

EXPORTING Parameters details for HRIQ_STNOTE_CREATE

ES_NOTE_INFO -

Data type: P1707
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOTE_TEXT_SAVE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INFTY_INSERT_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DATA_CHECK_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRIQ_STNOTE_CREATE 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_iv_plvar  TYPE PLVAR, "   
lv_es_note_info  TYPE P1707, "   
lv_note_text_save_error  TYPE P1707, "   
lv_iv_stobjid  TYPE PIQSTUDENT, "   
lv_infty_insert_error  TYPE PIQSTUDENT, "   
lv_iv_note_type  TYPE PIQNOTE_TYPE, "   
lv_data_check_error  TYPE PIQNOTE_TYPE, "   
lv_iv_langu  TYPE SY-LANGU, "   SY-LANGU
lv_is_context  TYPE PIQNOTES_CONTEXT_KEY, "   
lv_iv_title  TYPE TDTITLE, "   
lv_it_lines  TYPE PIQNOTE_TLINE_T, "   
lv_iv_xbuffer  TYPE FLAG. "   SPACE

  CALL FUNCTION 'HRIQ_STNOTE_CREATE'  "
    EXPORTING
         IV_PLVAR = lv_iv_plvar
         IV_STOBJID = lv_iv_stobjid
         IV_NOTE_TYPE = lv_iv_note_type
         IV_LANGU = lv_iv_langu
         IS_CONTEXT = lv_is_context
         IV_TITLE = lv_iv_title
         IT_LINES = lv_it_lines
         IV_XBUFFER = lv_iv_xbuffer
    IMPORTING
         ES_NOTE_INFO = lv_es_note_info
    EXCEPTIONS
        NOTE_TEXT_SAVE_ERROR = 1
        INFTY_INSERT_ERROR = 2
        DATA_CHECK_ERROR = 3
. " HRIQ_STNOTE_CREATE




ABAP code using 7.40 inline data declarations to call FM HRIQ_STNOTE_CREATE

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 LANGU FROM SY INTO @DATA(ld_iv_langu).
DATA(ld_iv_langu) = SY-LANGU.
 
 
 
 
DATA(ld_iv_xbuffer) = ' '.
 


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!