SAP K_KKR_CO_PRODUCT_MANUFACT_TREE Function Module for
K_KKR_CO_PRODUCT_MANUFACT_TREE is a standard k kkr co product manufact tree 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 k kkr co product manufact tree FM, simply by entering the name K_KKR_CO_PRODUCT_MANUFACT_TREE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKRS
Program Name: SAPLKKRS
Main Program: SAPLKKRS
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function K_KKR_CO_PRODUCT_MANUFACT_TREE 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 'K_KKR_CO_PRODUCT_MANUFACT_TREE'".
EXPORTING
I_AUFNR = "Order Number
* I_OBJW = ' ' "'X': Object Currency
* I_CHOICE_J = 'X' "
* I_CHOICE_K = 'X' "'X': Cost Element Selection
* I_CHOICE_P = 'X' "
* I_KST = ' ' "Cost Element Group for Report
* I_RGJNR = ' ' "Report
* I_VALUTYP = '0' "Valuation View
* I_TEXT = 'X' "
* I_WINDOW = 'X' "
* I_BEGROW = 5 "Start of Line
* I_BEGCOL = 10 "
* I_ENDROW = 25 "End of Line
* I_ENDCOL = 70 "
* I_STATUS = '0' "
* I_ANW = '3' "Application
TABLES
* GLOBALS = "
EXCEPTIONS
OBJECT_NOT_FOUND = 1
IMPORTING Parameters details for K_KKR_CO_PRODUCT_MANUFACT_TREE
I_AUFNR - Order Number
Data type: AUFK-AUFNROptional: No
Call by Reference: No ( called with pass by value option)
I_OBJW - 'X': Object Currency
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHOICE_J -
Data type: TKKB1-OBJDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHOICE_K - 'X': Cost Element Selection
Data type: TKKB1-OBJDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHOICE_P -
Data type: TKKB1-OBJDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KST - Cost Element Group for Report
Data type: TKKB2-KSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RGJNR - Report
Data type: TKKB1-BGRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VALUTYP - Valuation View
Data type: VALUTYPDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TEXT -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WINDOW -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BEGROW - Start of Line
Data type: IDefault: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BEGCOL -
Data type: IDefault: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ENDROW - End of Line
Data type: IDefault: 25
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ENDCOL -
Data type: IDefault: 70
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STATUS -
Data type:Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ANW - Application
Data type: TKKB1-ANWDefault: '3'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_KKR_CO_PRODUCT_MANUFACT_TREE
GLOBALS -
Data type: KKB2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_KKR_CO_PRODUCT_MANUFACT_TREE 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: | ||||
lt_globals | TYPE STANDARD TABLE OF KKB2, " | |||
lv_i_aufnr | TYPE AUFK-AUFNR, " | |||
lv_object_not_found | TYPE AUFK, " | |||
lv_i_objw | TYPE AUFK, " ' ' | |||
lv_i_choice_j | TYPE TKKB1-OBJ, " 'X' | |||
lv_i_choice_k | TYPE TKKB1-OBJ, " 'X' | |||
lv_i_choice_p | TYPE TKKB1-OBJ, " 'X' | |||
lv_i_kst | TYPE TKKB2-KST, " SPACE | |||
lv_i_rgjnr | TYPE TKKB1-BGR, " SPACE | |||
lv_i_valutyp | TYPE VALUTYP, " '0' | |||
lv_i_text | TYPE VALUTYP, " 'X' | |||
lv_i_window | TYPE VALUTYP, " 'X' | |||
lv_i_begrow | TYPE I, " 5 | |||
lv_i_begcol | TYPE I, " 10 | |||
lv_i_endrow | TYPE I, " 25 | |||
lv_i_endcol | TYPE I, " 70 | |||
lv_i_status | TYPE I, " '0' | |||
lv_i_anw | TYPE TKKB1-ANW. " '3' |
  CALL FUNCTION 'K_KKR_CO_PRODUCT_MANUFACT_TREE' " |
EXPORTING | ||
I_AUFNR | = lv_i_aufnr | |
I_OBJW | = lv_i_objw | |
I_CHOICE_J | = lv_i_choice_j | |
I_CHOICE_K | = lv_i_choice_k | |
I_CHOICE_P | = lv_i_choice_p | |
I_KST | = lv_i_kst | |
I_RGJNR | = lv_i_rgjnr | |
I_VALUTYP | = lv_i_valutyp | |
I_TEXT | = lv_i_text | |
I_WINDOW | = lv_i_window | |
I_BEGROW | = lv_i_begrow | |
I_BEGCOL | = lv_i_begcol | |
I_ENDROW | = lv_i_endrow | |
I_ENDCOL | = lv_i_endcol | |
I_STATUS | = lv_i_status | |
I_ANW | = lv_i_anw | |
TABLES | ||
GLOBALS | = lt_globals | |
EXCEPTIONS | ||
OBJECT_NOT_FOUND = 1 | ||
. " K_KKR_CO_PRODUCT_MANUFACT_TREE |
ABAP code using 7.40 inline data declarations to call FM K_KKR_CO_PRODUCT_MANUFACT_TREE
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 AUFNR FROM AUFK INTO @DATA(ld_i_aufnr). | ||||
DATA(ld_i_objw) | = ' '. | |||
"SELECT single OBJ FROM TKKB1 INTO @DATA(ld_i_choice_j). | ||||
DATA(ld_i_choice_j) | = 'X'. | |||
"SELECT single OBJ FROM TKKB1 INTO @DATA(ld_i_choice_k). | ||||
DATA(ld_i_choice_k) | = 'X'. | |||
"SELECT single OBJ FROM TKKB1 INTO @DATA(ld_i_choice_p). | ||||
DATA(ld_i_choice_p) | = 'X'. | |||
"SELECT single KST FROM TKKB2 INTO @DATA(ld_i_kst). | ||||
DATA(ld_i_kst) | = ' '. | |||
"SELECT single BGR FROM TKKB1 INTO @DATA(ld_i_rgjnr). | ||||
DATA(ld_i_rgjnr) | = ' '. | |||
DATA(ld_i_valutyp) | = '0'. | |||
DATA(ld_i_text) | = 'X'. | |||
DATA(ld_i_window) | = 'X'. | |||
DATA(ld_i_begrow) | = 5. | |||
DATA(ld_i_begcol) | = 10. | |||
DATA(ld_i_endrow) | = 25. | |||
DATA(ld_i_endcol) | = 70. | |||
DATA(ld_i_status) | = '0'. | |||
"SELECT single ANW FROM TKKB1 INTO @DATA(ld_i_anw). | ||||
DATA(ld_i_anw) | = '3'. | |||
Search for further information about these or an SAP related objects