SAP /ACCGO/CCK_GEN_RETURN_PR_LOT Function Module for CCAK Return Pricing Lot
/ACCGO/CCK_GEN_RETURN_PR_LOT is a standard /accgo/cck gen return pr lot SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CCAK Return Pricing Lot 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 /accgo/cck gen return pr lot FM, simply by entering the name /ACCGO/CCK_GEN_RETURN_PR_LOT into the relevant SAP transaction such as SE37 or SE38.
Function Group: /ACCGO/CCK_GEN_RET_PR_LOT
Program Name: /ACCGO/SAPLCCK_GEN_RET_PR_LOT
Main Program: /ACCGO/SAPLCCK_GEN_RET_PR_LOT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function /ACCGO/CCK_GEN_RETURN_PR_LOT 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 '/ACCGO/CCK_GEN_RETURN_PR_LOT'"CCAK Return Pricing Lot.
EXPORTING
IM_S_KEY = "Key of Database Table WB2_D_COMSUB
IM_T_PR_ASPECT = "Table Type for Commodity Contract Return Pricing Lot
IMPORTING
EX_T_KOMPRASPE = "External Pricing Aspect Structure
EX_T_KOMPRASPEX = "Changes: External Pricing Aspect Structure
IMPORTING Parameters details for /ACCGO/CCK_GEN_RETURN_PR_LOT
IM_S_KEY - Key of Database Table WB2_D_COMSUB
Data type: WB2_S_COM_KEYOptional: No
Call by Reference: Yes
IM_T_PR_ASPECT - Table Type for Commodity Contract Return Pricing Lot
Data type: /ACCGO/CCK_TT_RETURN_PR_LOTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for /ACCGO/CCK_GEN_RETURN_PR_LOT
EX_T_KOMPRASPE - External Pricing Aspect Structure
Data type: TABKOMPRASPEOptional: No
Call by Reference: Yes
EX_T_KOMPRASPEX - Changes: External Pricing Aspect Structure
Data type: TABKOMPRASPEXOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /ACCGO/CCK_GEN_RETURN_PR_LOT 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_im_s_key | TYPE WB2_S_COM_KEY, " | |||
lv_ex_t_kompraspe | TYPE TABKOMPRASPE, " | |||
lv_im_t_pr_aspect | TYPE /ACCGO/CCK_TT_RETURN_PR_LOT, " | |||
lv_ex_t_kompraspex | TYPE TABKOMPRASPEX. " |
  CALL FUNCTION '/ACCGO/CCK_GEN_RETURN_PR_LOT' "CCAK Return Pricing Lot |
EXPORTING | ||
IM_S_KEY | = lv_im_s_key | |
IM_T_PR_ASPECT | = lv_im_t_pr_aspect | |
IMPORTING | ||
EX_T_KOMPRASPE | = lv_ex_t_kompraspe | |
EX_T_KOMPRASPEX | = lv_ex_t_kompraspex | |
. " /ACCGO/CCK_GEN_RETURN_PR_LOT |
ABAP code using 7.40 inline data declarations to call FM /ACCGO/CCK_GEN_RETURN_PR_LOT
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.Search for further information about these or an SAP related objects