03-31-2009 4:35 AM
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.
04-01-2009 8:40 AM
Hi,
Check ou these links:
http://www.sapdb.info/abap-programs-pop-up-screens/
http://abaplovers.blogspot.com/2008/05/sap-abap-program-for-popup-screen.html
Regards,
Prashant.
03-31-2009 4:38 AM
03-31-2009 6:32 AM
03-31-2009 6:43 AM
Create a T code for the Program & use FM ABAP4_CALL_TRANSACTION u2013 Initiates a transaction in a separate window
Hope this helps...
04-01-2009 8:40 AM
Hi,
Check ou these links:
http://www.sapdb.info/abap-programs-pop-up-screens/
http://abaplovers.blogspot.com/2008/05/sap-abap-program-for-popup-screen.html
Regards,
Prashant.
05-06-2009 3:25 AM
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.