Skip to Content
avatar image
Former Member

Generate a PDF file from Web Dynpro

Hi Friends.

Need your help. I have a below requirement.

User logon to portal and fill out the Web Dynpro form with his details and then submit the form. Upon the submit this should generate a pdf file based on input vlaues and save it in one KM folder.

Please help how can i achieve this.

Thanks

Krish

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jun 13, 2010 at 09:27 AM

    Hi Krishna,

    You can use interactive form for populating data in PDF form and then use KM API to upload that PDF in KM.

    Please have a look at ths might help. [Click here |http://www.sdn.sap.com/irj/sdn/adobe]

    Hope it will helps

    Regards

    Arun

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Arun,

      This link is launching a SAP INTERACTIVE FORMS BY ADOBE main page but not referring to any specific article.

      Thanks

      Krish

  • Jun 14, 2010 at 09:53 AM

    Hi

    Here is the code help with proper comment . This will open a external window where PDF contained will be display .

    try
    		{
    		if (window != null)
    			{
    				window.destroyInstance();
    			}
    
    // this is code which contain your byte data which need to display in PDF
    	IWDResource resource = wdContext.currentGetCustomerDataElement().getO_cus_Bin();
    	window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()),"Browser-description");
    			window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    			window.removeWindowFeature(WDWindowFeature.MENU_BAR);
    			window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    			window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    			window.setWindowSize(780, 430);
    			window.setWindowPosition(20, 140);
    			window.show();
    		}

    BR

    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 15, 2010 at 04:41 PM

    Sorry, i am expecting to create a new pdf based on given info on the form. This code explains only open a new window and I am already aware of that.

    Thanks for reply.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 15, 2010 at 04:42 PM

    closing thread.

    Add comment
    10|10000 characters needed characters exceeded