ADOBE form page hiding using formcal scripting

Hi Experts,
I am new to ADOBE form and currently working on invoice print output. (NOT an Interactive adobe form)
My requirement is
i wanted to print one main page and 5 different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
Deppending on 'Oreder reason' (made as global variable) , i need to select appropriate annexure and print
main page and any one of the annexure.
so i should hide all other annexure, to achive this i used formcalc scripting.
i tried hiding annexure 2 by following code,
data.Annexure2::ready:form - (FormCalc, client)
if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
then $.presence = "hidden"
endif
i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
Experts please help me...
this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
thanks and regards
varun
Edited by: skyblue on Aug 6, 2011 3:30 PM
Moderator message: please do not cross-post.
Edited by: Thomas Zloch on Aug 8, 2011 11:29 AM

Hi Experts,
I am new to ADOBE form and currently working on invoice print output. (NOT an Interactive adobe form)
My requirement is
i wanted to print one main page and 5 different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
Deppending on 'Oreder reason' (made as global variable) , i need to select appropriate annexure and print
main page and any one of the annexure.
so i should hide all other annexure, to achive this i used formcalc scripting.
i tried hiding annexure 2 by following code,
data.Annexure2::ready:form - (FormCalc, client)
if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
then $.presence = "hidden"
endif
i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
Experts please help me...
this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
thanks and regards
varun
Edited by: skyblue on Aug 6, 2011 3:30 PM
Moderator message: please do not cross-post.
Edited by: Thomas Zloch on Aug 8, 2011 11:29 AM

