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: 

Submit program and open in a new window

Former Member
0 Kudos

Hi,

I have a requirement that when I do submit, the new program called will open in a new window and leave the current window open. Is this possible? How?

Thanks.

1 ACCEPTED SOLUTION
5 REPLIES 5

former_member156446
Active Contributor
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Create a T code for the Program & use FM ABAP4_CALL_TRANSACTION u2013 Initiates a transaction in a separate window

Hope this helps...

Former Member
0 Kudos

Solved.

Create a new FM which have the exporting parameters as the fields needed in the selection screen of the program to be called. Include STARTING NEW TASK 'NONE' in the FM call. This will generate a new window.

  • Call FM to submit data to GR55 in a separate window

CALL FUNCTION 'Z_CRM_SUBMIT_GR55' STARTING NEW TASK 'NONE'

EXPORTING

db_prof = '000000000001'

program = lv_program

wbs = lv_wbs2

contr_area = '1000'

from_year = '1900'

to_year = lv_bdatj

period = lv_poper

Then inside the FM, submit the data to the program.

FUNCTION Z_CRM_SUBMIT_GR55.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(DB_PROF) TYPE TCNT-PROF_DB

*" VALUE(PROGRAM) TYPE TRDIR-NAME

*" VALUE(WBS) TYPE PRPS-POSID

*" VALUE(CONTR_AREA) TYPE KOKRS

*" VALUE(FROM_YEAR) TYPE GJAHR

*" VALUE(TO_YEAR) TYPE GJAHR

*" VALUE(PERIOD) TYPE POPER

*"----


SET PARAMETER ID 'PDB' FIELD db_prof.

SET PARAMETER ID 'CAC' FIELD contr_area.

SUBMIT (program)

WITH cn_pspnr-low = wbs

WITH $6-kokrs = contr_area

WITH $6-gjahv = from_year

WITH $6pyear = to_year

WITH $6-perbb = period

AND RETURN.

ENDFUNCTION.