SAP RH_POPUP_PREBOOK Function Module for









RH_POPUP_PREBOOK is a standard rh popup prebook SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rh popup prebook FM, simply by entering the name RH_POPUP_PREBOOK into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHV1
Program Name: SAPLRHV1
Main Program: SAPLRHV1
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RH_POPUP_PREBOOK 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 'RH_POPUP_PREBOOK'"
EXPORTING
PLVAR = "
* FCODE = 'DISP' "
* CUCOL = 10 "
* CUROW = 10 "
VTYPID = "
* STEXT = ' ' "
* SHORT = ' ' "
* READ_PREBK_DATA = 'X' "
* BEGDA = '19000101' "
* ENDDA = '99991231' "
* LOCID = '00000000' "
* PBLANGU = ' ' "

TABLES
* PREBOOK_TAB = "

EXCEPTIONS
GET_PREBOOK_FAILED = 1 SHOW_PREBOOK_FAILED = 2
.



IMPORTING Parameters details for RH_POPUP_PREBOOK

PLVAR -

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

FCODE -

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

CUCOL -

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

CUROW -

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

VTYPID -

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

STEXT -

Data type: P1000-STEXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHORT -

Data type: P1000-SHORT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_PREBK_DATA -

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

BEGDA -

Data type: PLOG-BEGDA
Default: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENDDA -

Data type: PLOG-ENDDA
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOCID -

Data type: PLOG-OBJID
Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PBLANGU -

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

TABLES Parameters details for RH_POPUP_PREBOOK

PREBOOK_TAB -

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

EXCEPTIONS details

GET_PREBOOK_FAILED -

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

SHOW_PREBOOK_FAILED -

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

Copy and paste ABAP code example for RH_POPUP_PREBOOK 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_plvar  TYPE PLOG-PLVAR, "   
lt_prebook_tab  TYPE STANDARD TABLE OF HRVPREBK, "   
lv_get_prebook_failed  TYPE HRVPREBK, "   
lv_fcode  TYPE SY-UCOMM, "   'DISP'
lv_cucol  TYPE SY-CUCOL, "   10
lv_curow  TYPE SY-CUROW, "   10
lv_vtypid  TYPE PLOG-OBJID, "   
lv_show_prebook_failed  TYPE PLOG, "   
lv_stext  TYPE P1000-STEXT, "   SPACE
lv_short  TYPE P1000-SHORT, "   SPACE
lv_read_prebk_data  TYPE P1000, "   'X'
lv_begda  TYPE PLOG-BEGDA, "   '19000101'
lv_endda  TYPE PLOG-ENDDA, "   '99991231'
lv_locid  TYPE PLOG-OBJID, "   '00000000'
lv_pblangu  TYPE HRVPAR-EVLNG. "   ' '

  CALL FUNCTION 'RH_POPUP_PREBOOK'  "
    EXPORTING
         PLVAR = lv_plvar
         FCODE = lv_fcode
         CUCOL = lv_cucol
         CUROW = lv_curow
         VTYPID = lv_vtypid
         STEXT = lv_stext
         SHORT = lv_short
         READ_PREBK_DATA = lv_read_prebk_data
         BEGDA = lv_begda
         ENDDA = lv_endda
         LOCID = lv_locid
         PBLANGU = lv_pblangu
    TABLES
         PREBOOK_TAB = lt_prebook_tab
    EXCEPTIONS
        GET_PREBOOK_FAILED = 1
        SHOW_PREBOOK_FAILED = 2
. " RH_POPUP_PREBOOK




ABAP code using 7.40 inline data declarations to call FM RH_POPUP_PREBOOK

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 PLVAR FROM PLOG INTO @DATA(ld_plvar).
 
 
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_fcode).
DATA(ld_fcode) = 'DISP'.
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_cucol).
DATA(ld_cucol) = 10.
 
"SELECT single CUROW FROM SY INTO @DATA(ld_curow).
DATA(ld_curow) = 10.
 
"SELECT single OBJID FROM PLOG INTO @DATA(ld_vtypid).
 
 
"SELECT single STEXT FROM P1000 INTO @DATA(ld_stext).
DATA(ld_stext) = ' '.
 
"SELECT single SHORT FROM P1000 INTO @DATA(ld_short).
DATA(ld_short) = ' '.
 
DATA(ld_read_prebk_data) = 'X'.
 
"SELECT single BEGDA FROM PLOG INTO @DATA(ld_begda).
DATA(ld_begda) = '19000101'.
 
"SELECT single ENDDA FROM PLOG INTO @DATA(ld_endda).
DATA(ld_endda) = '99991231'.
 
"SELECT single OBJID FROM PLOG INTO @DATA(ld_locid).
DATA(ld_locid) = '00000000'.
 
"SELECT single EVLNG FROM HRVPAR INTO @DATA(ld_pblangu).
DATA(ld_pblangu) = ' '.
 


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!