cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

You could create a transaction iView displaying your SMARTFORM.

Former Member
0 Kudos

Hi Chintan,

Good morning. Thank you for your time and advice. While I have been programming in ABAP for over 15 years, I have not had to write SAP style JAVA before. I have written JAVA programs, but not using the NWDS. So that would lead me to ask the next question.

How would I do something like that?

Please advise.

Kind Regards,

Daniel A. La Mendola

Former Member
0 Kudos

I have discovered how to create a transaction iView, but this will not accomodate what needs to happen in the custom SMARTFORM as it requires information that would be received from the Portal.

Thank you again.

chintan_virani
Active Contributor
0 Kudos

But in the sample code you first posted does not contain any such input.