SAP RS_SCRP_DIFF_BETWEEN_DYNPROS Function Module for









RS_SCRP_DIFF_BETWEEN_DYNPROS is a standard rs scrp diff between dynpros 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 rs scrp diff between dynpros FM, simply by entering the name RS_SCRP_DIFF_BETWEEN_DYNPROS into the relevant SAP transaction such as SE37 or SE38.

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



Function RS_SCRP_DIFF_BETWEEN_DYNPROS 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 'RS_SCRP_DIFF_BETWEEN_DYNPROS'"
EXPORTING
CV_HEADER = "Screen header
* CV_DESCRIPT = ' ' "Screen descriptive text
* FIELDINDEX = 0 "Differences for single field: Index in field list
* WITH_FLOW_DETAILS = ' ' "
SV_HEADER = "
* SV_DESCRIPT = ' ' "

TABLES
CV_FIELDS = "Screen field list
* SV_FLOW = "
* SV_PARAMS = "
* CV_FLOW = "Flow logic for screen
* CV_PARAMS = "
* DIFF_HEADER = "Differences in screen header
* DIFF_CONTAINERS = "Differences in screen containers
* DIFF_FIELDS = "Differences in fields of screen containers
* DIFF_FLOW = "Differencs in flow logic
* DIFF_PARAMS = "
SV_FIELDS = "

EXCEPTIONS
ORIGINAL_NOT_EXISTS = 1
.



IMPORTING Parameters details for RS_SCRP_DIFF_BETWEEN_DYNPROS

CV_HEADER - Screen header

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

CV_DESCRIPT - Screen descriptive text

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

FIELDINDEX - Differences for single field: Index in field list

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

WITH_FLOW_DETAILS -

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

SV_HEADER -

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

SV_DESCRIPT -

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

TABLES Parameters details for RS_SCRP_DIFF_BETWEEN_DYNPROS

CV_FIELDS - Screen field list

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

SV_FLOW -

Data type: DYN_FLOWLIST
Optional: Yes
Call by Reference: Yes

SV_PARAMS -

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

CV_FLOW - Flow logic for screen

Data type: DYN_FLOWLIST
Optional: Yes
Call by Reference: Yes

CV_PARAMS -

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

DIFF_HEADER - Differences in screen header

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

DIFF_CONTAINERS - Differences in screen containers

Data type: DCCATT_TAB
Optional: Yes
Call by Reference: Yes

DIFF_FIELDS - Differences in fields of screen containers

Data type: DCFATC_TAB
Optional: Yes
Call by Reference: Yes

DIFF_FLOW - Differencs in flow logic

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

DIFF_PARAMS -

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

SV_FIELDS -

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

EXCEPTIONS details

ORIGINAL_NOT_EXISTS - No original version found or read error

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

Copy and paste ABAP code example for RS_SCRP_DIFF_BETWEEN_DYNPROS 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:
lt_cv_fields  TYPE STANDARD TABLE OF D021S, "   
lv_cv_header  TYPE D020S, "   
lv_original_not_exists  TYPE D020S, "   
lt_sv_flow  TYPE STANDARD TABLE OF DYN_FLOWLIST, "   
lt_sv_params  TYPE STANDARD TABLE OF D023S, "   
lt_cv_flow  TYPE STANDARD TABLE OF DYN_FLOWLIST, "   
lv_cv_descript  TYPE D020T-DTXT, "   ' '
lt_cv_params  TYPE STANDARD TABLE OF D023S, "   
lv_fieldindex  TYPE SY-TABIX, "   0
lt_diff_header  TYPE STANDARD TABLE OF RPY_DCHEAD, "   
lv_with_flow_details  TYPE RPY_DCHEAD, "   ' '
lv_sv_header  TYPE D020S, "   
lt_diff_containers  TYPE STANDARD TABLE OF DCCATT_TAB, "   
lt_diff_fields  TYPE STANDARD TABLE OF DCFATC_TAB, "   
lv_sv_descript  TYPE D020T-DTXT, "   ' '
lt_diff_flow  TYPE STANDARD TABLE OF RPY_DCFLOW, "   
lt_diff_params  TYPE STANDARD TABLE OF RPY_DCPARA, "   
lt_sv_fields  TYPE STANDARD TABLE OF D021S. "   

  CALL FUNCTION 'RS_SCRP_DIFF_BETWEEN_DYNPROS'  "
    EXPORTING
         CV_HEADER = lv_cv_header
         CV_DESCRIPT = lv_cv_descript
         FIELDINDEX = lv_fieldindex
         WITH_FLOW_DETAILS = lv_with_flow_details
         SV_HEADER = lv_sv_header
         SV_DESCRIPT = lv_sv_descript
    TABLES
         CV_FIELDS = lt_cv_fields
         SV_FLOW = lt_sv_flow
         SV_PARAMS = lt_sv_params
         CV_FLOW = lt_cv_flow
         CV_PARAMS = lt_cv_params
         DIFF_HEADER = lt_diff_header
         DIFF_CONTAINERS = lt_diff_containers
         DIFF_FIELDS = lt_diff_fields
         DIFF_FLOW = lt_diff_flow
         DIFF_PARAMS = lt_diff_params
         SV_FIELDS = lt_sv_fields
    EXCEPTIONS
        ORIGINAL_NOT_EXISTS = 1
. " RS_SCRP_DIFF_BETWEEN_DYNPROS




ABAP code using 7.40 inline data declarations to call FM RS_SCRP_DIFF_BETWEEN_DYNPROS

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 DTXT FROM D020T INTO @DATA(ld_cv_descript).
DATA(ld_cv_descript) = ' '.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_fieldindex).
 
 
DATA(ld_with_flow_details) = ' '.
 
 
 
 
"SELECT single DTXT FROM D020T INTO @DATA(ld_sv_descript).
DATA(ld_sv_descript) = ' '.
 
 
 
 


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!