Similar Messages

  • How to pass parameters to a page invoked using java script.--- Very Urgent.

    Hello,
    I have an advanced Table in my page. In the first column there is a
    messageChoice. In the second column there is link item.On the link item i have set the following value for destination uri.
    javascript:var a=window.open('OA.jsp?page=/AutoSales/oracle/apps/per/auto/webui/AutoSurrogatesPG&retainAM=Y','a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbar=yes'); a.focus();
    The user selects a value from the message choice and when he clicks on the link item, the value selected from the list should go to the new page invoked using java script as a parameter. I need the value selected from choice to generates few fields in the new page. I have preferred java script because i need the base page and a model window should open. I have tried using setForwardUrl() and setting '_blank' and new window for target frame property on the link item. But it isnt working. The new page is opening in the same window.
    I have also tried putting the value in a session.
    Please help with any kind of suggestions or solutions.
    Thank you.

    Uma,
    You need to
    - Have a PPR Action on the messageChoice (this would trigger a form submit to populate the underlying View Attribute)
    - Either
    - Retrive the value from the View Attribute in the pop-up page (as I could see that you are retaining the AM)
    - Use a SPEL in the link (on the modal page) to use the value from the View Attribute as the parameter value (in the form ${oa.current.<ViewAttributeName>)
    HTH

  • Adobe Forms central it useful for sap Consultant

    HI all,
    Last few years in sap Consultant and i worked SAP Adobe forms this Adobe Forms Central it useful for sap Consultant

    FormsCentral does not have any integration with SAP.
    Thanks,
    Josh

  • Adobe Form : detect page break using java script

    Hi,
    How can we detect a page break at a runtime using java script? I need to display a data in internal table at header and unique for a document number. i've 10 order list which has multiple items, each of the orders are printed in a new page and i wanted to know this event using a java script which could help me to add some additional logic at header.....pls can someone help on this?

    Hello Prabhu,
         From your doubt, what I understand is that, You have designed a header in Master Page. You need to fill this header using the Item table which is already designed in the design view(body page). Means you want to fill the Item details(which are in body page) into the header(which is in the master page).
    To read the contents from body page into master page, you need to write Javascript code on the header fields(which is in the master page) in the Layout Ready Event.
    For example, if you want to fill the field Order_description in header(master page) from the column Order_Description which is in the Item table(body page)
    In the form layout, select the order_description field and in the event READY LAYOUT write the below JavaScript code.
    var currpage = xfa.layout.page(this);------> Get the current page
    var fields = 0;------> Variable to store the number of fields in that page.
    fields = xfa.layout.pageContent(currpage-1, "field", 0); ------> Get the number of fields
    for ( i=0; i<= fields.length-1; i++ ) ------> Loop on each field on the page
        if ( fields.name == "ORDER_DESCRIPTION" ) ------> Check if the corresponding field is in the Item table
             this.rawValue = fields.item(i).rawValue; ------> Assign that value in the Header field
    Repeat the same steps for other fields in the Header. This will work for all Purchase Orders spanned across multiple pages.

  • Print Adobe form pages on different printers based on the condition

    Hi All,
    I am new in Adobe forms. We have requirement to print first 5 line items in adobe form (which are printing on first page) on one printer and remaining pages on another printer.
    What solution I was thinking was, in print program call the adobe form twice with flag as a importing parameter. For the first call the flag value will be set and for second run a blank value will be passed in flag.
    If flag is set then call make the first page "visible" and if flag is cleared then "hide" the first page and make the remaining pages "visible".
    But as its an item data which is designed on "Design" view I am not able to write a script to hide the page. Any suggestion you can give to resolve this issue.
    Thanks,
    Mihika.

    If it is OK to have the default printer defined/maintained in the user master (like tcode Su01 or System > User profile > Own data, Then the standard logic may suit your needs. I think you will need to undo some config for the whs. Te standard logic works as detailed below. the system needs to get to #4 below, then the SAP userid printer will be selected.
    the system proceeds with automatic printer determination as described below Config Tcode is OMLV.
    1) First the system checks whether a printer is set in the configuration "Printer-Movement". If so, the printer determination is complete at  this point.                                                         
    2) If not, the system uses the parameter "PriSrcTyp" defined in the configuration "Printer-Movement" to decide how it will proceed.  If the parameter is set here, the system checks if a printer is defined in the setting "Printer Picking Area" and then proposes this printer.                                                            
    3) If the system finds no printer, it searches in the setting "Printer - Storage Type" and uses this, if a printer is set.                   
    4) If the system cannot find a printer using the methods described above it selects the printer defined in the user master of the user currently logged on.                                                
    5) If no printer is defined here, the system automatically proposes LP01
    This writes the data to the spool file.

  • Arabic SubTotals in Adobe Form Page.

    Hi Everyone,
    I have a requirement of printing Subtotals of a table in Arabic as well as English on the same page for all pages in the form.
    FYI i have made a function module to convert english digits into arabic, which i use in my code to convert english amounts to arabic amounts.
    Like -
    CALL FUNCTION 'ZJP_M_ARABIC_NUMERALS'
    EXPORTING ENGLISH = V_AMOUNT
    IMPORTING ARABIC = V_AMOUNT_AR.
    This gives me the arabic amount.
    Now i am printing english subtotals using the javascript code :
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    var total = 0;
    for (var i=0; i <= fields.length-1; i++) {
    if (fields.item(i).name == "AMOUNT") {
    total = total + fields.item(i).rawValue;
    this.rawValue = total;
    Through this code i am able to get the english subtotal in my offline adobe form.
    My PROBLEM is - how do i use this english subtotal generated via javascript to convert it into arabic subtotal (using the FM)
    for each page.
    Any help is highly appreciated..!!
    Thanks,
    Piyush.

    Hi Piyush,
    Check this below link set locales for a field using java script this might help if you are looking for @ scripting
    /people/raghavendra.prabhu/blog/2010/12/17/currencynumber-formatting-in-hcm-forms
    I have 2 approaches (hopefully both of them will work).
    1)  Have a hidden field with arabic locale, in your loop keep adding values to this field.
    2) have the required field on the form set the locale to arabic, just assign the english value to this field. (if both english and arabic totals are from same records and same values mathematically then only the presentation locale is different but the value sud be the same right).
    If I am wrong understanding your requirement, please explain what is the difference ...?
    Cheers,
    Sai

  • Adobe Forms - Page Break via a Conditional Break

    Having read through the forum I am getting the impression that Page Breaks is a bit of a problem.
    I can enforce a page break between datasets by setting "After:" to "Goto Next Page", on the Object->Pagination tab, however this results in a blank page at the end of the entire output which is just the Master Page with all the static elements.
    The 'Conditional Breaks' sounds like the logical point to force a page break based on a combination of inequality or if a particular data element equals a known value.
    However, I don't seem to be able to get the 'Conditional Break' to work.
    So, the question I would like to ask, is how can you tell if the conditional break logic is correct and whether or not it is running? For example on an ABAP system is it possible to run it and debug it?
    My attempts at getting the break to open a pop up or write to disk via JavaScript fails, which is leading me to think they  are being ignored by the Adobe Form at both the server and client level.
    Is it possible that I have missed another setting somewhere else in the Adobe form configuration?

    Hello Jason!
    You are right that conditions (and all scripting) are bit tricky in this solution. Still they work.
    Debugging of AIF at ABAP side is not possible due to the architecture of the solution - from the ABAP POV it is just a web-service call and receiving result (PDF) back. You can't stop it on midpoint or intercept it somehow.
    At the same time there are other ways to check it.
    First, you can enable trace and saving additional info in SFP transaction under Utilities -> Settings.
    Details see [here|http://help.sap.com/saphelp_nw70/helpdata/EN/f7/a04aee0cb94978a011401311efe603/frameset.htm]
    And the nice way to check if your condition block is taken into the account is simple check like 1 = 2.
    If this works and you receive page break than all you need is find errors in your condition syntax, otherwise the problem is somewhere else.
    Regards,
    Petr Perstnev

  • Adobe Forms Error while using Webservice

    Hi All,
         I have created a interactive adobe form in abap . The adobe form has a button , on click of this button a webservice has to triggered. I have written the script to call the webservice(data connection) in FORMCALC but the webservice does not get called when I open the adobe form in my desktop and click on the button in the pdf.
    I get a error saying the "Error attempting to read from file" displays the webservice URL below.
    could someone help me resolve this issue . Is there any settings that I am missing for the interactive form to work?
    Thanks in advance
    Edited by: Sudheendra Puthuraya on Nov 19, 2008 5:58 AM

    Hi Sankar,
    this is a abap web service. I agree with you it is related to authentication.
    When I created the web service from Function module I used security profile as PRF_DT_IF_SEC_NO which would mean there will be no security.
    I also noticed that I work in my office network, the web service works fine but when I am working in my home network I get this error.
    Do you think of any config i might have missed?
    Thanks,
    Pankaj

  • Adobe form page per work table record

    I have read detail records into a table and I want one page per record in that table.  Other tables are to be subset of that record but all data to be written on each page relates to one record in the table.  How do I set the hierarchy so each record in the top table makes a new page.
    Easy to do in Smartforms but I want to use SFP as it is much more detailed when designing form.
    I have laid out the Master Page and I want each record to fit into Content area.
    Also the Master Page was uploaded directly from pdf created from users desgn in EXCEL which worked nicely.
    Do any of the example (FP_TEST*) Adobe forms work easily as an example?

    Solution:  Define subform for the page.
    subform tab > Content: flowed, Direction: Top to Bottom
    Pagination    > Place; In Content Area If Dataset must be Paginated Overflow: Go To Content Area Overflow Leader *1st sub-subform
    Binding        > Default Binding (the table with [*])
                             check Repeat Subform for each Data Item
                             check Min Count 1
    This made each record in table a new page.  In my case I was writing a cycle count record (LINV) with additional statistical and historical data.

  • ADOBE form - page reset for the second SO

    Hi all,
    Iam working on sales order form ( ADOBE Form). Nneed to display SO header and item details.But it is not for a single SO and it is for multiple SOs.First i need to display one sales order and its items after completing the all items of the first SO , the second SO details should come in the next page. This is fine, i have done this, but for the second SO the page numbers should start from 1. That means the page no has to be reset for each SO change.Suppose assume that, if the first SO is taking 2 pages for  printing item details and second SO is taking 3 pages for printing item details then the page nos should follows the below sequence:
    First SO :  1 of 2
                    2 of 2
    second SO : 1 of 3
                        2 of 3
                        3 of 3.
    but it is printing as 1 of 5, 2 of 5 ..... like this. Because we are using the system field for this.Can we reset the page numbers according to the condition?
    Regards ,
    Vineel.

    Hi,
    One addition to the previous answer. You need to set the Output device in the program itself and the nodialog field of the outputparams should be set to 'X'. For example you can go through the below code.
    DATA:
      w_formname TYPE fpname,
      w_function TYPE funcname.
    DATA : docparams TYPE sfpdocparams.
    DATA : formoutput TYPE fpformoutput.
    DATA : outputparams TYPE sfpoutputparams.
    DATA:
          BEGIN OF fs_orders,
            vbeln TYPE vbak-vbeln,
          END OF fs_orders,
          t_orders LIKE STANDARD TABLE OF fs_orders.
    SELECT vbeln
      FROM vbak
      INTO TABLE t_orders
        UP TO 5 ROWS.
    CHECK sy-subrc EQ 0.
    w_formname = 'YH297_FORM_SALESORDER'.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name                     = w_formname
      IMPORTING
        e_funcname                 = w_function
      E_INTERFACE_TYPE           =
    outputparams-dest = 'PDF1'.
    outputparams-nodialog = 'X'.
    LOOP AT t_orders INTO fs_orders.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION w_function
        EXPORTING
        /1bcdwb/docparams        =
          document                 = fs_orders-vbeln
      IMPORTING
        /1BCDWB/FORMOUTPUT       =
        EXCEPTIONS
          usage_error              = 1
          system_error             = 2
          internal_error           = 3
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'FP_JOB_CLOSE'
    IMPORTING
       e_result       =
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDLOOP.
    Regards,
    Ram

  • How to check how many adobe forms are in use cross systems or locally

    Hello,
    we want to check that we are not using to many adobe forms within our SAP system. Is there an easy way to get this information out of sap ?
    please guide. (TC or  Report)  
    thanks
    JR

    Each time you open a new browser window you will get a new session.
    attributes stored in one session are not accesible from the other one, so they can not be overwritten
    Regards
    Tilo

  • Adobe Forms - Page Count

    Hi All,
    I am facing a problem with one issue in Adobe Forms.
    We need to have two sets of data in the same spool. Like one set of data on one body page and other set of data on other body page. So, if there are total 5 pages of 2 sets, they should print like 1of3, 2of3, 3of3 and 1of2, 2of2.
    Please Help !
    Thanks in Advance.
    Sahitya

    Hello Sahitya,
    If you know in advance two sets of data can be identified then you can trigger smartform twice for each data set and have added spool. In this case you need not to do any change in ur form design.
    Pls ref below link for further details of spool addition-
    http://help.sap.com/saphelp_nw70/helpdata/EN/e3/31f03bb8e8ed0ce10000000a11402f/content.htm
    Regards,
    Nishikant.

  • Adobe Form Digital Signature using WDA

    Hi,
    I have implemented Interactive Adobe Form using WDA, with one Signature Field.
    I need to set and verify the status of the Digital Signature.
    1) Is it possible to sign the Adobe form without the user selecting the Digital Id, basically what is needed to implement automatic signatures (setting and verifying)?
    2) Once the data is filled online, the form is to be distributed or downloaded. How to apply security parameters to Form in this case (like pass protected etc). From SAP documentation, I understand we need to use Adobe Policy Server. Can we install this server on the Java stack of SAP WAS. Are there any other alternatives to implement such features?
    Thanks & Regards,
    Chitrali Shah

    I realize there is quite a bit of crossover between the two topics, but becuase you want to know about digital signature and specifically offline security; this question would probably be better asked in the Adobe Interactive Forms forum:
    SAP Interactive Forms by Adobe
    However I'm not going to lock the thread, as the WDA forum you will find many Forms experts as well and might find a solution.  I just think you might have better luck in the other forum. This is perhas a rare case where double posting would be appropriate as long as you go back and update both threads with any solutions.
    It sounds like you may have already found it, but about all I can offer on the subject is the link to the latest version of the online help on the subject:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/a0677efb696bb9e10000000a42189d/frameset.htm

  • Send PO Adobe form as email using BBP_PO_ACTION_DEF

    Hello SRM Guru's
    I need to send my PO adobe form as an EMail....So please guid me ...how to setup the configuration using T-code BBP_PO_ACTION_DEF .
    Thanks and Regards...
    Priyank Dixit

    Hi Priyank,
    Within the Action Profile BUS2201 you need to configure a new processing type: 'External Communcation'. Within this processing type you can configure your adobe form settings and linkaging
    Form name: 'BBP_PO_ADB_NL' (standard adobe form, view/create adobe forms via txn SFP)
    Form type: 'PDF-Based Forms'
    Format: BBP_PO_ADB_MAIL
    Personalization type: Recipient-Specific Variable Replacement
    We have configured output rules via txn BBP_PO_ACTION_CONF. Setting the 'external communication' processing type as the processing type for vendor output type 'mail' (changing the default 'Smart Forms Mail').
    Note: You require SAP Archivelink for archiving purposes, without it you can/should not activate archiving.
    Kind regards,
    Tim

  • Wanna Send email thru Adobe form...using tcode VA41

    Hi Experts,
    My issue is
    I have created an Adobe form.
    Now I want to send this form thru email ...
    This adobe form has to be generated using tcode VA41 which is then attached and emailed to customer.
    How do i do that...
    Can anyone help in sorting out this issue....
    Regards,
    Vijaya
    Edited by: Vijaya B on Jul 16, 2009 3:57 PM

    Hi,
              Code a prog. to generate emails and find the user exit using tc : smod , cmod where the adobe form is been triggered in the Trasaction.
    Regards,
    kumar.

