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

G_SET_GET_ALL_VALUES

Former Member
6,015

Please can any one tell me how to use the above FM.

I want to know what exact value is to be given for SETNR .

I am trying to fetch details for account group ie all account numbers assigned at different levels .

When i give the name of setid which i enter in transaction GS03 for the SETNR field FM gives me message " Account group does not exists" .

For class Field i am giving 0109 (account group)

what else need to be given ,or how differently am i supposed to send the data to the FM.

1 ACCEPTED SOLUTION
Read only

abdulazeez12
Active Contributor
2,910

Hi

You cannot use the setid from GS03 as SETNR. Instead use this function moduel first.

CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'

EXPORTING

shortname = gv_setname

IMPORTING

new_setid = gv_setid

EXCEPTIONS

no_set_found = 1

no_set_picked_from_popup = 2

wrong_class = 3

wrong_subclass = 4

table_field_not_found = 5

fields_dont_match = 6

set_is_empty = 7

formula_in_set = 8

set_is_dynamic = 9

OTHERS = 10.

Pass the set name from GS03 as gv_setname in above and get the ID from gv_setid. Then use this setid in ur functio nmodule.

Hope this helps...award points if helpful.

Shakir

Please can any one tell me how to use the above FM.

I want to know what exact value is to be given for SETNR .

I am trying to fetch details for account group ie all account numbers assigned at different levels .

When i give the name of setid which i enter in transaction GS03 for the SETNR field FM gives me message " Account group does not exists" .

For class Field i am giving 0109 (account group)

what else need to be given ,or how differently am i supposed to send the data to the FM.

1 REPLY 1
Read only

abdulazeez12
Active Contributor
2,911

Hi

You cannot use the setid from GS03 as SETNR. Instead use this function moduel first.

CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'

EXPORTING

shortname = gv_setname

IMPORTING

new_setid = gv_setid

EXCEPTIONS

no_set_found = 1

no_set_picked_from_popup = 2

wrong_class = 3

wrong_subclass = 4

table_field_not_found = 5

fields_dont_match = 6

set_is_empty = 7

formula_in_set = 8

set_is_dynamic = 9

OTHERS = 10.

Pass the set name from GS03 as gv_setname in above and get the ID from gv_setid. Then use this setid in ur functio nmodule.

Hope this helps...award points if helpful.

Shakir