2008 Jan 11 11:50 AM
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.
2008 Jan 11 12:00 PM
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.
2008 Jan 11 12:00 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |