cancel
Showing results for 
Search instead for 
Did you mean: 

convert SAP Transaction into WD ABAP screen

Former Member
0 Kudos

Hi,

Can anybody tell me how to develop a program where i can convert transaction XT01 into a WD object with some chosen fields?

Regards,

mamai.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi mamai.,

I think it is not possible., but u can call sap transaction in Web Dyn Pro ABAP. refer this.,

DATA : URL TYPE STRING.

DATA: LV_HOST TYPE STRING,

LV_PORT TYPE STRING.

DATA: LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.

DATA: LO_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.

DATA: LO_WINDOW TYPE REF TO IF_WD_WINDOW.

DATA: LD_URL TYPE STRING.

*Call below method to get host and port

CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(

IMPORTING

HOST = LV_HOST

PORT = LV_PORT ).

CONCATENATE 'http'

'://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?&~transaction= XT01'*

INTO URL.

LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).

LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).

LD_URL = URL.

CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW

EXPORTING

URL = LD_URL

RECEIVING

WINDOW = LO_WINDOW.

LO_WINDOW->OPEN( ).

Thanks & Regards

Kiran

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

It is not possible to convert it technically into Webdynpro for abap/java compoenent.

But still to accesss that tcode from internent explorer with the selective fields follow the below steps:

1.) Create a Transaction variant for your standard transaction code.

And assign a tcode to that transaction variant.

2.) Go to transaction code SICF and try to execute your newly created tcode.

Now it will open SAP's screen into internet explorer.

For more help refer to below link

[SAP ITS|http://sapignite.com/call-sap-tcode-using-webdynpro-for-abap/]

thanks,.

Former Member
0 Kudos

Hi ,

yes that is possible if a suitable BAPI or function module exist which can udate data as your transaction is doing.

Create your screen as per the importing parameter and on save, execute the FM/BAPi. whatever message it returns, display it to the user.

Regards

Vishal Kapoor