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

Poping up another report .

sachin_soni
Active Participant
0 Likes
1,138

hi all!

i know i must be repeating this question but i cud'nt find the relevant ans to my prob so here it is :

i have a grid ALV with the following three fields:

sales doc! material! material gp!

now what i want is when someone clicks on salesdoc(vbeln) another report shud open up from DB table-VBLB showing three fields:

VBELN,ABART,LABNK

thats it

waiting for solutions -descriptive

thanks

sachin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,093

Hi,

I guess SELFIELD-FIELDNAME may work instead of SELFIELD-SEL_TAB_FIELD.

Regards,

Kalpana

hi all!

i know i must be repeating this question but i cud'nt find the relevant ans to my prob so here it is :

i have a grid ALV with the following three fields:

sales doc! material! material gp!

now what i want is when someone clicks on salesdoc(vbeln) another report shud open up from DB table-VBLB showing three fields:

VBELN,ABART,LABNK

thats it

waiting for solutions -descriptive

thanks

sachin

8 REPLIES 8
Read only

Former Member
0 Likes
1,093

Make the field vbeln hot spot and Use the event at line selection, and code the logic in this event to select and display records from VBLB.

- Guru

Reward points for helpful answers

Read only

Former Member
0 Likes
1,093

Hi Sachin,

What do you mean another report? Do you mean another ALV or Report.

You can use Usercommand in FM reuse_alv_grid.

reagrds,

Kiran I

Read only

0 Likes
1,093

sorry for keeping my ques unclear i mean ALV grid

Read only

0 Likes
1,093

So you can go with 'i_callback_user_command ' input in FM REUSE_ALV_GRID_DISPLAY.

Check this program for usercommand BCALV_TEST_FULLSCREEN_EVENTS.

Reward Points if it is helpful

Regards,

Kiran I

Read only

santhosh_patil
Contributor
0 Likes
1,093

Hi sachin,

In the REUSE_ALV_GRID_DISPLAY -


FM

Set the parameter

i_callback_user_command = 'USER_COMMAND'

define a form as shown below

FORM user_command USING i_f_ucomm LIKE sy-ucomm

i_r_selfield TYPE slis_selfield.

1. i_f_ucomm will have the user -


command

2. use GET CURSOR FIELD <field which is selected> VALUE <value>.

3. Then u can have the logic to display VBLB fields...

(Use the GRID for this display also.)

endform.

note. When the user selects on the ALV grid... the control comes to the above FROM routine

-


santhosh

Read only

0 Likes
1,093

MAN STH IS NOT WORKIN CAN U CHK THIS OUT.;

FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM

SELFIELD TYPE SLIS_SELFIELD.

READ TABLE IVBAP INDEX SELFIELD-TABINDEX.

CHECK SY-SUBRC = 0.

CASE UCOMM.

WHEN '&IC1'.

CASE SELFIELD-SEL_TAB_FIELD.

WHEN 'IVBAP-VBELN'.

PERFORM ALV_DISPLAY2.

ENDCASE.

ENDCASE.

ENDFORM. "USER COMMAND

FORM ALV_DISPLAY2 .

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = SY-REPID

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

  • I_CALLBACK_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT = FIELDLAYOUT

IT_FIELDCAT = I_FIELDCAT1

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

I_SAVE = 'A'

  • IS_VARIANT =

IT_EVENTS = I_EVENTS[]

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • I_HTML_HEIGHT_TOP =

  • I_HTML_HEIGHT_END =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

T_OUTTAB = TMARC

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.

ENDFORM. " ALV_DISPLAY

Read only

0 Likes
1,093

Hi Sachin,

Put a break point on WHEN '&IC1' and check whether it is stoping there.

Check in debugging.

Regards,

Kiran I

Read only

Former Member
0 Likes
1,094

Hi,

I guess SELFIELD-FIELDNAME may work instead of SELFIELD-SEL_TAB_FIELD.

Regards,

Kalpana