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 difference between select statement and provide statement ? : abap hr

1074


How will you link form with the event driven in sap scripts?

991


What are the aggregate objects in data dictionary? : sap abap data dictionary

1194


What are the basic functions of database utility?

1191


What are two different ways to add fields to sap tables?

1025


where are the passwords for ITS stores?

2214


How do you Export a session ?

2056


State the system field for the current date?

1074


What is the significance of delivery class?

1049


How to convert normal function module to bapi?

2046


What is the collect statement?

1137


Business scenarios related to your objects( In my case -Rulebook and Pricing work flow)

1298


how to modify the standard method as per your requirement

1436


What are the functional areas, user groups? How does abap query work in relation to these?

1051


If your project is support project ? when is your implementation has completed ?

2124