SAP Function Modules

SD_GOODS_RECEIVE_TIME SAP Function module







SD_GOODS_RECEIVE_TIME is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SD_GOODS_RECEIVE_TIME into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V03C
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SD_GOODS_RECEIVE_TIME - SD GOODS RECEIVE TIME





CALL FUNCTION 'SD_GOODS_RECEIVE_TIME' "
  EXPORTING
    if_date_from =              " d             Date From
*   if_time_from =              " t
*   if_date_to =                " d             To Date
    if_direction =              " v03c_direction
*   if_route_calendar =         " tvro-spfbk
*   if_route_workinghours =     " tvro-spzst
    is_ship_to_view =           " kuwevsched
  IMPORTING
    es_grtimewa =               " v03c_grtimewa
    et_grtimetab =              " v03c_grtimetab
  EXCEPTIONS
    NO_DATE_FOUND = 1           "
    .  "  SD_GOODS_RECEIVE_TIME

ABAP code example for Function Module SD_GOODS_RECEIVE_TIME





The ABAP code below is a full code listing to execute function module SD_GOODS_RECEIVE_TIME including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_es_grtimewa  TYPE V03C_GRTIMEWA ,
ld_et_grtimetab  TYPE V03C_GRTIMETAB .

DATA(ld_if_date_from) = 'Check type of data required'.
DATA(ld_if_time_from) = 'Check type of data required'.
DATA(ld_if_date_to) = 'Check type of data required'.
DATA(ld_if_direction) = 'Check type of data required'.

SELECT single SPFBK
FROM TVRO
INTO @DATA(ld_if_route_calendar).


SELECT single SPZST
FROM TVRO
INTO @DATA(ld_if_route_workinghours).

DATA(ld_is_ship_to_view) = 'Check type of data required'. . CALL FUNCTION 'SD_GOODS_RECEIVE_TIME' EXPORTING if_date_from = ld_if_date_from * if_time_from = ld_if_time_from * if_date_to = ld_if_date_to if_direction = ld_if_direction * if_route_calendar = ld_if_route_calendar * if_route_workinghours = ld_if_route_workinghours is_ship_to_view = ld_is_ship_to_view IMPORTING es_grtimewa = ld_es_grtimewa et_grtimetab = ld_et_grtimetab EXCEPTIONS NO_DATE_FOUND = 1 . " SD_GOODS_RECEIVE_TIME
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_es_grtimewa  TYPE V03C_GRTIMEWA ,
ld_if_date_from  TYPE D ,
ld_et_grtimetab  TYPE V03C_GRTIMETAB ,
ld_if_time_from  TYPE T ,
ld_if_date_to  TYPE D ,
ld_if_direction  TYPE V03C_DIRECTION ,
ld_if_route_calendar  TYPE TVRO-SPFBK ,
ld_if_route_workinghours  TYPE TVRO-SPZST ,
ld_is_ship_to_view  TYPE KUWEVSCHED .

ld_if_date_from = 'Check type of data required'.
ld_if_time_from = 'Check type of data required'.
ld_if_date_to = 'Check type of data required'.
ld_if_direction = 'Check type of data required'.

SELECT single SPFBK
FROM TVRO
INTO ld_if_route_calendar.


SELECT single SPZST
FROM TVRO
INTO ld_if_route_workinghours.

ld_is_ship_to_view = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SD_GOODS_RECEIVE_TIME or its description.