2007 Jun 26 9:19 AM
Hi friends,
i am developing a report, and i need to create select-options fro that to get data. but i need to reffer a structure for creation of select-option. i.e
SELECT-OPTIONS :p_ordg for rksb1-aufgr.
here RKSB1 is structure. is it possible to create select option with refference to structure. other wise hoe to create it. give me some tips
Kumar.
Hello,
Do like this.
DATA: S_AUFGR TYPE AUFGR.
SELECT-OPTIONS :P_ORDG FOR S_AUFGR.
Vasanth
2007 Jun 26 9:21 AM
Hi
Declare any table which contains AUFGR and then in select-options give the table reference instead of rksb1.
Regards
Navneet
2007 Jun 26 9:24 AM
Hi,
You need to create that Strucutre using DATA statement or using TABLES statement before you can use it in FOR of SELECT-OPTIONS.
Regards,
Sesh
2007 Jun 26 9:24 AM
Hi,
You can give as below.It is working.
tables rksb1.
SELECT-OPTIONS :p_ordg for rksb1-aufgr.
2007 Jun 26 9:24 AM
Hi,
It is possible.
You would have to include this structure in your tables list.
TABLES: rksb1.
Regards,
Suruchi
2007 Jun 26 9:24 AM
Kumar,
You can use structure field also.We use the fields of structure /table to get the data type and legth of the field.
No ,problem...,,
Don't forget to reward if useful...
2007 Jun 26 9:28 AM
hi,
you canot use a strucure directly in a such a manner you have to use the refered table wheer the structure is used or the field is used
2007 Jun 26 9:36 AM
Hello,
Do like this.
DATA: S_AUFGR TYPE AUFGR.
SELECT-OPTIONS :P_ORDG FOR S_AUFGR.
Vasanth
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |