SAP Function Modules

RH_PICK_EVENTTYPE_SCHEDULE SAP Function module







RH_PICK_EVENTTYPE_SCHEDULE 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 RH_PICK_EVENTTYPE_SCHEDULE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM RH_PICK_EVENTTYPE_SCHEDULE - RH PICK EVENTTYPE SCHEDULE





CALL FUNCTION 'RH_PICK_EVENTTYPE_SCHEDULE' "
  EXPORTING
    plvar =                     " plog-plvar
    otype =                     " plog-otype
    objid =                     " plog-objid
*   begda = '19000101'          " plog-begda
*   endda = '99991231'          " plog-endda
*   cucol = 10                  " sy-cucol
*   curow = 10                  " sy-curow
*   short = SPACE               " p1000-short
*   stext = SPACE               " p1000-stext
*   read_evetyp_text = 'X'      "
*   fcode = 'DISP'              " pppar-fcode
*   mode = 'A'                  "
  TABLES
    disp_schedule =             " hrv1042a
  EXCEPTIONS
    NO_OBJECT_TEXT = 1          "
    NOTHING_FOUND = 2           "
    .  "  RH_PICK_EVENTTYPE_SCHEDULE

ABAP code example for Function Module RH_PICK_EVENTTYPE_SCHEDULE





The ABAP code below is a full code listing to execute function module RH_PICK_EVENTTYPE_SCHEDULE 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:
it_disp_schedule  TYPE STANDARD TABLE OF HRV1042A,"TABLES PARAM
wa_disp_schedule  LIKE LINE OF it_disp_schedule .


SELECT single PLVAR
FROM PLOG
INTO @DATA(ld_plvar).


SELECT single OTYPE
FROM PLOG
INTO @DATA(ld_otype).


SELECT single OBJID
FROM PLOG
INTO @DATA(ld_objid).


SELECT single BEGDA
FROM PLOG
INTO @DATA(ld_begda).


SELECT single ENDDA
FROM PLOG
INTO @DATA(ld_endda).

DATA(ld_cucol) = '123 '.
DATA(ld_curow) = '123 '.

DATA(ld_short) = some text here

DATA(ld_stext) = some text here
DATA(ld_read_evetyp_text) = 'some text here'.

DATA(ld_fcode) = some text here
DATA(ld_mode) = 'some text here'.

"populate fields of struture and append to itab
append wa_disp_schedule to it_disp_schedule. . CALL FUNCTION 'RH_PICK_EVENTTYPE_SCHEDULE' EXPORTING plvar = ld_plvar otype = ld_otype objid = ld_objid * begda = ld_begda * endda = ld_endda * cucol = ld_cucol * curow = ld_curow * short = ld_short * stext = ld_stext * read_evetyp_text = ld_read_evetyp_text * fcode = ld_fcode * mode = ld_mode TABLES disp_schedule = it_disp_schedule EXCEPTIONS NO_OBJECT_TEXT = 1 NOTHING_FOUND = 2 . " RH_PICK_EVENTTYPE_SCHEDULE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_plvar  TYPE PLOG-PLVAR ,
it_disp_schedule  TYPE STANDARD TABLE OF HRV1042A ,
wa_disp_schedule  LIKE LINE OF it_disp_schedule,
ld_otype  TYPE PLOG-OTYPE ,
ld_objid  TYPE PLOG-OBJID ,
ld_begda  TYPE PLOG-BEGDA ,
ld_endda  TYPE PLOG-ENDDA ,
ld_cucol  TYPE SY-CUCOL ,
ld_curow  TYPE SY-CUROW ,
ld_short  TYPE P1000-SHORT ,
ld_stext  TYPE P1000-STEXT ,
ld_read_evetyp_text  TYPE STRING ,
ld_fcode  TYPE PPPAR-FCODE ,
ld_mode  TYPE STRING .


SELECT single PLVAR
FROM PLOG
INTO ld_plvar.


"populate fields of struture and append to itab
append wa_disp_schedule to it_disp_schedule.

SELECT single OTYPE
FROM PLOG
INTO ld_otype.


SELECT single OBJID
FROM PLOG
INTO ld_objid.


SELECT single BEGDA
FROM PLOG
INTO ld_begda.


SELECT single ENDDA
FROM PLOG
INTO ld_endda.

ld_cucol = '123 '.
ld_curow = '123 '.

ld_short = some text here

ld_stext = some text here
ld_read_evetyp_text = 'some text here'.

ld_fcode = some text here
ld_mode = 'some text here'.

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 RH_PICK_EVENTTYPE_SCHEDULE or its description.