Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to fill the select options from an internal table
dynamically ie can i use the loop in the initialization

Answer Posted / tamseel hashmi

TABLES : mara.

DATA : BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
END OF itab.

SELECT-OPTIONS: s_matnr FOR mara-matnr NO INTERVALS.

INITIALIZATION.

CLEAR : itab,
s_matnr.
REFRESH : itab,
s_matnr.

SELECT matnr
INTO TABLE itab
FROM mara
WHERE meins EQ 'CS'.

* fill select option.
LOOP AT itab.
s_matnr-low = itab-matnr.
s_matnr-sign = 'I'.
s_matnr-option = 'EQ'.

APPEND s_matnr.
ENDLOOP.

start-of-selection.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any 1 having notes on SAP-ABAP certification, or even if any 1 could provide the url for getting notes on SAP-ABAP certification, would be appreciated.

2380


How do you display a data in a detail list?

979


How to eliminate duplicate entries in internal tables?

1146


Why bapi need then bdc ? : abap bdc

1099


Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs

2474


What are the aggregate objects in the dictionary? : abap data dictionary

1160


WHAT ARE THE INPUT PARAMETERS TO BE PASSED FOR THE BAPIS 'BAPI_CUSTMATINFO_GETDETAILM' AND 'BAPI_CUSTMATINFO_GETLIST'

2238


What is asap methodology? : sap abap hr

1094


How to combine multiple billing into one RV document ( Step by Step)?

1956


How do you execute the payroll

2305


Explain what are interactive reports?

1054


What are table clusters?

1013


What is the difference between call transaction and session method? : abap bdc

1214


Explain the structure of a bdc sessions?

991


What is the lock object?

1072