in the final display list how can i change rows to columns
and vice versa
Answer / vrushali
This is possible using dynamic internal table.
Declaration
DATA : IFCAT_TAB TYPE LVC_T_FCAT,
FCAT_TAB TYPE LVC_S_FCAT.
DATA : TLINS TYPE I.
FIELD-SYMBOLS : <LIST> TYPE TABLE, <L_LINE> TYPE ANY.
FIELD-SYMBOLS : <FVAL> TYPE ANY, <FPOV> TYPE ANY,
<TFVAL> TYPE ANY.
DATA : IDATA TYPE REF TO DATA,
NEW_LINE TYPE REF TO DATA.
LOOP AT ALV_FLDCAT_T INTO ALV_FLDCAT.
MOVE-CORRESPONDING ALV_FLDCAT TO FCAT_TAB.
APPEND FCAT_TAB TO IFCAT_TAB.
ENDLOOP.
After creating normal alv field catalogue we can add rows
info as column....
DELETE ADJACENT DUPLICATES FROM IFCAT_TAB COMPARING
FIELDNAME.
SORT IFCAT_TAB BY COL_POS ASCENDING. "FIELDNAME
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IFCAT_TAB
IMPORTING
EP_TABLE = IDATA.
ASSIGN IDATA->* TO <LIST>.
CREATE DATA NEW_LINE LIKE LINE OF <LIST>.
ASSIGN NEW_LINE->* TO <L_LINE>.
Is This Answer Correct ? | 2 Yes | 0 No |
How we can assign the value of field in select-options to the text-field in dialog module?
How do you check it out whether the Logo is added or not in your forms?
Explain what is an rfc?
how to transfer smartforms?
how many ways to debug the script and can we debug the smartform if yes how can we debug
What is the difference of update types in call transaction method ? : abap bdc
What is the use of table control in bdc is it same in module pool table control? : abap bdc
What are the three ways for searching for Enhancements ?
In sapscript when u set debugger mode on from which window it will start debugging .My sapscript has header window,logo window,address window,main and footer window.so from which window it will start debugging??
why we call smartform as a client independent? (as we are able to retrive data from any client dependent d/b table in smartforms. )
What does the ‘suppress dialog’ do?
How to insert a line into abap internal tables?