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

variables using "sets"

Former Member
0 Likes
1,435

Hello,

I need some help about how to do the following: in my abap program I need to access a set of customers. This set of customers can be changed in the future in order to add or remove customers.

Any idea about how to do using a standard functionality of SAP? I do not want to create any Z table. Is there something like "sets" in SAP? Functional team has told me to store this information as variables using "sets" which will give the ability to add more such Customers when required.

Thanks

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,015

hi Alberto,

sets are created in tcode GS01.

hope this helps

ec

Hello,

I need some help about how to do the following: in my abap program I need to access a set of customers. This set of customers can be changed in the future in order to add or remove customers.

Any idea about how to do using a standard functionality of SAP? I do not want to create any Z table. Is there something like "sets" in SAP? Functional team has told me to store this information as variables using "sets" which will give the ability to add more such Customers when required.

Thanks

3 REPLIES 3
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,016

hi Alberto,

sets are created in tcode GS01.

hope this helps

ec

Read only

Former Member
0 Likes
1,015

Set related transactions are GS01/ GS02/ GS03

Please refer https://wiki.sdn.sap.com/wiki/x/8dQ

Best Regards,

Arun

Read only

Former Member
0 Likes
1,015

You can maintain Sets via GS01/GS02 transaction.

1. Go to GS01 to create a new set.

2. Give a proper name for the Set Name, Provide the Table Name as KNA1.

3. On pressing Enter it will ask for the fieldname. Give it as KUNNR.

4. On pressing Enter, you will get into the maintenance screen.

5. Maintain the values and press Save button to save the set.

To access the values maintain thru program,

1. First get the SET ID using the FM G_SET_GET_ID_FROM_NAME.

2. Using the SET ID get the values maintained in the set using FM

G_SET_TREE_IMPORT.

Hope this helps.

Reward points for all helpful answers.

Thanks,

Balaji