SAP /DSD/VC_MAINT2FCODE_DELETE Function Module for NOTRANSL: Handle FCODE for delete of visit plan position or complete visit









/DSD/VC_MAINT2FCODE_DELETE is a standard /dsd/vc maint2fcode delete 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: Handle FCODE for delete of visit plan position or complete visit 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 /dsd/vc maint2fcode delete FM, simply by entering the name /DSD/VC_MAINT2FCODE_DELETE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /DSD/VC_MAINTENANCE2
Program Name: /DSD/SAPLVC_MAINTENANCE2
Main Program: /DSD/SAPLVC_MAINTENANCE2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /DSD/VC_MAINT2FCODE_DELETE 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 '/DSD/VC_MAINT2FCODE_DELETE'"NOTRANSL: Handle FCODE for delete of visit plan position or complete visit
EXPORTING
IP_VCCODE = "
IP_DISPLAY_MODE = "
IP_FIRST_COLUMN_TEXT = "
IP_DRAGDROP_HANDLE = "
IP_O_TOP_TREE = "ALV Tree Control

CHANGING
CP_T_VP_TREE = "Tree Display, Visit Schedule
CP_T_VL_TREE = "Tree Display, Visit List
CP_T_VP_RULES = "Visit Schedule Rules
CP_T_VL_DOCS = "Visit List, Reference Documents

EXCEPTIONS
ERROR = 1 NOT_DELETE = 2
.



IMPORTING Parameters details for /DSD/VC_MAINT2FCODE_DELETE

IP_VCCODE -

Data type: C
Optional: No
Call by Reference: Yes

IP_DISPLAY_MODE -

Data type: C
Optional: No
Call by Reference: Yes

IP_FIRST_COLUMN_TEXT -

Data type: C
Optional: No
Call by Reference: Yes

IP_DRAGDROP_HANDLE -

Data type: I
Optional: No
Call by Reference: Yes

IP_O_TOP_TREE - ALV Tree Control

Data type: CL_GUI_ALV_TREE
Optional: No
Call by Reference: Yes

CHANGING Parameters details for /DSD/VC_MAINT2FCODE_DELETE

CP_T_VP_TREE - Tree Display, Visit Schedule

Data type: /DSD/VC_VP_IT_TREE
Optional: No
Call by Reference: Yes

CP_T_VL_TREE - Tree Display, Visit List

Data type: /DSD/VC_VL_IT_TREE
Optional: No
Call by Reference: Yes

CP_T_VP_RULES - Visit Schedule Rules

Data type: /DSD/VC_IT_VPRULES
Optional: No
Call by Reference: Yes

CP_T_VL_DOCS - Visit List, Reference Documents

Data type: /DSD/VC_IT_VLDOCS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

NOT_DELETE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /DSD/VC_MAINT2FCODE_DELETE 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, "   
lv_ip_vccode  TYPE C, "   
lv_cp_t_vp_tree  TYPE /DSD/VC_VP_IT_TREE, "   
lv_not_delete  TYPE /DSD/VC_VP_IT_TREE, "   
lv_cp_t_vl_tree  TYPE /DSD/VC_VL_IT_TREE, "   
lv_ip_display_mode  TYPE C, "   
lv_cp_t_vp_rules  TYPE /DSD/VC_IT_VPRULES, "   
lv_ip_first_column_text  TYPE C, "   
lv_cp_t_vl_docs  TYPE /DSD/VC_IT_VLDOCS, "   
lv_ip_dragdrop_handle  TYPE I, "   
lv_ip_o_top_tree  TYPE CL_GUI_ALV_TREE. "   

  CALL FUNCTION '/DSD/VC_MAINT2FCODE_DELETE'  "NOTRANSL: Handle FCODE for delete of visit plan position or complete visit
    EXPORTING
         IP_VCCODE = lv_ip_vccode
         IP_DISPLAY_MODE = lv_ip_display_mode
         IP_FIRST_COLUMN_TEXT = lv_ip_first_column_text
         IP_DRAGDROP_HANDLE = lv_ip_dragdrop_handle
         IP_O_TOP_TREE = lv_ip_o_top_tree
    CHANGING
         CP_T_VP_TREE = lv_cp_t_vp_tree
         CP_T_VL_TREE = lv_cp_t_vl_tree
         CP_T_VP_RULES = lv_cp_t_vp_rules
         CP_T_VL_DOCS = lv_cp_t_vl_docs
    EXCEPTIONS
        ERROR = 1
        NOT_DELETE = 2
. " /DSD/VC_MAINT2FCODE_DELETE




ABAP code using 7.40 inline data declarations to call FM /DSD/VC_MAINT2FCODE_DELETE

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



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!