REPORT ZALV_IDA_DEMO_LONG_TEXT.
"Data Declataion for ALV IDA and Class handler
DATA: LO_ADDITIONAL_CONDITION TYPE REF TO IF_SALV_IDA_CONDITION,
LO_CONDITION_FACTORY TYPE REF TO IF_SALV_IDA_CONDITION_FACTORY,
LS_PERSISTENCE_KEY TYPE IF_SALV_GUI_LAYOUT_PERSISTENCE=>YS_PERSISTENCE_KEY,
LR_DISP TYPE REF TO IF_SALV_GUI_TABLE_DISPLAY_OPT.
* LO_CALC_FLD TYPE REF TO ZCL_LONGTEXT.
DATA(LO_CALC_FLD) = NEW ZCL_LONGTEXT( ).
*Create 'ALV with IDA' for Core Data Services(CDS)
DATA(O_DATA) = CL_SALV_GUI_TABLE_IDA=>CREATE_FOR_CDS_VIEW(
IV_CDS_VIEW_NAME = 'ZPURCHASE_ORDER_CDS'
IO_CALC_FIELD_HANDLER = LO_CALC_FLD
).
*For Layout this is must be user coz it will enable layout button
DATA(L_GLOBAL_SAVE_ALLOWED) = ABAP_TRUE.
DATA(L_USER_SPECIFIC_SAVE_ALLOWED) = ABAP_TRUE.
LS_PERSISTENCE_KEY-REPORT_NAME = SY-REPID.
O_DATA->LAYOUT_PERSISTENCE( )->SET_PERSISTENCE_OPTIONS(
EXPORTING
IS_PERSISTENCE_KEY = LS_PERSISTENCE_KEY
I_GLOBAL_SAVE_ALLOWED = L_GLOBAL_SAVE_ALLOWED
I_USER_SPECIFIC_SAVE_ALLOWED = L_USER_SPECIFIC_SAVE_ALLOWED
).
*Display ALV IDA
O_DATA->FULLSCREEN( )->DISPLAY( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
5 | |
4 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |