SAP BAPI_HCSRVCAT_ADDITEM Function Module for IS-H BAPI HCSrvCat.AddItem - Create Service Master Data
BAPI_HCSRVCAT_ADDITEM is a standard bapi hcsrvcat additem SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-H BAPI HCSrvCat.AddItem - Create Service Master Data processing and below is the pattern details for this FM, 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 bapi hcsrvcat additem FM, simply by entering the name BAPI_HCSRVCAT_ADDITEM into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1300
Program Name: SAPL1300
Main Program: SAPL1300
Appliation area: N
Release date: 12-Dec-2012
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_HCSRVCAT_ADDITEM 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 'BAPI_HCSRVCAT_ADDITEM'"IS-H BAPI HCSrvCat.AddItem - Create Service Master Data.
EXPORTING
CLIENT = "Client
INSTITUTION = "Institution
SRVCATID = "Catalog
* TESTRUN = ' ' "Test Mode (No Changes in Database)
IMPORTING
WORST_RETURNED_MSGTY = "Most Severe Message Type
TABLES
SRVCAT_SRVDATA = "Services of a Catalog
* SRVCAT_ADDDATCH_QL = "Assignment Service Master Switzerland => Qualitative Grade
* SRVCAT_ADDDATCH_QT = "Assignment Service Master Switzerland => Quantitative Grade
* SRVCAT_ADDDATCH_SP = "Service Master Switzerland => Division Assignment
* SRVCAT_ADDDATCH_N1 = "Service Breakdown Switzerland
* SRVCAT_ADDDATCH_N1T = "Service Breakdown - Texts Switzerland
* SRVCAT_ADDDATCH_W1 = "Service => IV Qualifier Assignment - Switzerland
* SRVCAT_ADDDATCH_MX = "Service Master Switzerland => Maximum Rule Assignment
* SRVCAT_ADDDATAT = "Additional Data Service Master Austria
* SRVCAT_ADDDATFR = "Additional Data Service Master France
* SRVCAT_ADDDATFR_AK = "Assignment Service Master France => Activity + Phase
SRVCAT_TXTDATA = "Texts for Services
* SRVCAT_ADDDATFR_AS = "Assignment Service Master France => Excl. Serv. + Code
* SRVCAT_ADDDATFR_GH = "Additional Data for Service Master France (GHS)
* SRVCAT_ADDDATFR_LA = "Assignment Service Master France => Service Exclusion
* SRVCAT_ADDDATFR_MC = "Assignment Service Master France => Modification Codes
* SRVCAT_ADDDAT_IT = "Additional Data for Service Master Italy
* SRVCAT_ADDDATCN = "Insurance Coverage China
* SRVCAT_ADDPEPPA = "Additional Characteristics of PEPP Service
* SRVCAT_ADDPEPP = "Remuneration Levels for PEPP Service
RETURN = "Return Messages
* DOCINFO = "IS-H Mgmt Structure for Collective Representation of Docs
* SRVCAT_PLNDATA = "Planned Values for Services
* DOCCONTENT = "IS-H Content of Collective Representation for Documents
* SRVCAT_ADDDATA = "Additional Data on Services
SRVCAT_COLDATA = "Columns for Services
* SRVCAT_ADDDATCH = "Additional Data Service Master Switzerland / Austria
* SRVCAT_ADDDATCH_AG = "Service Master Switzerland => Age Assignment
* SRVCAT_ADDDATCH_KU = "Service Master Switzerland => Excluding Service Assignment
* SRVCAT_ADDDATCH_KO = "Service Master Switzerland => Comb. Service Assignment
IMPORTING Parameters details for BAPI_HCSRVCAT_ADDITEM
CLIENT - Client
Data type: BAPINALL-CLIENTOptional: No
Call by Reference: No ( called with pass by value option)
INSTITUTION - Institution
Data type: BAPI1300SRVDAT-INSTITUTIONOptional: No
Call by Reference: No ( called with pass by value option)
SRVCATID - Catalog
Data type: BAPI1300SRVDAT-SRVCATIDOptional: No
Call by Reference: No ( called with pass by value option)
TESTRUN - Test Mode (No Changes in Database)
Data type: BAPINALL-TESTRUNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_HCSRVCAT_ADDITEM
WORST_RETURNED_MSGTY - Most Severe Message Type
Data type: BAPINALL-WORSTRETMSGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_HCSRVCAT_ADDITEM
SRVCAT_SRVDATA - Services of a Catalog
Data type: BAPI1300SRVDATOptional: No
Call by Reference: No ( called with pass by value option)
SRVCAT_ADDDATCH_QL - Assignment Service Master Switzerland => Qualitative Grade
Data type: BAPI1300ADDCH_QLOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_QT - Assignment Service Master Switzerland => Quantitative Grade
Data type: BAPI1300ADDCH_QTOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_SP - Service Master Switzerland => Division Assignment
Data type: BAPI1300ADDCH_SPOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_N1 - Service Breakdown Switzerland
Data type: BAPI1300ADDCH_N1Optional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_N1T - Service Breakdown - Texts Switzerland
Data type: BAPI1300ADDCH_N1TOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_W1 - Service => IV Qualifier Assignment - Switzerland
Data type: BAPI1300ADDCH_W1Optional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_MX - Service Master Switzerland => Maximum Rule Assignment
Data type: BAPI1300ADDCH_MXOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATAT - Additional Data Service Master Austria
Data type: BAPI1300ADDATOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATFR - Additional Data Service Master France
Data type: /ISHFR/BAPI1300ADDFROptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATFR_AK - Assignment Service Master France => Activity + Phase
Data type: /ISHFR/BAPI1300ADDFR_AKOptional: Yes
Call by Reference: Yes
SRVCAT_TXTDATA - Texts for Services
Data type: BAPI1300TXTDATOptional: No
Call by Reference: No ( called with pass by value option)
SRVCAT_ADDDATFR_AS - Assignment Service Master France => Excl. Serv. + Code
Data type: /ISHFR/BAPI1300ADDFR_ASOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATFR_GH - Additional Data for Service Master France (GHS)
Data type: /ISHFR/BAPI1300ADDFR_GHOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATFR_LA - Assignment Service Master France => Service Exclusion
Data type: /ISHFR/BAPI1300ADDFR_LAOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATFR_MC - Assignment Service Master France => Modification Codes
Data type: /ISHFR/BAPI1300ADDFR_MCOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDAT_IT - Additional Data for Service Master Italy
Data type: BAPI1300ADDDAT_ITOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCN - Insurance Coverage China
Data type: BAPI1300ADDCNOptional: Yes
Call by Reference: Yes
SRVCAT_ADDPEPPA - Additional Characteristics of PEPP Service
Data type: BAPI1300ADDPEPPAOptional: Yes
Call by Reference: Yes
SRVCAT_ADDPEPP - Remuneration Levels for PEPP Service
Data type: BAPI1300ADDPEPPOptional: Yes
Call by Reference: Yes
RETURN - Return Messages
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
DOCINFO - IS-H Mgmt Structure for Collective Representation of Docs
Data type: BAPIDOCCOLLINFOOptional: Yes
Call by Reference: Yes
SRVCAT_PLNDATA - Planned Values for Services
Data type: BAPI1300PLNDATOptional: Yes
Call by Reference: No ( called with pass by value option)
DOCCONTENT - IS-H Content of Collective Representation for Documents
Data type: BAPIDOCCOLLCONTENTOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATA - Additional Data on Services
Data type: BAPI1300ADDDATOptional: Yes
Call by Reference: No ( called with pass by value option)
SRVCAT_COLDATA - Columns for Services
Data type: BAPI1300COLDATOptional: No
Call by Reference: No ( called with pass by value option)
SRVCAT_ADDDATCH - Additional Data Service Master Switzerland / Austria
Data type: BAPI1300ADDCHOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_AG - Service Master Switzerland => Age Assignment
Data type: BAPI1300ADDCH_AGOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_KU - Service Master Switzerland => Excluding Service Assignment
Data type: BAPI1300ADDCH_KUOptional: Yes
Call by Reference: Yes
SRVCAT_ADDDATCH_KO - Service Master Switzerland => Comb. Service Assignment
Data type: BAPI1300ADDCH_KOOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_HCSRVCAT_ADDITEM 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_client | TYPE BAPINALL-CLIENT, " | |||
| lt_srvcat_srvdata | TYPE STANDARD TABLE OF BAPI1300SRVDAT, " | |||
| lv_worst_returned_msgty | TYPE BAPINALL-WORSTRETMSG, " | |||
| lt_srvcat_adddatch_ql | TYPE STANDARD TABLE OF BAPI1300ADDCH_QL, " | |||
| lt_srvcat_adddatch_qt | TYPE STANDARD TABLE OF BAPI1300ADDCH_QT, " | |||
| lt_srvcat_adddatch_sp | TYPE STANDARD TABLE OF BAPI1300ADDCH_SP, " | |||
| lt_srvcat_adddatch_n1 | TYPE STANDARD TABLE OF BAPI1300ADDCH_N1, " | |||
| lt_srvcat_adddatch_n1t | TYPE STANDARD TABLE OF BAPI1300ADDCH_N1T, " | |||
| lt_srvcat_adddatch_w1 | TYPE STANDARD TABLE OF BAPI1300ADDCH_W1, " | |||
| lt_srvcat_adddatch_mx | TYPE STANDARD TABLE OF BAPI1300ADDCH_MX, " | |||
| lt_srvcat_adddatat | TYPE STANDARD TABLE OF BAPI1300ADDAT, " | |||
| lt_srvcat_adddatfr | TYPE STANDARD TABLE OF /ISHFR/BAPI1300ADDFR, " | |||
| lt_srvcat_adddatfr_ak | TYPE STANDARD TABLE OF /ISHFR/BAPI1300ADDFR_AK, " | |||
| lv_institution | TYPE BAPI1300SRVDAT-INSTITUTION, " | |||
| lt_srvcat_txtdata | TYPE STANDARD TABLE OF BAPI1300TXTDAT, " | |||
| lt_srvcat_adddatfr_as | TYPE STANDARD TABLE OF /ISHFR/BAPI1300ADDFR_AS, " | |||
| lt_srvcat_adddatfr_gh | TYPE STANDARD TABLE OF /ISHFR/BAPI1300ADDFR_GH, " | |||
| lt_srvcat_adddatfr_la | TYPE STANDARD TABLE OF /ISHFR/BAPI1300ADDFR_LA, " | |||
| lt_srvcat_adddatfr_mc | TYPE STANDARD TABLE OF /ISHFR/BAPI1300ADDFR_MC, " | |||
| lt_srvcat_adddat_it | TYPE STANDARD TABLE OF BAPI1300ADDDAT_IT, " | |||
| lt_srvcat_adddatcn | TYPE STANDARD TABLE OF BAPI1300ADDCN, " | |||
| lt_srvcat_addpeppa | TYPE STANDARD TABLE OF BAPI1300ADDPEPPA, " | |||
| lt_srvcat_addpepp | TYPE STANDARD TABLE OF BAPI1300ADDPEPP, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_docinfo | TYPE STANDARD TABLE OF BAPIDOCCOLLINFO, " | |||
| lv_srvcatid | TYPE BAPI1300SRVDAT-SRVCATID, " | |||
| lt_srvcat_plndata | TYPE STANDARD TABLE OF BAPI1300PLNDAT, " | |||
| lt_doccontent | TYPE STANDARD TABLE OF BAPIDOCCOLLCONTENT, " | |||
| lv_testrun | TYPE BAPINALL-TESTRUN, " SPACE | |||
| lt_srvcat_adddata | TYPE STANDARD TABLE OF BAPI1300ADDDAT, " | |||
| lt_srvcat_coldata | TYPE STANDARD TABLE OF BAPI1300COLDAT, " | |||
| lt_srvcat_adddatch | TYPE STANDARD TABLE OF BAPI1300ADDCH, " | |||
| lt_srvcat_adddatch_ag | TYPE STANDARD TABLE OF BAPI1300ADDCH_AG, " | |||
| lt_srvcat_adddatch_ku | TYPE STANDARD TABLE OF BAPI1300ADDCH_KU, " | |||
| lt_srvcat_adddatch_ko | TYPE STANDARD TABLE OF BAPI1300ADDCH_KO. " |
|   CALL FUNCTION 'BAPI_HCSRVCAT_ADDITEM' "IS-H BAPI HCSrvCat.AddItem - Create Service Master Data |
| EXPORTING | ||
| CLIENT | = lv_client | |
| INSTITUTION | = lv_institution | |
| SRVCATID | = lv_srvcatid | |
| TESTRUN | = lv_testrun | |
| IMPORTING | ||
| WORST_RETURNED_MSGTY | = lv_worst_returned_msgty | |
| TABLES | ||
| SRVCAT_SRVDATA | = lt_srvcat_srvdata | |
| SRVCAT_ADDDATCH_QL | = lt_srvcat_adddatch_ql | |
| SRVCAT_ADDDATCH_QT | = lt_srvcat_adddatch_qt | |
| SRVCAT_ADDDATCH_SP | = lt_srvcat_adddatch_sp | |
| SRVCAT_ADDDATCH_N1 | = lt_srvcat_adddatch_n1 | |
| SRVCAT_ADDDATCH_N1T | = lt_srvcat_adddatch_n1t | |
| SRVCAT_ADDDATCH_W1 | = lt_srvcat_adddatch_w1 | |
| SRVCAT_ADDDATCH_MX | = lt_srvcat_adddatch_mx | |
| SRVCAT_ADDDATAT | = lt_srvcat_adddatat | |
| SRVCAT_ADDDATFR | = lt_srvcat_adddatfr | |
| SRVCAT_ADDDATFR_AK | = lt_srvcat_adddatfr_ak | |
| SRVCAT_TXTDATA | = lt_srvcat_txtdata | |
| SRVCAT_ADDDATFR_AS | = lt_srvcat_adddatfr_as | |
| SRVCAT_ADDDATFR_GH | = lt_srvcat_adddatfr_gh | |
| SRVCAT_ADDDATFR_LA | = lt_srvcat_adddatfr_la | |
| SRVCAT_ADDDATFR_MC | = lt_srvcat_adddatfr_mc | |
| SRVCAT_ADDDAT_IT | = lt_srvcat_adddat_it | |
| SRVCAT_ADDDATCN | = lt_srvcat_adddatcn | |
| SRVCAT_ADDPEPPA | = lt_srvcat_addpeppa | |
| SRVCAT_ADDPEPP | = lt_srvcat_addpepp | |
| RETURN | = lt_return | |
| DOCINFO | = lt_docinfo | |
| SRVCAT_PLNDATA | = lt_srvcat_plndata | |
| DOCCONTENT | = lt_doccontent | |
| SRVCAT_ADDDATA | = lt_srvcat_adddata | |
| SRVCAT_COLDATA | = lt_srvcat_coldata | |
| SRVCAT_ADDDATCH | = lt_srvcat_adddatch | |
| SRVCAT_ADDDATCH_AG | = lt_srvcat_adddatch_ag | |
| SRVCAT_ADDDATCH_KU | = lt_srvcat_adddatch_ku | |
| SRVCAT_ADDDATCH_KO | = lt_srvcat_adddatch_ko | |
| . " BAPI_HCSRVCAT_ADDITEM | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_HCSRVCAT_ADDITEM
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 CLIENT FROM BAPINALL INTO @DATA(ld_client). | ||||
| "SELECT single WORSTRETMSG FROM BAPINALL INTO @DATA(ld_worst_returned_msgty). | ||||
| "SELECT single INSTITUTION FROM BAPI1300SRVDAT INTO @DATA(ld_institution). | ||||
| "SELECT single SRVCATID FROM BAPI1300SRVDAT INTO @DATA(ld_srvcatid). | ||||
| "SELECT single TESTRUN FROM BAPINALL INTO @DATA(ld_testrun). | ||||
| DATA(ld_testrun) | = ' '. | |||
Search for further information about these or an SAP related objects