SAP CUKD_API_ALLOCATIONS_MAINTAIN Function Module for









CUKD_API_ALLOCATIONS_MAINTAIN is a standard cukd api allocations maintain 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 cukd api allocations maintain FM, simply by entering the name CUKD_API_ALLOCATIONS_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

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



Function CUKD_API_ALLOCATIONS_MAINTAIN 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 'CUKD_API_ALLOCATIONS_MAINTAIN'"
EXPORTING
* SEARCH_DATE = SY-DATUM "
* IV_NEXT_ALLOCATION_NUMBER = "
* IV_USE_XKNNAM_AS_KNNAM = ' ' "
* ECM_NUMBER = ' ' "Change number
ALLOCATION_NUMBER = "ID (KNOBJ of newly created allocation object)
TABLE = "Type of allocation object (such as STPO)
* DEPNET_KNSCE = ' ' "
* DEPNET_KNART2 = ' ' "
* NO_COMMIT = ' ' "Prevent commit call internally
* IDOC_PROCESSING = ' ' "IDoc Processing
* IV_CONSIDER_EMPTY_BASIC_DATA = ' ' "

IMPORTING
ALLOCATION_NUMBER = "ID (KNOBJ of newly created allocation object)
WARNING = "Warning messages in log

TABLES
* ALLOCATIONS = "Allocation data for dependencies
* BASIC_DATA = "Basic data and allocation data of several local dependencies
* NAMES = "Descriptions of several local dependencies
* DOCUS = "Documentation of several local dependencies
* SOURCES = "Master data of several local dependencies

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for CUKD_API_ALLOCATIONS_MAINTAIN

SEARCH_DATE -

Data type: CUOB-DATUV
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NEXT_ALLOCATION_NUMBER -

Data type: KNOBJ
Optional: Yes
Call by Reference: Yes

IV_USE_XKNNAM_AS_KNNAM -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

ECM_NUMBER - Change number

Data type: CUOB-AENNR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALLOCATION_NUMBER - ID (KNOBJ of newly created allocation object)

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

TABLE - Type of allocation object (such as STPO)

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

DEPNET_KNSCE -

Data type: CUKB-KNSCE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEPNET_KNART2 -

Data type: CUKB-KNART2
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_COMMIT - Prevent commit call internally

Data type: RCURS-CHECKED
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IDOC_PROCESSING - IDoc Processing

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

IV_CONSIDER_EMPTY_BASIC_DATA -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CUKD_API_ALLOCATIONS_MAINTAIN

ALLOCATION_NUMBER - ID (KNOBJ of newly created allocation object)

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

WARNING - Warning messages in log

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

TABLES Parameters details for CUKD_API_ALLOCATIONS_MAINTAIN

ALLOCATIONS - Allocation data for dependencies

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

BASIC_DATA - Basic data and allocation data of several local dependencies

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

NAMES - Descriptions of several local dependencies

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

DOCUS - Documentation of several local dependencies

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

SOURCES - Master data of several local dependencies

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

EXCEPTIONS details

ERROR - Processing terminated (see log)

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

Copy and paste ABAP code example for CUKD_API_ALLOCATIONS_MAINTAIN 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_error  TYPE STRING, "   
lt_allocations  TYPE STANDARD TABLE OF RCUOB1, "   
lv_search_date  TYPE CUOB-DATUV, "   SY-DATUM
lv_allocation_number  TYPE CUOB-KNOBJ, "   
lv_iv_next_allocation_number  TYPE KNOBJ, "   
lv_iv_use_xknnam_as_knnam  TYPE XFELD, "   SPACE
lv_warning  TYPE RCURS-CHECKED, "   
lt_basic_data  TYPE STANDARD TABLE OF RCUKB1, "   
lv_ecm_number  TYPE CUOB-AENNR, "   ' '
lt_names  TYPE STANDARD TABLE OF RCUKBT1, "   
lv_allocation_number  TYPE CUOB-KNOBJ, "   
lt_docus  TYPE STANDARD TABLE OF RCUKDOC1, "   
lv_table  TYPE CUOB-KNTAB, "   
lt_sources  TYPE STANDARD TABLE OF RCUKN1, "   
lv_depnet_knsce  TYPE CUKB-KNSCE, "   ' '
lv_depnet_knart2  TYPE CUKB-KNART2, "   ' '
lv_no_commit  TYPE RCURS-CHECKED, "   ' '
lv_idoc_processing  TYPE C, "   SPACE
lv_iv_consider_empty_basic_data  TYPE XFELD. "   SPACE

  CALL FUNCTION 'CUKD_API_ALLOCATIONS_MAINTAIN'  "
    EXPORTING
         SEARCH_DATE = lv_search_date
         IV_NEXT_ALLOCATION_NUMBER = lv_iv_next_allocation_number
         IV_USE_XKNNAM_AS_KNNAM = lv_iv_use_xknnam_as_knnam
         ECM_NUMBER = lv_ecm_number
         ALLOCATION_NUMBER = lv_allocation_number
         TABLE = lv_table
         DEPNET_KNSCE = lv_depnet_knsce
         DEPNET_KNART2 = lv_depnet_knart2
         NO_COMMIT = lv_no_commit
         IDOC_PROCESSING = lv_idoc_processing
         IV_CONSIDER_EMPTY_BASIC_DATA = lv_iv_consider_empty_basic_data
    IMPORTING
         ALLOCATION_NUMBER = lv_allocation_number
         WARNING = lv_warning
    TABLES
         ALLOCATIONS = lt_allocations
         BASIC_DATA = lt_basic_data
         NAMES = lt_names
         DOCUS = lt_docus
         SOURCES = lt_sources
    EXCEPTIONS
        ERROR = 1
. " CUKD_API_ALLOCATIONS_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM CUKD_API_ALLOCATIONS_MAINTAIN

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 DATUV FROM CUOB INTO @DATA(ld_search_date).
DATA(ld_search_date) = SY-DATUM.
 
"SELECT single KNOBJ FROM CUOB INTO @DATA(ld_allocation_number).
 
 
DATA(ld_iv_use_xknnam_as_knnam) = ' '.
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_warning).
 
 
"SELECT single AENNR FROM CUOB INTO @DATA(ld_ecm_number).
DATA(ld_ecm_number) = ' '.
 
 
"SELECT single KNOBJ FROM CUOB INTO @DATA(ld_allocation_number).
 
 
"SELECT single KNTAB FROM CUOB INTO @DATA(ld_table).
 
 
"SELECT single KNSCE FROM CUKB INTO @DATA(ld_depnet_knsce).
DATA(ld_depnet_knsce) = ' '.
 
"SELECT single KNART2 FROM CUKB INTO @DATA(ld_depnet_knart2).
DATA(ld_depnet_knart2) = ' '.
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_no_commit).
DATA(ld_no_commit) = ' '.
 
DATA(ld_idoc_processing) = ' '.
 
DATA(ld_iv_consider_empty_basic_data) = ' '.
 


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!