SELECT-OPTIONS ( SAP ABAP Keyword) The statements SELECT-OPTIONS and PARAMETERS determine the technical interface and the user interface. The parameters and selection options you specify are displayed on the selection screen for the user to enter values (see also the addition NO-DISPLAY or SUBMIT without the addition VIA SELECTION-SCREEN.
How can I obtain the distinctive values from an internal table?
Now, I am making use of the Type and DELETE ADJACENT DUPLICATES to obtain what I require, but I would including to improve these kind of selections.
Jagger6,93377 platinum badges3838 gold badges6868 bronze badges
luisertaluiserta
3 Answers
SelSel1,58611 magic logo1717 silver precious metal badges1313 bronze badges
To get unique
EBELN
what you require to perform is merelyThat't all it takes.
JaggerJagger6,93377 platinum badges3838 magic badges6868 bronze badges
An choice would end up being to generate a cycle and select when the values change. For this to function as you mention, the table must become sorted by the industry you are searching for.
Another option is definitely to make use of the same but with a AT. In order for AT to function, the values from the industry select in AT announcement to the left of the table must end up being the same.
Joel OronaJoel Orona
Not the reply you're looking for? Browse other queries labeled for-loopabap or ask your very own query.
So i have this:
SELECT-OPTIONS grsaord FOR gvsalesorder OBLIGATORY.
then
PERFORM checkvalues Transforming grsaord.
![Select Select](https://saptechnical.com/Tutorials/ABAP/TableControl/Wizard39.jpg)
after that
FORM checkvalues CHANGING pgrsaord TYPE selopt.
What i also tried was rather of the structure
SELOPT
to use the Desk Typepiqseloptt
and rather of transferringgrsaord
to movegrsaord
.The provided edition of the code and the alternate result both in the exact same error information:
in PERFORM or CALL Functionality 'CHECKVALUES', the actual parameter 'GSSAORD' is certainly incompatible with the formal parameter 'PGRSAORD'.
Essentially i need to simply move a
vwegertSELECT-OPTIONS
table as a parameter and can'capital t manage to perform it.17.2k33 money badges3131 gold badges5454 bronze badges
vlad-ardeleanvlad-ardelean4,49999 platinum badges5858 magic badges9393 bronze badges
2 Answers
It'beds because selopt and piqseloptt are not really for vbak-vbeln. Low and Great are typed differently in those information types likened to your select option.
This should function
Bryan CainBryan Cain
If you are usually lazy (and have a great deal select options to complete) and you onyl need to complete them to a select statement within your FORM, you can miss the kind definition and specify you type with
Hans HohenfeldHans Hohenfeld