SAP Function Modules

HRIQ_TRANSCRIPT_CREDITS_CONV SAP Function module - Convert External Credits to Internal Default Type







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

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


Pattern for FM HRIQ_TRANSCRIPT_CREDITS_CONV - HRIQ TRANSCRIPT CREDITS CONV





CALL FUNCTION 'HRIQ_TRANSCRIPT_CREDITS_CONV' "Convert External Credits to Internal Default Type
  EXPORTING
    iv_eo_objid =               " hrobject-objid
    iv_ext_credits =            " piqcp
*   iv_view_date = SY-DATUM     " sy-datum      Key Date
*   iv_struc_name =             " bapiret2-parameter  Parameter Name
*   iv_field_name =             " bapiret2-field  Field in Parameter
*   iv_row =                    " sy-tabix      Current Line Index
  IMPORTING
    ev_int_cpunit =             " piqcpunit     Unit of Measurement for Credits
    ev_conv_credits =           " piqcp         Credit
    ev_error_flag =             " piqflag       Flag error
  CHANGING
    cv_ext_cpunit =             " piqcpunit
    ct_return =                 " bapiret2_t    Return Table
    .  "  HRIQ_TRANSCRIPT_CREDITS_CONV

ABAP code example for Function Module HRIQ_TRANSCRIPT_CREDITS_CONV





The ABAP code below is a full code listing to execute function module HRIQ_TRANSCRIPT_CREDITS_CONV 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_int_cpunit  TYPE PIQCPUNIT ,
ld_ev_conv_credits  TYPE PIQCP ,
ld_ev_error_flag  TYPE PIQFLAG .

DATA(ld_cv_ext_cpunit) = 'Check type of data required'.
DATA(ld_ct_return) = 'Check type of data required'.

DATA(ld_iv_eo_objid) = Check type of data required
DATA(ld_iv_ext_credits) = 'Check type of data required'.
DATA(ld_iv_view_date) = '20210129'.

DATA(ld_iv_struc_name) = some text here

DATA(ld_iv_field_name) = some text here
DATA(ld_iv_row) = '123 '. . CALL FUNCTION 'HRIQ_TRANSCRIPT_CREDITS_CONV' EXPORTING iv_eo_objid = ld_iv_eo_objid iv_ext_credits = ld_iv_ext_credits * iv_view_date = ld_iv_view_date * iv_struc_name = ld_iv_struc_name * iv_field_name = ld_iv_field_name * iv_row = ld_iv_row IMPORTING ev_int_cpunit = ld_ev_int_cpunit ev_conv_credits = ld_ev_conv_credits ev_error_flag = ld_ev_error_flag CHANGING cv_ext_cpunit = ld_cv_ext_cpunit ct_return = ld_ct_return . " HRIQ_TRANSCRIPT_CREDITS_CONV
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_cv_ext_cpunit  TYPE PIQCPUNIT ,
ld_ev_int_cpunit  TYPE PIQCPUNIT ,
ld_iv_eo_objid  TYPE HROBJECT-OBJID ,
ld_ct_return  TYPE BAPIRET2_T ,
ld_ev_conv_credits  TYPE PIQCP ,
ld_iv_ext_credits  TYPE PIQCP ,
ld_ev_error_flag  TYPE PIQFLAG ,
ld_iv_view_date  TYPE SY-DATUM ,
ld_iv_struc_name  TYPE BAPIRET2-PARAMETER ,
ld_iv_field_name  TYPE BAPIRET2-FIELD ,
ld_iv_row  TYPE SY-TABIX .

ld_cv_ext_cpunit = '123 '.

ld_iv_eo_objid = Check type of data required
ld_ct_return = '123 '.
ld_iv_ext_credits = '123 '.
ld_iv_view_date = '20210129'.

ld_iv_struc_name = some text here

ld_iv_field_name = some text here
ld_iv_row = '123 '.

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