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
You could create a transaction iView displaying your SMARTFORM.
Add a comment