Maybe you are looking for

  • R/3 to BW (error message when scheduling load)

    Hi I am new to BW and R/3. I have been getting this messsage when scheduling the load (transaction data) from R/3 to BW ODS. Error when updating Idocs in Source System Diagnosis Errors have been reported in Source System during IDoc update: System re

  • Early 2011 Macbook Pro GPU

    I know this question has been asked before. My problem is similar to what is mentioned here but I hope someone can explain the error log attached below and hopefully I'm able to find a DIY solution without much cost. I'm using a early 2011 MBP with Y

  • Wordpress sites are not displaying correctly on my mac after mountain lion upgrade (on all browsers - chrome, safari, firefox)

    I am having trouble viewing anything that is on wordpress, including the wordpress site. This means I cannot view my own wordpress blog too properly - no images are viewable, only plain text and hyperlinked text. This happened immediately after I upg

  • FontBook will not load or open some fonts

    We have quite a few font files that FontBook simply will not recognise as fonts. When we double-click the font file FontBook launches, but the font's preview window never appears. If we drag the font into FontBook's list it never gets added. If we us

  • Colors look odd

    I just got the new CS4 version and am working on a graphic in fireworks utilizing a template graphic. Whenever I open up any exhisting graphic in fireworks, the colors in the image are not the actual print colors. I am not sure if this makes sense an