SAP ISH_CONVERT_SERVICES Function Module for









ISH_CONVERT_SERVICES is a standard ish convert services 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 ish convert services FM, simply by entering the name ISH_CONVERT_SERVICES into the relevant SAP transaction such as SE37 or SE38.

Function Group: N009
Program Name: SAPLN009
Main Program: SAPLN009
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISH_CONVERT_SERVICES 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 'ISH_CONVERT_SERVICES'"
EXPORTING
* ABTAR = ' ' "Force: conversion to this target charge master ...
FKOMK = "Header data pat.accounting communication table ...
* MESSAGES_COLLECT = 'X' "Collect messages (X-yes)
* MESSAGES_SHOW = 'X' "Display collected messages (X-yes)
* SORT_FKOMP = 'X' "Sort tables: X-yes / empty-no
* UMS_ZOTYP = ' ' "Force: conversion acc. to this grouping cat.
* WITH_1N_POPUP = ' ' "With dialog box for 1:n conversion
* ONE_TO_N = ' ' "

IMPORTING
ANZ_MESSAGES = "Number of collected messages
NOT_CONVERTED = "No. of records that cannot be converted in FKOMP ...

TABLES
FKOMP = "Table of services (comm. table billing items) ...
NCTAB = "Table of services which cannot be converted ...

EXCEPTIONS
MISSING_EINRI = 1 NO_ABTAR_FOUND = 2 NO_ZOTYP = 3
.




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_SAPLN009_001 IS-H: Determine Billing Type

IMPORTING Parameters details for ISH_CONVERT_SERVICES

ABTAR - Force: conversion to this target charge master ...

Data type: NTFI-ABTAR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FKOMK - Header data pat.accounting communication table ...

Data type: RNFK1
Optional: No
Call by Reference: No ( called with pass by value option)

MESSAGES_COLLECT - Collect messages (X-yes)

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGES_SHOW - Display collected messages (X-yes)

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SORT_FKOMP - Sort tables: X-yes / empty-no

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UMS_ZOTYP - Force: conversion acc. to this grouping cat.

Data type: NTPZ-ZOTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_1N_POPUP - With dialog box for 1:n conversion

Data type: NPDOK-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ONE_TO_N -

Data type: NTPZ-ZOTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISH_CONVERT_SERVICES

ANZ_MESSAGES - Number of collected messages

Data type: SY-INDEX
Optional: No
Call by Reference: No ( called with pass by value option)

NOT_CONVERTED - No. of records that cannot be converted in FKOMP ...

Data type: SY-TABIX
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISH_CONVERT_SERVICES

FKOMP - Table of services (comm. table billing items) ...

Data type: RNFP1
Optional: No
Call by Reference: No ( called with pass by value option)

NCTAB - Table of services which cannot be converted ...

Data type: RNFP1
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

MISSING_EINRI - Transfer parameter institution missing ...

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ABTAR_FOUND - Target charge master cannot be determined ...

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ZOTYP - CM determ. specified: grouping cat. missing ...

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISH_CONVERT_SERVICES 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_abtar  TYPE NTFI-ABTAR, "   SPACE
lt_fkomp  TYPE STANDARD TABLE OF RNFP1, "   
lv_anz_messages  TYPE SY-INDEX, "   
lv_missing_einri  TYPE SY, "   
lv_fkomk  TYPE RNFK1, "   
lt_nctab  TYPE STANDARD TABLE OF RNFP1, "   
lv_not_converted  TYPE SY-TABIX, "   
lv_no_abtar_found  TYPE SY, "   
lv_no_zotyp  TYPE SY, "   
lv_messages_collect  TYPE NPDOK-XFELD, "   'X'
lv_messages_show  TYPE NPDOK-XFELD, "   'X'
lv_sort_fkomp  TYPE NPDOK-XFELD, "   'X'
lv_ums_zotyp  TYPE NTPZ-ZOTYP, "   SPACE
lv_with_1n_popup  TYPE NPDOK-XFELD, "   SPACE
lv_one_to_n  TYPE NTPZ-ZOTYP. "   SPACE

  CALL FUNCTION 'ISH_CONVERT_SERVICES'  "
    EXPORTING
         ABTAR = lv_abtar
         FKOMK = lv_fkomk
         MESSAGES_COLLECT = lv_messages_collect
         MESSAGES_SHOW = lv_messages_show
         SORT_FKOMP = lv_sort_fkomp
         UMS_ZOTYP = lv_ums_zotyp
         WITH_1N_POPUP = lv_with_1n_popup
         ONE_TO_N = lv_one_to_n
    IMPORTING
         ANZ_MESSAGES = lv_anz_messages
         NOT_CONVERTED = lv_not_converted
    TABLES
         FKOMP = lt_fkomp
         NCTAB = lt_nctab
    EXCEPTIONS
        MISSING_EINRI = 1
        NO_ABTAR_FOUND = 2
        NO_ZOTYP = 3
. " ISH_CONVERT_SERVICES




ABAP code using 7.40 inline data declarations to call FM ISH_CONVERT_SERVICES

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 ABTAR FROM NTFI INTO @DATA(ld_abtar).
DATA(ld_abtar) = ' '.
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_anz_messages).
 
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_not_converted).
 
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_messages_collect).
DATA(ld_messages_collect) = 'X'.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_messages_show).
DATA(ld_messages_show) = 'X'.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_sort_fkomp).
DATA(ld_sort_fkomp) = 'X'.
 
"SELECT single ZOTYP FROM NTPZ INTO @DATA(ld_ums_zotyp).
DATA(ld_ums_zotyp) = ' '.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_with_1n_popup).
DATA(ld_with_1n_popup) = ' '.
 
"SELECT single ZOTYP FROM NTPZ INTO @DATA(ld_one_to_n).
DATA(ld_one_to_n) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!