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

What are the organizational related infotypes? : abap hr

1195


Have you printed any report?

2176


Explain the different types of screen keywords?

1086


What are the Control levels in internal tables?

1099


Differentiate between ooabap and abap?

1250


What is the use of f4if_shlp_exit_example function module ? : sap abap data dictionary

1887


What are the types of subroutines? : abap modularization

1038


How can end-of-selection be used?

1148


What are table clusters?

1017


Type casting and error handling

1429


Difference between function group and function module?

1192


What is the difference between tables and structures?

1134


2)In production what is the user exit?

1975


Where can you find error log for call transaction? : abap bdc

1257


What do you mean by transparent tables in sap abap? : abap data dictionary

1048