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: 

Call a particular screen of a transaction B from another program A

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Write a BDC (Upto the screen you want ) and use it in a call transaction

7 REPLIES 7

former_member194669
Active Contributor
0 Kudos

Write a BDC (Upto the screen you want ) and use it in a call transaction

former_member181962
Active Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hi ,

use in this formate.

CALL TRANSACTION 'TCODE' USING bdcdata_tab OPTIONS FROM opt.

Former Member
0 Kudos

It is solved.

Thanks for the help

0 Kudos

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