SAP SDCAS_VISITING_HOURS Function Module for NOTRANSL: Besuchszeiten des Ansprechpartners









SDCAS_VISITING_HOURS is a standard sdcas visiting hours 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: Besuchszeiten des Ansprechpartners 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 sdcas visiting hours FM, simply by entering the name SDCAS_VISITING_HOURS into the relevant SAP transaction such as SE37 or SE38.

Function Group: V43K
Program Name: SAPLV43K
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SDCAS_VISITING_HOURS 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 'SDCAS_VISITING_HOURS'"NOTRANSL: Besuchszeiten des Ansprechpartners
EXPORTING
FI_PARNR = "Number of contact person
* FI_DISPLAY_ONLY = "
* FI_LIST_OUTPUT = 'X' "
* FI_DATUM = SY-DATUM "Date

IMPORTING
DATE_FROM = "Start Date
DATE_TO = "End Date
TIME_FROM = "From Time
TIME_TO = "To Time

CHANGING
* FC_KNVK = "Customer Master Contact Partner

EXCEPTIONS
CONTACT_PARTNER_UNKNOWN = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV43K_001 Exit for Setting Appointment Attributes

IMPORTING Parameters details for SDCAS_VISITING_HOURS

FI_PARNR - Number of contact person

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

FI_DISPLAY_ONLY -

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

FI_LIST_OUTPUT -

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

FI_DATUM - Date

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

EXPORTING Parameters details for SDCAS_VISITING_HOURS

DATE_FROM - Start Date

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

DATE_TO - End Date

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

TIME_FROM - From Time

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

TIME_TO - To Time

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

CHANGING Parameters details for SDCAS_VISITING_HOURS

FC_KNVK - Customer Master Contact Partner

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

EXCEPTIONS details

CONTACT_PARTNER_UNKNOWN -

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

Copy and paste ABAP code example for SDCAS_VISITING_HOURS 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_fc_knvk  TYPE KNVK, "   
lv_fi_parnr  TYPE PARNR, "   
lv_date_from  TYPE SCAPPT-DATE_FROM, "   
lv_contact_partner_unknown  TYPE SCAPPT, "   
lv_date_to  TYPE SCAPPT-DATE_TO, "   
lv_fi_display_only  TYPE SCAPPT, "   
lv_time_from  TYPE SCAPPT-TIME_FROM, "   
lv_fi_list_output  TYPE SCAPPT, "   'X'
lv_time_to  TYPE SCAPPT-TIME_TO, "   
lv_fi_datum  TYPE DATUM. "   SY-DATUM

  CALL FUNCTION 'SDCAS_VISITING_HOURS'  "NOTRANSL: Besuchszeiten des Ansprechpartners
    EXPORTING
         FI_PARNR = lv_fi_parnr
         FI_DISPLAY_ONLY = lv_fi_display_only
         FI_LIST_OUTPUT = lv_fi_list_output
         FI_DATUM = lv_fi_datum
    IMPORTING
         DATE_FROM = lv_date_from
         DATE_TO = lv_date_to
         TIME_FROM = lv_time_from
         TIME_TO = lv_time_to
    CHANGING
         FC_KNVK = lv_fc_knvk
    EXCEPTIONS
        CONTACT_PARTNER_UNKNOWN = 1
. " SDCAS_VISITING_HOURS




ABAP code using 7.40 inline data declarations to call FM SDCAS_VISITING_HOURS

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 DATE_FROM FROM SCAPPT INTO @DATA(ld_date_from).
 
 
"SELECT single DATE_TO FROM SCAPPT INTO @DATA(ld_date_to).
 
 
"SELECT single TIME_FROM FROM SCAPPT INTO @DATA(ld_time_from).
 
DATA(ld_fi_list_output) = 'X'.
 
"SELECT single TIME_TO FROM SCAPPT INTO @DATA(ld_time_to).
 
DATA(ld_fi_datum) = SY-DATUM.
 


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!