SAP ISM_ADMGMTCOA_SEARCH Function Module for IS-M/AM: BAPI Select Contract
ISM_ADMGMTCOA_SEARCH is a standard ism admgmtcoa search 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-M/AM: BAPI Select Contract 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 ism admgmtcoa search FM, simply by entering the name ISM_ADMGMTCOA_SEARCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: JEPCOA
Program Name: SAPLJEPCOA
Main Program: SAPLJEPCOA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ISM_ADMGMTCOA_SEARCH 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 'ISM_ADMGMTCOA_SEARCH'"IS-M/AM: BAPI Select Contract.
EXPORTING
SALESORG = "Sales Organization
DISTR_CHAN = "Distribution Channel
DIVISION = "Division
* SERVICE_PERFORMANCE_DATE = "IS-M: Date Services were Created for Settlement Purposes
* PARTNER = "IS-M: Business Partner Key
* PARTNER_EXTERNAL = "Business Partner Number in External System
* PARTN_ROLE = "IS-M: Business Partner Role
* WITH_TEXTS = 'X' "
* MAX_HITS = "Maximum Number of Hits
IMPORTING
HITS = "Number of Hits in Operational Reporting
TABLES
RETURN = "Return Parameter(s)
* SELECTION = "Where Clause for Selection
COA_VIEW = "IS-M/AM: Selection Result for Contract Determination
IMPORTING Parameters details for ISM_ADMGMTCOA_SEARCH
SALESORG - Sales Organization
Data type: BAPIBUSISM012_HEAD-SALESORGOptional: No
Call by Reference: No ( called with pass by value option)
DISTR_CHAN - Distribution Channel
Data type: BAPIBUSISM012_HEAD-DISTR_CHANOptional: No
Call by Reference: No ( called with pass by value option)
DIVISION - Division
Data type: BAPIBUSISM012_HEAD-DIVISIONOptional: No
Call by Reference: No ( called with pass by value option)
SERVICE_PERFORMANCE_DATE - IS-M: Date Services were Created for Settlement Purposes
Data type: BAPIBUSISM008_BDS_TMP_KEY-SERVICE_PERFORMANCE_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER - IS-M: Business Partner Key
Data type: BAPIBUSISM008_PARTNER_SEL-PARTNEROptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_EXTERNAL - Business Partner Number in External System
Data type: BAPIBUSISM008_PARTNER_SEL-PARTNER_EXTERNALOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTN_ROLE - IS-M: Business Partner Role
Data type: BAPIBUSISM008_PARTN_ROLE_SEL-PARTN_ROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
WITH_TEXTS -
Data type: BAPIFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_HITS - Maximum Number of Hits
Data type: ISM_CRMT_PORTAL_MAXHITSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISM_ADMGMTCOA_SEARCH
HITS - Number of Hits in Operational Reporting
Data type: ISM_CRMT_PORTAL_HITSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISM_ADMGMTCOA_SEARCH
RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
SELECTION - Where Clause for Selection
Data type: BAPIF4DOptional: Yes
Call by Reference: No ( called with pass by value option)
COA_VIEW - IS-M/AM: Selection Result for Contract Determination
Data type: RJEP_BUSISM012_VIEWOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_ADMGMTCOA_SEARCH 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_hits | TYPE ISM_CRMT_PORTAL_HITS, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_salesorg | TYPE BAPIBUSISM012_HEAD-SALESORG, " | |||
| lt_selection | TYPE STANDARD TABLE OF BAPIF4D, " | |||
| lv_distr_chan | TYPE BAPIBUSISM012_HEAD-DISTR_CHAN, " | |||
| lt_coa_view | TYPE STANDARD TABLE OF RJEP_BUSISM012_VIEW, " | |||
| lv_division | TYPE BAPIBUSISM012_HEAD-DIVISION, " | |||
| lv_service_performance_date | TYPE BAPIBUSISM008_BDS_TMP_KEY-SERVICE_PERFORMANCE_DATE, " | |||
| lv_partner | TYPE BAPIBUSISM008_PARTNER_SEL-PARTNER, " | |||
| lv_partner_external | TYPE BAPIBUSISM008_PARTNER_SEL-PARTNER_EXTERNAL, " | |||
| lv_partn_role | TYPE BAPIBUSISM008_PARTN_ROLE_SEL-PARTN_ROLE, " | |||
| lv_with_texts | TYPE BAPIFLAG, " 'X' | |||
| lv_max_hits | TYPE ISM_CRMT_PORTAL_MAXHITS. " |
|   CALL FUNCTION 'ISM_ADMGMTCOA_SEARCH' "IS-M/AM: BAPI Select Contract |
| EXPORTING | ||
| SALESORG | = lv_salesorg | |
| DISTR_CHAN | = lv_distr_chan | |
| DIVISION | = lv_division | |
| SERVICE_PERFORMANCE_DATE | = lv_service_performance_date | |
| PARTNER | = lv_partner | |
| PARTNER_EXTERNAL | = lv_partner_external | |
| PARTN_ROLE | = lv_partn_role | |
| WITH_TEXTS | = lv_with_texts | |
| MAX_HITS | = lv_max_hits | |
| IMPORTING | ||
| HITS | = lv_hits | |
| TABLES | ||
| RETURN | = lt_return | |
| SELECTION | = lt_selection | |
| COA_VIEW | = lt_coa_view | |
| . " ISM_ADMGMTCOA_SEARCH | ||
ABAP code using 7.40 inline data declarations to call FM ISM_ADMGMTCOA_SEARCH
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 SALESORG FROM BAPIBUSISM012_HEAD INTO @DATA(ld_salesorg). | ||||
| "SELECT single DISTR_CHAN FROM BAPIBUSISM012_HEAD INTO @DATA(ld_distr_chan). | ||||
| "SELECT single DIVISION FROM BAPIBUSISM012_HEAD INTO @DATA(ld_division). | ||||
| "SELECT single SERVICE_PERFORMANCE_DATE FROM BAPIBUSISM008_BDS_TMP_KEY INTO @DATA(ld_service_performance_date). | ||||
| "SELECT single PARTNER FROM BAPIBUSISM008_PARTNER_SEL INTO @DATA(ld_partner). | ||||
| "SELECT single PARTNER_EXTERNAL FROM BAPIBUSISM008_PARTNER_SEL INTO @DATA(ld_partner_external). | ||||
| "SELECT single PARTN_ROLE FROM BAPIBUSISM008_PARTN_ROLE_SEL INTO @DATA(ld_partn_role). | ||||
| DATA(ld_with_texts) | = 'X'. | |||
Search for further information about these or an SAP related objects