2014 Jan 07 6:40 AM
Hi experts,
I am trying to create a layout but when
1. click on setting->layout-> saving(disabled/greyed out), alternatively
2. when I click on change layout(icon) then no save button is active mode.
so how I can save the layout can you suggest please, See the screen shots.
Thank you!
Saquib
Hi experts,
I am trying to create a layout but when
1. click on setting->layout-> saving(disabled/greyed out), alternatively
2. when I click on change layout(icon) then no save button is active mode.
so how I can save the layout can you suggest please, See the screen shots.
Thank you!
Saquib
2014 Jan 07 6:48 AM
Hi Saquib,
have you checked, these fields are commented out, if yes, then it will be desabled, in your
REUSE_ALV_GRID_DISPLAY, make sure that this is not commented.
IS_LAYOUT = wa_layout
2014 Jan 07 6:56 AM
2014 Jan 07 7:07 AM
Hi Saquib,
why you have mentioned this as assumed answer, people will not take those questions marked
as assumed answers.
Please add this code to your program, and execute
DATA : S_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA : G_SAVE(1) TYPE C ,
G_EXIT(1) TYPE C ,
G_VARIANT LIKE DISVARIANT ,
GX_VARIANT LIKE DISVARIANT .
DATA : T_EVENTS TYPE SLIS_T_EVENT.
DATA : T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
and match with your code, what you have missed, then please let me know
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = S_LAYOUT
IT_FIELDCAT = T_FIELDCAT[]
IT_SORT = T_SORT[]
I_DEFAULT = 'X'
I_SAVE = G_SAVE
IS_VARIANT = G_VARIANT
IT_EVENTS = T_EVENTS[]
TABLES
T_OUTTAB = ITAB
* 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.
.
2014 Jan 07 7:00 AM
hi Saquib,
when you call the alv function using this two parameter, then will have 'SAVE' button.
I_SAVE = 'A'
IS_VARIANT = wa_variant
also you need define: wa_variant type disvariant.
regards,
Archer
2014 Jan 07 10:12 AM
Thank you Zhang,
No effect I've tried the same.Still field is greyed out.
2014 Jan 07 10:15 AM
Hi Saquib,
can you post your code, we will see whats the issue with it.
2014 Jan 07 11:00 AM
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = repid
i_internal_tabname = 'W_ZFI_VRMS'
i_inclname = repid
i_bypassing_buffer = 'X'
changing
ct_fieldcat = i_fieldcat.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = i_fieldcat
is_layout = layout
i_save = 'A'
tables
t_outtab = git_zfi_vrms.
2014 Jan 07 11:19 AM
Hi Saquib,
i am saying please post your whole program, then only we can execute and see the problem.
2014 Jan 07 11:36 AM
Hi Saquib,
once try as i am sujjesting you, please comment your REUSE_ALV_FIELDCATALOG_MERGE
portion, and see what i have written in my previous message for use of REUSE_ALV_GRID_DISPLAY.
You will get desired uotput, otherwise please send your full code.
2014 Jan 07 12:26 PM
Hi,
if I'll comment
REUSE_ALV_FIELDCATALOG_MERGE.
I have to change all my code so tell me another way.
Thanks,
Saquib
2014 Jan 07 12:30 PM
Hi Saquib,
without seeing what is the issue with your code, how could i tell you what is the problem.
So i am saying, that please post your entire code so that we will correct it, and let you
finish your job.