SAP RSDV_INSERT_VALID_TAB_CHAVL Function Module for Insert new entries based on a chavl basis









RSDV_INSERT_VALID_TAB_CHAVL is a standard rsdv insert valid tab chavl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert new entries based on a chavl basis 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 rsdv insert valid tab chavl FM, simply by entering the name RSDV_INSERT_VALID_TAB_CHAVL into the relevant SAP transaction such as SE37 or SE38.

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



Function RSDV_INSERT_VALID_TAB_CHAVL 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 'RSDV_INSERT_VALID_TAB_CHAVL'"Insert new entries based on a chavl basis
EXPORTING
I_INFOPROV = "InfoProvider
* I_REQUID = -1 "Master data ID
* I_REQTSN = "Request Transaction Sequence Number
I_CHECKFL = "Boolean
* I_WRITEFL = RRSI_C_WRITEFL-NO "
I_TA_CHAVL = "

IMPORTING
E_T_MSG = "BW: Table with Messages (Application Log)

EXCEPTIONS
SID_ERROR = 1
.



IMPORTING Parameters details for RSDV_INSERT_VALID_TAB_CHAVL

I_INFOPROV - InfoProvider

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

I_REQUID - Master data ID

Data type: RSSID
Default: -1
Optional: Yes
Call by Reference: Yes

I_REQTSN - Request Transaction Sequence Number

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

I_CHECKFL - Boolean

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

I_WRITEFL -

Data type: RRSI_WRITEFL
Default: RRSI_C_WRITEFL-NO
Optional: Yes
Call by Reference: Yes

I_TA_CHAVL -

Data type: ANY TABLE
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for RSDV_INSERT_VALID_TAB_CHAVL

E_T_MSG - BW: Table with Messages (Application Log)

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

EXCEPTIONS details

SID_ERROR - Error during the determination of the SIDs

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDV_INSERT_VALID_TAB_CHAVL 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_t_msg  TYPE RS_T_MSG, "   
lv_sid_error  TYPE RS_T_MSG, "   
lv_i_infoprov  TYPE RSINFOPROV, "   
lv_i_requid  TYPE RSSID, "   -1
lv_i_reqtsn  TYPE RSPM_TSN, "   
lv_i_checkfl  TYPE RS_BOOL, "   
lv_i_writefl  TYPE RRSI_WRITEFL, "   RRSI_C_WRITEFL-NO
lv_i_ta_chavl  TYPE ANY TABLE. "   

  CALL FUNCTION 'RSDV_INSERT_VALID_TAB_CHAVL'  "Insert new entries based on a chavl basis
    EXPORTING
         I_INFOPROV = lv_i_infoprov
         I_REQUID = lv_i_requid
         I_REQTSN = lv_i_reqtsn
         I_CHECKFL = lv_i_checkfl
         I_WRITEFL = lv_i_writefl
         I_TA_CHAVL = lv_i_ta_chavl
    IMPORTING
         E_T_MSG = lv_e_t_msg
    EXCEPTIONS
        SID_ERROR = 1
. " RSDV_INSERT_VALID_TAB_CHAVL




ABAP code using 7.40 inline data declarations to call FM RSDV_INSERT_VALID_TAB_CHAVL

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_requid) = -1.
 
 
 
DATA(ld_i_writefl) = RRSI_C_WRITEFL-NO.
 
 


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!