SAP RSAR_ISOURCE_TD_CREATE Function Module for Creating an InfoSource for transaction data









RSAR_ISOURCE_TD_CREATE is a standard rsar isource td create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creating an InfoSource for transaction data 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 isource td create FM, simply by entering the name RSAR_ISOURCE_TD_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function RSAR_ISOURCE_TD_CREATE 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_ISOURCE_TD_CREATE'"Creating an InfoSource for transaction data
EXPORTING
* I_LANGU = SY-LANGU "Languages in Which Texts Exist
* I_GENERATED = "InfoSource is Generated
* I_BCTCOMP = "Component (of Business Content)
* I_ISSRCTYPE = "Type of Source System
* I_INVISIBLE = "InfoSource Not to Be Displayed
* I_NO_TRANSPORT = "No Transport Connection
I_APPLNM = "Name of Related Application Component
I_TXTSH = "Short Text for the InfoSource
I_TXTMD = "Text for InfoSource
I_TXTLG = "Long Text for the InfoSource
* I_BAPI_CALL = RS_C_FALSE "
* I_ISOURCE = "
* I_TEMPL_IS = "Template-InfoSource
* I_T_ISFIELD = "InfoSource Fields (Provider Structure of All Source Systems)

IMPORTING
E_ISOURCE = "Technical name of the InfoSource

EXCEPTIONS
INVALID_NAME = 1 ISOURCE_EXISTS = 2 OBJECT_LOCKED = 3 CANCELLED = 4 UNAUTHORIZED = 5
.



IMPORTING Parameters details for RSAR_ISOURCE_TD_CREATE

I_LANGU - Languages in Which Texts Exist

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

I_GENERATED - InfoSource is Generated

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

I_BCTCOMP - Component (of Business Content)

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

I_ISSRCTYPE - Type of Source System

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

I_INVISIBLE - InfoSource Not to Be Displayed

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

I_NO_TRANSPORT - No Transport Connection

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

I_APPLNM - Name of Related Application Component

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

I_TXTSH - Short Text for the InfoSource

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

I_TXTMD - Text for InfoSource

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

I_TXTLG - Long Text for the InfoSource

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

I_BAPI_CALL -

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

I_ISOURCE -

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

I_TEMPL_IS - Template-InfoSource

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

I_T_ISFIELD - InfoSource Fields (Provider Structure of All Source Systems)

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

EXPORTING Parameters details for RSAR_ISOURCE_TD_CREATE

E_ISOURCE - Technical name of the InfoSource

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

EXCEPTIONS details

INVALID_NAME - Invalid InfoSource name (namespace)

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

ISOURCE_EXISTS - InfoSource already exists

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

OBJECT_LOCKED - InfoSource is locked

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

CANCELLED - Cancellation by user

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

UNAUTHORIZED -

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

Copy and paste ABAP code example for RSAR_ISOURCE_TD_CREATE 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_i_langu  TYPE SY-LANGU, "   SY-LANGU
lv_e_isource  TYPE RSA_ISOURCE, "   
lv_invalid_name  TYPE RSA_ISOURCE, "   
lv_i_generated  TYPE RS_BOOL, "   
lv_i_bctcomp  TYPE RSOBCTCOMP, "   
lv_i_issrctype  TYPE RSSRCTYPE, "   
lv_i_invisible  TYPE RS_BOOL, "   
lv_i_no_transport  TYPE RS_BOOL, "   
lv_i_applnm  TYPE RSAPPL-APPLNM, "   
lv_isource_exists  TYPE RSAPPL, "   
lv_i_txtsh  TYPE RSIST-TXTSH, "   
lv_object_locked  TYPE RSIST, "   
lv_i_txtmd  TYPE RSIST-TXTMD, "   
lv_cancelled  TYPE RSIST, "   
lv_i_txtlg  TYPE RSIST-TXTLG, "   
lv_unauthorized  TYPE RSIST, "   
lv_i_bapi_call  TYPE RS_FLAG, "   RS_C_FALSE
lv_i_isource  TYPE RSIS-ISOURCE, "   
lv_i_templ_is  TYPE RSISOURCE, "   
lv_i_t_isfield  TYPE RSARC_T_RSISFIELD. "   

  CALL FUNCTION 'RSAR_ISOURCE_TD_CREATE'  "Creating an InfoSource for transaction data
    EXPORTING
         I_LANGU = lv_i_langu
         I_GENERATED = lv_i_generated
         I_BCTCOMP = lv_i_bctcomp
         I_ISSRCTYPE = lv_i_issrctype
         I_INVISIBLE = lv_i_invisible
         I_NO_TRANSPORT = lv_i_no_transport
         I_APPLNM = lv_i_applnm
         I_TXTSH = lv_i_txtsh
         I_TXTMD = lv_i_txtmd
         I_TXTLG = lv_i_txtlg
         I_BAPI_CALL = lv_i_bapi_call
         I_ISOURCE = lv_i_isource
         I_TEMPL_IS = lv_i_templ_is
         I_T_ISFIELD = lv_i_t_isfield
    IMPORTING
         E_ISOURCE = lv_e_isource
    EXCEPTIONS
        INVALID_NAME = 1
        ISOURCE_EXISTS = 2
        OBJECT_LOCKED = 3
        CANCELLED = 4
        UNAUTHORIZED = 5
. " RSAR_ISOURCE_TD_CREATE




ABAP code using 7.40 inline data declarations to call FM RSAR_ISOURCE_TD_CREATE

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 LANGU FROM SY INTO @DATA(ld_i_langu).
DATA(ld_i_langu) = SY-LANGU.
 
 
 
 
 
 
 
 
"SELECT single APPLNM FROM RSAPPL INTO @DATA(ld_i_applnm).
 
 
"SELECT single TXTSH FROM RSIST INTO @DATA(ld_i_txtsh).
 
 
"SELECT single TXTMD FROM RSIST INTO @DATA(ld_i_txtmd).
 
 
"SELECT single TXTLG FROM RSIST INTO @DATA(ld_i_txtlg).
 
 
DATA(ld_i_bapi_call) = RS_C_FALSE.
 
"SELECT single ISOURCE FROM RSIS INTO @DATA(ld_i_isource).
 
 
 


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!