Application Development and Automation 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: 
Read only

error in ALV report

Former Member
0 Likes
1,144

experts,

I am getting error while passing the given internal table to ALV grid display.

the error message is ' The apap program lines are wider than internal table'.

please help me.


TYPES: BEGIN OF i_output,
            vendcno LIKE mslb-lifnr,
            vendname LIKE lfa1-name1,
            vendcity     LIKE lfa1-ort01,
            matno LIKE mslb-matnr,
            plnt LIKE mseg-werks,
            valtype LIKE mbew-bwtar,
            stkqty     LIKE mseg-menge,
            totvalue LIKE s032-wbwbest,
            currency  LIKE mseg-waers,
        END OF i_output.

DATA it_output TYPE TABLE OF i_output WITH HEADER LINE. 

thanks & regards

Vijaykumer Reddy. S

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,117

TYPES: BEGIN OF i_output,

vendcno LIKE mslb-lifnr,

vendname LIKE lfa1-name1,

vendcity LIKE lfa1-ort01,

matno LIKE mslb-matnr,

plnt LIKE mseg-werks,

valtype LIKE mbew-bwtar,

stkqty LIKE mseg-menge,

totvalue LIKE s032-wbwbest,

currency LIKE mseg-waers,

END OF i_output.

DATA it_output TYPE<b> standardT</b> ABLE OF i_output WITH HEADER LINE.

and pass the fieldcat coeeectly.

example site

Simple ALV report

http://www.sapgenie.com/abap/controls/alvgrid.htm

http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox

ALV

1. Please give me general info on ALV.

http://www.sapfans.com/forums/viewtopic.php?t=58286

http://www.sapfans.com/forums/viewtopic.php?t=76490

http://www.sapfans.com/forums/viewtopic.php?t=20591

http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.

2. How do I program double click in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=11601

http://www.sapfans.com/forums/viewtopic.php?t=23010

3. How do I add subtotals (I have problem to add them)...

http://www.sapfans.com/forums/viewtopic.php?t=20386

http://www.sapfans.com/forums/viewtopic.php?t=85191

http://www.sapfans.com/forums/viewtopic.php?t=88401

http://www.sapfans.com/forums/viewtopic.php?t=17335

4. How to add list heading like top-of-page in ABAP lists?

http://www.sapfans.com/forums/viewtopic.php?t=58775

http://www.sapfans.com/forums/viewtopic.php?t=60550

http://www.sapfans.com/forums/viewtopic.php?t=16629

5. How to print page number / total number of pages X/XX in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)

6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.

http://www.sapfans.com/forums/viewtopic.php?t=64320

http://www.sapfans.com/forums/viewtopic.php?t=44477

7. How can I set the cell color in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=52107

8. How do I print a logo/graphics in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=81149

http://www.sapfans.com/forums/viewtopic.php?t=35498

http://www.sapfans.com/forums/viewtopic.php?t=5013

9. How do I create and use input-enabled fields in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=84933

http://www.sapfans.com/forums/viewtopic.php?t=69878

10. How can I use ALV for reports that are going to be run in background?

http://www.sapfans.com/forums/viewtopic.php?t=83243

http://www.sapfans.com/forums/viewtopic.php?t=19224

11. How can I display an icon in ALV? (Common requirement is traffic light icon).

http://www.sapfans.com/forums/viewtopic.php?t=79424

http://www.sapfans.com/forums/viewtopic.php?t=24512

12. How can I display a checkbox in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=88376

http://www.sapfans.com/forums/viewtopic.php?t=40968

http://www.sapfans.com/forums/viewtopic.php?t=6919

Go thru these programs they may help u to try on some hands on

ALV Demo program

BCALV_DEMO_HTML

BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode

BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode

BCALV_GRID_DEMO Simple ALV Control Call Demo Program

BCALV_TREE_DEMO Demo for ALV tree control

BCALV_TREE_SIMPLE_DEMO

BC_ALV_DEMO_HTML_D0100

experts,

I am getting error while passing the given internal table to ALV grid display.

the error message is ' The apap program lines are wider than internal table'.

please help me.


TYPES: BEGIN OF i_output,
            vendcno LIKE mslb-lifnr,
            vendname LIKE lfa1-name1,
            vendcity     LIKE lfa1-ort01,
            matno LIKE mslb-matnr,
            plnt LIKE mseg-werks,
            valtype LIKE mbew-bwtar,
            stkqty     LIKE mseg-menge,
            totvalue LIKE s032-wbwbest,
            currency  LIKE mseg-waers,
        END OF i_output.

DATA it_output TYPE TABLE OF i_output WITH HEADER LINE. 

thanks & regards

Vijaykumer Reddy. S

6 REPLIES 6
Read only

Former Member
0 Likes
1,118

TYPES: BEGIN OF i_output,

