alv

ALV refresh problem while navigating from user command

核能气质少年 提交于 2021-01-29 05:30:55
问题 I have 2 screens 7000 and 7001, 7000 screen contains one button when we click on it it has to navigate to the 7001 screen, but it was not working as expected. SCREEN 7000 also have some details to display as an alv. screen was navigating to screen 7001 but the data was not getting refresh. can any one help on it. I am using alv grid container. for both the screens i am using same alv grid Sample code: screen 7000 PAI: WHEN 'DISPLAY'. call SCREEN 7001. screen 7001 PBO: GET REFERENCE OF m

Read ALV changes after user input?

谁都会走 提交于 2020-12-08 02:22:47
问题 I've got a report which outputs the data of my internal table via an ALV grid. The output itself consists of some information and two check boxes for each row. The user can check these boxes if necessary and now I need to read the table back in order to know what boxes were checked. The corresponding rows will be processed differently afterwards depending on which of the two boxes got checked. I already tried the method get_actual_view , which I don't know how to use correct and the method

sap abap alv report fill gap between documents

元气小坏坏 提交于 2020-01-22 02:36:11
问题 I was trying to challenge myself to make an ALV report that displays all the data by company code. but some document number has a gap. I want to fill the gap between missing number For example: last index value: 20012 then next value is: 20014 How do I able to insert 20013 in the grid if the report is using all the data that exist in internal tables? Thanks. 回答1: This is just blind text typing, but I hope you are able to understand it ... should be quite simple. Dont expect complete code,

cl_salv_bs_runtime_info=>get_data_ref() returns no data

核能气质少年 提交于 2019-12-24 14:23:55
问题 I have this code, which works very nice for a lot of reports: if IV_SELECTION_SET_VARIANT is INITIAL. SUBMIT (IV_REPORT_NAME) WITH SELECTION-TABLE selection_table AND RETURN. ELSE. SUBMIT (IV_REPORT_NAME) WITH SELECTION-TABLE selection_table USING SELECTION-SET IV_SELECTION_SET_VARIANT AND RETURN. endif. FIELD-SYMBOLS <lt_data> TYPE ANY TABLE. FIELD-SYMBOLS <lt_data_line> TYPE ANY TABLE. DATA lr_data TYPE REF TO data. DATA lr_data_line TYPE REF TO data. DATA lr_data_descr TYPE REF TO cl_abap

Is there a setting that would let me display ALV Grid always as ALV List?

末鹿安然 提交于 2019-12-10 22:22:47
问题 I have a following issue. I would like to display an ALV Grid always as ALV list for my user. So instead of always doing that... ...I would like to set a variable or something in, for example, SU01 that would always show me the output as ALV list. Is there a trick that would allow me to do so? The ALV grid is presented from SAP standard transaction so I do not have control over the ABAP code under the hood. EDIT: I have a possibility to change layout. However the only options I have are SAP

Mark checkboxes in ALV output grid as selected

会有一股神秘感。 提交于 2019-12-10 20:24:02
问题 I am creating an ALV output grid using class cl_gui_alv_grid . One of the columns of the output table is defined as a checkbox by using the corresponding record of the fieldcatalog: ls_fcat-checkbox = 'X'. ls_fcat-edit = 'X'. For all the records of the column that contains the checkboxes, they are all set as unselected. My question is what logic can I implement in order that for some of the rows, the checkboxes to be set as selected when I display the ALV. 回答1: If you want to set the checkbox

Merging cells and cell formatting in ALV

蓝咒 提交于 2019-12-04 05:27:39
问题 We are trying to manipulate the alv grid class to get result like in Sap Agenda (SSC1 tcode) i.e. to merge columns and rows. We found that the class cl_calendar_control_schedule with the method display handles that and we are working to understand the content of this method and its parameters. We found that the internat table of lvc_t_data type handles horizontal and/or vertical merging of cells (one row of this Internal table for each cell), but I struggle to understand how to code cell

ABAP - ALV delete selected row

余生长醉 提交于 2019-12-02 19:01:14
问题 I'm new to abap and I did not found a solution on the internet, that worked for me. So. I have a table, that is displayed with alv. I made a custom button in the Toolbar. Whenever the button is pressed, I want to delete the selected row. Now there's just a message showing up (so I could see if the custom button is working). Here's my code: METHOD on_user_command. CASE e_salv_function. WHEN 'MYFUNC1'. MESSAGE i301(z_global) WITH 'Function 1'. *Right here the row should be deleted. WHEN

sap abap alv report fill gap between documents

时光毁灭记忆、已成空白 提交于 2019-12-02 08:33:46
I was trying to challenge myself to make an ALV report that displays all the data by company code. but some document number has a gap. I want to fill the gap between missing number For example: last index value: 20012 then next value is: 20014 How do I able to insert 20013 in the grid if the report is using all the data that exist in internal tables? Thanks. This is just blind text typing, but I hope you are able to understand it ... should be quite simple. Dont expect complete code, unless your are not even providing ANY code. DATA: lv_current type i, lv_next type i. SORT lt_internalTable by

Merging cells and cell formatting in ALV

二次信任 提交于 2019-12-02 07:01:03
We are trying to manipulate the alv grid class to get result like in Sap Agenda (SSC1 tcode) i.e. to merge columns and rows. We found that the class cl_calendar_control_schedule with the method display handles that and we are working to understand the content of this method and its parameters. We found that the internat table of lvc_t_data type handles horizontal and/or vertical merging of cells (one row of this Internal table for each cell), but I struggle to understand how to code cell styling, for example, if i want to wipe just the bottom border or left border. What is the style of