How to use select option from table TVARVC
How to use select option from table TVARVC
Sample code below :
TABLES: VBRK , TVARVC.
DATA: LV_DATA TYPE VBRK-FKART VALUE 'XYZ'.
DATA: LR_DIR_RANGE TYPE RANGE OF CHAR50.
SELECT SIGN
OPTI
LOW
HIGH
INTO TABLE LR_DIR_RANGE
FROM TVARVC
WHERE NAME = 'ZSD_BLOCK_BILLING' AND TYPE = 'S'.
IF ( LV_DATA IN LR_DIR_RANGE ) .
MESSAGE: 'You are not authorized to create bills' TYPE 'I'.
ELSE.
WRITE: 'HI'.
ENDIF.
No comments:
Post a Comment