2012 May 30 10:43 AM
Dear Friends,
i have only one fieldcatalog structure IT_FCAT.
I Developed an interactive report.
in first output screen i don't need some fields.. so i put wa_fcat-no_out = 'X'. and modified it_fcat.
this works fine.
i want all the fields in the second screen..
so i put wa_fcat-no_out = ' ' for the fields what i want in the second secondary screen.
but this is not working...?
Before posting this i serched for solution.. nothind match my query.
can anyone help me please.
2012 May 30 10:54 AM
Hi,
Instead of making NO_OUT = 'X' ,
why not you remove the lines altogether.
OR append extra line in field catalog only when creating second ALV.
If you are worried about 'POS', using MACRO makes your work much easier.
Regards,
ManuB
Dear Friends,
i have only one fieldcatalog structure IT_FCAT.
I Developed an interactive report.
in first output screen i don't need some fields.. so i put wa_fcat-no_out = 'X'. and modified it_fcat.
this works fine.
i want all the fields in the second screen..
so i put wa_fcat-no_out = ' ' for the fields what i want in the second secondary screen.
but this is not working...?
Before posting this i serched for solution.. nothind match my query.
can anyone help me please.
2012 May 30 10:49 AM
Hi,
Please attach code what you have written in second screen,,,,whether it is pop up or normal alv screen?
Thanks and regards
2012 May 30 11:08 AM
LOOP AT IT_FCAT INTO WA_FCAT.
CASE WA_FCAT-FIELDNAME.
WHEN 'SALE_NUM'.
WA_FCAT-NO_OUT = SPACE.
MODIFY IT_FCAT FROM WA_FCAT.
CLEAR WA_FCAT.
WHEN 'BILL_NUM'.
WA_FCAT-NO_OUT = ' '.
MODIFY IT_FCAT FROM WA_FCAT.
CLEAR WA_FCAT.
WHEN 'CHECK'.
WA_FCAT-NO_OUT = 'X'.
MODIFY IT_FCAT FROM WA_FCAT.
CLEAR WA_FCAT.
WHEN 'REG_NO'.
WA_FCAT-NO_OUT = 'X'.
MODIFY IT_FCAT FROM WA_FCAT.
CLEAR WA_FCAT.
WHEN 'UNITRATE'.
WA_FCAT-NO_OUT = 'X'.
MODIFY IT_FCAT FROM WA_FCAT.
CLEAR WA_FCAT.
ENDCASE.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = C_PROG
* i_callback_pf_status_set = 'PFSTATUS1'
* i_callback_user_command = 'USER_COMMAND1'
I_GRID_TITLE = 'Invoices & Sales Orders Generated List'
IS_LAYOUT = IS_LAYOUT
IT_FIELDCAT = IT_FCAT
* it_sort = it_sort
I_DEFAULT = 'X'
I_SAVE = 'A'
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = IT_MAIN1
2012 May 30 11:12 AM
Issue resolved...
appened those fields to it_fcat before second alv_display.
2012 May 30 10:54 AM
Hi,
Instead of making NO_OUT = 'X' ,
why not you remove the lines altogether.
OR append extra line in field catalog only when creating second ALV.
If you are worried about 'POS', using MACRO makes your work much easier.
Regards,
ManuB
2012 May 30 11:02 AM
If the obvious measures are already taken care, like checking field catalog before displaying the second alv, then you should check a wiki by Clemens on working with multiple alvs and their display variants.
http://wiki.sdn.sap.com/wiki/display/Snippets/Create+unique+handle+for+ALV+layout+(variant)
The ALV will not be able to distinguish which display is for which alv unless you pass a handle to the display variant. Hope this helps.
Thanks,
Shambu
2012 May 30 11:16 AM
I think so here there is no variant used & its only a field catalouge.
@OP - Could you please provide the details of code