SAP ISPAM_COLL_PROC_ITEM_ADD Function Module for
ISPAM_COLL_PROC_ITEM_ADD is a standard ispam coll proc item add 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 ispam coll proc item add FM, simply by entering the name ISPAM_COLL_PROC_ITEM_ADD into the relevant SAP transaction such as SE37 or SE38.
Function Group: JHFS
Program Name: SAPLJHFS
Main Program: SAPLJHFS
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ISPAM_COLL_PROC_ITEM_ADD 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 'ISPAM_COLL_PROC_ITEM_ADD'".
EXPORTING
IV_SAMMG = "
IV_VBELN = "
* IV_VBELN_DB = "
* IV_BRTWK = 0 "
* IV_WAERK = ' ' "
* IV_KURST = ' ' "
* IV_WAERS = "
IMPORTING
ES_JHTAK = "
EXCEPTIONS
SAMMG_UNKNOWN = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLJHFS_001 IS-M/AM: Billing Collective Processing Number Range
IMPORTING Parameters details for ISPAM_COLL_PROC_ITEM_ADD
IV_SAMMG -
Data type: JHTAK-SAMMGOptional: No
Call by Reference: No ( called with pass by value option)
IV_VBELN -
Data type: JHTFK-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
IV_VBELN_DB -
Data type: RJHFKVB-VBELN_DBOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_BRTWK -
Data type: JHTFK-BRTWKOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_WAERK -
Data type: JHTFK-WAERKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_KURST -
Data type: JHTFK-KURSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_WAERS -
Data type: T001-WAERSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISPAM_COLL_PROC_ITEM_ADD
ES_JHTAK -
Data type: JHFS_JHTAK_STROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SAMMG_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISPAM_COLL_PROC_ITEM_ADD 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_es_jhtak | TYPE JHFS_JHTAK_STR, " | |||
lv_iv_sammg | TYPE JHTAK-SAMMG, " | |||
lv_sammg_unknown | TYPE JHTAK, " | |||
lv_iv_vbeln | TYPE JHTFK-VBELN, " | |||
lv_iv_vbeln_db | TYPE RJHFKVB-VBELN_DB, " | |||
lv_iv_brtwk | TYPE JHTFK-BRTWK, " 0 | |||
lv_iv_waerk | TYPE JHTFK-WAERK, " SPACE | |||
lv_iv_kurst | TYPE JHTFK-KURST, " SPACE | |||
lv_iv_waers | TYPE T001-WAERS. " |
  CALL FUNCTION 'ISPAM_COLL_PROC_ITEM_ADD' " |
EXPORTING | ||
IV_SAMMG | = lv_iv_sammg | |
IV_VBELN | = lv_iv_vbeln | |
IV_VBELN_DB | = lv_iv_vbeln_db | |
IV_BRTWK | = lv_iv_brtwk | |
IV_WAERK | = lv_iv_waerk | |
IV_KURST | = lv_iv_kurst | |
IV_WAERS | = lv_iv_waers | |
IMPORTING | ||
ES_JHTAK | = lv_es_jhtak | |
EXCEPTIONS | ||
SAMMG_UNKNOWN = 1 | ||
. " ISPAM_COLL_PROC_ITEM_ADD |
ABAP code using 7.40 inline data declarations to call FM ISPAM_COLL_PROC_ITEM_ADD
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 SAMMG FROM JHTAK INTO @DATA(ld_iv_sammg). | ||||
"SELECT single VBELN FROM JHTFK INTO @DATA(ld_iv_vbeln). | ||||
"SELECT single VBELN_DB FROM RJHFKVB INTO @DATA(ld_iv_vbeln_db). | ||||
"SELECT single BRTWK FROM JHTFK INTO @DATA(ld_iv_brtwk). | ||||
"SELECT single WAERK FROM JHTFK INTO @DATA(ld_iv_waerk). | ||||
DATA(ld_iv_waerk) | = ' '. | |||
"SELECT single KURST FROM JHTFK INTO @DATA(ld_iv_kurst). | ||||
DATA(ld_iv_kurst) | = ' '. | |||
"SELECT single WAERS FROM T001 INTO @DATA(ld_iv_waers). | ||||
Search for further information about these or an SAP related objects