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 is the Difference between At Line selection and At user-command?

1159


How to convert normal function module to bapi?

1999


Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subarc after perform?

1013


What is pretty printer?

978


Explain what is sap script?

1072


What is an interactive report? What is the obvious difference of such report compared with classical type reports?

906


How can we create callable modules of program code within one abap/4 program?

1054


What are the types of the software component being deployed in the sap?

1031


How will you define posting procedures?

1312


What is your approach to find exit and BAdi?

1253


What is tcode se16. For what is it used. Explain briefly?

989


From Excel to ABAP - Is batch mode possible ?

1031


What is match code? : sap abap hr

1158


What is the difference b/t Session method and call transaction method ??

6081


What does an exec sql statement do in abap? What is the disadvantage of using it?

1175