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

former_member267445
Participant
0 Likes
2,944

Hi Gurus,

I am new to ABAP and I am working in ALV report. After data base selection and passing to final internal table, i am getting data. And i am passing the final internal table in FM grid display I am missing some records. Please light me on this issue

Thanks and Regards,

Muralikrishna

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,768

Hi,

Was this report working correctly before?

Before posting any question regarding ALV issues, always try to run a consistency check.

http://help.sap.com/saphelp_470/helpdata/en/d6/23253963143e6ae10000000a11402f/content.htm

Run the Consistency check and put a screen shot here.

Also, run program BALVBUFDEL to refresh the ALV buffers.

Thanks,

Shambu

22 REPLIES 22
Read only

Former Member
0 Likes
2,768

Hi,

How can we help you with so few details about your issue?

Please at least provide some code...

How are you selecting your data? If I guess well you are using REUSE_* function to process your ALV? If so how do you populate your fields catalog and other parameters? etc...

Kr,

Manu.

Read only

0 Likes
2,768

Hi Manu,

I am using REUSE_* FM only. I am populating fields catalog manually by appending. I will give field catalog details and FM

REFRESH gt_fieldcat.

DATA ls_fieldcat TYPE slis_fieldcat_alv.

CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'EDATU'.
ls_fieldcat-seltext_m = text-005. "'Cust. Due Date'.
ls_fieldcat-seltext_l = text-006. "'Customer Due Date'.
ls_fieldcat-outputlen = 10.
APPEND ls_fieldcat TO gt_fieldcat.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program                = lv_prog
i_callback_user_command           = 'USER_COMMAND'
i_callback_top_of_page            = 'TOP_OF_PAGE'
is_layout                         = gd_layout
it_fieldcat                       = gt_fieldcat
i_save                            = 'A'
* IS_VARIANT                        =
* IT_EVENTS =
TABLES
t_outtab                          = gt_final
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

Here in GT_FINAL i am getting the data, while displaying in output records are missing

Read only

0 Likes
2,768

Here in GT_FINAL i am getting the data, while displaying in output records are missing

What do you mean? Are you saying that you are selecting data after the call function?

Where is your select statement?

Manu.

Read only

0 Likes
2,768

Hi Mnu,

Actually it is lengthy program... I cant post here.. I m selecting the data before FM and i am populating the values into GT_FINAL table. In gt_final, i am having 50 records but in output report is displaying only 30 records

Regards,

Muralikrishna

Read only

0 Likes
2,768

It looks like some records are filtered out... Maybe you saved a default variant while using the ALV?

Check if some filtering is activated.

If not, I cannot see what can be wrong with such few details. Maybe you can check the program BCALV_FULLSCREEN_DEMO to see if you haven't miss something?

cheers,

Manu.

Read only

0 Likes
2,768

I am using the Variant when i create a tcode as a default. will it be a problem?

Regards,

Muralikrishna

Read only

0 Likes
2,768

Hi,

  Did you press "Page Down" on your ALV?

Read only

0 Likes
2,768

Hi Lee,

What does it mean?

Read only

0 Likes
2,768

Hi Muralikrishna,

ls_fieldcat-fieldname = 'EDATU'.

ls_fieldcat-seltext_m = TEXT-005. "'Cust. Due Date'.

ls_fieldcat-seltext_l = TEXT-006. "'Customer Due Date'.

ls_fieldcat-outputlen = 10.

fill the catalog in capital letter only.

Thanks,

Rajdeep

Read only

0 Likes
2,768

Post a screenshot. that will help others to analyse.

Read only

0 Likes
2,768

Hi Rajdeep,

I think for text elements its not necessary in capitals. Before it worked.

Regards,

Murali

Read only

Former Member
0 Likes
2,769

Hi,

Was this report working correctly before?

Before posting any question regarding ALV issues, always try to run a consistency check.

http://help.sap.com/saphelp_470/helpdata/en/d6/23253963143e6ae10000000a11402f/content.htm

Run the Consistency check and put a screen shot here.

Also, run program BALVBUFDEL to refresh the ALV buffers.

Thanks,

Shambu

Read only

0 Likes
2,768

Hi Shambu,

Thank you for your response. Report is working now also, but the problem is in output some records are missing. Let us assume final itab contains 50 records, in output only 30 records are displaying so i am missing 20 records.

Regards,

Muralikrishna

Read only

0 Likes
2,768

Hi Murali,

As I have told above, run report BALVBUFDEL first and check if this solves anything.

If not, run a consistency check on the ALV.

Thanks,

Shambu

Read only

0 Likes
2,768

Hi Shambu,

I ran the report BALVBUFDEL but still records are missing. I dont know how to run consistency check on ALV as I am new. Please give me steps

Thanks,

Murali

Read only

0 Likes
2,768

Hi Shambu,

I did it. I got the messages like Field SYSTEM_STATUS is tabular and is displayed as part of a table and Field SYSTEM_STATUS has a wrong value u in FCAT-INTTYPE

Thanks

Murali

Read only

0 Likes
2,768

Hi,

SYSTEM_STATUS is a field in the field catalog right?

Put the code here for the Field assignment to FCAT.

Thanks,

Shambu

Read only

0 Likes
2,768

Also, check the data element you have assigned to SYSTEM_STATUS in the  GT_FINAL table.

Looks like the type is tabular. Double click on the type and it will take you to a table, which I guess is wrong.

Give appropriate Data element there for SYSTEM_STATUS.

Thanks,

Shambu

Read only

0 Likes
2,768

Hi Shambu,

Thank you for guidance. I did ALV Consistency and there were no Inconsistencies but still records are missing.

Thanks,

Murali

Read only

0 Likes
2,768

Run BALVBUFDEL one more time.

If that doesnt solve, you can see options above for Filter, Sort Sequence and Output Table.

Check them and see if any thing is odd.

Thanks,

Shambu

Read only

0 Likes
2,768

Hi Shambu,

Thank you very much. Problem resolved. Full points