2012 Dec 14 5:23 PM
Hello Everyone,
My question is regarding the no_out(1) type c field in slis_fieldcat_main0 structure in SLIS pool.
Why using only this particular field only, it is possible to hide the value in the list and not using do_sum(1) type c
field in the above structure, whereas both are defined as the same type and are not associated with any particular operation.
2012 Dec 14 6:18 PM
Hi Dhruv,
These flags are associated with particular operations and have different meanings to the ALV.
The NO_OUT flag instructs the ALV not to display the field in the initial ALV, but the field will still be selectable if the user chooses to change the layout of the ALV with the "Change Layout..." button. If you want the field to be both hidden and not selectable in Change Layout, set the TECH flag for the field to true. This makes the field a technical-only field.
Data dictionary structure lvc_s_fcat has better self-documentation on these fields if you want to take a look at the short descriptions of fields in that structure.
Cheers,
Amy
2012 Dec 14 6:18 PM
Hi Dhruv,
These flags are associated with particular operations and have different meanings to the ALV.
The NO_OUT flag instructs the ALV not to display the field in the initial ALV, but the field will still be selectable if the user chooses to change the layout of the ALV with the "Change Layout..." button. If you want the field to be both hidden and not selectable in Change Layout, set the TECH flag for the field to true. This makes the field a technical-only field.
Data dictionary structure lvc_s_fcat has better self-documentation on these fields if you want to take a look at the short descriptions of fields in that structure.
Cheers,
Amy
2012 Dec 14 6:47 PM
Thanks for your prompt reply Amy.
So the description itself makes it to work or it is something in the back of the program that is coded but not visible?
2012 Dec 14 7:11 PM
Hi Dhruv,
The description of the field is not controlling anything, it is just documentation to let the develop know what the field does. The ALV object uses these flags to configure its display. There is a lot of information on the web for ALV if you'd like to learn more. A few links to get you started...
Cheers,
Amy
2013 Aug 22 10:57 AM
Hii
Former Member
In Alv List display or grid display , It's always better to display maximum field in alv.If u want any field not to be displayed in the alv then do the following steps
1>
METHOD catalog.
x_fieldcat-tabname = tablename.
x_fieldcat-fieldname = fieldname.
x_fieldcat-scrtext_m = text.
x_fieldcat-outputlen = len.
x_fieldcat-hotspot = hotspot.
x_fieldcat-no_out = no_out.
x_fieldcat-tech = tech.
x_fieldcat-do_sum = sum.
APPEND x_fieldcat TO t_fieldcat.
CLEAR x_fieldcat.
this is the field catalog
2>
CALL METHOD l_obj->catalog
* EXPORTING
* tablename = 'T_BOOKING'
* fieldname = 'SRNO' ->Fieldname which will not de displayed in the alv
* text = 'TOTAL PRICE'
* len = 15
* no_out = 'X' - > put this to 'X'
* tech = 'X' -> put this to 'X'
So in order to Completly not be displayed in alv
put thse two fileds flag as 'X'.
Regards
Syed
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |