Application Development 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: 

double click event on module pool.

Former Member
0 Kudos

Hi ,

friends i have field in my screen .On which on double click one report has to call .But the report has selection screen which has input field which is mandatory .

how i could supply value for this field to the report.

4 REPLIES 4

Former Member
0 Kudos

Hide it when you write the value and then use SET PARAMETER before calling the transaction.

Rob

Former Member
0 Kudos

Hi,

Use the submit statement.

Ex:

SUBMIT report1 USING SELECTION-SCREEN '1100'

WITH SELECTION-TABLE rspar_tab

WITH selcriterion1 BETWEEN 'H' AND 'K'

WITH selcriterion2 IN range_tab

AND RETURN.

Thanks,

Raju

Former Member
0 Kudos

if you are supplying value from your screen to report..

use,

SET PARAMETER ID 'GR1' FIELD output-vbeln.

and call the report..and in report in select options use memory id like this,

SELECT-OPTIONS s_vbeln FOR vbrk-vbeln NO INTERVALS MEMORY ID GR1.

here vbeln(doc number) is sent to the report from script from report..

please revert back if have any doubts,

reward points if it helps,

regards.

Former Member
0 Kudos

Hi Sandipan,

I had a similar requirement in our project.

You can use SET PARAMETER and GET PARAMETER for that.

You will have to create a push button in the screen and on clicking that push button,it will take to you to the selection screen of the report.

Before you write this code,go to SE93 and create a transaction.Enter the name of a transaction and click on create, a new po up window will open.Enter the short description and select the start object as PROGRAM AND SELECTION SCREEN(REPORT PROGRAM) and click on OK.After that another window would open.Here you will have to give the name of the report program that ypu are using and specify any screen number.Check all the checkboxes in GUI Support that you find in that screen and click on save and check it.

Use the following code in the PAI of the screen.

Here, PRINT is the function code of the push button.TM9 is the name of the memory id.Any name can be given here.ZPRINT09 is the transaction code associated with the report program

CASE SY-UCOMM.

when 'PRINT'.

SET PARAMETER ID 'TM9' FIELD ZTM09_EKKO-EBELN.

call transaction 'ZPRINT09'.

Now in the report program add this code to the select options line.

SELECT-OPTIONS s_vbeln FOR vbrk-vbeln NO INTERVALS MEMORY ID TM9.

Reward points if helpfull,

Regards,

Kashyap Ivaturi

Edited by: Kashyap Ivaturi on Jan 9, 2008 10:12 PM