Skip to Content
avatar image
Former Member

How to call iframe inside supply function?

In my application , i developed Tree using supply function. I also defined Iframe in my view.

In my structure NODE 2 is inside NODE1 and NODE3 is inside NODE1

NODE1

NODE2

NODE3

I used following code:

lv_text1 = 'http://INHYDSAPSLT.yash.com:8000/sap/bc/webdynpro/sap/zrevl_iframe_kds?sap-language=EN'.
LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
CALL METHOD LO_EL_CONTEXT->SET_ATTRIBUTE
EXPORTING
VALUE = lv_text1
NAME = 'TEXT_FRAME'.

My requirement is that when i click on any parent node i.e NODE1 OR NODE2 OR NODE 3 it should call another webdynpro and display it in iframe.

But iframe is not working in supplyfunction but it is working in any of the methods in views.

So how can i achieve this.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers