Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Have data in field symbol need to display selected column in ALV

0 Kudos
615

Hi Gurus,

I got the requirement to develop a custom report using standard report (J3RFLVMOBVEDH) output.

Custom report going to have only two columns material group description and their closing balance value. and at the bottom of the report need to display totalof opening balance, receipt, issue, closing balance as shown below,

To do this I used SUBMIT and kept standard report output into field symbol. now from field symbol how to display only selected columns at the output and how to add entire column data to show opening balance, receipt issue and closing balance values as shown above.

By passing material group into T023-MATKL I need to fetch material group description(WGBEZ)

3 REPLIES 3

VXLozano
Active Contributor
0 Kudos
529

Debug your program with a break-point after the SUBMIT. Then double-click on your field-symbol and check it's structure.

Work your way from there: create a data type (TYPES or SE11, your choice) for your field-symbol (I assume you have it as ANY), and then use your FS as an internal table to collect the data, sort it and create a display for it.

Sandra_Rossi
Active Contributor
529

I don't answer your question, but just a remark about ABAP semantics: a field symbol doesn't contain anything, there's no data in a field symbol; a field symbol points to a Data Object (i.e. only Data Objects contain data), or points to nothing.

former_member736527
Active Participant
0 Kudos
529

You will need to create a custom structure in your ABAP report, then move corresponding from your field symbol to the ABAP structures. To get the totals you can loop over the table and do simple addition.