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 |
explaine about factory calender.
if u have two internal table such as itab1 and itab2.in itab1 has four fields such as f1,f2,f3,f4 and in itab2 has two fields such as f1,f2.then how can u copy data from first internal table to second internal table.
A database table contains 3 fields(Student_no,Section,Total_marks).I want retrieve top 10 students from each section.Note:(Section contains data like A,B,C.Each section contains more than 10 students).
A Job is scheduled with Three steps. In the event the second step fails..what happens to the first and third step of the Job chain?
What are the different types of parameters? : abap modularization
What are control break statements?
19 Answers Cap Gemini, College School Exams Tests, Keane India Ltd, Wipro,
What is a development class? : abap data dictionary
BAPI is efficient than BDC? The question is with options, asking which of the following is true?
how 2 create the normal form by using functional module
What is Table maintenance generator?
what is a difference between user exist and coustmer exist?
A field-groups statement or an insert statement reverses storage space and transfers values. State true or false. : abap modularization