2007 Jul 10 7:02 AM
Hi,
I need to use the following method. G_SET_GET_ALL_VALUES. But I'm not sure of the data type that it returns.
CALL FUNCTION 'G_SET_GET_ALL_VALUES'
EXPORTING
CLIENT = ' '
FORMULA_RETRIEVAL = ' '
LEVEL = 0
setnr = wa_itab_progrp-setname
VARIABLES_REPLACEMENT = ' '
TABLE = ' '
CLASS = ' '
NO_DESCRIPTIONS = 'X'
NO_RW_INFO = 'X'
DATE_FROM =
DATE_TO =
FIELDNAME = ' '
tables
set_values = ????????
EXCEPTIONS
SET_NOT_FOUND = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Can anyone please let me know what I should do at the SET_VALUES section.
Thanks
Lilan
2007 Jul 10 7:06 AM
Hi,
See the FM Documentation,
This function module determines all the values of a set or its subordinate sets. The required call parameter is the set ID (SETNR). The other parameters are optional:
FORMULA_RETRIEVAL: 'X' => The formulas in the set are also returned (default ' ' requires fewer database accesses)
LEVEL: The default value is 0 and means "expand all levels". Values other than 0 determine the level to which they are to be expanded
VARIABLES_REPLACEMENT: 'X' => The value variables in the set hierarchy are replaced by their default values (this means additional database accesses for each variable)
NO_DESCRIPTIONS: 'X' => The short descriptions of the sets and set lines are not read from the database. For performance reasons you should only set this parameter to ' ' if you need the texts
The values determined are returned to the internal table SET_VALUES.
Thanks.
2007 Jul 10 7:06 AM
Hi,
See the FM Documentation,
This function module determines all the values of a set or its subordinate sets. The required call parameter is the set ID (SETNR). The other parameters are optional:
FORMULA_RETRIEVAL: 'X' => The formulas in the set are also returned (default ' ' requires fewer database accesses)
LEVEL: The default value is 0 and means "expand all levels". Values other than 0 determine the level to which they are to be expanded
VARIABLES_REPLACEMENT: 'X' => The value variables in the set hierarchy are replaced by their default values (this means additional database accesses for each variable)
NO_DESCRIPTIONS: 'X' => The short descriptions of the sets and set lines are not read from the database. For performance reasons you should only set this parameter to ' ' if you need the texts
The values determined are returned to the internal table SET_VALUES.
Thanks.
2007 Jul 10 7:12 AM
I need to know the structure of the Internal table SET_VALUES
2007 Jul 10 7:20 AM
Hi Lilan,
The Structure of SET_VALUES is RGSB4.
Thanks,
Reward If Helpful.