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

How do I read a SET?

Former Member
0 Likes
4,792

Hi,

I need check if a value is in a SET (tcode GS03). Anyone know how do I do this?

Thanks,

Charles Oliveira

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,885

Look at FM G_SET_TREE_IMPORT.

Rob

6 REPLIES 6
Read only

Former Member
0 Likes
1,886

Look at FM G_SET_TREE_IMPORT.

Rob

Read only

0 Likes
1,885

Hi, what I pass to import parameter SETID?

I do pass the same name that a use in GS03, but it return exception SET_NOT_FOUND.

Thank you.

Read only

0 Likes
1,885

If you debug GS03, you'll see that it calls a number of other FMs before this to set things up.

Rob

Read only

Former Member
0 Likes
1,885

Do you want solution for code? Try this FM

CY_GET_SET_VALUES_NEW. If you are asking how to use GS03 then keep on double clicking on the set.

Read only

0 Likes
1,885

Hi,

I had a set called ZFI_DOCS_VAL.

If I enter in transaction GS03 and pass this set name it show me some values. I want know how do I get these values in abap report.

I think that it's via a FM, but I don´t remember which one.

Read only

Former Member
0 Likes
1,885

It works this way:

Call the function 'G_SET_GET_ID_FROM_NAME' exporting the set name that is used in GS03 to view the set values. And then call the function 'G_SET_GET_ALL_VALUES' exporting the set id imported above.

If there´s a more proper way to do this, let me know.

Thank you all.

Best regards,

Charles Oliveira