cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a PDF file from Web Dynpro

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

closing thread.

Former Member
0 Kudos

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.

former_member185086
Active Contributor
0 Kudos

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

p330068
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Arun,

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

Thanks

Krish