Get PDF output from a RFC
 //@@begin getInvoicePDF()
        Zotc_Pdf_Invoice_Input input = new Zotc_Pdf_Invoice_Input();
        input.setVbeln("0090001981");
        wdContext.nodeZotc_Pdf_Invoice_Input().bind(input);
        try
        {
            wdContext
                .currentZotc_Pdf_Invoice_InputElement()
                .modelObject()
                .execute();
            String key = "FF0XX";
            /* get the RFC output */
            try
            {
                byte[] pdfContent =
                    wdContext.currentOutputElement().getPdf();
                IWDCachedWebResource pdfResource =
                    WDWebResource.getPublicCachedWebResource(
                        pdfContent,
                        WDWebResourceType.PDF,
                        WDScopeType.CLIENTSESSION_SCOPE,
                        wdThis
                            .wdGetAPI()
                            .getComponent()
                            .getDeployableObjectPart(),
                        key);
                wdComponentAPI
                    .getWindowManager()
                    .createExternalWindow(
                        pdfResource.getURL(),
                        "my window name",
                        false)
                    .open();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
 
        }
        catch (Exception e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License