SAP Function Modules

HRIQNL_PROCESS_MSG31_OUT_SL4 SAP Function module - Prepare and Send Message 31







HRIQNL_PROCESS_MSG31_OUT_SL4 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HRIQNL_PROCESS_MSG31_OUT_SL4 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRPIQNLPROCESSOUTMSGS_SL4
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HRIQNL_PROCESS_MSG31_OUT_SL4 - HRIQNL PROCESS MSG31 OUT SL4





CALL FUNCTION 'HRIQNL_PROCESS_MSG31_OUT_SL4' "Prepare and Send Message 31
  EXPORTING
    stuobjid =                  " hrobjid       Object ID
    stupartnum =                " bu_partner    Business Partner Number
    stunumber =                 " piqstudent12  Student Number
    sc_objid =                  " piqscobjid    Program ID
    adm_ayear =                 " piqperyr      Academic Year
    adm_perid =                 " piqperid      Academic Session
*   deregreason =               " piqderreason  De-registration Reason
*   deregreasondate =           " piqderdate
*   event =                     " char10        Scenario For Msg 31 out
*   istat =                     " istat_d       ISTAT
  IMPORTING
    missing_info =              " hrtb_bal_s_msg  Table: Application Log - Messages
    .  "  HRIQNL_PROCESS_MSG31_OUT_SL4

ABAP code example for Function Module HRIQNL_PROCESS_MSG31_OUT_SL4





The ABAP code below is a full code listing to execute function module HRIQNL_PROCESS_MSG31_OUT_SL4 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_missing_info  TYPE HRTB_BAL_S_MSG .

DATA(ld_stuobjid) = 'Check type of data required'.
DATA(ld_stupartnum) = 'Check type of data required'.
DATA(ld_stunumber) = 'Check type of data required'.
DATA(ld_sc_objid) = 'Check type of data required'.
DATA(ld_adm_ayear) = 'Check type of data required'.
DATA(ld_adm_perid) = 'Check type of data required'.
DATA(ld_deregreason) = 'Check type of data required'.
DATA(ld_deregreasondate) = 'Check type of data required'.
DATA(ld_event) = 'Check type of data required'.
DATA(ld_istat) = 'Check type of data required'. . CALL FUNCTION 'HRIQNL_PROCESS_MSG31_OUT_SL4' EXPORTING stuobjid = ld_stuobjid stupartnum = ld_stupartnum stunumber = ld_stunumber sc_objid = ld_sc_objid adm_ayear = ld_adm_ayear adm_perid = ld_adm_perid * deregreason = ld_deregreason * deregreasondate = ld_deregreasondate * event = ld_event * istat = ld_istat IMPORTING missing_info = ld_missing_info . " HRIQNL_PROCESS_MSG31_OUT_SL4
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_missing_info  TYPE HRTB_BAL_S_MSG ,
ld_stuobjid  TYPE HROBJID ,
ld_stupartnum  TYPE BU_PARTNER ,
ld_stunumber  TYPE PIQSTUDENT12 ,
ld_sc_objid  TYPE PIQSCOBJID ,
ld_adm_ayear  TYPE PIQPERYR ,
ld_adm_perid  TYPE PIQPERID ,
ld_deregreason  TYPE PIQDERREASON ,
ld_deregreasondate  TYPE PIQDERDATE ,
ld_event  TYPE CHAR10 ,
ld_istat  TYPE ISTAT_D .

ld_stuobjid = 'Check type of data required'.
ld_stupartnum = 'Check type of data required'.
ld_stunumber = 'Check type of data required'.
ld_sc_objid = 'Check type of data required'.
ld_adm_ayear = 'Check type of data required'.
ld_adm_perid = 'Check type of data required'.
ld_deregreason = 'Check type of data required'.
ld_deregreasondate = 'Check type of data required'.
ld_event = 'Check type of data required'.
ld_istat = 'Check type of data required'.

SAP Documentation for FM HRIQNL_PROCESS_MSG31_OUT_SL4


This function module retrieves date from Student File to create and send the outgoing message 31. ...See here for full SAP fm documentation



Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HRIQNL_PROCESS_MSG31_OUT_SL4 or its description.