04-20-2009 2:48 PM
Hello,
I want to call a particular screen of a transaction B from another program A. How is it possible?
I am having the report program A. While clicking the output of the program A, it should call the transaction VA03 and go to the particular screen "Text Description" (that is not the first screen or second)
Regards,
Lijo John
04-20-2009 2:51 PM
Write a BDC (Upto the screen you want ) and use it in a call transaction
a®
04-20-2009 2:51 PM
Write a BDC (Upto the screen you want ) and use it in a call transaction
a®
04-20-2009 2:53 PM
Hi Lijo,
YOu have to do a partial BDC to the transaction VA03, providing all the data that is required t get to the screen you want and use the statement
Call transaction 'VA03' using it_bdcdata mode 'E'... (IT_BDCDATA should have the information that is necessary to fill in the screens of VA03.)
Regards,
Ravi Kanth Talagana
04-21-2009 7:05 AM
Hi,
I have used the method and it is working now.
Thank you very much for your help.
But in my program I have to open the Materail Text tab for material in VA03.
I have recorded it and I am getting Tab 9 and I have updated it.
But for some material its is Tab 10 . But there it is opening Tab 9.
Whether I can check the tab is correct or not before proceeding the updation?
Please help me.
Regards,
Lijo
04-20-2009 2:57 PM
HI JOhn,
as told by the ARS
see the sample code how to call particular screen..
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
DATA opt TYPE ctu_params.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLSEOD'. "Pass pgm name
bdcdata_wa-dynpro = '1000'. "Pass your screen you want to call
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa. "Optional
bdcdata_wa-fnam = 'BDC_CURSOR'. "Optional
bdcdata_wa-fval = 'SEOCLASS-CLSNAME'. "Optional
APPEND bdcdata_wa TO bdcdata_tab. "Optional
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'. " "Optional
bdcdata_wa-fval = class_name. " "Optional
APPEND bdcdata_wa TO bdcdata_tab. " "Optional
CLEAR bdcdata_wa. " "Optional
bdcdata_wa-fnam = 'BDC_OKCODE'. "Optional
bdcdata_wa-fval = '=CIDI'. " "Optional
APPEND bdcdata_wa TO bdcdata_tab. " "Optional
opt-dismode = 'E'. "Mandatory
opt-defsize = 'X'. "Mandatory
CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.
Regards,
Prabhudas
04-21-2009 7:09 AM
hi ,
use in this formate.
CALL TRANSACTION 'TCODE' USING bdcdata_tab OPTIONS FROM opt.
04-21-2009 11:48 AM
05-12-2009 8:06 PM
Lijo, regarding another subject - your ABAP program "LOOKUP_FINDER". Could your respond to the posting that I have in the "ABAP - General" forum? I am getting an error when I try to run your program that you have posted and not being an ABAP expert I don't know how to correct it. Your help would be appreciated.
Thank you,
Dave