Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

reports

Former Member
0 Likes
421

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
396

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

3 REPLIES 3
Read only

Former Member
0 Likes
396

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

Read only

Former Member
0 Likes
397

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

Read only

Former Member
0 Likes
396

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^