ALV No of lists
Hi,
Can any one help me how to find the no of list in Interactive ALV..
When i get the last list, then i need to do some other things..
Thanks,
Jack.
Try using the event 'slis_ev_end_of_list' in the
FM 'REUSE_ALV_EVENTS_GET' and write the required code in the form.
Similar Messages
-
ME57 transaction with ALV scope of list
hi all!
i want to run ME57 transaction with ALV scope of list, but i'm facing a problem because if the list of requirements are bigger than 50 recors, the system says that 'Max. 50 requirements can be processed simultaneously' and I can not assign source of supply to all my list. I guess this will be customizable, because if I run it with A scope of list, there's no limit of processing.
how can I change that value in order to be able to process all the requirements of my list in ALV view?
thanks in advance.
FabianHello Fabian ,
This limit is maintained in class CL_REQUISITION_AGGREGATE_MM
attribute N_EDIT_MAXIMUM initial value 50.
If you want , this value can be changed using transaction code SE24. However , please take note that this change is considered a modificationto the SAP standard system and will no longer be supported.
I hope this information has been helpful.
Best Regards,
Frank -
ALV Scope of List but not ZME55
Our Technical team Created a Z Tranx copying ME55.
ME55 was executing successfully in ALV Scope of List but not ZME55.
Error: Scope of list ALV not defined (please correct)
Any suggestions.
Is it a functional issue or a technical one?
Thanks in advance.
RijuHi,
In customizing:
Scope of list (ALV) is maintained in the below path:
SPRO->Materials management ->Purchasing->Reporting->Scope of list-
>Define scope of list is maintained. Please mantain your Z transaction.
Best Regards,
Arminda Jack -
How to enable ALV like pull list (SAPLRMPU) ?
Hi all,
I'd sure like to get any piece of advice as to how the ALV like Pull List (this is SAPLRMPU in PP-REM) can be enabled with MF63...
The SAP implementation I'm working on shows Version 500 for the SAP_APPL component ; which should provide with an ALV like pull list.... whereas all I seem to get is the good old "basic list" style display.
The reason I'm fairly confident an ALV exists is because of OSS note # 135231 that I've come across ; and which seems to indicate an ALV like pull list should be available (even an interactively configurable one) as of rel 4.5A.
I can't find anything in customizing that would seem to help enabling the ALV style list.
Thanks in advance for any valuable tips.
Yacine.Okay... Got a feedback from SAP saying there was no such thing as an ALV like pull list in standard SAP.
-
ALV interactive + normal list
Hi All,
I need some help regarding to my requirement.
I do have ALV developed using classes.
When i click a button on the alv, a normal list (using write statements) has to be displayed.
When i do this, still alv is displayed and when i click the back button then the normal list is appearing.
i used leave screen and leave list-processing. still its not working
Regards
RajeshI think you are doing inside the ALV events. Instead of that you can use this approach, Have a Application toolbar button. when you click on that button handle that button in PAI.
check the sample. For this example create a screen and Create the status , with application toolbar button, Fcode as BUTTON. no need to create the Custom control on screen.
REPORT ztest_oo_a.
DATA: it_vbak TYPE vbak_t.
DATA: dock TYPE REF TO cl_gui_docking_container,
it_fcat TYPE lvc_t_fcat,
wa_fcat TYPE lvc_s_fcat,
grid TYPE REF TO cl_gui_alv_grid.
* CLASS lcl_handler DEFINITION
CLASS lcl_handler DEFINITION.
PUBLIC SECTION.
METHODS: hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING e_row_id e_column_id es_row_no.
ENDCLASS. "lcl_handler DEFINITION
* CLASS lcl_handler IMPLEMENTATION
CLASS lcl_handler IMPLEMENTATION.
METHOD hotspot_click.
DATA: row TYPE lvc_s_roid,
wa_vbak TYPE vbak.
row = es_row_no.
READ TABLE it_vbak INTO wa_vbak INDEX row-row_id.
SET PARAMETER ID 'AUN' FIELD wa_vbak-vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDMETHOD. "HOTSPOT_CLICK
ENDCLASS. "lcl_handler IMPLEMENTATION
START-OF-SELECTION.
DATA: obj TYPE REF TO lcl_handler.
CREATE OBJECT obj.
SELECT *
FROM vbak
INTO TABLE it_vbak
UP TO 20 ROWS.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SATR'.
CREATE OBJECT dock
EXPORTING
repid = sy-repid
dynnr = '100'
extension = '1500'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CREATE OBJECT grid EXPORTING i_parent = dock.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'VBAK'
CHANGING
ct_fieldcat = it_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
wa_fcat-hotspot = 'X'.
MODIFY it_fcat FROM wa_fcat INDEX 2 TRANSPORTING hotspot .
SET HANDLER obj->hotspot_click FOR grid.
CALL METHOD grid->set_table_for_first_display
* EXPORTING
* i_structure_name = 'VBAK'
CHANGING
it_outtab = it_vbak
it_fieldcatalog = it_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
when 'BUTTON'.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN sy-dynnr.
WRITE 'I am in Normal ALV Report'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT -
ALV hierarchical sequential list through oops
Hi ,
How to display ALV hierarchical sequential list through oops concept.
I looking for a method which is replacement for FM 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' in oops. if you can provide the sample code with that method will be really useful.
Thanks,
ShrinivasHi Shrinivas,
Check out these demo programs that are provided in SAP.
BALVHD01
BALVHD01_GROUP
<b>Reward points if this is helpful.</b>
Kiran -
Hide a field in ALV "Display Details" list
Hi Experts,
I have a requirment where I have to hide a field in ALV output, as well as in "Details display". I already put NO_OUT = 'X' for that field in fieldcatalog itself. It is hidden in the ALV output anyway, but the problem is when user selects a row and clicks on "Details" button in toolbar of ALV, it still displays the hidden fields of that ALV list with/out headings there.
Hope you understood my problem, pls respond soon if you hav any solution for this?
Thanks
SaravUse TECH = 'X' in field catalog.
Regards,
Raymond -
Why in ALV report, menu List- Export- Spreadsheet,must save in local file
Hello everyone .
in FBL3N (GL line item) that is ALV report.
i want to export data to excel.
but when i go to menu List->Export-> Spreadsheet
system want to save file in local drive.
when i use menu List->Export-> Spreadsheet
it's should show data in excel , not save file to local drive.
please advice.Hi,
Before savind into the system browse the location and rename the file for word format that means
After pressing spread sheet it show like this
Directory file:
File Name:
Encoding:
In the File name it will shows the default file name and you have change that document file>
Eg:- It shows .xls and you want as word format change as .doc
It shows .xls and you want as txt format change as .txt
It shows .txt format and you want as excel format change as ..xls
Hope this will understand
Regards,
Kanike -
Regarding ALV Report Otput List
Dear Friends,
I need to be edit the content of ALV output list,I am not using ABAP object oriented concepts. How can i perform this. Please suggest me to perform this, if possible please provide sample code on it.hi jotsona,
try this code
REPORT ZDEMO_ALVGRID_EDIT .
TABLES: ekko.
TYPE-POOLS: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
field_style TYPE lvc_t_styl, "FOR DISABLE
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: it_fieldcat TYPE lvc_t_fcat, "slis_t_fieldcat_alv WITH HEADER LINE,
wa_fieldcat TYPE lvc_s_fcat,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE lvc_s_layo, "slis_layout_alv,
gd_repid LIKE sy-repid.
*Start-of-selection.
START-OF-SELECTION.
PERFORM data_retrieval.
PERFORM set_specific_field_attributes.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
wa_fieldcat-fieldname = 'EBELN'.
wa_fieldcat-scrtext_m = 'Purchase Order'.
wa_fieldcat-col_pos = 0.
wa_fieldcat-outputlen = 10.
wa_fieldcat-emphasize = 'X'.
wa_fieldcat-key = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'EBELP'.
wa_fieldcat-scrtext_m = 'PO Item'.
wa_fieldcat-col_pos = 1.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'STATU'.
wa_fieldcat-scrtext_m = 'Status'.
wa_fieldcat-col_pos = 2.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'AEDAT'.
wa_fieldcat-scrtext_m = 'Item change date'.
wa_fieldcat-col_pos = 3.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MATNR'.
wa_fieldcat-scrtext_m = 'Material Number'.
wa_fieldcat-col_pos = 4.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MENGE'.
wa_fieldcat-scrtext_m = 'PO quantity'.
wa_fieldcat-col_pos = 5.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MEINS'.
wa_fieldcat-scrtext_m = 'Order Unit'.
wa_fieldcat-col_pos = 6.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'NETPR'.
wa_fieldcat-scrtext_m = 'Net Price'.
wa_fieldcat-edit = 'X'. "sets whole column to be editable
wa_fieldcat-col_pos = 7.
wa_fieldcat-outputlen = 15.
wa_fieldcat-datatype = 'CURR'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'PEINH'.
wa_fieldcat-scrtext_m = 'Price Unit'.
wa_fieldcat-col_pos = 8.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
FORM build_layout.
Set layout field for field attributes(i.e. input/output)
gd_layout-stylefname = 'FIELD_STYLE'.
gd_layout-zebra = 'X'.
ENDFORM. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
FORM display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
is_layout_lvc = gd_layout
it_fieldcat_lvc = it_fieldcat
i_save = 'X'
TABLES
t_outtab = it_ekko
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.
ENDFORM. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
UP TO 10 ROWS
FROM ekpo
INTO CORRESPONDING FIELDS OF TABLE it_ekko.
ENDFORM. " DATA_RETRIEVAL
*& Form set_specific_field_attributes
populate FIELD_STYLE table with specific field attributes
form set_specific_field_attributes .
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
Populate style variable (FIELD_STYLE) with style properties
The NETPR field/column has been set to editable in the fieldcatalog...
The following code sets it to be disabled(display only) if 'NETPR'
is gt than 10.
LOOP AT it_ekko INTO wa_ekko.
IF wa_ekko-netpr GT 10.
ls_stylerow-fieldname = 'NETPR' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
"set field to disabled
APPEND ls_stylerow TO wa_ekko-field_style.
MODIFY it_ekko FROM wa_ekko.
ENDIF.
ENDLOOP.
endform. " set_specific_field_attributes
thanks
anurag
Edited by: anurag srivastava on Dec 28, 2009 5:23 PM -
ALV object model - List download
H Experts,
I have used ALV object model to list display.
Also i have used class CL_ALV_COLUMNS_TABLE and its method set_long_text to set the column heading.
Now if i execute this report, long text is displayed properly in column heading.
But when i download this report output in spreadsheet, short text is displayed in column heading which is taken from the data element in DDIC.
Example:
I have declaed a column of type ABWTG.
I have set leng text as 'TEST'.
When i execute the report, column heading is displayed "TEST', which is as expected.
But when i download this report in spreadsheet, column heading is displayed as 'NUMBER' in spread sheet. While downloading column heading is taken from the data element for field ABWTG. But i want the long text 'TEST' to be displayed when the report output is downloaded.
Please suggest how to do it.
RegardsHi,
As per my understanding , it is displaying in excel based on ur ddic_output_length field.
only becoz of that field it will show the same header.
IF u will change the value at run time for this field then u will not get that issue,
I m also searching on the same issue.
Thanks
Rahul -
Hi,
I have made a screen with 2 ALV lists that is working perfect when running program in dialog. When I run program in batch only the first list is saved in spool file. Anyone who know how to be able to save both lists in spool file?
Regards,
Fredrik RagnarHi,
I feel this could be because of the spool size defined being different than the ALV size.
Change the Spool size using transaction SPAD. Use this spool size while calling the Background program ( in the SUBMIT statement ).
Pass Layout Parameter of type sy-paart in the SUBMIT statment where the Layout parameter would be created through SPAD.
Hope this solves the problem.
Best regards,
Prashant -
Hi!
Here we are trying to amend the ME55 Tranx and have created a Z Tranx ZME55. How do I get the output in ALV format?
Now, If I select ALV, it is saying:
u201CScope of list ALV not defined (please correct)
Message no. ME287u201D
Is it a Functional change or a Technical Change?
Regards,
Riju.The standard transaction checks whether a entry has been maintained in the table T16LB or T16LL etc... these tables store the Scope of List for particular functional areas. If it doesnt find an entry in these tables it gives an error message. ME 287..
Check for location in the Z Transaction and the values for its search. You can remove the check(Select Statement) and add new conditions as this is a Copy of standard transaction.
Hope this helps !!
Kanchan -
Hi Experts,
I am modifying ME5j Transaction : Program : RM06BKPS
I just copied the standard program into Zprogram.
I haven't made any changes just copied to Zprogram.
when i am executing Zprogram
i gave Prject definition :XXXXXXXX
and Scope of list = ALV
I am getting error : Scope of list ALV not defined (please correct)
I am getting output for scope of list : A,B,B1,B2,B3,C,C1,D,F,G,H,I,J
I want output in ALV format..
Pls guide me
Regards.
Vinay.Hi,
In customizing:
Scope of list (ALV) is maintained in the below path:
SPRO->Materials management ->Purchasing->Reporting->Scope of list-
>Define scope of list is maintained. Please mantain your Z transaction.
Best Regards,
Arminda Jack -
ALV grid to list processing and GUI status
Hi,
In a customized program the report output is in ALV grid which is interactive. On selecting a record and pressing SAVE button a BAPI runs in background. In order to display BAPI error message the leave to list-processing has been used. But GUI status is not working in list display and can not exit or go back from here to main selection screen.
when try to see program name & screen no it displays
Program - SAPLKKBL
Menu - STANDARD_FULLSCREEN
pls advise how to go back from list to main screen or ALV output.
thanks
anyaHi Anya,
As per my understanding, this is your prog flow:
*Main ALV Display.
*Select record.
*Click on Button SAVE.
*Handle Event.
*Call BAPI for processing based on selection.
Now at this point why dont you colect the error messages from the BAPI, and display it in a POP-UP ALV display?
You need not e very much worried about the PF status and all. Also this POP-UP will be placed on the MAIN ALV. So when you close the POP-UP it will come back to the main ALV.
By this when you press the BACK button of the main ALV, it will take you back to the selection scree.
Please let me know if i am missing something.
ags -
we can display a classical report as a basic list. can we display an alv as the secondary list for that classical report?
Hi,
u can display.
<b>example:</b>
TABLES:MARA.
DATA ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.
DATA JTAB LIKE MARA OCCURS 0 WITH HEADER LINE.
SEt PF-STATUS 'MENU'.
SELECT * FROM MARA INTO ITAB UP TO 25 ROWS.
write:/ itab-matnr.
hide itab-matnr.
ENDSELECT.
at LINE-SELECTION.
CASE sy-lsind.
WHEN 1.
refresh itab.
SELECT * FROM MARA INTO table JTAB UP TO 25 ROWS
where matnr = itab-matnr.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_STRUCTURE_NAME = 'MARA'
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = JTAB.
ENDCASE.
rgds,
bharat.
Maybe you are looking for
-
How can I use iMessage after deregistering my device?
I recently switched to WP8 and I realized I wasn't getting my text messages. After some research, I found that I need to deregister my device(s). That's fine and it seems to work. My question now is, how can I continue to use iMessage with my curr
-
I need run a validation on a data form. Basically if the difference between budget and actuals (both of which are on a separate form, but combined on a composite) exceeds 5% I want to highlight the cell in red, or bold the text or something. Can some
-
I have a HP DC7700 with the 0A54H motherboard. It came with 1GB DDR2 PC2-6400(400MHz) memory stick. I took 2 1GB DDR2 PC2-5300(333MHz) memory sticks out of an older PC and seems to work great. I was looking at the specs for the DC7700 and it says I
-
Unfortunately email has stopped
I keep getting an error that says "Unfortunately email has stopped" Sometimes I am not even in my email. I have 3 email accounts set up. One is corporate work email, a gmail, and a time warner cable email account. No I am having problems getting
-
Getting ready to install DW CS3. Will the new installation automatically pick up my sites and custom server behaviors, or do they all still have to be individually saved and then added back to the new software? Thanks.