SAP RSAR_F4_IS_TEMPLATE Function Module for F4 Help for IS-template









RSAR_F4_IS_TEMPLATE is a standard rsar f4 is template SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for F4 Help for IS-template 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 rsar f4 is template FM, simply by entering the name RSAR_F4_IS_TEMPLATE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSAR_F4_IS_TEMPLATE 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 'RSAR_F4_IS_TEMPLATE'"F4 Help for IS-template
EXPORTING
I_TMPLOBJTP = "Type of Object as Template for an InfoSource
* I_REPID = SY-REPID "ABAP Program: Current Main Program
* I_DYNNR = SY-DYNNR "ABAP Program: Number of Current Screen
* I_NO_POPUP = ' ' "with/without Selection-Popup

IMPORTING
E_TMPLOBJ = "Name of InfoObject as template for an InfoSource

CHANGING
C_T_TMPLOBJ = "Transfer Table acc. to IS Template

EXCEPTIONS
ACTION_CANCELLED = 1 FATAL_ERROR = 2
.



IMPORTING Parameters details for RSAR_F4_IS_TEMPLATE

I_TMPLOBJTP - Type of Object as Template for an InfoSource

Data type: RSTMPLOBJTP
Optional: No
Call by Reference: Yes

I_REPID - ABAP Program: Current Main Program

Data type: SYREPID
Default: SY-REPID
Optional: Yes
Call by Reference: Yes

I_DYNNR - ABAP Program: Number of Current Screen

Data type: SYDYNNR
Default: SY-DYNNR
Optional: Yes
Call by Reference: Yes

I_NO_POPUP - with/without Selection-Popup

Data type: RS_BOOL
Default: ' '
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RSAR_F4_IS_TEMPLATE

E_TMPLOBJ - Name of InfoObject as template for an InfoSource

Data type: RSTMPLOBJ
Optional: No
Call by Reference: Yes

CHANGING Parameters details for RSAR_F4_IS_TEMPLATE

C_T_TMPLOBJ - Transfer Table acc. to IS Template

Data type: RSTTMPLOBJ
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ACTION_CANCELLED - Action canceled

Data type:
Optional: No
Call by Reference: Yes

FATAL_ERROR - Critical Error(s)

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSAR_F4_IS_TEMPLATE 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_e_tmplobj  TYPE RSTMPLOBJ, "   
lv_c_t_tmplobj  TYPE RSTTMPLOBJ, "   
lv_i_tmplobjtp  TYPE RSTMPLOBJTP, "   
lv_action_cancelled  TYPE RSTMPLOBJTP, "   
lv_i_repid  TYPE SYREPID, "   SY-REPID
lv_fatal_error  TYPE SYREPID, "   
lv_i_dynnr  TYPE SYDYNNR, "   SY-DYNNR
lv_i_no_popup  TYPE RS_BOOL. "   ' '

  CALL FUNCTION 'RSAR_F4_IS_TEMPLATE'  "F4 Help for IS-template
    EXPORTING
         I_TMPLOBJTP = lv_i_tmplobjtp
         I_REPID = lv_i_repid
         I_DYNNR = lv_i_dynnr
         I_NO_POPUP = lv_i_no_popup
    IMPORTING
         E_TMPLOBJ = lv_e_tmplobj
    CHANGING
         C_T_TMPLOBJ = lv_c_t_tmplobj
    EXCEPTIONS
        ACTION_CANCELLED = 1
        FATAL_ERROR = 2
. " RSAR_F4_IS_TEMPLATE




ABAP code using 7.40 inline data declarations to call FM RSAR_F4_IS_TEMPLATE

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_i_repid) = SY-REPID.
 
 
DATA(ld_i_dynnr) = SY-DYNNR.
 
DATA(ld_i_no_popup) = ' '.
 


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!