2006 Dec 19 5:05 AM
I need to display data in a internal table for editing in a screen.
you have a internal table with field name , data types and its value. I need to display data in a screen ( sceen painter not in a report) row by row in vrtical format.
The internal table's structure not fix. you can have any number of fields in the internal table.
Can you please send me code if it is available with you or send me any senario in SAP if any ...so that i can debug to extract the code..
it will be great help to me..
Sanjeev
I need to display data in a internal table for editing in a screen.
you have a internal table with field name , data types and its value. I need to display data in a screen ( sceen painter not in a report) row by row in vrtical format.
The internal table's structure not fix. you can have any number of fields in the internal table.
Can you please send me code if it is available with you or send me any senario in SAP if any ...so that i can debug to extract the code..
it will be great help to me..
Sanjeev
2006 Dec 19 6:13 AM
Hello Sanjeev
In your case I would recommend to use an editable ALV grid. Here is a possible scenario for development:
(1) Create your dynamic itab at runtime
(2) Make a dynamic SELECT to fetch the data
(3) Display the itab in an editable ALV grid
Regards
Uwe
2006 Dec 19 5:30 PM
Hi Uwe,
Thanks a lot for your quick response.
I need to display data vertically as below in editable format, is it possible with ALV option? please let me know.
e.g.
data will be display like this vertically...one row at one time vertically,
Airline
Flight Number
Flight date
Flight price
Airline Currency
Plane Type
Maximum capacity
Occupied econ.
Total
No of fields will change.
Is it possible using ALV grip or some other option. If yes can u please send me sample code. I would be great help to me.
Thanks,
Sanjeev
2006 Dec 19 6:07 PM
I think this can be done through step loop...but i don't know how
2006 Dec 19 7:04 AM
Hi Sanjeev ,
Hopw this will help you out.
Main Steps Required
The following are the main steps that are to be performed for defining a dynamic Alv
1. Defining a field catalog
2. Defining the dynamic table
3. Filling data into the table
4. Displaying ALV list
Defining a field catalog
The purpose of defining a field catalog first in case of Dynamic ALV is somewhat different than in case of normal ALV. In case of Dynamic ALV the field catalog is used to define the final internal table that will hold the data, and would be used to display the final output.
Þ It is very important to remember that the field catalog table be refreshed first, else it might give an error.
For example:
DATA: T_FIELDCAT TYPE LVC_T_FCAT,
L_FIELDCAT TYPE LVC_S_FCAT.
Refresh T_FIELDCAT.
CLEAR L_FIELDCAT.
L_FIELDCAT-FIELDNAME = 'LIFNR'.
L_FIELDCAT-INTTYPE = ''.
L_FIELDCAT-OUTPUTLEN = 10.
L_FIELDCAT-COLTEXT = TEXT-002.
APPEND L_FIELDCAT TO T_FIELDCAT.
Defining the dynamic table.
This table will hold the final data that needs to be displayed. To declare the table the following things need to be done.
Declare a field symbol
Displaying Alv List
This is done in the same way as we do for normal Alv. Call function REUSE_ALV_GRID_DISPLAY and pass the field catalog table in the export parameters and the dynamic table in Tables.
Reward points if it is helpful.
regards,
Kiran I
2006 Dec 19 5:29 PM
Thanks a lot for your quick response.
I need to display data vertically as below in editable format, is it possible with ALV option? please let me know.
e.g.
data will be display like this vertically...one row at one time vertically,
Airline
Flight Number
Flight date
Flight price
Airline Currency
Plane Type
Maximum capacity
Occupied econ.
Total
No of fields will change.
Is it possible using ALV grip or some other option. If yes can u please send me sample code. I would be great help to me.
Thanks,
Sanjeev
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |