Form Data Use
Hi Guys,
Im regards to forms is it possible to grab the data and manipulate it and send an output? For example if someone in a form entered '3' is it possible to times that by 2 and then output the result? If so how?
Cheers
Hi,
There is no out of the box solution to do so. If you can get your own code, you can add it to your site using "Insert HTML" feature.
Regards,
Aish
Similar Messages
-
Error While updating Process form data Using Scheduler
Hi All,
I am trying to update Process form data (ex : lastname) using a scheduled task Code. I am getting Error while updating Field.
Code :
HashMap<String, String> map = new HashMap<String, String>();
map.put("UD_EBS_PF_LASTNAME", "lastname");
formintf.setProcessFormData(instancekey, map); //I AM GETTING AT THIS LINE
Saying
Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl_1036_WLStub.setProcessFormDatax(Unknown Source)
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:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
at $Proxy2.setProcessFormDatax(Unknown Source)
at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
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:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
at $Proxy3.setProcessFormData(Unknown Source)
at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.execute(AssignRandomPasswordToAllUsersSchedulerTest.java:182)
at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.main(AssignRandomPasswordToAllUsersSchedulerTest.java:63)
Caused by: Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:761)
at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto
-
Hi There,
I am new to FLEX and also new to writing a client for a web service.
My question is more about flex (Flash builder 4.5) APIs, what APIs to use.
I want to access a web service, that's published here.
https://build.phonegap.com/docs/write_api
here is the description of webservice
===========
1) I have to do a post on POST https://build.phonegap.com/api/v1/apps
2) content type has to be "multipart/form-data"
3) JSON bodies of requests are expected to have the name 'data'
data will be someting like this
'data={"title":"API V1 App","package":"com.alunny.apiv1","version":"0.1.0","create_method":"file"}'
4) include a zip file in the multipart body of your post, with the parameter name 'file'.
===========
I want to make a 'multipart/form-data' Post and send
one string and one zip file.
My first question to self was If i send both string + binary data in the body ...
how will server understand where string end and where zip file starts?
Then read on W3.org( http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 )
How is text + binary data can be sent through "multipart/form-data" post requst.
there has to be some boundries.
After this I read and example in flex and tried following it.
http://codeio.wordpress.com/2010/04/03/5-minutes-on-adobe-flex-mimic-file-upload-for-in-me mory-contents/
but it doesn't seems to be working for me.
public function createNewApp(cb:Function , appFile : File):void
var service:HTTPService = new HTTPService();
service.url = ROOT+"apps";
service.showBusyCursor = true;
service.addEventListener(ResultEvent.RESULT, function(e:ResultEvent):void {
//translate JSON
trace(e.result);
var result:String = e.result.toString();
var data:Object = JSON.parse(result);
cb(data.link);
service.addEventListener(FaultEvent.FAULT, defaultFaultHandler); //todo : allow user to add his own as well
authAndUploadNewApp(service,appFile);
private function authAndUploadNewApp(service:HTTPService,appFile : File):void {
var encoder:Base64Encoder = new Base64Encoder();
encoder.encode(username + ":"+password);
service.headers = {Accept:"application/json", Authorization:"Basic " + encoder.toString()};
service.method ="POST";
var boundary:String = UIDUtil.createUID();
service.contentType = "multipart/form-data; boundary=—————————" + boundary;
var stream:FileStream = new FileStream();
stream.open(appFile, FileMode.READ);
var binaryData:ByteArray = new ByteArray();
var fileData : String = new String();
stream.readBytes(binaryData);
stream.close();
fileData = binaryData.readUTFBytes(binaryData.bytesAvailable); // I think this is where I have problem.... how do
//how do i converrt this bytearray/stream of data to string and send it in my post request's body - i guess if this step work rest should work..
var params: String = new String();
var content:String = "—————————" + boundary + "nr";
content += 'Content-Disposition: form-data; name="data";' + '{"title":"ELS test app 2","package":"com.elsapp.captivate","version":"12.3.09","create_method":"file"}' + "nr";
content += "—————————" + boundary + "nr";
content += 'Content-Disposition: form-data; name="file";' + fileData + "nr";
content += "—————————–" + boundary + "–nr";
service.request = content;
service.send();In the past I have used URLVariables with URLRequest and URLLoader to achieve this kind of requirement.
Check out http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_3 .html which should be useful. My preference has always been to use this style instead of HTTPService objects, giving you a little more control which is what you need here.
Let me know if you need any more assistance. -
Submitting html form data using ajax
Hi all
I am new to ajax..
i want to save my html form data into DB.
i usually do it in jsp by submiting data throug form action..
how can this be done using ajax..pls help me in this case.
thanx in advanceThis forum is about Sun Studio program development tools for C, C++, and Fortran programming.
You should ask your question in an appropriate Java forum. At the Sun Forums main page, click the "Java" or "Java ES" tab. -
Error retrieving child form data using API in 11g
Hi,
I am getting the following error while reading the process form child data from the process task.
<Jul 25, 2012 11:14:43 PM IST> <Error> <XELLERATE.APIS> <BEA-000000> <tcFormInstanceOperationsBean/isProcessFormChildDataDataUnique: no PRF isKey set up for sdk:45>
<Jul 25, 2012 11:14:43 PM IST> <Error> <XELLERATE.APIS> <BEA-000000> <tcFormInstanceOperationsBean/isProcessFormChildDataDataUnique: no PRF isKey set up for sdk:45>
However, the same piece of code works fine from the eclipse. Let me know how to resolve this.
Thanks in Advance.
-HrushiI am getting this error if I use Platform class
java.lang.NoSuchMethodException: com.univar.processtask.updateProcessFormData.<init>()
at java.lang.Class.getConstructor0(Class.java:2706)
at java.lang.Class.getConstructor(Class.java:1657)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpUPDATEPROCESSFORM.UPDATEPFOM(adpUPDATEPROCESSFORM.java:105)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpUPDATEPROCESSFORM.implementation(adpUPDATEPROCESSFORM.java:56)
at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2938)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:560)
at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(tcORC.java:849)
at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(tcORC.java:1165)
at com.thortech.xl.dataobj.tcOrderItemInfo.completeCarrierBaseMilestone(tcOrderItemInfo.java:500)
at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(tcOrderItemInfo.java:152)
at com.thortech.xl.dataobj.tcUDProcess.eventPostInsert(tcUDProcess.java:194)
at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2905)
at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:682)
at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:398)
at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
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:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy384.setProcessFormDatax(Unknown Source)
at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.setProcessFormDatax(tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.java:992)
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:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
at $Proxy179.setProcessFormDatax(Unknown Source)
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:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
at $Proxy382.setProcessFormDatax(Unknown Source)
at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyProcessData(DirectProvisionUserAction.java:2072) -
Reading form data using javascript
Hello.
I want to go over the data received from the context to the PDF file using JavaScript, without binding it to any elements on the form.
How can I access the data?
I've tried using xfa.data or xfa.dataset, but didn't manage to get to it.
How can it be done?
Thanks.The following applies if it's a PDF generated from ABAP :
Let's say a simple type parameter from context is named EBELN. To get it from javascript, you must use :
$data.data.EBELN.value
or
$record.EBELN.value
(it's the same)
For example, to display the value, use:
xfa.host.messageBox( $data.data.EBELN.value );
Edited by: Sandra Rossi on Jan 28, 2009 7:34 PM : added $record line -
Retrieve entire form data using powershell
Hi,
I wanted to retrieve all web applications and site collections and sub sites and lists and libraries and in that I have some broken sites also.How to achieve this using powershell script.Please help.thanks in advance.
Regards,
PraveenTry this PowerShell code:
Get-SPSite -Limit All |
Select -ExpandProperty AllWebs |
Select -ExpandProperty Lists |
Select Title
Explanation:
Get-SPSite -Limit All : gets all site collections in the farm.
Select -ExpandProperty AllWebs: Gets all subsites in the site collection
Select -ExpandProperty Lists: Gets all lists in the site
Select Title: Displays title of the list
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field -
How to save form data as XML using Reader XI
Dear all,
I have designed a form using live cycle designer 9 and activated the form extensions using Acrobat X Pro.
The form includes an email send button.
Our clients uses the Reader X and XI.
Using Reader X the pressing of the button will open a dialog box asking the user to send the form/form data using the default email client
OR
one can save the form data as xml file on the local machine and attach it later.
However, using Reader XI there is no such possibility of saving the data as XML. One can just chose between the default email client or another email account.
I tried even a button using javascript xfa.host.exportData("",0); but nothing. In fact the button shows no function at all.
What do I wrong?
Does anybody has a hint please?
Thanks in advance.
gerstiI'm pretty impressed of Adobe and their stuff (I do NOT refer to the community), how helpful they are.
Perhaps I didn't understand the meaning on the offical customer support website, stating:
The best way to contact us...
Ask our experts
Our community and staff are at your service 24/7
Even worst, their is a similar question from 25/09/2013 (http://forums.adobe.com/message/5711946#5711946) and no feedback form Adobe stuff at all.
Great service guys!
Thanks a lot! -
How can i submit form-data with acrobat pocket pc
how can i submit form-data (http-post) on a PPC?
how can i store the data offline?
which submit-functions are availabe for the pocket pc reader?
do i need ARES?
where can i find a documentation of of the available functions for the ppc version?
where can i fond form-samples for ppc?
from the docu on my pocket pc:
Submit form data using handheld devices over a wireless connection. If you are working offline, the data is temporarily stored, then submitted once a connection is established. Send forms by e-mail or directly to the destination server using a cradle or cableTo your question regarding the Pocket PC version of Reader, I downloaded Adobe Reader for Pocket Pc 2 and installed it on my HP iPAQ . I then loaded my test PDF file onto the iPAQ. The Reader for Pocket PC preformed an email submission fine. However, I received no indication that anything happened when I tried an HTTP Post. So I think you can only do an email submission.
In general, I have been testing to see how much I can do without the Live Cycle Reader Extensions, since for sure I will never be able to purchase them. What I have found is that for Acrobat Reader 7, the email submission works for all of the people I have asked to test it, but the HTTP Post has worked for only one of the two people who have tested it so far with Reader 7 (the one for which it worked claims that he only has Reader 7 on his computernot Acrobat). -
How to retain form data with cfpdf flatten option
I created an intertactive form from an existing pdf using
Acrobat 8.0/Live Cycle designer. Now I am trying to use it in my
application where I use cfpdfform tag to first populate the pdf,
and then create a flattened copy of the form using cfpdf
action="wrtite" flatten="yes" command. But when I flatten the form,
the form data is lost. This does not happen with other government
forms like Form I-9 or W-4 that could be downloaded as interactive
forms from their respective sites.
I came across this article through a Google search
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_02.html.
If you scroll down about half the page you will see this:
"You can use the cfpdf tag to assemble interactive PDF form
files into a single PDF document and flatten forms created in
Acrobat (by using the flatten attribute with the write action);
however, to process PDF form data, use the cfpdfform and related
tags. You cannot use the cfpdf tag to flatten forms created in
Adobe LiveCycle Designer ES."
This is confusing - why can't the forms created in LiveCycle
be flattened? What other tools we have to create interactive forms
that can be flattened with form data?
Please assist me with your pointers and responses. Would
appreciate an early reply.
Thanks very much.
RajHere's how I did it. LiveCycle form does work in ColdFusion. It even includes an image wich works untill I flatten the form.
-
I am very new to Macromedia Coldfusion, I have a user
registration form and would like to capture / store & for
debugging purposes echo (print) the form data using a CFscript. The
form’s name is Registration one of the text fields name is
FirstName. I am having a problem referencing the value entered into
the field. My reference is as follows …….
Registration.FirstName but it isn’t recognized what is the
correct way to reference form data. Does anyone have a colfusion
script to capture, store and print form data and a query to store
it in MySqlMy advise is to buy the ColdFusionMX7 Web Application
Construction Kit. This will answer all of your questions and
provide you with a solid understanding of ColdFusion basics to
include: form handling and database interaction..
http://www.amazon.com/Macromedia-ColdFusion-Web-Application-Construction/dp/0321223675/ref =sr_11_1/105-7037147-7486858?ie=UTF8&qid=1187788238&sr=11-1 -
Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout). It is as if the server has decided that the client has timed out during the file upload. The default setting is 30 seconds for AcceptTimeout in the magnus.conf file. This should be ample to get the file across, even increasing this to 2 minutes just produces the same error after 2 minutes. Any help appreciated. Apologies if this is not the correct forum for this, I couldn't see one for iPlanet and Web, many thanks, Kieran.
Hi,
You didnt mention which version of IWS. follow these steps.
(1)Goto Web Server Administration Server, select the server you want to manage.
(2)Select Preference >> Perfomance Tuning.
(3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)
(4) Apply changes and restart the server.
*Setting the timeout to a lower value, however, may prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before the connection is closed is 432000 bits (2400 multiplied by 180)
Regards
T.Raghulan
[email protected] -
Use Adobe Reader to Save Form Data
I use Acrobat 8 Professional to create several forms and enabled usage rights in Adobe Reader so that my users can save the form data locally using Adobe Reader 7 or higher. My questions are: (1.)Is there a limit to saving the form data? For example, the form can only be save 500 times per form or is it unlimited. (2.)If there is a limit to saving the form like 500 times, can the same form be recreated and the limit of 500 starts all over again? (3.)Do I need to purchase a license to save these form data? (4.)How many forms can have enable usage rights in Adobe Reader per Adobe Acrobat professional? The reason why i'm asking these questions is because I want to be in compliance with the Adobe license. My users don't have Adobe Acrobat Professional, but would like to use Adobe Reader to save the form data.
>(1.)Is there a limit to saving the form data?
It is my understanding that you can harvest data from a form 500 times whether that be from one user of 500 users.
>(2.)If there is a limit to saving the form like 500 times, can the same form be recreated and the limit of 500 starts all over again
You'd probably be walking on thin ice by trying that. Could be a loophole but maybe not.
>(3.)Do I need to purchase a license to save these form data?
Not if you stay within the limit that is stated in the EULA.
>(4.)How many forms can have enable usage rights in Adobe Reader per Adobe Acrobat professional?
Different forms? As far as I know there is no limit to the amount of different forms you use.
In my opinion, if you think you are going to go anywhere near the limitations of the EULA, consult with your attorney before proceeding. The form enabling function was never intended for large business use. Adobe has another, more costly, solution for that. -
Problem in Upload of data using FBZ5 which is for cheque form printing
hi Gurus,
I have done recording for uploading of the documents for printing of the cheques, using FBZ5 to code. now the problem is it is not picking up the items continuously one after the other and at the same time the cheques are not printing. what could be the problem and the code is given below. Please check out and let me know how to do. Like one by one document has to be generated and at the same time the cheque has to be printed.
perform bdc_dynpro using 'SAPMFCHK' '0750'.
perform bdc_field using 'BDC_CURSOR' 'OPAYF-PPRIZ'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'BKPF-BELNR' CHK_TAB-BELNR. " '2807000006'.
perform bdc_field using 'OPAYF-BUKRS' CHK_TAB-BUKRS. " '1000'.
perform bdc_field using 'BKPF-GJAHR' CHK_TAB-GJAHR. " '2007'.
perform bdc_field using 'OPAYF-RZAWE' 'C'.
perform bdc_field using 'OPAYF-PSTAP' CHK_TAB-PSTAP. " '1'.
perform bdc_field using 'OPAYF-PZFOR' 'ZF110_D_SCHECK13'.
perform bdc_field using 'OPAYF-PPRIZ' CHK_TAB-PPRIZ. " 'LOCL'.
perform bdc_field using 'OPAYF-PSOFO' 'X'.
perform bdc_field using 'OPAYF-PPRIA' 'locl'.
perform bdc_dynpro using 'SAPMFCHK' '0750'.
perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
perform bdc_field using 'BDC_OKCODE' '=DRUK'.
perform bdc_dynpro using 'SAPMFCHK' '0750'.
*perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
perform bdc_field using 'BDC_OKCODE' '=NEW'. "'/EEND'.
**perform bdc_dynpro using 'SAPMFCHK' '0750'.
**perform bdc_field using 'BDC_OKCODE' '=DRUK'. "'/EEND'.
**perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
Thanks
SyamaHI
I am sending the full code. now it is printing continuously, but it is not printing the check from the cheque printer, but the invoice is printed on the A4 sheet. What wuold be the problem.
report ZCHECK
no standard page heading line-size 255.
DATA : BEGIN OF CHK_TAB OCCURS 100,
BELNR LIKE BKPF-BELNR,
BUKRS LIKE OPAYF-BUKRS,
GJAHR LIKE BKPF-GJAHR,
PSTAP LIKE OPAYF-PSTAP,
PPRIZ LIKE OPAYF-PPRIZ,
END OF CHK_TAB.
DATA: v_opt LIKE ctu_params,
v_ltext1(70) TYPE c,
v_ltext2(70) TYPE c,
v_tabix LIKE sy-tabix.
*-- Internal Table for including the structure alsmex_tabline
DATA: BEGIN OF i_excel OCCURS 0.
INCLUDE STRUCTURE alsmex_tabline.
DATA: END OF i_excel.
Batch input data
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
messages of call transaction
DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
PARAMETERS: p_file TYPE rlgrap-filename OBLIGATORY,
start TYPE i OBLIGATORY, end TYPE i OBLIGATORY,
dismode TYPE ctu_params-dismode DEFAULT 'A' OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
program_name = syst-repid
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
STATIC = ' '
MASK = ' '
CHANGING
file_name = p_file
EXCEPTIONS
mask_too_long = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
START-OF-SELECTION.
DATA l_file TYPE string.
CLEAR l_file.
l_file = p_file.
*-- Calling the function ALSM_EXCEL_TO_INTERNAL_TABLE
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = 1
i_begin_row = start
i_end_col = 50
i_end_row = end
TABLES
intern = i_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
END-OF-SELECTION.
DATA: v_opltext(600) TYPE c,
v_ipltext(600) TYPE c,
v_len TYPE i,
r_count(2) TYPE c,
v_rowcount(2) TYPE c,
v_screenfld(132) TYPE c,
msg_txt(150) TYPE c.
LOOP AT i_excel.
CASE i_excel-col.
WHEN '0001'.
CHK_TAB-BELNR = i_excel-value.
WHEN '0002'.
CHK_TAB-BUKRS = i_excel-value.
WHEN '0003'.
CHK_TAB-GJAHR = i_excel-value.
WHEN '0004'.
CHK_TAB-PSTAP = i_excel-value.
WHEN '0005'.
CHK_TAB-PPRIZ = i_excel-value.
ENDCASE.
AT END OF row.
APPEND CHK_TAB.
CLEAR CHK_TAB.
ENDAT.
ENDLOOP.
v_opt-dismode = dismode.
v_opt-updmode = 'S'.
LOOP AT CHK_TAB.
CLEAR: v_tabix.
v_tabix = sy-tabix.
perform bdc_dynpro using 'SAPMFCHK' '0750'.
perform bdc_field using 'BDC_CURSOR' 'BKPF-GJAHR'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'BKPF-BELNR' CHK_TAB-BELNR. "'2807000008'.
perform bdc_field using 'OPAYF-BUKRS' CHK_TAB-BUKRS. "'1000'.
perform bdc_field using 'BKPF-GJAHR' CHK_TAB-GJAHR. "'2007'.
perform bdc_field using 'OPAYF-RZAWE' 'C'.
perform bdc_field using 'OPAYF-PSTAP' CHK_TAB-PSTAP. "'1'.
perform bdc_field using 'OPAYF-PZFOR' 'ZF110_D_SCHECK13'.
perform bdc_field using 'OPAYF-PPRIZ' CHK_TAB-PPRIZ. "'locl'.
perform bdc_field using 'OPAYF-PSOFO' 'X'.
perform bdc_field using 'OPAYF-PPRIA' 'locl'.
perform bdc_dynpro using 'SAPMFCHK' '0750'.
perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
perform bdc_field using 'BDC_OKCODE' '=DRUK'.
**perform bdc_field using 'BKPF-BELNR' '2807000008'.
**perform bdc_field using 'OPAYF-BUKRS' '1000'.
**perform bdc_field using 'BKPF-GJAHR' '2007'.
**perform bdc_field using 'OPAYF-RZAWE' 'C'.
**perform bdc_field using 'OPAYF-PSTAP' '1'.
**perform bdc_field using 'OPAYF-PZFOR' 'ZF110_D_SCHECK13'.
**perform bdc_field using 'OPAYF-PPRIZ' 'locl'.
**perform bdc_field using 'OPAYF-PSOFO' 'X'.
**perform bdc_field using 'OPAYF-PPRIA' 'locl'.
perform bdc_dynpro using 'SAPMFCHK' '0750'.
perform bdc_field using 'BDC_OKCODE' '/EEND'.
perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
**perform bdc_dynpro using 'SAPMFCHK' '0750'.
**perform bdc_field using 'BDC_CURSOR' 'OPAYF-PPRIZ'.
**perform bdc_field using 'BDC_OKCODE' '/00'.
**perform bdc_field using 'BKPF-BELNR' CHK_TAB-BELNR. " '2807000006'.
**perform bdc_field using 'OPAYF-BUKRS' CHK_TAB-BUKRS. " '1000'.
**perform bdc_field using 'BKPF-GJAHR' CHK_TAB-GJAHR. " '2007'.
**perform bdc_field using 'OPAYF-RZAWE' 'C'.
**perform bdc_field using 'OPAYF-PSTAP' CHK_TAB-PSTAP. " '1'.
**perform bdc_field using 'OPAYF-PZFOR' 'ZF110_D_SCHECK13'.
**perform bdc_field using 'OPAYF-PPRIZ' CHK_TAB-PPRIZ. " 'LOCL'.
**perform bdc_field using 'OPAYF-PSOFO' 'X'.
**perform bdc_field using 'OPAYF-PPRIA' 'locl'.
**perform bdc_dynpro using 'SAPMFCHK' '0750'.
**perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
**perform bdc_field using 'BDC_OKCODE' '=DRUK'.
**perform bdc_dynpro using 'SAPMFCHK' '0750'.
**perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
**perform bdc_field using 'BDC_OKCODE' '=NEW'. "'/EEND'.
**perform bdc_dynpro using 'SAPMFCHK' '0750'.
**perform bdc_field using 'BDC_OKCODE' '=DRUK'. "'/EEND'.
**perform bdc_field using 'BDC_CURSOR' 'BKPF-BELNR'.
'=ENTE'. '=BU'.
CALL TRANSACTION 'FBZ5' USING bdcdata
OPTIONS FROM v_opt MESSAGES INTO messtab.
WRITE:/10 'ROW:' COLOR 4,v_tabix.
LOOP AT messtab.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = messtab-msgid
lang = sy-langu
no = messtab-msgnr
v1 = messtab-msgv1
v2 = messtab-msgv2
v3 = messtab-msgv3
v4 = messtab-msgv4
IMPORTING
msg = msg_txt
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF messtab-msgtyp EQ 'E'.
WRITE:/10 messtab-msgtyp,msg_txt COLOR 6.
ELSEIF messtab-msgtyp EQ 'S'.
WRITE:/10 messtab-msgtyp,msg_txt COLOR 5.
ELSEIF messtab-msgtyp EQ 'W'.
WRITE:/10 messtab-msgtyp,msg_txt COLOR 3.
ELSE.
WRITE:/10 messtab-msgtyp,msg_txt COLOR 4.
ENDIF.
CLEAR msg_txt.
ENDLOOP.
ULINE.
REFRESH:bdcdata,messtab.
ENDLOOP.
*& Form BDC_DYNPRO
text
-->PROGRAM Program name
-->DYNPRO Screen number
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "bdc_dynpro
*& Form BDC_FIELD
Insert batch input data
-->FNAM Screen Field Name
-->FVAL Field Value
FORM bdc_field USING fnam fval.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDFORM. "BDC_FIELD
**perform bdc_transaction using 'FBZ5'.
**perform close_group. -
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju.
Maybe you are looking for
-
How do I add a drop down Shadow with Photoshop Elements 12
I am having the greatest dificulty adding a shadow eccect to my photo, the tutorial is nothing like the software I am using, I have made the layers the back ground then croped my immage made i wanted to place on the background but when I try and use
-
How do i connect my macbook pro to a tv
how do i connect my macbook pro to a tv
-
Hi,Iam new to module pool.My requirement is to display data on the same screen in table control when the end user clicks on a pushbutton.For that I have created a work area in the main screen.I have created a subscreen with the table control I want d
-
The "Show To/Cc label in message list" doesn't work
Hi all, I use Apple Mail 5.2, and i have created some mailboxes which i use to archive the emails i sent and receive. I have noticed that when i move emails i have sent to these mailboxes, in the message list i only see the Sender (who is me of cours
-
Dual Powermac G5 vs Mac mini Intel Duo
I'm sure this has been discussed already, but I would some more input on this. I am looking to upgrade to a faster Mac. I am currently running a G4 1.25 DP with 2Gigs of RAM. It's a fine machine, but I would like to take advantage of some of Apple's