SAP CAT_PS_GET_HIGHEST_NUMBER Function Module for NOTRANSL: CATT-Funktion: Bestimmung der höchsten Vorgangsnummer auf der DB









CAT_PS_GET_HIGHEST_NUMBER is a standard cat ps get highest number SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: CATT-Funktion: Bestimmung der höchsten Vorgangsnummer auf der DB 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 cat ps get highest number FM, simply by entering the name CAT_PS_GET_HIGHEST_NUMBER into the relevant SAP transaction such as SE37 or SE38.

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



Function CAT_PS_GET_HIGHEST_NUMBER 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 'CAT_PS_GET_HIGHEST_NUMBER'"NOTRANSL: CATT-Funktion: Bestimmung der höchsten Vorgangsnummer auf der DB
EXPORTING
* EIGEN_IMP = ' ' "
* FREMD_IMP = ' ' "
* KOSTEN_IMP = ' ' "
* DIENST_IMP = ' ' "
* EIGENELEM_IMP = ' ' "
* FREMDELEM_IMP = ' ' "
* KOSTENELEM_IMP = ' ' "
* DIENSTELEM_IMP = ' ' "
NETZPLAN_IMP = "Order Number

IMPORTING
HIGHEST_EXP = "Operation/Activity Number

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for CAT_PS_GET_HIGHEST_NUMBER

EIGEN_IMP -

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

FREMD_IMP -

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

KOSTEN_IMP -

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

DIENST_IMP -

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

EIGENELEM_IMP -

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

FREMDELEM_IMP -

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

KOSTENELEM_IMP -

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

DIENSTELEM_IMP -

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

NETZPLAN_IMP - Order Number

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

EXPORTING Parameters details for CAT_PS_GET_HIGHEST_NUMBER

HIGHEST_EXP - Operation/Activity Number

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

EXCEPTIONS details

NOT_FOUND -

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

Copy and paste ABAP code example for CAT_PS_GET_HIGHEST_NUMBER 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_eigen_imp  TYPE STRING, "   SPACE
lv_not_found  TYPE STRING, "   
lv_highest_exp  TYPE AFVC-VORNR, "   
lv_fremd_imp  TYPE AFVC, "   SPACE
lv_kosten_imp  TYPE AFVC, "   SPACE
lv_dienst_imp  TYPE AFVC, "   SPACE
lv_eigenelem_imp  TYPE AFVC, "   SPACE
lv_fremdelem_imp  TYPE AFVC, "   SPACE
lv_kostenelem_imp  TYPE AFVC, "   SPACE
lv_dienstelem_imp  TYPE AFVC, "   SPACE
lv_netzplan_imp  TYPE AFKO-AUFNR. "   

  CALL FUNCTION 'CAT_PS_GET_HIGHEST_NUMBER'  "NOTRANSL: CATT-Funktion: Bestimmung der höchsten Vorgangsnummer auf der DB
    EXPORTING
         EIGEN_IMP = lv_eigen_imp
         FREMD_IMP = lv_fremd_imp
         KOSTEN_IMP = lv_kosten_imp
         DIENST_IMP = lv_dienst_imp
         EIGENELEM_IMP = lv_eigenelem_imp
         FREMDELEM_IMP = lv_fremdelem_imp
         KOSTENELEM_IMP = lv_kostenelem_imp
         DIENSTELEM_IMP = lv_dienstelem_imp
         NETZPLAN_IMP = lv_netzplan_imp
    IMPORTING
         HIGHEST_EXP = lv_highest_exp
    EXCEPTIONS
        NOT_FOUND = 1
. " CAT_PS_GET_HIGHEST_NUMBER




ABAP code using 7.40 inline data declarations to call FM CAT_PS_GET_HIGHEST_NUMBER

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.

DATA(ld_eigen_imp) = ' '.
 
 
"SELECT single VORNR FROM AFVC INTO @DATA(ld_highest_exp).
 
DATA(ld_fremd_imp) = ' '.
 
DATA(ld_kosten_imp) = ' '.
 
DATA(ld_dienst_imp) = ' '.
 
DATA(ld_eigenelem_imp) = ' '.
 
DATA(ld_fremdelem_imp) = ' '.
 
DATA(ld_kostenelem_imp) = ' '.
 
DATA(ld_dienstelem_imp) = ' '.
 
"SELECT single AUFNR FROM AFKO INTO @DATA(ld_netzplan_imp).
 


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!