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 |
What is collect statement?explain with example?
what is a package is SAP
What is the function module for INDIAN PAYROLL to read table cluster for given cluster table and sequence number?
hi i am prasoona completed b.tech in 2007...righr now i got trained in SAP-ABAP...im trying on 2.5yrs exp..whay sort of questions cpmanies may ask for..plz help me who were working on ABAP at present... thanking you.
Can we create a data element without domain?
How can you call a subroutine which is located in program A from program B?
1 . how do u design technical documentation in abap ? 2 . what u currently devloped in sap abap ?
How will you insert record in a sorted table
how is data transported from module to program?
What is the Comparison between Class and Function Module in Data Point of View?
how to print only one line item at every page in smart forms in main window .for ex for sales order i will get so many items i need to display only at one page like 1st line at one page and second line at 2nd page .pls answer itttt.
If suppose There are 10 records in flat file then how many times BDC_open_group, BDC_INSERT, BDC_CLOSE_group executed?