Application Development 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: 

Set name & set description in G_SET_GET_ALL_VALUES:

former_member184739
Contributor
0 Kudos

Hello Experts,

I used FM G_SET_GET_ALL_VALUES to read All Values in a Set Hierarchy.Here in output table SET_VALUES how to identify set name & description

for each field?

Your help is highly appreciated.

Thanks

praba

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

You can loop out the table SET_VALUES and based on SETNR, read field SHORTNAME(set name) and get description from FM G_SET_DECRYPT_SETID by passing field SETNR.

Alternatively do a where used list on FM, you will get help in standards programs how to extract set name and description,

Hope this solves your issue.

regards,

Deepti

5 REPLIES 5

Former Member
0 Kudos

Hello,

You can loop out the table SET_VALUES and based on SETNR, read field SHORTNAME(set name) and get description from FM G_SET_DECRYPT_SETID by passing field SETNR.

Alternatively do a where used list on FM, you will get help in standards programs how to extract set name and description,

Hope this solves your issue.

regards,

Deepti

0 Kudos

Hello Deepti,

  Thanks for the quick turnaround.In the FM G_SET_GET_ALL_VALUES output table SET_VALUES  has  a field 'TITLE' .Is this the description? FM which you suggested G_SET_DECRYPT_SETID doesn't return set description.

Thanks

praba

0 Kudos

I think so. please cross check field TITLE'.

0 Kudos

Hi ,

       you can use the is fucntion module,

  K_HIERARCHY_TABLES_READ  , and get the data.

ex: pass the set id as

   CONCATENATE '0101' p_controliing area  p_costcenter INTO ld_setid.

0 Kudos

Hi Deepti,

That was correct.Thanks a lot.praba