Create review copy of an interactive form
Hi,
I am looking for a method to create a review copy (i.e. non-interactive copy) of an interactive PDF form. Fortunately, interface IF_FP_PDF_OBJECT provides the methods SET_TASK_CREATE_REVIEWCOPY and GET_REVIEW_COPY to complete this task, but unfortunately I always get the error
201.201: ADS: com.adobe.ProcessingException: Rule: usageRightsRestriction named: RestrictedNodes operation: GetReviewCopy
when performing tests with demo report FP_PDF_TEST_05.
The SAP library on the one hand says that a review copy of an interactive form that is assigned usage rights cannot be created (http://help.sap.com/saphelp_nw70/helpdata/en/46/1ef46e24ba5a67e10000000a1553f7/frameset.htm). On the other hand the library says that you have to assign usage rights to make a PDF ready for input at all (http://help.sap.com/saphelp_nw70/helpdata/en/46/250bf80c2c4252e10000000a1553f6/content.htm).
My question is now: How can I get a review copy of an interactive form? How do I have to call the function module that is generated when I activate my form template to get an interactive PDF from which I can create a review copy (I set the parameters FILLABLE and DYNAMIC)? Is there an alternative way to create a review copy?
I thank you for your assistance.
Regards,
Martin
I also tried to go this way: Read the data from the filled-in interactive form and use it as input for generating a new non-interactive form.
It worked fine for all types of fields but not for rich text fields. The problem with rich text is that when using classes CL_XML_DOCUMENT_BASE and IF_IXML_NODE to parse XML data returned by an interactive form I get the rich text without markups. So, the formatting is lost, even line feeds.
Even if I would extract the rich text directly from the XML raw string I still had problems to bring it back to the new (non-interactive) form via ABAP function module since rich text markups are taken as flat text and not as formatting instructions. The rich text "<p>line1<p/><p>line2<p/>", for instance, is printed in the form as
<p>line1<p/><p>line2<p/>
and not as
line1
line2
So, I was looking for a way to pass my XML data stream directly to the ADS without using the generated ABAP function module. The review copy function is exactly what I need but unfortunatly seems not to work.
Similar Messages
-
Line item data is not saving while creating a Sales order using Interactive
Hi all,
I am creating a sales order Using Interactive forms. In the form i am having Header data and line item data.I had created two structures one for Header data and one for Line item data. For entering the LINE ITEM DATA i had created a Dynamic table with Buttons ADD ROW and DELETE ROW.
User will Add the Row or Delete the Row based on the requirement.
My issue is When ever the user clicks the SUBMIT button after entering the header data and 3 line items data , Sales order has been created with only first line item and the remaining two line items are not created.
My Interactive form is like below
HEADER DATA
DOC_TYPE
SALES_ORG
DIST_CHN
DIVISION
PURCH_NO
PARTN_ROLE
PART_NO
LINE ITEM DATA
ITEM_NO MATERIAL PLANT QTY COND_TYPE COND_VALUE
ADD ROW
DELETE ROW
SUBMIT
My code for the method ONACTIONCLICK is like below
method ONACTIONCLICK .
data:
Node_Adobe type ref to If_Wd_Context_Node,
Node_Zsaleheader type ref to If_Wd_Context_Node,
Elem_Zsaleheader type ref to If_Wd_Context_Element,
Stru_Zsaleheader type If_Main=>Element_Zsaleheader,
Node_Zsaleitem type ref to If_Wd_Context_Node,
Elem_Zsaleitem type ref to If_Wd_Context_Element,
Stru_Zsaleitem type If_Main=>Element_Zsaleitem.
data: header_data type BAPISDHEAD.
data: item_wa type BAPIITEMIN.
data: item_data type table of BAPIITEMIN.
data: partner_wa type BAPIPARTNR.
data: partner_data type table of BAPIPARTNR.
data: sales_order type BAPIVBELN-VBELN.
data: Errorlog type BAPIRETURN1.
navigate from <CONTEXT> to <ADOBE> via lead selection
Node_Adobe = wd_Context->get_Child_Node( Name = IF_MAIN=>wdctx_Adobe ).
navigate from <ADOBE> to <Zsaleheader> via lead selection
Node_Zsaleheader = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleheader ).
Node_Zsaleitem = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleitem ).
get element via lead selection
Elem_Zsaleheader = Node_Zsaleheader->get_Element( ).
Elem_Zsaleitem = Node_Zsaleitem->get_Element( ).
get all declared attributes
Elem_Zsaleheader->get_Static_Attributes(
importing
Static_Attributes = Stru_Zsaleheader ).
header_data-DOC_TYPE = Stru_Zsaleheader-DOC_TYPE.
header_data-SALES_ORG = Stru_Zsaleheader-SALES_ORG.
header_data-DISTR_CHAN = Stru_Zsaleheader-DISTR_CHAN.
header_data-DIVISION = Stru_Zsaleheader-DIVISION.
header_data-PURCH_NO = Stru_Zsaleheader-PURCH_NO.
partner_wa-PARTN_ROLE = Stru_Zsaleheader-PARTN_ROLE.
partner_wa-PARTN_NUMB = Stru_Zsaleheader-PARTN_NUMB.
append partner_wa to partner_data.
Elem_Zsaleitem->get_Static_Attributes(
importing
Static_Attributes = Stru_Zsaleitem ).
item_wa-ITM_NUMBER = Stru_Zsaleitem-ITM_NUMBER.
item_wa-MATERIAL = Stru_Zsaleitem-MATERIAL.
item_wa-PLANT = Stru_Zsaleitem-PLANT.
item_wa-REQ_QTY = Stru_Zsaleitem-REQ_QTY.
item_wa-COND_TYPE = Stru_Zsaleitem-COND_TYPE.
item_wa-COND_VALUE = Stru_Zsaleitem-COND_VALUE.
append item_wa to item_data.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
ORDER_HEADER_IN = header_data
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = ' '
IMPORTING
SALESDOCUMENT = sales_order
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN = errorlog
TABLES
ORDER_ITEMS_IN = item_data
ORDER_PARTNERS = partner_data
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CCARD =
ORDER_CFGS_BLOB =
ORDER_SCHEDULE_EX =
endmethod.
PLEASE SUGGEST ME IF ANY CODE CHANGE IS REQUIRED
Thanks in advance
AjayHi,
The item data is not read because, the dynamically added rows should also reflect back to the Web Dynpro context. When the user clicks on Add Row, use the Onsubmit event to add a empty line to internal table and then bind it to the context. And if the user removes a row, remove a row from internal table and bind it back to the context.
You may refer this article.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
Regards,
Runal -
DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM TO WDCONTEXT
Hi,
I am working with Interactive Form in (Webdynpro Java). In that form i am having Dynamic table. For that Table datas are comes from Bapi.
In that table i have ADD button to add a row. If i add a row and enter datas in that row means were it should be stored?
How can i send those added datas to Bapi? There is any possible way in SP12?
Please let me know if any way is there?
Thanks,
Senthil prabhuHi,
To add a row in dynamic table in interactive form How to create dynamic table in the interactive form
also check page 11-13 in this docuemnt https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
after adding it you can send the table data to rfc asusal Problems while setting Multiple Rows of data as Table Parameter to the RFC
give a lot at this too want to save data
regards,
Pradeep -
DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM
Hi,
I am using dynamic table in interactive form(webdynpro java). In that form i bind node for to populate the details for the table. The details should be come from RFC.
The RFC contains more than one record. While i tried to populate all the records to the dynamic table i cant able to got all the datas. I got only one record to the table.
Interactive Form table node structure is:
Node Cardinality Singleton
vnPDFDataSource 1..1 true
chnTableList 1..1 true
chnTableRow 0..n true
chnRowData 1..n false
attr-1
attr-2
attr-n
o The nodes bound to table and row in Adobe form are:
chnTableList u2013 bound to Table
chnTableRow u2013 bound to Row
If anybody know means let me tell how to solve the problem.
Thanks,
Senthil prabhuHi,
To add a row in dynamic table in interactive form How to create dynamic table in the interactive form
also check page 11-13 in this docuemnt https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
after adding it you can send the table data to rfc asusal Problems while setting Multiple Rows of data as Table Parameter to the RFC
give a lot at this too want to save data
regards,
Pradeep -
Interactive form, gp and RFC
Dear all,
i have read up quite some tutorial on interactive form and guided procedure.
Here i would want to create an callable object for interactive form
using GP.
After i capture the user's input data from interactive form i created, i wan to use external service(RFC) to send data to a remote R/3 system.
Some question:
1) What is the purpose of _pre-filling?
2)
How can i supply the user's input data to the external(RFC) callable object so that it could pass the parameter over to the SAP r/3 system.
need help. point will be rewarded.Hi Colin,
For your design you can include the following callable objects.
1. Callable object of type:Composite form for including
interactive form.(There are tutorials on this)
Check this link.
SAP Composite Application Framework - CAF Tutorial Center [original link is broken]
2. Validation:Approve or Reject Callable object.Here you can
send mail depending on approve or reject condition.
3.Callable object for calling RFC function.
For this you can use web dynpro application which
calls RFC or any option from Service list.
After creating these actions,map the parameters from 1st action to 3rd action which calls RFC function.
If it is rejected ,send a mail to the user.
If approved, proceed to next action.
This can be done as follows.
In the second callable object for result states assign the actions as follows.
Approve: 3rd action which calls RFC.
Reject:Action to send mail.
Hope this information solves your problem.
Thanks and Regards,
Sumangala -
Standard Program for Interactive Forms
Hi all,
I want to see the Print Preview of any of a Standard Interactive Form.
Please Give me Some Standard Programs which call the Interactive forms..
Thank you.Hi,
I think you need to create a custom program to check the print preview.
Check following link to create a print program for Interactive forms:
[SAP Help|http://help.sap.com/saphelp_nw04s/helpdata/en/60/f8123e9c6c498084f9f2bafab32671/frameset.htm]
Also there is one report to check/update the layout of the form check FP_CHK_REPORT'. Check the documentation before using this report.
[documnetation|http://help.sap.com/saphelp_nw04s/helpdata/en/44/e96677f1c367d6e10000000a155369/frameset.htm]
Hope this helps,
shrinivas -
Showing linebreaks in Adobe interactive forms webdynpro java
Hey
Im using interactive form from Adobe to show the content of my context, but the linebreaks gets converted into spaces. Heres my scenario:
I have create a context:
Person (node)
- Name (value attribute)
- Lastname (value attribute)
I have create a view (view1) with 2 TextEdit to enter som text. This two TextEdit fields is binded to the contextnode.
I have created another view (view2) with interactive form. The interactive forms consist of 2 InputFields that is also binded to the context.
When i run the application i insert som text in the first view (view1). Then i go to the second view(view2) to display the content as a PDF. This works, but my problem is that the linebreaks I have created in the view1 gets converted into spaces in view2. I have allowd multiple lines.
My question is that:
does Adobe interactive form support linebreaks from the context? It is possible to enter linebreaks if I edit the interactive form at runtime, but I want it to display the linebreaks automaticly from the context.
Are there any way around this? Please help me out. I cant find any sap note about this issueI know a little more about the problem now. After viewing the XML source I change the property of the inputfield.
It was like this:
<field name="verdipers_felt" y="130.7001mm" x="180.1801mm" w="101.6004mm" h="44.4501mm" locale="no_NO" access="ReadOnly">
but i changed the access to be nonInteractive
<field name="verdipers_felt" y="130.7001mm" x="180.1801mm" w="101.6004mm" h="44.4501mm" locale="no_NO" access="nonInteractive">
now view2 shows the linebreak as in view1... Buut! when im going back to view1 from view2, the linebreaks gets converted into spaces
thats pretty wierd, aint it? -
Webdynpro and adobe interactive form
Hi Experts,
I have a requirement where i have to develop an interactive adobe form using webdynpro.
In the layout of a view , i created an element of type "Interactive form" and do the necessary setting.
In the properties of "Interactive form" i have "ENABLED" field, once i uncheck it and execute the application, i get the PDF but non editable mode.
Once i check this field "ENABLED" , i am not getting PDF,I only get a CROSS button on executing the application.
Can any one please help me to solve this problem.
Thanks
MaheshHi,
By default always Use 'ZCI' Layout as form layout and Choose Display type as 'native' in Interactive Form UI properties when you design and develop interactive forms using webdynpro abap.
If form layout is 'xACF', then choose Display type as 'activeX' in interactive form UI properties.
If the form is designed using xACF layout then you can run the report "FP_ZCI_UPDATE" by entering form name and choosing update radio button. This will add some script to your form that is required for using native controls.
Regards,
Bala Baskaran.S -
Changing Adobe Interactive Form Layout When Archiving
We are using the adobe interactive forms (adobe liveCycle designer) to create forms for outgoing paper checks. Because of security risks with reprinting checks, it is necessary to change the output of the checks when they are archived (writing 'VOID' over the check), while the form created in the print spool remains unchanged. Is there a way to create dynamic fields on the interactive form based on when the form is being archived? We are using the archiveLink functionality with an external optical storage app. I know there is the possibilty to run the printing and the archiving process separately, using different form layouts, however, reconciliation becomes and issue and I would like to run both printing and archiving together in the same mass activity.
Hi Brian,
I have a requirement where I just need to Archive Adobe form in External repository.
Since you are using the archiveLink functionality with an external optical storage app
Can you please help me how you did?? What configurations need to be maintained for this?
I am new to this. I did some Rnd on it and found that it can be achieved using HRFORM_HRF02 Business Add-In in the SET_ARCHIVE_INDEX method.
But I have no clue how to do it?
Can you please help me? -
Reg: WebDynpro Adobe Interactive forms
Hi Experts,
I am using an application where i have 2 screens, First screen I have a button Create, when i click on Create a new window with interactive form opens where I have an Adobe form in Editable mode, here i need to enter data and save which gets saved in DB. I have a Save button and back button in this screen
I am using Interactive form with displaytype as Native, Template Source as Custom developed one, whose interface is an XML Based interface and layout type is ZCI. The XML based Interface was generated with the Node in WebDynpro application.
When i traverse to the screen with adobe form in editable mode and click save or back button, nothing happens, the internet explorer shows a wait status and nothin else happens. The whole process stands still with a image showing wait. Does Anyone have an idea why this problem has arised? I even tried to put a debugger in the code of save button but the problem is its not going to that part of code itself.
Please help ASAP.
Regards
Naveenhi,
If that is laready done, then you should check if the form is set to be of Dynamic Type.
You can check that in Layout Tab. By accessing the menu option Edit->Form Properties.
This wll display a window, in that click on Defaults tab , there make sure on the DropDown for XDP preview format, "Acrobat 7 (Dynamic) XML Type" or "Acrobat 8 (Dynamic) XML Type" is selected.
Hope this solves your problem. -
Hello,
I am creating a WebDynpro application with Interactive form. I have created single context element(pdfSource of binay and attached it to pdf source of Interactive form elemnt). I build and deploy the application.
When i run the application, i get the below mentioned exception:
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: ADS Render Exception occured. Append "sap-wd-errorPdf=true" to the URL and access the application once again. This time you will get an error PDF. Save the error PDF on the file system. This is a helpful attachment in case of an OSS message.
com.adobe.ads.exception.FailedCreationException:
Specific error information:
$$$/Err/PDF/OpenPDFFile/NoEmbeddedPDF=the PDF must have an embedded content.
General error information:
IDL:com/adobe/document/pdf/PDFOperationFailure:1.0
Exception Stack Trace:
com.adobe.ads.exception.FailedCreationException:
Specific error information:
$$$/Err/PDF/OpenPDFFile/NoEmbeddedPDF=the PDF must have an embedded content.
General error information:
IDL:com/adobe/document/pdf/PDFOperationFailure:1.0
at com.adobe.EJB_PDFAgent.getRemotePdfDocument(EJB_PDFAgent.java:815)
at com.adobe.EJB_PDFAgent.importDataObjectWithDescription(EJB_PDFAgent.java:440)
at com.adobe.ads.request.Embed.embedFile(Embed.java:162)
at com.adobe.AdobeDocumentServicesWorker.processRenderLog(AdobeDocumentServicesWorker.java:1245)
at com.adobe.AdobeDocumentServicesWorker.processRender(AdobeDocumentServicesWorker.java:1168)
at com.adobe.AdobeDocumentServicesWorker.execute(AdobeDocumentServicesWorker.java:598)
at com.adobe.AdobeDocumentServicesEJB.processRequest(AdobeDocumentServicesEJB.java:130)
at com.adobe.AdobeDocumentServicesEJB.rpData(AdobeDocumentServicesEJB.java:108)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.adobe.document.pdf.PDFOperationFailure: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0
at com.adobe.document.pdf.PDFOperationFailureHelper.read(PDFOperationFailureHelper.java:67)
at com.adobe.document.pdf._PDFFactoryStub.openPDF(_PDFFactoryStub.java:29)
at com.adobe.EJB_PDFAgent.getRemotePdfDocument(EJB_PDFAgent.java:803)
... 33 more
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:371)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1117)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
The above exception appears when the mode for the InteractiveForm UI element is set as either ' generatePdf' or 'UpdatePdf'.
When i give mode as 'usePdf', the screen appears but the adobe document does not appear(there is a cross in tht plc).
I looked into the Visual Admin and implemented suggestion in 1 of the thread
( PDFDocumentRuntimeException ) like , changing the password in UserManagement and updating for the ADSUSER but to no avail.
Kindly help me in resolving this issue.
Thanks & regards,
SharathHi
Have you assigned the Context Node to the dataSorce property of the InteractiveFormUI element?
I think that is the problem.This is required because only this node will be seen in the Dat view in designer and you will be able to bind your adobe UI elements to the attributes of this node.
Regards,
Ajay -
How Create LDAP Group Inside Active Sync Form?
I have an Active Sync form that is working well to synchronize (and slightly massage) data from an Active Directory source to a Sun Directory Server destination.
I need to synchronize group information from AD to DS. It must automatically create groups during the Active Sync processing. It can't be done externally using another scripting language; it must be done within IdM.
I have the following code...
<Action id='0' application='com.waveset.provision.WorkflowServices'>
<Argument name='op' value='createResourceObject'/>
<Argument name='object'>
<Object>
<Attribute name='resourceId' value='DS'/>
<Attribute name='resourceName' value='DS'/>
<Attribute name='resourceType' value='LDAP'/>
<Attribute name='objectName' value='abcd'/>
<Attribute name='attributes'>
<Object>
<Attribute name='cn' value='abcd'/>
<Attribute name='groupType' value='abcd'/>
</Object>
</Attribute>
<Attribute name='objectType' value='group'/>
<Attribute name='objectId' value='CN=abcd,ou=Groups,dc=blah,dc=com>
</Object>
</Argument>
<Argument name='objectType' value='group'/>
<Argument name='resourceId' value='DS'/>
</Action>However with that code inside the <Field><Expansion>...</Expansion><Field> section the group is not created. I've enabled tracing and as best I can determine the code isn't even executed.
I have created resource schemas for accounts[DS].ldapGroups and accounts[AD].groups and that works well. I can read group memberships from those lists. However I can't simply append to those lists to automatically create groups (which would be nice). That's why I've gone down this path of attempting to create the groups programatically.
I've scoured the groups and the course notes and found nothing relevant here. The examples all refer to creating the groups within an interactive form. I'm trying to do the same within the <Field> section of an Active Sync form.TTSLSAB wrote:
Hi Vladimir,
can you please tell me what should i import in the java class inorder to avoid the below error (session) for the line
Resource resource = (Resource)session.getObject(Type.RESOURCE, resId);
ResourceAdapter ra = ResourceOp.findAdapter(resource, session.getCache());Error, which i am getting is
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
session cannot be resolved
session cannot be resolvedsession is your LighthouseContext handle so depending on how you are implementing the class you quoted, you will either need to pass it in, for example via the invoke tag from your form/workflow, or get your own - don't know how this is done but I'm assuming authenticating to IdM would have to be done.
For all those interested, I have implemented the Java code snippet listed by Vladimir in XPRESS.
idmSessionHandle - is the LighthouseContext for the current session
currentOUDN - is a string representing the AD DN of the OU to be created
<defvar name='resourceAdapterHandle'/>
<set name='resourceAdapterHandle'>
<invoke name='findAdapter' class='com.waveset.provision.ResourceOp'>
<ref>resourceObject</ref>
<invoke name='getCache'>
<ref>idmSessionHandle</ref>
</invoke>
</invoke>
</set>
<defvar name='newOUGenericObject'/>
<set name='newOUGenericObject'>
<new class='com.waveset.object.GenericObject'>
<map>
<s>objectId</s>
<ref>currentOUDN</ref>
<s>objectType</s>
<s>Organizational Unit</s>
</map>
</new>
</set>
<invoke name='createObject'>
<ref>resourceAdapterHandle</ref>
<ref>newOUGenericObject</ref>
<new class='java.util.HashMap'/>
</invoke>
[...]Although the above works well, to create OUs in AD, I have not yet tested its real life application with regards to the initial mass loading of users (from LDAP (auth source) to IdM to AD) and ActiveSyncing. My concerns are two threads attempting to create the OU at roughly the same time, the first succeeds, and second one fails because AD will reply with the fact that the object already exists. The workaround would be to do a recheck of the existence of the OU, after a failure was encountered. This ties into exception handling in general in this approach.
If anyone can contribute exception handling and possibly a create with retries approach, to the above code, I'd appreciate it.
Cheers. -
Credentials to use adobe interactive form
Hi
I see an OSS note that talks about creating a OSS ticket to SAP requesting them for credentials to use an adobe interactive form.
We are on ECC 5.0 ( WAS 640 ) and intend to generate an adobe interactive form using a combination of adobe livecycle designer ( T.code SFP ) and an ABAP application program that sets the generated pdf property to fillable = 'X'
Question is - is there any extra licensing code required to get this credentials to SAP.
Please reply.Hi Karthik,
Please refer to the below note for your reference on Interactive form licensing:
eason and Prerequisites
The interactive use of PDF forms may be subject to license under certain circumstances.
Solution
Using the tools and using print forms (not interactive) is part of the license of the relevant SAP solution (including NetWeaver).
If the following three criteria apply to you, you must purchase an additional license from SAP for your SAP Interactive Forms:
You create templates for interactive forms.
You create your own customer-specific interactive form templates or change an interactive form template delivered by SAP by adding further interactive fields or changing the data binding of existing interactive fields to the back-end.
(Such modifications exceed cosmetic changes in form templates delivered by SAP such as adding your own logo or static texts, and are therefore subject to license.)
You use interactive forms in a productive system, that is, end users fill in generated PDF forms during business operations.
Note that the additional license also affects interactive forms used by SAP partners (independent software vendors - ISV), who deliver these forms as part of their products developed on the SAP NetWeaver platform.
Current information about licensing is also available on SAP Service Marketplace at http://service.sap.com/Adobe --> FAQs.
The license for SAP Interactive Forms is an official SAP license. For further details, consult your contact person in your local SAP sales office.
Regards,
Arafat -
Keen interest in learning Adobe interactive forms
Hi All,
Currently I am working as a Smartforms consultant. I am interested in learning Adobe interactive forms. Also I wanted to know what is the future in this if I want to shift to this path.
Please advise...
Thanks,
PoornimaHi Poornima,
<i>If you want to learn basic Adobe Interactive Forms, Visit this pdf</i>
1>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/22a59890-0201-0010-61aa-e16ab8da7e9f
2>http://help.sap.com/saphelp_nw2004s/helpdata/en/aa/940ee5331b4b8fa0a6cb6714dc5db4/frameset.htm
3>http://help.sap.com/saphelp_nw04s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
<i>Adobe Installation</i>
Requriements for Adobe interactive forms on client
<i>Sample webdynpro program using adobe</i>
http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
<i>Creating your first Adobe Form</i>
/people/community.user/blog/2007/01/22/creating-your-first-application-using-interactive-forms
<i>Check this blog for related SAP Notes and usefull about Adobe</i>
/people/markus.meisl/blog/2006/11/03/the-most-important-sap-notes-for-sap-interactive-forms
Hope that helps..reward points -
Export PDF file as a file, not Interactive Form
hi all,
The scenario is about exporting OTF from Bapi and I want to export PDF file through SAVE AS pop up instead of showing as Interactive Form.
The main treat is the enormous time consuming if the Bapi exports many number of lines of table. In this case, there's 1000+ lines of table then WD Java consumes 15+ to create a PDF showing on Interactive Form. Finally, WD Java app gives a short-dump screen as failing to update PDF. Then I prefer another solution which is EXPORTING PDF FILE AS A FILE THOUGH SAVE-AS POPUP INSTEAD OF SHOWING ON INTERACTIVE FORM.
Could you help me on this? Any matters, please feel free to let me know. Thanks in advance.
PeerasitHello,
You can try third party API to write into pdf file after getting data from Bapi. Search for Apache POI.
Best Regards,
Pankaj Sharma
Maybe you are looking for
-
G/L account no missing in sales order-issue
Hi Experts, I am getting error: G/L account missing while saving the sales order. It is available in incompletion log, when i choos that it is going to item conditions tab directly. It seems related to VPRS condition type, because that sales order re
-
Hi All, I want to transform the input date format to ''YYYY-MM-DD-hh.mm.ss'.I am using the below format in format-datetime function in BPEL: '[Y0001]-[M01]-[D01]-[h01].[m01].[s01]' It is giving correct time and format between 1 and 12 o clock timings
-
Xsd:element ref not working with jaxb
Hi, I'm trying to implement a simple web service based on jax-ws. My probem is that binding does not working when I use the <xsd:element ref="..."/> attribute in the schema description. Here is the web service implementation : @Stateless() @WebServic
-
The other day, Safari started freezing with the spinning rainbow on pages with videos embedded. Then it started freezing on non-video pages. Then it started freezing on text pages, mostly blogs. I did as Carolyn Samit suggested and emptied the cache
-
How do you select special media tray from Adobe Photoshop CS3 on the Mac?
I can select the special media tray (HP Photosmart Pro 9180) from Word for Mac and Illustrator CS3 for the Mac, but I don't know how to select it from Photoshop CS3 for the Mac.