SAP Function Modules

ISPAM_SERVICE_ACCNT_CREATE SAP Function module - IS-M/AM: Create Settlement Interface Tables for Commission Assignment







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

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


Pattern for FM ISPAM_SERVICE_ACCNT_CREATE - ISPAM SERVICE ACCNT CREATE





CALL FUNCTION 'ISPAM_SERVICE_ACCNT_CREATE' "IS-M/AM: Create Settlement Interface Tables for Commission Assignment
  EXPORTING
*   ps_komfk_vor =              " jhf1_komfk_vor_str
*   pv_msgid = 'JH'             " jhtap-msgid
    pv_with_posting =           " xfeld         Checkbox Field
    pv_with_enqueue =           " xfeld         Checkbox Field
    pv_doc_add_every_block = 'X'  " xfeld       Checkbox Field
    ps_tj180 =                  " tj180         Initial Values of Transaction in IS-M
  IMPORTING
    pt_xjhtfk =                 " jhf1_xjhtfk_tab
    pt_xjhtfp =                 " jhf1_xjhtfp_tab
    pt_xjhtfpa =                " jhf1_xjhtfpa_tab
    pt_xkomv =                  " jhf1_xkomv_tab
    pt_xthead =                 " jhf1_xthead_tab
    pt_yjhtfk =                 " jhf1_jhtfk_tab
    pt_yjhtfp =                 " jhf1_jhtfp_tab
    pt_yjhtfpa =                " jhf1_jhtfpa_tab
  CHANGING
    ps_jhtak =                  " jhfs_jhtak_str
    pt_yjhvagvx =               " jhf1_jhvagvx_tab
*   pt_enqobj =                 " jhf1_enq_obj_tab
  EXCEPTIONS
    NO_DATA = 1                 "
    .  "  ISPAM_SERVICE_ACCNT_CREATE

ABAP code example for Function Module ISPAM_SERVICE_ACCNT_CREATE





The ABAP code below is a full code listing to execute function module ISPAM_SERVICE_ACCNT_CREATE 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_pt_xjhtfk  TYPE JHF1_XJHTFK_TAB ,
ld_pt_xjhtfp  TYPE JHF1_XJHTFP_TAB ,
ld_pt_xjhtfpa  TYPE JHF1_XJHTFPA_TAB ,
ld_pt_xkomv  TYPE JHF1_XKOMV_TAB ,
ld_pt_xthead  TYPE JHF1_XTHEAD_TAB ,
ld_pt_yjhtfk  TYPE JHF1_JHTFK_TAB ,
ld_pt_yjhtfp  TYPE JHF1_JHTFP_TAB ,
ld_pt_yjhtfpa  TYPE JHF1_JHTFPA_TAB .

DATA(ld_ps_jhtak) = 'Check type of data required'.
DATA(ld_pt_yjhvagvx) = 'Check type of data required'.
DATA(ld_pt_enqobj) = 'Check type of data required'.
DATA(ld_ps_komfk_vor) = 'Check type of data required'.

SELECT single MSGID
FROM JHTAP
INTO @DATA(ld_pv_msgid).

DATA(ld_pv_with_posting) = 'Check type of data required'.
DATA(ld_pv_with_enqueue) = 'Check type of data required'.
DATA(ld_pv_doc_add_every_block) = 'Check type of data required'.
DATA(ld_ps_tj180) = 'Check type of data required'. . CALL FUNCTION 'ISPAM_SERVICE_ACCNT_CREATE' EXPORTING * ps_komfk_vor = ld_ps_komfk_vor * pv_msgid = ld_pv_msgid pv_with_posting = ld_pv_with_posting pv_with_enqueue = ld_pv_with_enqueue pv_doc_add_every_block = ld_pv_doc_add_every_block ps_tj180 = ld_ps_tj180 IMPORTING pt_xjhtfk = ld_pt_xjhtfk pt_xjhtfp = ld_pt_xjhtfp pt_xjhtfpa = ld_pt_xjhtfpa pt_xkomv = ld_pt_xkomv pt_xthead = ld_pt_xthead pt_yjhtfk = ld_pt_yjhtfk pt_yjhtfp = ld_pt_yjhtfp pt_yjhtfpa = ld_pt_yjhtfpa CHANGING ps_jhtak = ld_ps_jhtak pt_yjhvagvx = ld_pt_yjhvagvx * pt_enqobj = ld_pt_enqobj EXCEPTIONS NO_DATA = 1 . " ISPAM_SERVICE_ACCNT_CREATE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_ps_jhtak  TYPE JHFS_JHTAK_STR ,
ld_pt_xjhtfk  TYPE JHF1_XJHTFK_TAB ,
ld_ps_komfk_vor  TYPE JHF1_KOMFK_VOR_STR ,
ld_pt_yjhvagvx  TYPE JHF1_JHVAGVX_TAB ,
ld_pt_xjhtfp  TYPE JHF1_XJHTFP_TAB ,
ld_pv_msgid  TYPE JHTAP-MSGID ,
ld_pt_enqobj  TYPE JHF1_ENQ_OBJ_TAB ,
ld_pt_xjhtfpa  TYPE JHF1_XJHTFPA_TAB ,
ld_pv_with_posting  TYPE XFELD ,
ld_pt_xkomv  TYPE JHF1_XKOMV_TAB ,
ld_pv_with_enqueue  TYPE XFELD ,
ld_pt_xthead  TYPE JHF1_XTHEAD_TAB ,
ld_pv_doc_add_every_block  TYPE XFELD ,
ld_pt_yjhtfk  TYPE JHF1_JHTFK_TAB ,
ld_ps_tj180  TYPE TJ180 ,
ld_pt_yjhtfp  TYPE JHF1_JHTFP_TAB ,
ld_pt_yjhtfpa  TYPE JHF1_JHTFPA_TAB .

ld_ps_jhtak = 'Check type of data required'.
ld_ps_komfk_vor = 'Check type of data required'.
ld_pt_yjhvagvx = 'Check type of data required'.

SELECT single MSGID
FROM JHTAP
INTO ld_pv_msgid.

ld_pt_enqobj = 'Check type of data required'.
ld_pv_with_posting = 'Check type of data required'.
ld_pv_with_enqueue = 'Check type of data required'.
ld_pv_doc_add_every_block = 'Check type of data required'.
ld_ps_tj180 = 'Check type of data required'.

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