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

Report calling

Former Member
0 Likes
1,350

Hi,

I have created a module pool program with single screen.

how can i call selection screen of some other program in this screen.

Thanx in advance

Vivek Gaur

14 REPLIES 14
Read only

Former Member
0 Likes
1,312

Hi Vivek

Try this in the PAI of your screen

SUBMIT <pgmname> VIA SELECTION-SCREEN.

Pushpraj

Read only

Former Member
0 Likes
1,312

Hi,

You can first create a transaction code for the other program with the selection-screen and then call the transaction from the module pool program in the PAI using the PF-status(for e.g execute) and using the statement CALL-TRANSACTION 'XXXX'.But you must define a PF-Status for the screen because the program must get alteast one user-command to execute PAI.

Hope it helps,

Thanks,

Sandeep.

Read only

0 Likes
1,312

I think i wasnt able 2 make my question clear.

actually i have a docking container on left hand side with some report names. What i want is wenever i select any report that report selection screen should appear at right hand side. How 2 achieve this.

Thanx

Read only

0 Likes
1,312

Hi

Did you try using subscreens?

Regards,

Jayanthi.K

Read only

0 Likes
1,312

actually selection screen is not a subscreen so we cannot call it here

Read only

0 Likes
1,312

Hi

check this thread:

Hope this helps

Regards,

Jayanthi.K

Read only

Former Member
0 Likes
1,312

Hi,

Use this


CALL-TRANSACTION 'T-code name'

Thanks

Arun

Read only

Former Member
0 Likes
1,312

Hi

The following module is in PAI. It goes to selection screen when I press a button.

MODULE USER_COMMAND_4000 INPUT.

OK_CODE = SY-UCOMM.

CASE OK_CODE.

WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.

LEAVE PROGRAM.

WHEN 'GO'.

IF RAD1 = 'X'.

CALL SCREEN 4001.

ELSE.

SUBMIT YSCM_REPORT AND RETURN. "am calling a report having selection screen

ENDIF.

ENDCASE.

ENDMODULE.

The AND RETURN addition allows me to return to screen after I am done with the selection screen.

Hope this helps

Regards,

Jayanthi.K

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,312

Hi,

You can use SUBMIT REPORT keyword for this, check this link:-

http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

Check this documentation for various SUBMIT REPORT options, its really helpful

Hope this solves your problem.

Thanks & Regards,

Tarun Gambhir

Read only

Former Member
0 Likes
1,312

Hi,

You can call a selection-screen of another program by -- SUBMIT <prog_name> VIA SELECTION-SCREEN . But in that case that selection-screen would not be coming in your defined screen .

Regards

Pinaki

Read only

Former Member
0 Likes
1,312

Hi,

In PAI you can use SUBMIT <Program> AND RETURN.

Regards,

Joan

Read only

Former Member
0 Likes
1,312

Hi,

EX:

CALL TRANSACTION 'SE16'.

Regards

Kiran

Edited by: Kiran Saka on Feb 6, 2009 10:07 AM

Read only

Former Member
0 Likes
1,312

Hello Vivek,

1. You have to create a transaction for the program you want to call using transaction SE93. The starting screen should be mentioned as 1000. You can call this transaction from your program using CALL TRANSACTION statement.

2.

DATA: bdcdata_wa TYPE bdcdata, 
bdcdata_tab TYPE TABLE OF bdcdata. 


CLEAR bdcdata_wa. 
bdcdata_wa-program = 'PRG1'. 
bdcdata_wa-dynpro = '1000'. 
bdcdata_wa-dynbegin = 'X'. 
APPEND bdcdata_wa TO bdcdata_tab. 

CALL TRANSACTION <TCODE> USING BDCDATA_TAB.

NOTE: TCODE IS THE TRANSACTION OF PRG1.

This will surely work.

Courtesy: Zahackson

Read only

Former Member
0 Likes
1,312

hi,

to call selection screen of called program

select-options: s_opt1,s_opt2.

SUBMIT <prog_name>VIA SELECTION-SCREEN

WITH <s_opt1> IN seltab1

WITH <s_opt2> IN seltab2

AND RETURN.

Hope this helps...

Regards,

Mdi.Deeba