‎2008 Jun 24 3:37 AM
HI,
I am working on Interactive alv report, On alv screen i can click on one filed a popup screen come and it's editable and save to the database. I can do as many actions like that, everything looks good.
1. When click on back button ( <-- ) geen arrow, it's not going to slection screen directly. after 10 back clicks selection screen appears.i am using REUSE_ALV_GRID_DISPLAY 2 times. can i destroy the first screen. before calling 2nd time.
2. can we set the alv screen fileds length to 40 char, i defined the filed with 100 char. it displaying very long. can we limit the length of field in alv.
Thanks in advance.
Mike
‎2008 Jun 24 4:04 AM
Hi,
1. When click on back button ( <-- ) geen arrow, it's not going to slection screen directly. after 10 back clicks selection screen appears.i am using REUSE_ALV_GRID_DISPLAY 2 times. can i destroy the first screen. before calling 2nd time.
if you want main selection screen, use the leave to screen statement.
LEAVE TO SCREEN <next screen>.
set <next screen > = 0.
LEAVE TO SCREEN 0.
Ref
[http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab3635c111d1829f0000e829fbfe/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab3635c111d1829f0000e829fbfe/content.htm]
2. can we set the alv screen fileds length to 40 char, i defined the filed with 100 char. it displaying very long. can we limit the length of field in alv.
in the field catalog you define any one field in the following
seltext_l like dd03p-scrtext_l, " long key word
seltext_m like dd03p-scrtext_m, " middle key word
seltext_s like dd03p-scrtext_s, " short key word
outputlen like dd03p-outputlen,*
Reward if found helpful.
Regards,
SB
‎2008 Jun 24 5:16 AM
hi mike,
1) if your using the event user_command
then add the statemnt :
MOVE 'X' TO r_selfield-refresh .
or
put a button in application tool bar with fct code for example LEAVE
and write the following code
case sy-ucomm.
when 'LEAVE'.
SUBMIT sy-repid VIA SELECTION-SCREEN AND RETURN.
endcase.
2) in the layout pass
w_layout-colwidth_optimize = 'X'.
regards
prasanth