[go: up one dir, main page]

0% found this document useful (0 votes)
96 views1 page

Customer Exit Variable Declaration

This document describes the import and export parameters for processing customer exit variables. It includes parameters like the variable name, type, object name, and date range. It also provides an example of appending a range to the export table and how to read from the variable table when there is a single or multiple entries for a variable.

Uploaded by

jagadeep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views1 page

Customer Exit Variable Declaration

This document describes the import and export parameters for processing customer exit variables. It includes parameters like the variable name, type, object name, and date range. It also provides an example of appending a range to the export table and how to read from the variable table when there is a single or multiple entries for a variable.

Uploaded by

jagadeep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Declaration types required for Customer Exit variable processing.

*" IMPORTING
*" VALUE(I_VNAM) LIKE RSZGLOBV-VNAM
*" VALUE(I_VARTYP) LIKE RSZGLOBV-VARTYP
*" VALUE(I_IOBJNM) LIKE RSZGLOBV-IOBJNM
*" VALUE(I_S_COB_PRO) TYPE RSD_S_COB_PRO
*" VALUE(I_S_RKB1D) TYPE RSR_S_RKB1D
*" VALUE(I_PERIV) TYPE RRO01_S_RKB1F-PERIV
*" VALUE(I_T_VAR_RANGE) TYPE RRS0_T_VAR_RANGE
*" VALUE(I_STEP) TYPE I DEFAULT 0
*" EXPORTING
*" VALUE(E_T_RANGE) TYPE RSR_T_RANGESID
*" VALUE(E_MEEHT) LIKE RSZGLOBV-MEEHT
*" VALUE(E_MEFAC) LIKE RSZGLOBV-MEFAC
*" VALUE(E_WAERS) LIKE RSZGLOBV-WAERS
*" VALUE(E_WHFAC) LIKE RSZGLOBV-WHFAC
*" L_S_RANGE TYPE RSR_S_RANGESID
*" loc_var_range type rrrangeexit

example

CLEAR L_S_RANGE.
L_S_RANGE-LOW =
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.

**To Read data from an variable when single entry is available in the var that we
read.

READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = ' Var_Name'

**To Read data from an variable when Multiple entries available in the var that we
read.

LOOP AT i_t_var_range INTO loc_var_range


WHERE vnam = ' '.

CLEAR l_s_range.
l_s_range-low = loc_var_range-low.
l_s_range-high = loc_var_range-high.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range

endloop.

You might also like