on 10-06-2010 3:22 PM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.