Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using G_SET_GET_ALL_VALUES Method

Former Member
0 Likes
3,690

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,161

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.

3 REPLIES 3
Read only

Former Member
0 Likes
2,162

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.

Read only

0 Likes
2,161

I need to know the structure of the Internal table SET_VALUES

Read only

0 Likes
2,161

Hi Lilan,

The Structure of SET_VALUES is RGSB4.

Thanks,

Reward If Helpful.