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: 

validating data from a SET

Former Member
0 Kudos

Hi everyone,

I have created a SET using transaction GS02.

It is created for the following fields:SKA1-saknr.

I also have an internal table having values for SKA1-saknr.

Now i have to validate whether the values present in the internal table are present in the SET.

But i don't know how to fetch values from the set..

Can anyone help me on this

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Look at this sdn Wiki [Reading Sets - GS01 - GS02 - GS03|https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/listpages-dirview.action&key=snippets&idstoexpand=9055&] and sdn Blog [Understanding Sets in SAP R/3|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5541] [original link is broken] [original link is broken] [original link is broken];

Regards

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

Look at this sdn Wiki [Reading Sets - GS01 - GS02 - GS03|https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/listpages-dirview.action&key=snippets&idstoexpand=9055&] and sdn Blog [Understanding Sets in SAP R/3|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5541] [original link is broken] [original link is broken] [original link is broken];

Regards

0 Kudos

Thanks a lot for your answer.

I did check the code.

But what should be the set class in my case

for input to the function module.

0 Kudos

In table SETCLS you can find the default values for classes, or from SETHEADER with your class name. (i suppose your set class may be 0000 generic sets, 0102 Cost element groups or 0109 Account groups)

Regards

former_member125931
Active Participant
0 Kudos

Hi,

Set parameter Id from your internal table like below.

set parameter id 'ZAD1' field itab-matnr.