vendcno LIKE mslb-lifnr,

vendname LIKE lfa1-name1,

vendcity LIKE lfa1-ort01,

matno LIKE mslb-matnr,

plnt LIKE mseg-werks,

valtype LIKE mbew-bwtar,

stkqty LIKE mseg-menge,

totvalue LIKE s032-wbwbest,

currency LIKE mseg-waers,

END OF i_output.

DATA it_output TYPE<b> standardT</b> ABLE OF i_output WITH HEADER LINE.

and pass the fieldcat coeeectly.

example site

Simple ALV report

http://www.sapgenie.com/abap/controls/alvgrid.htm

http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox

ALV

1. Please give me general info on ALV.

http://www.sapfans.com/forums/viewtopic.php?t=58286

http://www.sapfans.com/forums/viewtopic.php?t=76490

http://www.sapfans.com/forums/viewtopic.php?t=20591

http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.

2. How do I program double click in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=11601

http://www.sapfans.com/forums/viewtopic.php?t=23010

3. How do I add subtotals (I have problem to add them)...

http://www.sapfans.com/forums/viewtopic.php?t=20386

http://www.sapfans.com/forums/viewtopic.php?t=85191

http://www.sapfans.com/forums/viewtopic.php?t=88401

http://www.sapfans.com/forums/viewtopic.php?t=17335

4. How to add list heading like top-of-page in ABAP lists?

http://www.sapfans.com/forums/viewtopic.php?t=58775

http://www.sapfans.com/forums/viewtopic.php?t=60550

http://www.sapfans.com/forums/viewtopic.php?t=16629

5. How to print page number / total number of pages X/XX in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)

6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.

http://www.sapfans.com/forums/viewtopic.php?t=64320

http://www.sapfans.com/forums/viewtopic.php?t=44477

7. How can I set the cell color in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=52107

8. How do I print a logo/graphics in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=81149

http://www.sapfans.com/forums/viewtopic.php?t=35498

http://www.sapfans.com/forums/viewtopic.php?t=5013

9. How do I create and use input-enabled fields in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=84933

http://www.sapfans.com/forums/viewtopic.php?t=69878

10. How can I use ALV for reports that are going to be run in background?

http://www.sapfans.com/forums/viewtopic.php?t=83243

http://www.sapfans.com/forums/viewtopic.php?t=19224

11. How can I display an icon in ALV? (Common requirement is traffic light icon).

http://www.sapfans.com/forums/viewtopic.php?t=79424

http://www.sapfans.com/forums/viewtopic.php?t=24512

12. How can I display a checkbox in ALV?

http://www.sapfans.com/forums/viewtopic.php?t=88376

http://www.sapfans.com/forums/viewtopic.php?t=40968

http://www.sapfans.com/forums/viewtopic.php?t=6919

Go thru these programs they may help u to try on some hands on

ALV Demo program

BCALV_DEMO_HTML

BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode

BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode

BCALV_GRID_DEMO Simple ALV Control Call Demo Program

BCALV_TREE_DEMO Demo for ALV tree control

BCALV_TREE_SIMPLE_DEMO

BC_ALV_DEMO_HTML_D0100

Read only

Former Member
0 Likes
1,117

Hi Reddy

use DATA it_output TYPE standard TABLE OF i_output WITH HEADER LINE.

reward points to all helpful answers

kiran.M

Read only

Former Member
0 Likes
1,117

Hi Reddy,

Change the declaration to

data: it_output <b>TYPE STANDARD TABLE of</b> i_output.

WITH HEADER LINE is not required, as STANDARD TABLE OF will be table with header line.

Best Regards,

Ram.

Read only

0 Likes
1,117

I changed the declaration as you specified

data: it_output TYPE STANDARD TABLE of i_output

but I am getting the same error.

Message was edited by:

vijaykumar reddy

Read only

Nawanandana
Active Contributor
0 Likes
1,117

hai

type-pools: slis.

TYPES: BEGIN OF i_output,

vendcno LIKE mslb-lifnr,

vendname LIKE lfa1-name1,

vendcity LIKE lfa1-ort01,

matno LIKE mslb-matnr,

plnt LIKE mseg-werks,

valtype LIKE mbew-bwtar,

stkqty LIKE mseg-menge,

totvalue LIKE s032-wbwbest,

currency LIKE mseg-waers,

END OF i_output.

data : it_output type standard table of i_output,

wa_output type i_output,

loop at it_output into wa_output.

....

....

endloop.

Read only

Former Member
0 Likes
1,117

Hi Vijaykumr,

This is a typical problem of LAV.

try increasing MIN_LINESIZE of layout which is passed to ALV.

WS_LAYOUT-MIN_LINESIZE = '120'. (default is 80)

Hope it will solve the problem.

Regards

Krishnendu