ALV lines limit
Hi,
I'm using FM to show an ALV report, but report stops at line number 16.073, and the itab have 16.230 lines.
I didn't see any document regarding lines limit at ALV reports. Does anybody knows what happing?
Thanks!
Furlan
I just found the error...
In the itab, I had a field that started with ", and ALV object 'lost' data because that (don't ask me why...).
It was not a problem with ALV FM, but with ALV Grid object.
So, in my program, I wrote a routine to eliminate all " in all fields that starts with that char (please, don't judge me.)
That's it...
Furlan
Similar Messages
-
Get the Change log for ALV line items
Hello Experts,
I am using editable ALV table to display/change data. When user modifies data from ALV line items manually (direct entry), this change is recorded in get_context_change_log method of context node. Also in the screen I have one button, on click of this button I do some calculation for selected line items in action method and update the context node with new values. But with this second approach (button action) though values gets changed this is not recorded in to get_context_change_log of context node. I tried to use method add_context_attribute_change in button action method to add attribute changes to change log tabel but it's not adding entries to change log. Does method add_context_attribute_change only works with OVS search helps and freely programmed value helps? And is there any other way for capturing changes(done by using action method and not manually) for ALV line items?
Thanks & Regards
JayantHere is code:
METHOD.
This method is in component controller, which gets called from View Action method (on click * of button).
FIELD-SYMBOLS:<lfs> TYPE Data.
*Data Declaration
DATA lo_nd_cn_apc_item TYPE REF TO if_wd_context_node.
DATA lit_apc_item TYPE wd_this->elements_cn_apc_item.
DATA lo_el_cn_apc_item TYPE REF TO if_wd_context_element.
data: l_component type ref to if_wd_component,
l_context type ref to if_wd_context,
lfd_added type abap_bool.
CLEAR:lo_nd_cn_apc_item,lo_el_cn_apc_item.
navigate from <CONTEXT> to <CN_APC_ITEM> via lead selection
lo_nd_cn_apc_item = wd_context->get_child_node( name = wd_this->wdctx_cn_apc_item ).
REFRESH:lit_apc_item.
@TODO handle non existant child
IF lo_nd_cn_apc_item IS NOT INITIAL.
lo_nd_cn_apc_item->get_static_attributes_table( IMPORTING table = lit_apc_item ).
get element via lead selection
lo_el_cn_apc_item = lo_nd_cn_apc_item->get_element( ).
ENDIF.
l_component = wd_this->wd_get_api( ).
l_context = l_component->get_context( ).
Calculate Cost
LOOP AT lit_apc_item ASSIGNING <lfs>.
<lfs>-cal_amount = ( <lfs>-cost_percent * <lfs>-sec_amount ) / 100.
lfd_added = l_context->add_context_attribute_change(
element = lo_el_cn_apc_item
attribute_name = 'CAL_AMOUNT'
new_value = <lfs>-cal_amount
ENDLOOP.
Bind Table.
lo_nd_cn_apc_item->bind_table( new_items = lit_apc_item set_initial_elements = abap_true ).
ENDMETHOD. -
Region Source Line Limit?
I have a plsql anonymous block which returns html code for the page.This reproduces the same page multiple times with page breaks between each one (for printing purposes).
when the region source is more than 350 lines I cannot 'apply changes'. I just get redirected to 'page cannot be displayed' but if I reformat the code so it takes up fewer lines it apply's fine.
Is there a line limit on the region source? If so is it documented and why is there no error message for such cases?
Thanks
TomHello,
That's basically what Scott is telling him to do. Just store his code in a stored procedure in the database and that call the procedure from his region.
It's a very good way to get all your custom plsql code in one place instead of spread around your application.
Carl
Message was edited by:
Carl Backstrom -
Text with multiple lines limit each line to 10 digits
Im trying to create a Numeric Field with multiple lines and limit the character per line to 10
ideally I want the users to be able to paste in a 10 digit number similar to this:
0001234567
0001234568
0001234569
I can set my pattern to num{zzzzzzzzzz} but not sure how to allow multiple lines
Im using Adobe LC ES2 Verison 9.0
Thanks!better option is to use INCLUDE statement in SCRIPTS. its a script control command and you no need to use READ_TEXT and to loop it and send each line to script.
if you use the above INCLUDE control command, SAP will take care of printing total text of that Object.
here is the syntax :
<b>/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]</b>
here /: indicates its an Control command.
you have to use NAME, ID, LANGUAGE adn OBJECT here.
if you give these details in the Text editor of script layout,automatically data will be printed on the screen.
ex:
/: INCLUDE &EKKO-EBELN& OBJECT EKKO ID X LANGUAGE E
Hope you got the Idea.
<b>here is brief help about INCLUDE:</b>
Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.
and IF you are very specific about using READ_TEXT to display the contents,
then you have to LOOP that table and call the WRITE_FORM to print the line on the layout.
LOOP AT IT_TDLINES.
CALL FUNCTION 'WRITE_FORM'
ENDLOOP.
Regards
Srikanth
Message was edited by: Srikanth Kidambi -
Hi,
Iam using user command routine to select the selected field value from the alv-list. My requirement is
to get the all the selected line values. How it is possible.
rgds
p.kpHi paluri,
requirement is
to get the all the selected line values. How it is possible.
FOR THAT WE HAVE TO USE
CHECKBOXES
so that the user can select the rows.
1. To get a taste of it,
just copy paste this program.
2. It will display alv (t001)
and DOUBLE-CLICK ON any row.
It will TICK ALL THE CHECKBOXES.
3.
REPORT abc.
TYPE-POOLS : slis.
Data
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE t001.
DATA : flag tyPE c,
END OF itab.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : alvly TYPE slis_layout_alv.
Select Data
SELECT * FROM t001 INTO TABLE itab.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
Display
alvly-box_fieldname = 'FLAG'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = sy-repid "<-------Important
i_callback_user_command = 'ITAB_USER_COMMAND' "<------ Important
is_layout = alvly
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
CALL BACK FORM
FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
LOOP AT itab.
itab-flag = 'X'.
MODIFY itab.
ENDLOOP.
IMPORTANT.
WHATROW-REFRESH = 'X'.
ENDFORM. "ITAB_user_command
regards,
amit m. -
Hi,
We are displaying the trip details in a HTML page in ITS server.
It has been working fine until the upgrade to ECC 6.0.
Not when the trip has more line items (206 line items) the display gets
cutoff after 189. This number is not consistent, It varies depending on the
number of line items. There is no restriction on the number of pages.
So not sure why this is happening.We tried to increase the number of lines displayed in
a page , so as to display more line items, But even though those lines were displayed,
it was blank.
We tested the function Module that passes the line items in an internal table to the ITS ,
and that seems to be working fine. Not sure where else to check or how to fix this.
Any input is appreciated.
Thank you
LalithaHi Lalitha,
This is due to frame size is the limit. the table is displayed in a frame. and here you are facing the issue.
Try to increase the frame size in SAP GUI. This problem will get solved.
Regards
satya -
Hello,
I have to write a batch input for a transaction.
At a certain point I have an ALV grid and I have to select the first line of this grid.
How do I do this in batch input?
Thank you.Hello Andronic
I doubt that this is possible. Looking at eCATT scripting you will notice that you need to use GUI recording instead of the BDC-like TCD(Record) pattern in order to record controls like ALV grid, tree, etc.
Regards
Uwe -
Line limit for JTextArea - Urgent
Hi All,
I would like to have 80 character limit for each line displayed in JTextArea. The linewrap along with wordwrap have been enabled for JTextArea but that solves a part of the problem. The no. of characters that can be entered per line depends on the width of the component and the font size. For this component there is no upper limit for the total no. charaters that can be entered. Basically, it supports text editing feature(cut, copy, paste). One way it could have been done by fixing the width of component so that it could accomodate only 80 characters, but again the factors like screen resolution, font's advance width keeps changing. I tried with overriding insertString() of PlainDocument class, but didn't know how to wrap the characters after 80 position to next line if text is inserted in the middle of a line. At the same time the whole text needs a reformatiing. Same behavior is desirable while doing cut/paste operations.
A hint or sample code will be highly appreciated as it has been a long time I am looking to solve this problem.
Thanks
Ritwick.You are correct it is not easy to override the default behaviour of the JTextArea. So my suggestion is to use a monospaced font. The code would then be:
JTextArea.textArea = new JTextArea( "some text", 10, 80 );
textArea.setFont( new Font("monospaced", Font.PLAIN, 12) );
textArea.setLineWrap(true);
textArea.setWrapStyleWord(true);
JScrollPane scrollPane = new JScrollPane( textArea );
scrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );If using a monospaced font is not possible, then please explain why wrapping at exactly 80 characters is so important, maybe there is a different approach to take. -
DropList in for a new ALV Line
Hi
I got a ALV with no lines, but its allows me to create new lines, like in a maintenance view, but when I click on "new", the blank page, the new line does not got any values in the field I need the droplist.
How can i do this?
Its already workin when I got values in the table displayed.
Thanks,
Nico.-I need to, but cause the "output data" table sent to the ALV is empty, I cant assign the key to the field I use to link the droplist values table to the field I need.
When i do have values in the output table Im able to do this, but when its a new line I can not.
any idea?
Thanks. -
Hi everyone,
Does anyone know if there is a limit on the number of lines (rows) that can be used in a single HFM journal entry? i wasn't able to find information on this question in the HFM user guide.
Thanks,
BrianThere is not a limit according to Chris Barbieri and he knows his stuff => Journals in HFM 11.1.1.3 - error with Journals with many lines
Thank you,
Todd Rebner -
Dynamic SQL and 255 bytes per line limit
I would like to create a Dynamic SQL statement that is longer than 255 bytes. What do I need to do to embed a carriage return or something so that the resultant string is broken up into multiple lines?
Please ignore. This was a stupid question!
-
How to get the line information when double click the ALV line?
LOOP AT it_outr.
AT END OF vornr.
REFRESH it_out.
CLEAR it_out.
LOOP AT it_outt WHERE nplnr = it_outr-nplnr
AND vornr = it_outr-vornr.
MOVE-CORRESPONDING it_outt TO it_out.
APPEND it_out.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS'
i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND'
is_layout = ls_layo
it_fieldcat = lt_fcat
it_events = lt_evts1
is_print = ls_prnt
TABLES
t_outtab = it_out
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDAT.
When we double click a field, how do we get the line information with the field?
READ TABLE it_out INDEX rs_selfield-tabindex. is not worked, because the table it_out is changing.hi
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
* I_CALLBACK_PF_STATUS_SET = ' '
*I_CALLBACK_USER_COMMAND = 'USER_COMMAND'*
* I_CALLBACK_TOP_OF_PAGE = ''
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
I_BACKGROUND_ID = 'ALV_BACKGROUND'
* I_GRID_TITLE =
* I_GRID_SETTINGS =
IS_LAYOUT = LAYOUT
IT_FIELDCAT = RT_FIELDCAT
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER = 'X'
* IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT = G_VARIANT
IT_EVENTS = XT_EVENT
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_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.
CASE U_UCOMM.
WHEN '&IC1'.
READ TABLE IT_FINAL INDEX US_SELFIELD-TABINDEX INTO WA_FINAL.
CHECK SY-SUBRC EQ 0.
CASE US_SELFIELD-FIELDNAME.
WHEN 'VBELN'.
SET PARAMETER ID: 'VF' FIELD WA_FINAL-VBELN.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDCASE.
regard,
nawa -
How to color more than one cell in an ALV line ???
Hi SDN community,
I have the following problem:
I display an internal table with the 'REUSE_ALV_GRID_DISPLAY' function and want to color two cells, not only one cell.
Coloring one cell is no problem with...
cell_color1 TYPE lvc_t_scol, " cell color
DATA gs_cellcolor TYPE lvc_s_scol. " to color a cell
gs_cellcolor-fname = 'TNAME'.
gs_cellcolor-color-col = '6'.
gs_cellcolor-color-int = '1'.
gs_cellcolor-color-inv = '0'.
LOOP AT it_result.
IF it_result-trend EQ 'fast-growing'.
APPEND gs_cellcolor TO it_result-cell_color1.
IF sy-subrc EQ 0.
MODIFY it_result.
ENDIF.
ENDIF.
ENDLOOP.
and
ls_layout-coltab_fieldname = 'CELL_COLOR1'.
, the last one is in the layout building form.
My problem is that in
ls_layout-coltab_fieldname = 'CELL_COLOR1'.
, I can only type in ONE fieldname, but I would like to color more than one field/cell, you got my problem?
Thank you very much,
MariusI'm pretty sure that the color would be controlled by what records are appended to the CELL_COLOR1 table inside IT_RESULT. . So move the code inside the IF statement, and add addition logic.
LOOP AT it_result.
IF it_result-trend EQ 'fast-growing'.
gs_cellcolor-fname = 'TNAME'.
gs_cellcolor-color-col = '6'.
gs_cellcolor-color-int = '1'.
gs_cellcolor-color-inv = '0'.
APPEND gs_cellcolor TO it_result-cell_color1.
IF sy-subrc EQ 0.
MODIFY it_result.
ENDIF.
else.
gs_cellcolor-fname = 'OTHER_FIELD'.
gs_cellcolor-color-col = '5'.
gs_cellcolor-color-int = '1'.
gs_cellcolor-color-inv = '0'.
APPEND gs_cellcolor TO it_result-cell_color1.
IF sy-subrc EQ 0.
MODIFY it_result.
ENDIF.
ENDIF.
ENDLOOP.
Regards,
Rich Heilman -
Add a New line to ALV Grid control
Hi experts,
My requirement is after filling ALV grid, user will select a + button from the menu, I need to add a new line next to the selected ALV line (Like in a table control). Does it posible to do this? If can any body tell me how I can do this.
Regards,
Venkat.Hi Venkat...
I have tried this and it worked...
Just copy paste this program...
Note : U will have to create a new PF status for this... and give the Function code as given in my program... then only it will work...
*& Report Z_ALV_TRAINING_LIST_EVENTS
REPORT Z_ALV_TRAINING_LIST_EVENTS.
Tables *************
TABLES : T001.
Type Pools Used **********
TYPE-POOLS : SLIS.
Types Declared **********
Internal Tables Declare ************
DATA : IT_company TYPE STANDARD TABLE OF T001 INITIAL SIZE 0 WITH HEADER LINE,
IT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
it_alv_event type SLIS_T_EVENT.
Select Data ***********
start-of-selection.
SELECT * FROM T001 INTO TABLE IT_company.
Make Field Catalog ******
PERFORM MAKE_FIELD_CATALOG.
get evente *****
perform get_alv_events.
Display ALV *********
end-of-selection.
PERFORM DISPLAY_ALV_LIST.
*& Form make_field_catalog
text
--> p1 text
<-- p2 text
FORM MAKE_FIELD_CATALOG .
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME =
I_INTERNAL_TABNAME =
I_STRUCTURE_NAME = 'T001'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
CT_FIELDCAT = it_field_cat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
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. " make_field_catalog
*& Form display_alv_list
text
--> p1 text
<-- p2 text
FORM DISPLAY_ALV_LIST .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = 'SET_MY_PF_STATUS'
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME =
IS_LAYOUT = fl_layout
IT_FIELDCAT = it_field_cat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'X'
IS_VARIANT = '/TEST_VV'
IT_EVENTS = it_alv_event
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IR_SALV_LIST_ADAPTER =
IT_EXCEPT_QINFO =
I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = it_company
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_list
*& Form get_alv_events
text
--> p1 text
<-- p2 text
FORM get_alv_events .
data : wa type slis_alv_event.
wa-name = 'USER_COMMAND'.
wa-form = 'SUB_MY_PF_EVENT'.
append wa to it_alv_event.
ENDFORM. " get_alv_events
*& Form sub_my_pf_event
text
--> p1 text
<-- p2 text
FORM sub_my_pf_event using p_comm type sy-ucomm p_sEL_FIELD TYPE SLIS_SELFIELD.
data : wa type t001.
case p_comm.
when 'BACK'.
leave program.
when 'EXIT'.
leave program.
when 'NEW'.
clear wa.
insert wa into it_company[] index p_sel_field-tabindex.
PERFORM DISPLAY_ALV_LIST.
endcase.
ENDFORM. " sub_my_pf_event
*& Form SET_MY_PF_STATUS
text
--> p1 text
<-- p2 text
FORM SET_MY_PF_STATUS USING p_rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZALV_STATUS'.
ENDFORM. " SET_MY_PF_STATUS
Plz award points if this was helpful.... -
Hi,
I'm having a problem with a large group (about 2500 members). I first thougt this is a Directory Server Problem, but the Server Log is identical for small and large groups and does not show any problems. Additionally even if i put the group (with all members) into /etc/group, I still cant see the group!
When using vi to edit /etc/group it sais: line too long.
I figured out this to be a problem with the maximum line length defined in /usr/include/limits.h (LINE_MAX). The value set here is 2048, but my line is about 13K.
Could my explanation be correct? If so, how can I change the line limit to a bigger value?
thanks,
DavidHi Martin,
I might not have explaned enough the issue. I dont want to edit the file with vi, this was just what I experienced on the side. My real problem is, that Solaris doesnt know this group, even though it is in /etc/group!
id just shows the gid number, but not the group name:
bash-2.05$ id
uid=21345(ab123) gid=10000
bash-2.05$ groups
10000
getent doesnt know the group too:
bash-2.05$ getent group gp_everyone
[No output]
And this is constrained by the Solaris system as I think. Because of the limited line length. Do you know how to reconfigure Solaris 9 and 10 for a longer line length?
big thanks
--David
Maybe you are looking for
-
Failed to install Officejet Pro 8610 over Ethernet on Windows 8.1 64-bit
When attempting to run the installation of Officejet Pro 8610 using wired Ethernet connection the setup quickly lists the printer with correct IP and MAC address but when this is selected takes ages in the "installing" state and eventually displays a
-
Hi I am trying to install IPM 10gR3 as per the install.doc provided by the Oracle. I completed the setup of the first server. At one point, it ask me to Run IBPMServer /diag from the command prompt to start the Oracle I/PM services configured on this
-
Hello, does anyone know sample wlst scripts for creating domain for soa suite 11.1.1.4 on top of weblogic 10.3.4? I try to create a domain having a cluster with two managed servers in two linux machines. Any help appreciated. regards, Matti
-
Simple Question? Do I have a Caller ID capable Modem?
Modem Information: Modem Model: Jump Interface Type: I2S Modulation: V.92 Hardware Version: Version 1.0 Driver: MotorolaSM56K.kext (v1.3.2) Country: B5 (United States, Latin America) Above is my System Profiler Information. Ca
-
LDAP performance vs iPlanet LDAP?
We have 20,000 worklist users, and wonder if we should put them in the embedded WLS LDAP, or the iPlanet LDAP. Is there performance benchmark numbers to compare WLS LDAP with other 3rd party LDAP? Thanks.