SAP Function Modules

PMIQ_BUPA_CREATE_STUDENT_ONLY SAP Function module - Obsolete: Create a business partner for student







PMIQ_BUPA_CREATE_STUDENT_ONLY 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 PMIQ_BUPA_CREATE_STUDENT_ONLY into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM PMIQ_BUPA_CREATE_STUDENT_ONLY - PMIQ BUPA CREATE STUDENT ONLY





CALL FUNCTION 'PMIQ_BUPA_CREATE_STUDENT_ONLY' "Obsolete: Create a business partner for student
  EXPORTING
    iv_stobjid =                " piqstudent    Student
    iv_student12 =              " piqstudent12  Student Number
*   iv_otype =                  " wplog-otype   Object Type
*   iv_stgrp =                  " cmac_st-cmstgrp  Student Group
*   iv_stfeecat =               " cmac_st-cmstcat  Student Fee Category
*   iv_storg =                  " cmac_st-cmstorg  Organization Unit ID for Student
*   iv_natio =                  " land1         Country key
*   iv_valdt = SY-DATUM         " bu_valdt      Validity date for business partner data
*   iv_xcommit = SPACE          " boole_d       Flag: With commit work
*   iv_xchdoc = 'X'             " boole_d       Flag: Write change document
*   i_xupdtask = SPACE          " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
*   iv_xtest = SPACE            " boole-boole   Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
  IMPORTING
    ev_xerror =                 " bus000flds-char1  Flag: Error occurred
    ev_partner =                " bu_partner    Business partner number
* TABLES
*   et_message =                " bus0msg1      CBP: Message for each object
*   et_keyvalue =               " busskeyval    BP Control: Key Field Values (Direct Input)
    .  "  PMIQ_BUPA_CREATE_STUDENT_ONLY

ABAP code example for Function Module PMIQ_BUPA_CREATE_STUDENT_ONLY





The ABAP code below is a full code listing to execute function module PMIQ_BUPA_CREATE_STUDENT_ONLY 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_ev_xerror  TYPE BUS000FLDS-CHAR1 ,
ld_ev_partner  TYPE BU_PARTNER ,
it_et_message  TYPE STANDARD TABLE OF BUS0MSG1,"TABLES PARAM
wa_et_message  LIKE LINE OF it_et_message ,
it_et_keyvalue  TYPE STANDARD TABLE OF BUSSKEYVAL,"TABLES PARAM
wa_et_keyvalue  LIKE LINE OF it_et_keyvalue .

DATA(ld_iv_stobjid) = 'Check type of data required'.
DATA(ld_iv_student12) = 'Check type of data required'.

DATA(ld_iv_otype) = some text here

DATA(ld_iv_stgrp) = some text here

DATA(ld_iv_stfeecat) = some text here

DATA(ld_iv_storg) = Check type of data required
DATA(ld_iv_natio) = 'Check type of data required'.
DATA(ld_iv_valdt) = 'Check type of data required'.
DATA(ld_iv_xcommit) = 'Check type of data required'.
DATA(ld_iv_xchdoc) = 'Check type of data required'.
DATA(ld_i_xupdtask) = 'Check type of data required'.

DATA(ld_iv_xtest) = some text here

"populate fields of struture and append to itab
append wa_et_message to it_et_message.

"populate fields of struture and append to itab
append wa_et_keyvalue to it_et_keyvalue. . CALL FUNCTION 'PMIQ_BUPA_CREATE_STUDENT_ONLY' EXPORTING iv_stobjid = ld_iv_stobjid iv_student12 = ld_iv_student12 * iv_otype = ld_iv_otype * iv_stgrp = ld_iv_stgrp * iv_stfeecat = ld_iv_stfeecat * iv_storg = ld_iv_storg * iv_natio = ld_iv_natio * iv_valdt = ld_iv_valdt * iv_xcommit = ld_iv_xcommit * iv_xchdoc = ld_iv_xchdoc * i_xupdtask = ld_i_xupdtask * iv_xtest = ld_iv_xtest IMPORTING ev_xerror = ld_ev_xerror ev_partner = ld_ev_partner * TABLES * et_message = it_et_message * et_keyvalue = it_et_keyvalue . " PMIQ_BUPA_CREATE_STUDENT_ONLY
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_ev_xerror  TYPE BUS000FLDS-CHAR1 ,
ld_iv_stobjid  TYPE PIQSTUDENT ,
it_et_message  TYPE STANDARD TABLE OF BUS0MSG1 ,
wa_et_message  LIKE LINE OF it_et_message,
ld_ev_partner  TYPE BU_PARTNER ,
ld_iv_student12  TYPE PIQSTUDENT12 ,
it_et_keyvalue  TYPE STANDARD TABLE OF BUSSKEYVAL ,
wa_et_keyvalue  LIKE LINE OF it_et_keyvalue,
ld_iv_otype  TYPE WPLOG-OTYPE ,
ld_iv_stgrp  TYPE CMAC_ST-CMSTGRP ,
ld_iv_stfeecat  TYPE CMAC_ST-CMSTCAT ,
ld_iv_storg  TYPE CMAC_ST-CMSTORG ,
ld_iv_natio  TYPE LAND1 ,
ld_iv_valdt  TYPE BU_VALDT ,
ld_iv_xcommit  TYPE BOOLE_D ,
ld_iv_xchdoc  TYPE BOOLE_D ,
ld_i_xupdtask  TYPE BOOLE_D ,
ld_iv_xtest  TYPE BOOLE-BOOLE .

ld_iv_stobjid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_message to it_et_message.
ld_iv_student12 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_keyvalue to it_et_keyvalue.

ld_iv_otype = some text here

ld_iv_stgrp = some text here

ld_iv_stfeecat = some text here

ld_iv_storg = Check type of data required
ld_iv_natio = 'Check type of data required'.
ld_iv_valdt = 'Check type of data required'.
ld_iv_xcommit = 'Check type of data required'.
ld_iv_xchdoc = 'Check type of data required'.
ld_i_xupdtask = 'Check type of data required'.

ld_iv_xtest = some text here

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 PMIQ_BUPA_CREATE_STUDENT_ONLY or its description.