‎2012 Jul 04 8:26 PM
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
‎2012 Jul 05 5:56 AM
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
‎2012 Jul 04 8:35 PM
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.
‎2012 Jul 04 8:42 PM
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
‎2012 Jul 04 9:02 PM
Here in GT_FINAL i am getting the data, while displaying in output records are missingWhat do you mean? Are you saying that you are selecting data after the call function?
Where is your select statement?
Manu.
‎2012 Jul 04 9:08 PM
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
‎2012 Jul 04 9:13 PM
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.
‎2012 Jul 04 9:23 PM
I am using the Variant when i create a tcode as a default. will it be a problem?
Regards,
Muralikrishna
‎2012 Jul 05 2:31 AM
‎2012 Jul 05 4:53 AM
‎2012 Jul 05 5:18 AM
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
‎2012 Jul 05 5:27 AM
‎2012 Jul 05 5:30 AM
Hi Rajdeep,
I think for text elements its not necessary in capitals. Before it worked.
Regards,
Murali
‎2012 Jul 05 5:56 AM
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
‎2012 Jul 05 6:27 AM
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
‎2012 Jul 05 6:31 AM
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
‎2012 Jul 05 6:41 AM
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
‎2012 Jul 05 7:08 AM
‎2012 Jul 05 7:19 AM
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
‎2012 Jul 05 7:28 AM
Hi,
SYSTEM_STATUS is a field in the field catalog right?
Put the code here for the Field assignment to FCAT.
Thanks,
Shambu
‎2012 Jul 05 7:33 AM
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
‎2012 Jul 05 7:45 AM
Hi Shambu,
Thank you for guidance. I did ALV Consistency and there were no Inconsistencies but still records are missing.
Thanks,
Murali
‎2012 Jul 05 7:49 AM
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
‎2012 Jul 05 8:00 AM
Hi Shambu,
Thank you very much. Problem resolved. Full points