SAP IDCN_ALG_ADD_NEW_DIALOG Function Module for Add New Accounts or Account Levels in Dialog Screen
IDCN_ALG_ADD_NEW_DIALOG is a standard idcn alg add new dialog SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Add New Accounts or Account Levels in Dialog Screen 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 idcn alg add new dialog FM, simply by entering the name IDCN_ALG_ADD_NEW_DIALOG into the relevant SAP transaction such as SE37 or SE38.
Function Group: IDCN_ALG_ACCGROUP
Program Name: SAPLIDCN_ALG_ACCGROUP
Main Program: SAPLIDCN_ALG_ACCGROUP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IDCN_ALG_ADD_NEW_DIALOG 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 'IDCN_ALG_ADD_NEW_DIALOG'"Add New Accounts or Account Levels in Dialog Screen.
EXPORTING
* IM_ADD_ACCOUNTS = "Add New G/L Accounts in Screen
* IM_ADD_LEVELS = "Add Account Levels in Screen
* IM_APPLICATION_MODE = '02' "Mode of App. - '01' Create, '02' Change, '03' Display, '05' Copy, '08' Delete
* IM_STR_ORIGINAL_LINE = "Account Level Group: Structure for ALV Tree Output
* IM_STR_ACCOUNT_HIERARCHY = "Account Level Hierarchy: Account Level Hierarchy (Top Level)
* IM_TAB_ACCGROUPTREE = "Account Level Group: Table Type for ALV Tree Output
IMPORTING
EX_RETURN_VALUE = "Return Value '1' Yes, '2' No, 'C' Cancel
EX_TAB_ALVTREE_LINES = "Account Level Group: Table Type for ALV Tree Output
IMPORTING Parameters details for IDCN_ALG_ADD_NEW_DIALOG
IM_ADD_ACCOUNTS - Add New G/L Accounts in Screen
Data type: ABAP_BOOLOptional: Yes
Call by Reference: Yes
IM_ADD_LEVELS - Add Account Levels in Screen
Data type: ABAP_BOOLOptional: Yes
Call by Reference: Yes
IM_APPLICATION_MODE - Mode of App. - '01' Create, '02' Change, '03' Display, '05' Copy, '08' Delete
Data type: IDCN_ALG_AUTHORIZATIONDefault: '02'
Optional: Yes
Call by Reference: Yes
IM_STR_ORIGINAL_LINE - Account Level Group: Structure for ALV Tree Output
Data type: IDCN_ALGSTR_ACCGROUPTREEOptional: Yes
Call by Reference: Yes
IM_STR_ACCOUNT_HIERARCHY - Account Level Hierarchy: Account Level Hierarchy (Top Level)
Data type: IDCN_ALGACCHIEROptional: Yes
Call by Reference: Yes
IM_TAB_ACCGROUPTREE - Account Level Group: Table Type for ALV Tree Output
Data type: IDCN_ALGTAB_ACCGROUPTREEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for IDCN_ALG_ADD_NEW_DIALOG
EX_RETURN_VALUE - Return Value '1' Yes, '2' No, 'C' Cancel
Data type: CHAR1Optional: No
Call by Reference: Yes
EX_TAB_ALVTREE_LINES - Account Level Group: Table Type for ALV Tree Output
Data type: IDCN_ALGTAB_ACCGROUPTREEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for IDCN_ALG_ADD_NEW_DIALOG 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_ex_return_value | TYPE CHAR1, " | |||
| lv_im_add_accounts | TYPE ABAP_BOOL, " | |||
| lv_im_add_levels | TYPE ABAP_BOOL, " | |||
| lv_ex_tab_alvtree_lines | TYPE IDCN_ALGTAB_ACCGROUPTREE, " | |||
| lv_im_application_mode | TYPE IDCN_ALG_AUTHORIZATION, " '02' | |||
| lv_im_str_original_line | TYPE IDCN_ALGSTR_ACCGROUPTREE, " | |||
| lv_im_str_account_hierarchy | TYPE IDCN_ALGACCHIER, " | |||
| lv_im_tab_accgrouptree | TYPE IDCN_ALGTAB_ACCGROUPTREE. " |
|   CALL FUNCTION 'IDCN_ALG_ADD_NEW_DIALOG' "Add New Accounts or Account Levels in Dialog Screen |
| EXPORTING | ||
| IM_ADD_ACCOUNTS | = lv_im_add_accounts | |
| IM_ADD_LEVELS | = lv_im_add_levels | |
| IM_APPLICATION_MODE | = lv_im_application_mode | |
| IM_STR_ORIGINAL_LINE | = lv_im_str_original_line | |
| IM_STR_ACCOUNT_HIERARCHY | = lv_im_str_account_hierarchy | |
| IM_TAB_ACCGROUPTREE | = lv_im_tab_accgrouptree | |
| IMPORTING | ||
| EX_RETURN_VALUE | = lv_ex_return_value | |
| EX_TAB_ALVTREE_LINES | = lv_ex_tab_alvtree_lines | |
| . " IDCN_ALG_ADD_NEW_DIALOG | ||
ABAP code using 7.40 inline data declarations to call FM IDCN_ALG_ADD_NEW_DIALOG
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_im_application_mode) | = '02'. | |||
Search for further information about these or an SAP related objects