10-14-2010 7:39 AM
I have written below test program
REPORT YTEST_DHARM2.
DATA: lv_idoc TYPE edidc-docnum.
lv_idoc = '0000000000263057'.
SET PARAMETER ID 'DCN' FIELD lv_idoc.
CALL TRANSACTION 'WE19'AND SKIP FIRST SCREEN.
Question : The above program is taking me to the WE19 screen but it is not skipping the first screen.
Can you please help me out.
Thanks,
Gayatri.
10-14-2010 8:31 AM
Hi,
Call transaction and skip first screen will work when you can press enter key to take you to the next screen. To make it work,
you have to record the transaction the first screen of the transaction
CALL TRANSACTION 'WE19' USING bdcdata.
Hope it helps.
Sujay
Edited by: Sujay Venkateswaran Krishnakumar on Oct 14, 2010 1:01 PM
10-14-2010 12:04 PM
Hi,
Tcode we19 is a Tcode.So try to use submit program "SAPMSED7" VIA SELECTION-SCREEN AND RETURN.
Thanks,
AMS
10-14-2010 12:22 PM
There are two conditions that must be fulfilled to execute a AND SKIP FIRST SCREEN ([check online documentation|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION.htm#&ABAP_ADDITION_1@1@])
- For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number.
- All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters
Alas, WE19 first dynpro is "10" and next screen is "10", so first screen is not skipped (if fact it is not displayed, and then next screen is displayed, same screen here)
So use a [CALL TRANSACTION USIND lt_bdc|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION.htm#&ABAP_ADDITION_2@2@] (there are already many threads and wiki on this subject, like [Batch Input FAQ|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-IsitpossibletosimulateANDSKIPFIRSTSCREENusingBDC%3F], so use the search tool)
Regards,
Raymond