Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

in the final display list how can i change rows to columns
and vice versa

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of the transport system and workbench organiser?

1091


What are the types of table fields in the sap abap?

1133


What do you do when the system crashes in the middle of a BDC batch session?

1165


What are local objects?

1092


What is the function of a domain?

1204


What are the problems in processing batch input sessions?

1036


How to upload data using catt ? : abap hr

1115


What is the difference between data elements and domains?

1088


How you attach search help to data element? : sap abap data dictionary

1113


If I want to execute a bdc program only in background not in foreground is there any option for this? : abap bdc

1056


What are the two ways of producing a list within a transaction?

1023


What is the t-code to display batch input sessions? : abap bdc

1174


List the various components of the enterprise structure in systems, applications, and products (sap) in human capital management (him)? : sap abap hr

940


What are the 3 types of function modules in sap?

1065


What statement will be found in an sap application program that implements a function module exit?

987