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

Problem in ALV List

Former Member
0 Likes
1,082

Hi,

When i'm executing the report in background it is displayed in a ALV list, problem is in some coloumns( mainly qty's) the first few digits are not being displayed .. Ex (*65000.) where it should be 3565000

gd_layout-colwidth_optimize = ''.

I want to fix the columns lengths. Some coloumns work fine. bt qty columns though written as fieldcatalog-outputlen = 25., only arnd 8 digits r displayed in report.. Any idea y???

Field catalog is written as follows.

fieldcatalog-fieldname = 'DMENGE'.

fieldcatalog-seltext_m = 'PO QTY'.

fieldcatalog-col_pos = 8.

fieldcatalog-outputlen = 25.

fieldcatalog-no_zero = 'X'.

fieldcatalog-edit = ''.

APPEND fieldcatalog TO fieldcatalog.

CLEAR fieldcatalog.

Hi,

When i'm executing the report in background it is displayed in a ALV list, problem is in some coloumns( mainly qty's) the first few digits are not being displayed .. Ex (*65000.) where it should be 3565000

gd_layout-colwidth_optimize = ''.

I want to fix the columns lengths. Some coloumns work fine. bt qty columns though written as fieldcatalog-outputlen = 25., only arnd 8 digits r displayed in report.. Any idea y???

Field catalog is written as follows.

fieldcatalog-fieldname = 'DMENGE'.

fieldcatalog-seltext_m = 'PO QTY'.

fieldcatalog-col_pos = 8.

fieldcatalog-outputlen = 25.

fieldcatalog-no_zero = 'X'.

fieldcatalog-edit = ''.

APPEND fieldcatalog TO fieldcatalog.

CLEAR fieldcatalog.

11 REPLIES 11
Read only

Former Member
0 Likes
1,050

Might be the widht of the output format u r giving is too short,

Increase the width of the output format and execute, hope this may solve ur problem.

Regards,

Sujatha.

Read only

0 Likes
1,050

U mean the line size? thrs enough width coz theres even blank space displayed on da right hand corner of the report

Read only

Former Member
0 Likes
1,050

Hi

Use the following code. This should solve the problem.

CONSTANTS: c_x TYPE c VALUE 'X'.

DATA: gs_layout TYPE slis_layout_alv.

FORM layout_build USING ls_layout TYPE slis_layout_alv.

ls_layout-colwidth_optimize = c_x.

ENDFORM. "layout_build

PERFORM layout_build USING gs_layout.

PLZ REWARD POINTS IF HELPFUL.

null

Read only

Former Member
0 Likes
1,050

Hi,

In layout set this

I_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.

Rgds,

Prakash

Read only

0 Likes
1,050

gd_layout-colwidth_optimize = ''.

I want to fix the coloumn length, so the statement given by u cnnot be used. If i use that in background last few columns are not been displayed.

Read only

former_member508729
Active Participant
0 Likes
1,050

Hi Keshini,

Just try to populate reference table name and reference field name.

Regards

Ashutosh

Reward points if helpful

Read only

0 Likes
1,050

Can u explain a bit more.. In my internal table for PO qty i have used,

dmenge LIKE mseg-menge, "Deliverd Quantity

Where exactly do u want me to specify the reference tables?

Thanks ..

Keshi

Read only

Former Member
0 Likes
1,050

HI Keshini

Plz use the code I have given above (by Vijay V Kamath)...This will solve the problem.

Reward points if helpful

Read only

0 Likes
1,050

Hi Thanks for ur reply..

But the problem is since i'm running the report in back ground if i use the code given by u, last few coloumns of the report will nt be displayed.. I tried it out..

So.. I neeeeeeed to fix the coloumn lenght,, problem is for some it is nottaking the length given by outputlen command in field catalog..

Any help?

Thanks

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,050

Hi,

fieldcatalog-SCRTEXT_L = 'Purchase Order Quantity'.

I think the output is 6 digits b'coz the PO qty is 6 digits.

I am not sure.Just try this.

Read only

0 Likes
1,050

Thanks for the reply.. No this doesn't work as well. Tried it just now