SAP Reports / Programs | Training and Event Management(PE) SAP PE

RHREPVAL SAP ABAP INCLUDE - documentation and ABAP source code







RHREPVAL is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RHREPVAL into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RHREPVAL. "Basic submit
SUBMIT RHREPVAL AND RETURN. "Return to original report after report execution complete
SUBMIT RHREPVAL VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RHREPVAL

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RH_ASK_FOR_PLVAR CALL FUNCTION 'RH_ASK_FOR_PLVAR' CHANGING PLVAR = or_PLVAR.

ASK_OTYPE CALL FUNCTION 'ASK_OTYPE' EXPORTING d_OTYPE = or_otype IMPORTING OTYPE = or_otype.

RH_OBJID_REQUEST CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING PLVAR = OR_PLVAR OTYPE = OR_OTYPE SEARK = OR_SEARK IMPORTING SEL_OBJECT = OR_OBJEC EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 ILLEGAL_MODE = 4 INTERNAL_ERROR = 5 OTHERS = 6.

RH_ASK_FOR_PLVAR CALL FUNCTION 'RH_ASK_FOR_PLVAR' CHANGING PLVAR = MS_PLVAR.

ASK_OTYPE CALL FUNCTION 'ASK_OTYPE' EXPORTING d_OTYPE = ms_otype IMPORTING OTYPE = ms_otype.

RH_MACO CALL FUNCTION 'RH_MACO' EXPORTING SEARK = MS_SEARK PLVAR = MS_PLVAR OTYPE = MS_OTYPE IMPORTING SEL_OBJECT = MS_OBJEC EXCEPTIONS F15 = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 OTHERS = 4.

RH_ASK_FOR_PLVAR CALL FUNCTION 'RH_ASK_FOR_PLVAR' CHANGING PLVAR = eor_PLVAR.

ASK_OTYPE CALL FUNCTION 'ASK_OTYPE' EXPORTING d_OTYPE = eor_otype IMPORTING OTYPE = eor_otype.

RH_OBJID_REQUEST CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING PLVAR = EOR_PLVAR OTYPE = EOR_OTYPE SEARK = EOR_SEARK IMPORTING SEL_OBJECT = EOR_OBJEC EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 ILLEGAL_MODE = 4 INTERNAL_ERROR = 5 OTHERS = 6.

RH_ASK_FOR_PLVAR CALL FUNCTION 'RH_ASK_FOR_PLVAR' CHANGING PLVAR = EMS_PLVAR.

ASK_OTYPE CALL FUNCTION 'ASK_OTYPE' EXPORTING d_OTYPE = ems_otype IMPORTING OTYPE = ems_otype.

RH_MACO CALL FUNCTION 'RH_MACO' EXPORTING SEARK = EMS_SEARK PLVAR = EMS_PLVAR OTYPE = EMS_OTYPE IMPORTING SEL_OBJECT = EMS_OBJEC EXCEPTIONS F15 = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 OTHERS = 4.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RHREPVAL or its description.