‎2007 Apr 26 5:10 AM
hi experts,
Can you have two detail lists from the basic list at the same time?
If yes how and if no why?
thanx,
loki.
‎2007 Apr 26 5:19 AM
Hi,
Yes you can have..
for example if you click on the customer number you should get the customer details and if you click on the material tou should show the material quantites text etc..
This is an interactive report..
Example program
This is your grid FM..
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' Or grid display
EXPORTING
I_CALLBACK_PROGRAM = GT_REPID
:
I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND' " FORM NAME
:
:
IT_FIELDCAT = GT_FIELDCAT
.....................................
TABLES
T_OUTTAB = ITAB
...........................
FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
When '&IC1'.
if rs_selfield-fieldname = '<xustomer number>'
:
Write your code here..get the customer details
and use Grid FM to display//
:
endif.
if rs_selfield-fieldname = '<material>'
:
Write your code here..get the material details
and use Grid FM to display//
:
endif.
endcase.
ENDFORM.
Hope I am not wrong with your question
reward if useful..
regards,
nazeer
‎2007 Apr 26 5:19 AM
Hi Yogi,
what do you meany by detail list.
If you are talikng about secondary list, then you can generate 20 secondary list, but you cannot generate two list at the same time.
regards,
Navneeth.K
‎2007 Apr 26 5:19 AM
Hi,
Yes you can have..
for example if you click on the customer number you should get the customer details and if you click on the material tou should show the material quantites text etc..
This is an interactive report..
Example program
This is your grid FM..
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' Or grid display
EXPORTING
I_CALLBACK_PROGRAM = GT_REPID
:
I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND' " FORM NAME
:
:
IT_FIELDCAT = GT_FIELDCAT
.....................................
TABLES
T_OUTTAB = ITAB
...........................
FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
When '&IC1'.
if rs_selfield-fieldname = '<xustomer number>'
:
Write your code here..get the customer details
and use Grid FM to display//
:
endif.
if rs_selfield-fieldname = '<material>'
:
Write your code here..get the material details
and use Grid FM to display//
:
endif.
endcase.
ENDFORM.
Hope I am not wrong with your question
reward if useful..
regards,
nazeer
‎2007 Apr 26 5:32 AM
hi
good
yes you can
for the AT LINE SELECTION statement give different condition type,so that if you select the respective lines in your primary list it ll give you two different detail lists.
thanks
mrutyun^