Pdf live form through sap abap editor to validate user input by java script coding

I am new to apply a java script in a Adobe form.
So i need of help that i have 9 page form of HR module i need to verify every blank field and wrong entry field also.
I look around a lot of code but still i am not able to perform good validation in a Adobe form.
I am using SAP ABAP editor where i am making through PDF Live cycle FORM & try to put java script validation on the field.
My problem is that how can i link or configured to Adobe form.
Here are some event are given "mouseup","validate" or more are given.So how i can do.
i wrote the code like
/ Get the field value
var f1 = this.getField("VORNA");----why it is not working.Some thing is wrong?
var v1 = f1.valueAsString;
if (v1) {
} else {
   app.alert("Field: " + f1.name + " is blank.", 1);
//above code is not working.
but here we used rawValue() method it works , but it popup message  javascript with window error.
if( this.rawValue()==' ' || this.rawValue==null)---------this works
xfa.host.MessageBox("First name is blank!");---------this works
"VORNA" is "First name" field name binding with this value.
How we can linked java script file with Adobe form.
Kindly help me.

You're mixing code for an acroform with code for an XFA form. SInce you're creating the form with LiveCycle Designer, it wold be better if you posted this to the LiveCycle Designer forum, if you haven't already.

Similar Messages

  • Pdf live cycle  form through sap abap editor to validate user input by java script coding

    I am new to apply a java script in a Adobe form.
    So i need of help that i have 9 page form of HR module i need to verify every blank field and wrong entry field also.
    I look around a lot of code but still i am not able to perform good validation in a Adobe form.
    I am using SAP ABAP editor where i am making through PDF Live cycle FORM & try to put java script validation on the field.
    My problem is that how can i link or configured to Adobe form.
    Here are some event are given "mouseup","validate" or more are given.So how i can do.
    i wrote the code like
    / Get the field value
    var f1 = this.getField("VORNA");----why it is not working.Some thing is wrong?
    var v1 = f1.valueAsString;
    if (v1) {
    } else {
       app.alert("Field: " + f1.name + " is blank.", 1);
    //above code is not working.
    but here we used rawValue() method it works , but it popup message  javascript with window error.
    if( this.rawValue()==' ' || this.rawValue==null)---------this works
    xfa.host.MessageBox("First name is blank!");---------this works
    "VORNA" is "First name" field name binding with this value.
    How we can linked java script file with Adobe form.
    Kindly help me

    You're mixing code for an acroform with code for an XFA form. SInce you're creating the form with LiveCycle Designer, it wold be better if you posted this to the LiveCycle Designer forum, if you haven't already.

  • Is it possible to use Adobe Interactive Forms in SAP (ABAP) Trial Version?

    Dear All,
    i need some help concerning the usage of Adobe Interactive Forms in SAP (ABAP) Trial Version.
    I installed SAP Netweaver 7.01 (ABAP Trial Version) and i would like to use the Adobe Interactive Form editor (transaction SFP). Is this trial version prepared for this? Is it possible to edit and test Interactive Forms in the ABAP Trial Version too?
    Somebody told me that he installed Adobe Lifecycle Designer 7.1 but the layout manager part of the editor shortdumped when he wanted to go back to other  parts of the editor or he wanted to save what he did...
    Is it enough to install Adobe Lifecycle Designer 7.1? Is there something else to install or configure?
    Thank you for your help in advance.
    All the best, P. Phil.

    Yes, you need the lifecycle designer installed.  That should be enough to work with the SFP transaction.  But to actually use the form, I think you do need the ADS(Adobe Document Services) which runs on the java stack.
    Regards,
    Rich Heilman

  • SMS through SAP ABAP in ECC 6.0

    hi
    i want to send the SMS through SAP ABAP,for that I need any FM or any other thing.
    currenlty user send SMS through the TCODE SO01,but i want to do it through abap code.
    please tell me is there any FM exits in SAP to do this,or any other code i have to write.
    regds
    vipin

    Hi Vipin,
    Just check if the
    FM - SO_DYNP_SHORT_MESSAGE
            SO_NEW_DOCUMENT_ATT_SEND_API1
    is useful for you.
    If helpful award points
    Regards,
    Vivek
    I think the below FM would be more helpful, check -
    1. SO_DOCUMENT_SEND_API1
    2. SO_DOCUMENT_SEND_API1_NEW
    Edited by: Vivek on Feb 7, 2009 2:57 PM

  • Adobe form created in LiveCycle does not remember user input

    Adobe form created in LiveCycle does not remember user input when the file has been re-opened after it has been saved.
    Example:
    "Check box" that has been selected and who have registered Action script (may be that it should be disabled), seems to be reset when the file is re-opened, although it apparently is checked.
    Are there settings or script that can prevent this?

    Hi there,
    usually if the values are not kept in form after saving and re-opening the form, it would be because of your code... or because it is not Reader Extended PDF...
    If your code has a function which is to return a value to your field without it to be working based on your Design, it will reset any data..(variables)
    Which means...
    e.g.: You have an array/var/JSONobject which you populate varying on the data entered in the design, as long as you are in the actual form, without closing and re-opening the form, it will keep all values inside that array / variables / JSONobject. But, once the form closed and re-opened, if you have a function that returns a value to your field, whatever the field, from any variable in the script it will return nothing because every variables are reset. To avoid such a thing, you must repopulate all variables that were assigned previously before closing the PDF Form. To do so, I recommend to have a page(hidden) which contains every important values according to that function and you must repopulate those variables according to the values in the keepVar page...
    If you do not have any function that returns a value to a field based on your variables, this is not the solution you are looking for and I am not aware of the reason why it behaves like this... Maybe more information on the behaviour of your form would help locate the issue...
    Hope this help

  • Create SAP B1 Query with Optional User Input Fields

    Hi All... any help is greatly appreciated, I am new to this forum and hope to contribute in the near future once I become more of an expert with B1.
    I have a query I need to build that will search about 10 UDF's. The problem is, I don't know how to make the user input fields optional within the query. Currently, I have the following queries as testing searching 2 UDF"s:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand] FROM OITM T0 WHERE T0.[U_Quality] = [%0] OR T0.[U_LengthFT] =[%1]
    This query works when leaving one of the user input fields blank. However, the values it provides are wrong because it is an OR statement which will show item codes with a certain quality OR a certain size.
    The following query is the same as above but switched the OR to AND:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand] FROM OITM T0 WHERE T0.[U_Quality] = [%0] AND T0.[U_LengthFT] =[%1]
    This query provides me with the correct values but will not work if one of the user defined fields is not filled out.
    How do I go about getting the results I want and not having the user fill out all the UDF's for the query to execute properly?

    I think I figured it out
    SELECT T0.ItemCode, T0.ItemName, T0.OnHand
    FROM OITM T0
    WHERE (T0.U_Quality = '[%0]' OR '[$0]' = '0') AND (T0.U_LengthFT ='[%1]' OR '[%1]' = '0')
    SAP must be defaulting empty user input field values to "0"
    I tried the above query and it worked!!!
    Is there anything you can add if I am missing something?
    Thanks, Alec.

  • HTTPS communication for Adobe Offline form with SAP ABAP WAS

    Hi Experts,
    Can we use HTTPS communication method to call a SAP ABAP Web Service from an Adobe offline form?
    Example : I have a SUBMIT button in my Adobe offline form and when clicked, it populates a sales order number in the form.
    Here my SAP ABAP server from where it reads the info is using HTTPS communication method. Now if i use the same service with HTTP it works fine but if i switch the service to use HTTPS it shows me an error "Error attempting to read from file. <https://FQDN/<service name> .
    I am using self-signed SSL server certificate from SAP ABAP server. But here i also see a certificate error in my browser (IE 7.0) saying "Untrusted Certificate". Is this the reason for my above issue?
    I could not find any post in SDN giving me the answer.
    Regards,
    Hobin

    Hi,
         The Certificates are already imported into the Trusted Certificates Section. But the real Issue is regading the Adobe Offline forms. If I open the Adobe Offline forms in the Adobe reader 9.0 and the Web Service call is made based on the Https:// . It saying "Error attempting to Read the file". The Fully qualified domain name is also provided VA. I have tried to import the certificates to Adobe Reader's -  Trust Identities but still it is not working . If I switch the webservice authentication method to Http:// then it would work. ADS is already configured with SSL. And the HTTPS:// based WebService embedded in the Adobe Interactive Form is working ,if the form is Online in the Browser (integrated in the Webdynpro Abap UI element).
    Is there any other way to Add SSL Certificates to Adobe Reader , so that Https:/ based webservice will work if the Form is opened in Adobe Reader 9.0.
    Regards,
    Hobs

  • SMS through SAP ABAP program

    Hello Guys..
    I am creating a program which is basically alert program. As per the requirement if delivery is pending as on date , a SMS need to send the sales guys.
    is there any  stranded function for that, which help me ragarding the same. Mobile no of all are maintain in z table..
    Regards
    Swati....

    Hello,
    please check this:
    http://help.sap.com/saphelp_nw04/helpdata/en/58/97c43af280463ee10000000a114084/frameset.htm
    Re: SMS through SAP
    /people/anilkumar.vippagunta2/blog/2005/07/20/developing-web-application-without-writing-single-line-of-code-my-first-web-log
    <b>/people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap
    /people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap
    http://www.webservicex.net/WS/WSDetails.aspx?CATID=4&WSID=59
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Re: SMS through SAP
    Reagrds,
    Beejal
    **Reward if this helps

  • How to mail a formatted excel(Having complex template from microsoft) file as attachment from presentation server through SAP ABAP

    Hello everyone,
    I have an requirement to attach an excel file in mail while sending from SAP ABAP. This excel file is a formatted one and its having a proper template which is stored in wwwdata table in sap. My program will pick the file with no changes in format from presentation server i.e. my desktop and will be sent to external email-ids .
    I have searched in scn but couldn't get a proper answer which will send the .xls file as attachment with no changes in format of template and data of excel.
    Please suggest the approaches how to handle this one.
    Regards,
    Madhusmita

    I have read those two help file and was able to use it in the ABAP proxy code.  Thanks.
    This is the current outcome.  I totally understand that SAP PI communicates via XML.  So when PI picks up a file that contains XML tags, the Inbound proxy is triggered.  I can see its processing in SM50.  However, when I give the Sender FTP adapter a non-XML file to pick up, the Inbound Proxy does not trigger.  The file itself should be read into memory so that I can save it to the application server via ABAP code (with no mapping).  That is why there is no operation mapping
    The reason I am using using FTP to ABAP proxy is because I need to call a subsequent RFC step to process the file.  Else, I will just use FTP to File Adapter scenario.
    Question 1: I am thinking that that file is the attachment.  Is that where I am incorrect and I still need to send in an XML file with the attachment as an addition?
    Question 2: Is this the best approach or should I use BPM?  If BPM, what steps do I need?

  • [Newbie] When to validate user input in a task form

    Hi.
    Suppose you have a task with two integers as payload (x, y) and two possible outcomes, say I_LIKE_X and I_LIKE_Y.
    Business logic requires that if I_LIKE_X then must be X > 0 and Y <= 0, else if I_LIKE_Y then must be X <= 0 and Y > 0.
    In this scenario I cannot use validators at task data control level because input correctness depends on the outcome.
    So, how would you deal with such a scenario?
    You will put validation
    1. at UI level (action listeners, partial triggers, ...) to prevent task completion submission in case of errors.
    2. at BPEL level: after task completion, check outcome+variables consistency and reinitiate task if needed.
    That is: business fault prevention (1) or detection (2)?
    Thanks in advance,
    Michael

    Hi.
    Suppose you have a task with two integers as payload (x, y) and two possible outcomes, say I_LIKE_X and I_LIKE_Y.
    Business logic requires that if I_LIKE_X then must be X > 0 and Y <= 0, else if I_LIKE_Y then must be X <= 0 and Y > 0.
    In this scenario I cannot use validators at task data control level because input correctness depends on the outcome.
    So, how would you deal with such a scenario?
    You will put validation
    1. at UI level (action listeners, partial triggers, ...) to prevent task completion submission in case of errors.
    2. at BPEL level: after task completion, check outcome+variables consistency and reinitiate task if needed.
    That is: business fault prevention (1) or detection (2)?
    Thanks in advance,
    Michael

  • Background Jobs scheduled through ABAP Editor

    Dear SRMer's
    System Info : SRM 5.0
    Can you please let me know what is the tcode to check Background jobs scheduled through the ABAP Editor(SE 38) or through SA38 tocdes in SRM.
    Points will be rewarded for answers.
    Thanks in advance,
    Bobby

    Hi Bobby,
    Try this steps...
    1.  Log on to the appropriate SAP instance and client as either the user ID owning the job or an administrator ID.
    2.  Go to transaction SM37.
    3.  On the Simple Job Selection screen, fill in the Job name field or use any of the screens filtering options to produce a list from which you can see the job you want to view.  In order for all occurances of a job to be viewed, all statuses of the job should be checked “on”.  Click on the Execute button.
    Regards
    Rajesh.

  • Forms in SAP ?

    Hello Abap Expterts,
    What are forms used for in SAP 4.6. What is the transaction to see the code.
    Any suggestions appreciated.
    Thanks,
    BWer
    Message was edited by: BWer

    If you are referring to a FORM as in "subroutine",  this is a modularzation techique in the ABAP language.  You define a FORM in the abap editor by using...
    FORM TEST_FORM.
    ENDFORM.
    You call a FORM by using the statement PERFORM.
    PERFORM TEST_FORM.
    You can pass variables to and from the FORM.
    FORM TEST_FORM USING A_VALUE.
    ENDFORM.
    PERFORM TEST_FORM USING 'A'.
    You use FORMs in your code in the ABAP editor.
    Is this what you mean by form?  If not, please refer to the previous post.
    Regards,
    Rich Heilman

  • Encypting Pdf document sent through email from BO WEBI

    Hi,
    Encypting Pdf document sent through email from BO WEBI . Is there any sdk scripts/3rd part tools to do this.
    Thanks
    Ranjith

    Hello Ranjith,
    There is no native functionality for encrypting a PDF document from within BusinessObjects Enterprise. Additionally, none of the BOE SDKs are able to encrypt a PDF document either. Generally speaking, if it is not possible in the product (BOE) it's not possible with the various SDKs.
    I am not aware of any third party tools that can do this from inside BOE either. If you haven't done so already you may want to post a question to the [Business Objects Board|http://www.forumtopics.com/busobj/index.php?sid=1037068e7b26619422be6a7b18a8c2ee] (BOB) to see if anyone there has a suggestion.
    Sincerely,
    Dan Kelleher

  • Passing user input data to existing pdf

    My customer prints business cards, currently the printing requests are submitted by a variety of methods (e-mail,paper napkins, etc.) that create more work and consume to much time. When a request is finalized it is in pdf format and at that point ready to go to press.
    I am trying to simplify this process by allowing the person that needs a card printed to fill out an online pdf form that looks exactly like their business card. When completed the form is submitted and their info needs to be passed to an existing pdf (also online) that also looks exactly like their business card. This pdf will be submitted for review and approval and used to go to press.
    I have been designing/hosting web sites for years but pdf's are new to me. I purchased Adobe Acrobat Professional 7.0.8 and Live Cycle Designer 7.0, I have created both of the pd's described in the 2nd paragraph and used the Designer to build the form, uploaded to server and had the data saved as XML. I am able to import the XML data to the other pdf and it does so beautifully. I did it this way first to familiarize myself with the software. I also purchased a very comprehensive book on Acrobat 7.0 which also covers the Live Cycle Designer to some extent.
    I learned that a Java Script would be necessary to accomplish my goal but after scouring the web and submitting my project needs to www.rentacoder.com I have been overwhelmed. The coders that responded were going to use everything except Java Script to achieve the desired results (PHP, Java)and cost ranging from $45.00 to $700.00.
    I have downloaded from the Adobe web site the following;
    Acobat JavaScripting Scripting Reference
    Acrobat JS Guide
    I do not write scripts and thought these could help but I can't understand exactly how my script should look.
    These are the fields that will be completed by users;
    Job Title, Full Name, Address1, Address2, City State Zip, Ph#, Cell#, E-mail Address.
    URL to user form -www.tarantulawebdesign.com/bc/twd_form1.pdf
    Url to pdf that data will be passed to - www.tarantulawebdesign.com/bc/bc_tmplt.pdf
    Any help with my situation will be greatly appreciated!

    Hi Steven,
    Luckily, you don't even have to write a single line of JavaScript code to get what you want! :-)
    Just create a new data connection using an example xml-file. Then bind the form fields to their respective data connection field. Then select iomport xml-data in Acrobat Pro or insert a button (optional) with the following line of code:
    xfa.host.importData();
    Here's your file, I tuned a bit. You may want to have a look at it:
    business-cards.pdf (download via filefactory, which is a bit slow and tricky...).
    1) download the file
    2) create a new text-document. rename it to something like business-card_data.xml
    3) copy & paste the following example business card data:
    <?xml version="1.0" encoding="UTF-8"?>
    <form1>
    <vcard>
      <Name>John Smith</Name>
      <Position>CEO</Position>
      <Address1>Nowhere 1</Address1>
      <Address2>Nonsense Enterprises Ltd.</Address2>
    </vcard>
    </form1>
    4) Place both files (pdf, xml) in the same directory
    5) open pdf, click the button, select the xml
    Regards,
    Steve

  • Can't add java script to Adobe 7.0 PDF document

    Hi, ran into a small problem using Adobe Pro 7.0. Created a interactive form in Adobe Designer 7.0. Want to add Java script to run when a user selects certain fields on the forms. However, when I try and use the advanced editing tools to gain access to the Java script properties for that object, the toolbar is greyed out. No document security has been configured. Can this be done? Should it be done in Adobe Prof or in Designer? Can't figure out how to add the java script to the forms.
    Any help would be appreciated.
    Thanks Michael

    Once a form is started in LiveCycle Designer, it has to be edited in LiveCycle Designer. There are very few Acrboat features that can be used.

Maybe you are looking for

  • Appleworks will only print one page at a time, please help!

    hi there ~ no matter how many times I ask the printer to print ALL pages, it will only print one at a time, so I have to manually print page 18, 17, etc.... Could this be because the pages are arranged left to right? that would seem strange. also, I

  • My playlists no longer show up on iPhone 4s or Mac TV.

    My playlists no longer show up on iPhone 4s or Mac TV. I'm only syncing, physically, from my desktop. I don't use iTunes Match. This seems to me a recent problem for me.

  • Upgrade from iPhoto '06: What precisely does it do to my existing library?

    Hi everyone, Considering iPhoto '08, one question that comes to mind is what an upgrade would do to the original library, how it would change it. In particular, now that iPhoto '08 is non-destructive, it means there is only one original and zero [thr

  • 802.1x and PEAP

    Dear All, We are going to use 802.1x PEAP and with MSCHAPv2 for authentication. The problem is we dont have and trusted CA server in our setup. So clents will not be able to verifiy the server certificate . Is there way to avoid checking of server si

  • IWeb 08 "Email me" link

    I have just created a website. This is the first one I have ever done so I am rather new to it. I inserted the "Email me" button in a couple of locations on my website. I have asked some family and friends to email me using those specific links becau