Skip to Content
author's profile photo Former Member
Former Member

Display custom SMARTFORM(PDF) not Adobe Interactive on Portal.

Hi All,

I appreciate any direction that you are able to provide.

The scenario is as follows:

The client is currently running SAP R/3 ECC 6.0

The client is implementing ESS/MSS.

A custom SMARTFORM was created in SAP

The question is:

What is the necessary code required in the Model/Application to Display this form?

I have searched the web and found some documentation, but it is incomplete and I receive errors in the NWDS.

Thanks is advance!

The following code was placed in the Init method.

public void wdDoInit()

{

//@@begin wdDoInit()

Ynag_Test_Pdf_1_Input input = new Ynag_Test_Pdf_Input();

wdContext.nodeYnag_Test_Pdf_Input().bind(input);

try {

wdContext.currentYnag_Test_Pdf_InputElement().modelObject().execute();

} catch (WDDynamicRFCExecuteException e) {

e.printStackTrace();

wdContext.currentContextElement().setSdfgdsfsd(e.getMessage());

} wdContext.currentInternalElement().setUrl(convertXStringToUrl(wdContext.currentOutputElement().getBin_File()));

//@@end

}

//@@begin others

public String convertXStringToUrl(byte[] doc_content){

String url = "";

WDWebResourceType webResType = WDWebResourceType.PDF;

IWDWebResource webResource = WDWebResource.getWebResource(doc_content, webResType);

try {

url = webResource.getURL();

} catch (WDURLException e) {

e.printStackTrace();

}

return url;

}

//@@end

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 07, 2010 at 07:21 AM

    You could create a transaction iView displaying your SMARTFORM.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.