cancel
Showing results for 
Search instead for 
Did you mean: 

Which mode called WD - How to track

mahesh_jagnani
Participant
0 Kudos

Hi Experts,

I have created one WD And one transaction associated ith it.

The WD can be called from the Portal as well as from the transaction created for it.How we can keep track which mode called WD.

Thanks

Mahesh

Accepted Solutions (0)

Answers (3)

Answers (3)

mahesh_jagnani
Participant
0 Kudos

ok

Former Member
0 Kudos

Hi,

Using IF_WD_PORTAL_INTEGRATION you can know webdynpro is opned from portal or not..

Please check this...

http://forums.sdn.sap.com/click.jspa?searchID=72309537&messageID=10089524

And for T-code, you can write some code in WDDOINIT Method like

If sy-tcode = ' '.

endif.

cheers,

Kris.

mahesh_jagnani
Participant
0 Kudos

Hi Kissnas,

The SY-TCODE Concept is not working because once i launch WD with TCODE and check SY-TCODE in INIT method it is blank always.

Thanks

Mahesh

Former Member
0 Kudos

Hi,

When you want to know? whether the applciation is executed from portal or tcode??

Try in WDDOMODIFYVIEW.

And in portal we have Transaction ivew in taht we have to pass diff parameters you can check that.

cheers,

Kris.

former_member184578
Active Contributor
0 Kudos

Hi.,

You can create a z table ., with required fields like date time mode,

Let say the tcode you created for Web Dynpro ABAP is ZWDA

In WDDOINIT method ( or in WDDOMODIFY METHOD if first_time = 'X' ) .

if sy-tcode = 'ZWDA'.

insert sy-datum sy-uzeit and mode as Tcode ( or Any other which you like ) into Z table.

else.

insert sy-datum sy-uzeit and mode as Portal into Z table.

endif.,

In this way you can keep track of your WDA mode.,

hope this helps u.,

Thanks & Regards,

Kiran