SAP RV_MESSAGE_DIALOG Function Module for NOTRANSL: Bildschirm- oder Druckausgabe der Nachrichten zu einem Objekt









RV_MESSAGE_DIALOG is a standard rv message dialog 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: Bildschirm- oder Druckausgabe der Nachrichten zu einem Objekt 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 rv message dialog FM, simply by entering the name RV_MESSAGE_DIALOG into the relevant SAP transaction such as SE37 or SE38.

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



Function RV_MESSAGE_DIALOG 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 'RV_MESSAGE_DIALOG'"NOTRANSL: Bildschirm- oder Druckausgabe der Nachrichten zu einem Objekt
EXPORTING
PI_KAPPL = "Application ID
PI_OBJKY = "Object Key
* PI_KSCHL = ' ' "Message Type
* PI_DATA_FROM_BUFFER = ' ' "Single-character Indicator
* PI_QUICK_PREVIEW = ' ' "Single-character Indicator
* PI_QUICK_PREVIEW_OPT = ' ' "Single-character Indicator
* PI_FAXOUTPUT = ' ' "Single-character Indicator
* PI_NO_PRINT = ' ' "Single-character Indicator

IMPORTING
MESSAGE_PRINTED = "
PREVIEW_PROCESSED = "

EXCEPTIONS
CANCEL = 1 MESSAGE_NOT_PRINTABLE = 2 NO_MESSAGE = 3 PRINT_ERROR = 4 PREVIEW_ERROR = 5 INVALID_PREVIEW_MODE = 6 PRINT_ERROR_DIAL = 7
.



IMPORTING Parameters details for RV_MESSAGE_DIALOG

PI_KAPPL - Application ID

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

PI_OBJKY - Object Key

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

PI_KSCHL - Message Type

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

PI_DATA_FROM_BUFFER - Single-character Indicator

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

PI_QUICK_PREVIEW - Single-character Indicator

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

PI_QUICK_PREVIEW_OPT - Single-character Indicator

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

PI_FAXOUTPUT - Single-character Indicator

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

PI_NO_PRINT - Single-character Indicator

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

EXPORTING Parameters details for RV_MESSAGE_DIALOG

MESSAGE_PRINTED -

Data type:
Optional: No
Call by Reference: Yes

PREVIEW_PROCESSED -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CANCEL -

Data type:
Optional: No
Call by Reference: Yes

MESSAGE_NOT_PRINTABLE -

Data type:
Optional: No
Call by Reference: Yes

NO_MESSAGE -

Data type:
Optional: No
Call by Reference: Yes

PRINT_ERROR -

Data type:
Optional: No
Call by Reference: Yes

PREVIEW_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INVALID_PREVIEW_MODE -

Data type:
Optional: No
Call by Reference: Yes

PRINT_ERROR_DIAL -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RV_MESSAGE_DIALOG 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_cancel  TYPE STRING, "   
lv_pi_kappl  TYPE NA_KAPPL, "   
lv_message_printed  TYPE NA_KAPPL, "   
lv_pi_objky  TYPE NA_OBJKEY, "   
lv_preview_processed  TYPE NA_OBJKEY, "   
lv_message_not_printable  TYPE NA_OBJKEY, "   
lv_pi_kschl  TYPE NA_KSCHL, "   SPACE
lv_no_message  TYPE NA_KSCHL, "   
lv_print_error  TYPE NA_KSCHL, "   
lv_pi_data_from_buffer  TYPE CHAR1, "   SPACE
lv_preview_error  TYPE CHAR1, "   
lv_pi_quick_preview  TYPE CHAR1, "   SPACE
lv_invalid_preview_mode  TYPE CHAR1, "   
lv_pi_quick_preview_opt  TYPE CHAR1, "   SPACE
lv_pi_faxoutput  TYPE CHAR1, "   SPACE
lv_print_error_dial  TYPE CHAR1, "   
lv_pi_no_print  TYPE CHAR1. "   SPACE

  CALL FUNCTION 'RV_MESSAGE_DIALOG'  "NOTRANSL: Bildschirm- oder Druckausgabe der Nachrichten zu einem Objekt
    EXPORTING
         PI_KAPPL = lv_pi_kappl
         PI_OBJKY = lv_pi_objky
         PI_KSCHL = lv_pi_kschl
         PI_DATA_FROM_BUFFER = lv_pi_data_from_buffer
         PI_QUICK_PREVIEW = lv_pi_quick_preview
         PI_QUICK_PREVIEW_OPT = lv_pi_quick_preview_opt
         PI_FAXOUTPUT = lv_pi_faxoutput
         PI_NO_PRINT = lv_pi_no_print
    IMPORTING
         MESSAGE_PRINTED = lv_message_printed
         PREVIEW_PROCESSED = lv_preview_processed
    EXCEPTIONS
        CANCEL = 1
        MESSAGE_NOT_PRINTABLE = 2
        NO_MESSAGE = 3
        PRINT_ERROR = 4
        PREVIEW_ERROR = 5
        INVALID_PREVIEW_MODE = 6
        PRINT_ERROR_DIAL = 7
. " RV_MESSAGE_DIALOG




ABAP code using 7.40 inline data declarations to call FM RV_MESSAGE_DIALOG

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.

 
 
 
 
 
 
DATA(ld_pi_kschl) = ' '.
 
 
 
DATA(ld_pi_data_from_buffer) = ' '.
 
 
DATA(ld_pi_quick_preview) = ' '.
 
 
DATA(ld_pi_quick_preview_opt) = ' '.
 
DATA(ld_pi_faxoutput) = ' '.
 
 
DATA(ld_pi_no_print) = ' '.
 


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!