Skip to Content
avatar image
Former Member

SAP print option IFRAME


In WD Application we have a IFRAME that renders the WAD Application.

Printing the Document:

I have used the Print provided by SAP . The preview does not render IFRAME content ( Since it is stateless element).

Can you please suggest how to print the content ? Print preview is not mandatory but Printing document is important.

Print code:

  l_api_componentcontroller = wd_comp_controller->wd_get_api( ).

  l_appl = l_api_componentcontroller->get_application( ).

  l_appl->print_page( ).

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 23, 2014 at 02:51 AM

    Hi Abhishek,

    I don't think its possible print the IFRAME contents of  WD application by using WD Print logic.

    I suggest you to use print option of BROWSER directly, it should work.

    Hope this helps you.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Ramakrishnappa for confirming.

      Requirement :

      In  WDA there are multiple IFRAME each displaying different ( say for example 5 ) WAD applications. Each WAD has Native WAD Print button ( that works fine) but we want to combine all WAD outputs to a Single Document

      i.e. in other words print the WD application that has 5 WAD applications as a one single document

      For user Experience - Business wants a print button on WDA that calls the Browser Print command.

      Approach tried - Browser Printing:

      created a another iframe with Print Link, when user clicks on it  it calls the BSP having Java script that calls the Browser Print command. But when we print, it only prints child iframe not the whole document.

      how to get the parent document reference in javascript and print ?

      or Can you please let us know any other better approaches for Browser printing the whole document ?  (Sap code to call the Browser Print - if possible)