Fetch Row process error in form called from report

I have an interactive report that calls a form (when user hits the edit link on a row). The form is using a fetch row process (Automatic Row Processing). The problem I have is if a user tries to hit the edit link on a row that was already deleted, I get the 'No Data Found' error. I got around it by adding a condition (exists) to the fetch row process, but that just retirns a blank recor din the form. I wanted to either make a nice error (with a validation) etc. Anybody run into this?

Bob,
The easiest thing to do would be to have the page with the interactive report submit the page and you could use a validation on that page to run the check before redirecting the user to the form with a branch. To do this, however, as the interactive report only has "link" options, you'll need to use a little javascript in the query...
Example:
SELECT id,
'<span onclick="doSubmit(''' || id || ''')">Edit</span>' AS edit
FROM TABLERegards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
Edited by: dmcghan on Dec 18, 2008 3:02 PM

Similar Messages

  • URGENT: REGARDING SMART FORM CALLING FROM REPORT

    HI,
    I had made a report in which i have to display the output in smart form ,the problem is this i had delclared only 1 INTERNAL TABLE and i dont know how to display it in the smart form as i am new to it .
    if help me out with solution ,he or she will be definately rewarded.
    regards,
    ric.s
    Edited by: ric .s on Dec 21, 2007 10:22 AM

    Hi,
    You need to craete a SMARTFORM using transaction SMARTFORMS. In this trasaction under FORM INTERFACE give the variable which would be passed from your program.
    Then use these variables and pass the information in Windows which you will create in your smartforms.
    When you activate your SMART form it will create a Fucntion Module whihc you need to call from your report program.
    Please go through the information given in thread :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm
    /community [original link is broken] hreadID=187587&messageID=2096976#2096976
    /community [original link is broken]threadID=187587&messageID=2096976#2096976
    Refer to the following:
    http://esnips.com/doc/7e67af5c-6188-4252-8613-41816756d560/from-sappres.pdf
    http://esnips.com/doc/58566115-54a4-4405-8872-8de952e245e5/smartform.pdf
    http://esnips.com/doc/2276d194-dc47-4b1e-9c14-7af0ffe923ca/smartforms-xsf-output.pdf
    http://esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc
    http://esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf
    http://esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt
    Smartforms Step by Step...links
    Smartforms Step by Step...
    http://www.sapgenie.com/abap/smartforms_detail.htm
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    This would give you information about smartform.
    Though the info is bit extensive but will surely help you.
    Reward if u find this useful.
    Regards,
    Lalit

  • New Window for Form called from a form based on a procedure

    Hi
    I have a form that is based on a procedure that asks for an employee number. The number is then passed to the procedure. The procedure then calls the next form passing in the employee number.
    This works however I would like the form called from the procedure to open in a new window while still being able to pass in the employee number as a parameter.
    Is there a way to do this? I have tried looking at wwa_app_module.new_instance & wwv_media.show_newwindow but I these only take the moduleid, I can't see how to pass in the employee number at the same time.
    Any help would be appreciated.
    Thanks
    Belinda

    Hi,
    You can pass parameters like this
    wwv_redirect.url('SJAYARAM_9042F.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3d');
    In this example the parameter deptno is passed with a value 10 and conditional operator '='
    Hope that helps.
    Thanks,
    Sharmila

  • Adobe Form called from SAP Portal, not executing interface global init code

    Hello!
    I have an adobe form called from both R/3 and SAP Portal and I need to show long text dinamically calculated.
    The deal is at the SAP Portal execution, as scenario characteristics don't allow string definitions, I'm using 255 characters tables (QISR_TAB_TYPE), that I'm trying to convert inside form interface (Global init code).
    The problem is that the interface global init code is being executed when the form is called from R/3, but it is not at SAP Portal.
    Does anybody know how to manage this? It's kind of a problem that the BAdi method int_service_request_init doesn't allow types over 255 characters... and if it is not possible to access the form interface code section (maybe there's any way)... i need to find some code section where i can convert tables before the form context is filled!!
    Thanks a lot!!
    Regards,
    Diana.

    Hi,
    have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
    Cheers

  • Calling Forms 6i from Reports 6i. Is this possible. Run Product in Reports

    Re: Calling Forms 6i from Reports 6i. Is this possible?
    Hello,
    I have need programming in Oracle 9.x and using Forms and Reports for about 1.5 years. My ERP application calls a report from a form. I DO NOT have source code for the FORM. But, I DO have source code for the Report. So, from the Report 6i, I would like to call an Oracle Form 6i. Note: Not WEB based. My question is, IS THIS POSSIBLE. I can not find a command like Run Product in Report for calling a Form Application. Can someone please help me. I am under the gun to have this ready in a couple of days. Can I call an Active X Application from Reports..if Oracle Forms DOES NOT WORK. This needs to be a Form Application because of the nature of this request.
    Thank you
    Dennis

    Thank you
    ...the ERP vendor based on a form icon button will call a report. They will pass a TAG_NUMBER from a database record (that they just inserted) to the report. This tag_number will link to other tables and will display the report. The problem is ??..there is additional information that the user needs to scan into the database BEFORE the report runs. This is part of the business work flow.
    I have options.
    1) Get the ERP Vendor to call a FORM based on the name I provide to them.(Not really an option since they are unwilling to make custom mod changes.)
    2) Have the user key into the REPORTS PARM FORM. And I will update the tables...
    3) Call an Active OCX popup FORM from Reports and then update tables. Is this possible from Reports???..I am not sure if I like to introduce ms vb into an oracle application. It just does not seem to be a correct solution/procedure.
    4) Pay the ERP Vendor as a custom mod to make the changes for us. (unlikely because they do not like making custom mod changes)
    5) ....any more ideas/comments please let me know..
    Thank you Again
    Dennis Aubrey

  • Automatic ROW Processing error after changing Schema

    Hello all,
    I have an APEX 3.0 application referencing tables on a different schema from the parsing schema.
    Workspace A -> using parsing schema A1
    Application A -> installed in Workspace A
    Application A -> access tables in schema A2 from schema A1, through synonyms
    All is working fine.
    Then I had to duplicate the application (let me say: to have a test environment).
    So, I created a Workspace B, a parsing schema B1, I've installed application A as application B in workspace B, and I've created schema B2 and I gave the grants to schema B1.
    Application B is running fine when trying to access objects on the parsing schema B1, but it returns a lot of errors when accessing objects on schema B2, in particular on Automatic Row Processing and Automated Row Fetch processes. The error I'm getting vary from ORA-942 (table or view doesn't exist) to ORA-936 (missing expression).
    A strange thing is that in Automatic Row Processing and Automated Row Fetch processes, I can choose only schema A1 as Table Owner, and all is working fine.
    In application B, I can select as Table Owner also the schema B2, even if it's not associated to the workspace. By doing this something works better. But I don't want to modify every page in the application where this happens. Also because I want the opportunity to maintain only one application.
    I think that the application installed in workspace B, still tries to access objects in schema A2, but I don't know why.
    Do you have any suggestion?
    Thanks.
    Andrea

    It returns these results:
    WORKSPACE     APPLICATION_ID     APPLICATION_NAME     PAGE_ID     PROCESS_SOURCE
    WS_DEMO     107     myappname     73160     F|&FETCH_SCHEMA.:CDW_LST_GRP:P73160_LTG_ID:LTG_ID
    WS_DEMO     107     myappname     73160     &FETCH_SCHEMA.:CDW_LST_GRP:P73160_LTG_ID:LTG_ID|IUD
    The query returns the same results in PROCESS_SOURCE columns, when ran from workspace A or B.
    I've found that FETCH_SCHEMA is an "application definition", and I've setup correctly in workspace B. The problem persists.
    Bye,
    Andrea

  • Fields appear as "Read Only" in an Int.Form called from a WD

    Hi Experts!
    I am having a doubt in an Adobe Int.Form, that is called from a WD application.
    The fields that are in my Form, always appear as a "read only". It is not possible to modify anything there.
    Here, I describe the steps that I follow.
    I create a very simple WD application. In its WD View, exist an unique Object (Adobe Interactive Form).
    In that object, I set the properties:
    "Data source": a context variable type "my structure". "My structure", is a simple structure with a couple or three fields, let´s say PERNR, BUKRS, WERKS... It is linked to the Form Interface (ABAP DICTIONARY-BASED INTERFACE). So in this way, the link between my WD and the AdobeInt.Form is working.
    "PDF Source": a context variable type XSTRING.
    "Template Source": here I have set my Int.Form. Currently, it only contains a couple of fields
    "Enabled": True.
    "Read Only": False.
    In the AdobeForm, I have drag & droped those 2 or 3 fields, save it, and activate it. I guess nothing more is needed, for my test.
    And at last, in the View´s method WDDOINIT, I am reading one of those fields, let´s say the employee number (PERNR), and I set by hardcoding its number (let´s say -> 00000001).
    Until here, everything seems to work fine. When I launch the WD test, the Adobeform appears, at the moment, with only one of my fields (Employee - PERNR), and its value is filled in with '00000001'.
    But now, I would like to write something by myself. And when I try to do it, it is not possible! Field PERNR, is displayed as a "READ ONLY".
    Someone knows what is happening here? I guess it should be possible, to activate as a "EDITABLE" that field in my Form.
    So here is my doubt.
    Am I doing anything wrong? Or am I doing any mistake?
    Thank you very much in advance!

    Finally I think I have found the problem.
    In the View where I am printing the ADOBEFORM, it is needed this code under the method WDDOMODIFYVIEW.
    method WDDOMODIFYVIEW .
      DATA: LV_INTERACTIVE_FORM   TYPE REF TO CL_WD_INTERACTIVE_FORM,
                 LV_METHOD_HANDLER     TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
      LV_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'INT_FORM' ). "   adobeform object in view
      IF LV_INTERACTIVE_FORM IS NOT INITIAL.
          LV_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          LV_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_HIDE_NAVIGATION_PANEL( ABAP_TRUE ).
          LV_METHOD_HANDLER->SET_DISABLE_PRINT_BUTTON( ABAP_TRUE ).
          WD_THIS->M_METHOD_HANDLER ?= LV_INTERACTIVE_FORM->_METHOD_HANDLER.
          WD_THIS->M_METHOD_HANDLER->SET_HIDE_TOOLBARS( ABAP_TRUE ).
        ENDIF.
    endmethod.
    Regards,
    Carles

  • Adobe form called from WDA - Translation Problem

    Hi,
    I have maintained French translation for the Adobe form using GOTO->Translation inSFP transaction.
    when i check in the developement system it is working fine.I have captured the translations in transport request using program
    RS_LXE_RECORD_TORDER and moved it to testing system.
    The changes are available in SFP but not visible when we execute the WDA HRASR00_PROCESS_EXECUTE as it is called from this application.
    Please let me know how to resolve this issue.
    Thanks
    Martina

    Hi ,
    As the form is related to ISR scenario in customizing client , I saved the adobe form there and transported customising request which resolved my issue.

  • Problem with Windows Form called from SAP

    I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
    The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
    Has anyone run into this in the past?  I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
    I've also tested this with simple test forms with another test project and get the same results.
    Any ideas?
    Thanks!

    This isn't merely a matter of viewing <i>new</i> windows.
    When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
    It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
    @Marc Roussel:
    BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
    But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
    ADDENDUM:
    Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
    Dim f as Form = ...
    f.Show()
    Application.DoEvents()
    f.WindowState = FormWindowState.Minimized
    Application.DoEvents()
    f.WindowState = FormWindowState.Normal
    Application.DoEvents()
    (all in System.Windows.Forms Namespace)

  • Add row button on tabular form works from time to time

    Hi!
    we have two environments (dev & prod) with 10gR2 and APEX 3.2.1.00.12 (installed from one and only setup file)
    we have developed application on dev and moved it to prod,
    and on prod it was discovered that - from time to time (not always) -
    when you press 'add row' button on tabular form,
    tabular form does not display new record on the page,
    if number of records exceeds number of records allowed to show
    (i.e. with 10 records maximum it works fine when you add records from 1 to 10 and can't add record 11)
    but - interestingly - increases number of rows in pagination by 1
    (e.g. "rows 10-20 of 35" changes to "rows 10-20 of 36").
    on dev this tabular form works correctly.
    what is it and how to heal it?..
    I recall I had same issue in prior releases (3.0 - 3.1), is it known issue?

    It seems to be true:
    - if there is ascending order on columns which fields are null in new line (have no default value), new row is visible in current "pagination" page
    - but if there is DEScending order OR ANY sort order is set on columns which fields are NOT null in new line (have default value), new row is NOT visible in current "pagination" page
    thank you!

  • Procedure calling from Report.

    Hi all,
    I am calling a procedure from report end... i have 4 session variables & a init block..
    in the init block default initialization string i have put a sql : select created_by from USER_DATA..
    I am not using this string to populate any of my variables...as the variables are kept blank by default...
    the string above is just to put some string to to validate my init block...
    can any one tell me the significance or wht type of sring i need to pass & its impact..
    Thanks,
    Pankaj

    Can somebody explain me how to make join in the Stored procedure .
    i m trying understand how the Procedure works in BIEE .
    I have Customer Dim and fact a table , Cust Dim has join with Fact . i have a custom fuction which returns Customer ID if i supply customer Name .
    i am stuck at place where how to make the Join between SP and Dim . i m getting a error sayin column not found if i add this SP.column in after having join with Customer Dim in Physical layer and column Mapping in BMM Layer.
    ANy thought on this

  • How to add external call from Report Painter

    Hi experts,
    I'm working on a report painter, and I need to do an external call, from the generated code.
    add something like this    PERFORM Z_CALCULO_IMPORTE_COMPENSADO(ZCASS_FFMRBCS)
                                                                                    USING CUR-TAB
    Is there any way to do it without an SSCR key?
    Thanks in advance

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • Debugging SAPM07DR forms called from MIGO -  another "infinite loop" case?

    SAMP07DR is an SAP-delivered include pool that calls SAPscript forms for various purposes, e.g. printing of GR slips when goods receipts are posted.
    A few months ago, the customer decided to make a Z version ZAPm07DR of this pool to create a custom version ZM07DRSONof the include  M07DRSON.
    We have now have a sporadic problem with GR slips not printing.
    Based on discussions here:
    Ouch! Ugh! Never seen something as ugly and embarassing as this!
    I think I am going to have to code an infinite loop in ZM07DRSON in order to trap it in SM50 after posting a goods receipt in MIGO.  This is because even when the print process fails, the MIGO goods receipt finishes OK with the usual "new mblnr" notification at the bottom of the screen.  So this tells me that the (S/Z)APMO7DR includes are being called asynchonously and can't be seen even with the
    But does anyone else know how you else you could debug SAPM07DR when its includes are called while posting a goods receipt in MIGO?
    I would hate to use the "infinite loop/SM50" approach except as a last resort.
    Thanks
    djh

    Hi Rich  -<br><br>
    1) it's gotta be asynch/background because as I said:-<br><br>
    a) the MIGO goods receipt finishes perfectly normally with the new mblnr notification on the bottom of the screen;<br>
    c) the SM13s are generated even though MIGO finishes mornally-<br><br>
    2) Regarding the infinite loop itself - we may not be able to reproduce the error in D or Q and I hate introducing an infinite loop into a P client on general principles, even if I condition it on my sy-uname, which of course I would do.<br><br>
    Regards<br>
    djh

  • Handling Submit Button on the ADOBE form called from Web Dynpro

    Hi,
    I have placed a Button on the ADOBE Form. How to Handle the event on this button. When i click this button, i want to save the details of the form into a Custom table.

    Hi Majunath.
    Create an event say, SUB_EVTin the view in WD where you have the Interactive Form UI element.
    Bind this event to the onSubmit of the Form.
    Now check the display type of the form. It will be either ActiveX or Native.
    Now go to the form designer and open Library palette. Navigate to Webdynpro ActiveX or Native Library(Depending on the form display Type in WD).
    Drag and Drop Submit button.
    On click of the button, the event handler in WD view namely, onActionsub_evt will be invoked. You can write your code in this handler.
    Now in order to read data from the form. Go to the form and go to Properties tab. Check the form layout type. If it is not ZCI, run transaction SFP_ZCI_UPDATE and convert the form to ZCI type.
    Now back to the event handler.
    as an example... I will use the following context node definitions
    PDF_DATA  1..1
      ACTUAL_DATA 0..n
        ATTRIB01
        ATTRIB02
    Assume the the node PDF_DATA is bound to the data source of your form.
    Now in the event handler write the foll code
    data: lo_node type ref to if_wd_context_node,
            lt_data   type wd_this->elements_actual_data.
    lo_node = wd_context->get_child_node( name = wd_this-.wdctx_pdf_data ).
    lo_node = lo_node->get_child_node( name = wd_this-.wdctx_actual_data ).
    lo_node->get_static_attributes_table(
      importing
        table = lt_data ).
    This will get all the form data in the internal table lt_data.
    Now you can process the data the way you want and save it in your custom tables.
    Regards,
    Reema .
    Edited by: Reema Shahbazkar on Sep 16, 2008 11:39 PM
    Hope this helps!!

  • Error creating service call from wizard

    Hello,
    I am trying to import a static method on a ABAP class using the create service call wizard. It fails in program SAPLWDY_WB_MODEL_WIZARD with an out of bounds error :
    In the running program "SAPLWDY_WB_MODEL_WIZARD", part of a string was about to be accessed with an explicitly specified length.
    However, this length (2) exceeded the current length of the string (1).
    This kind of access is illegal.
    Termination occurred in the ABAP program "SAPLWDY_WB_MODEL_WIZARD" - in "GET_EXTENDED_RELATIVE_NAME".
    The main program was "SAPMSEU0 ".
    >>>>>
    split l_absolute_name at 'TYPE=' into str1 str2.
       if str2(2) = '%_'.           
    <<<<<
    The error occurs when the type is I, and so the string containing the type length is 1.
    I have not had this problem before even though I have imported methods containing the same type in parameters. I understand that nothing has changed on our system.
    Kind regards
    Steve

    hi
    go to service call wizard. Select the radio button "use existent controller. iN the controller field, select componentcontroller
    In the next step select function module>give the bapi name>Now you have table containing node type, name and object type. Under object type column, make all of them of type C ( context node/attribute ) and complete the wizard.
    In your component controller, you will find the nodes as per importing/exporting parameters of BAPi
    Regards
    Vishal Kapoor

Maybe you are looking for

  • Null Pointer and cache problem

    Simple program...reads 4 images from html and prints them on the page. That all works, but when observing the java console, a "Null Pointer Exception" error pops up after a while. I believe it has something to do with the cache. Is there any way you

  • Flat File Upload from WebDynpro ABAP

    Hi, I am struggling to find a solution for this requirement and I hope I get some help from the Gurus here. I have to upload a ".csv" file from the WebDynpro application, and then store the data in the flat file in a Z# table. Can some one explain me

  • Employee delta load to CDB

    The system is in production. I need to load new employees from R/3 to CRM, and I've done that. Problem: I need to download employees to CDB, but I can't do a BUPA_MAIN initial load since I'm in production. Question: What should I do to transfer only

  • I lost my iPad how i can delte all the information

    i lost my ipad, how i can delete all the information

  • Error while Accessing OIF admin Console

    Hi All, This is Pokuri i installed OIF 10g and to fix some error i also installed one patch p6157821 after that i tried to login to OIF admin console but showing error " 500 Internal server error Servlet error: Error instantiating servlet 'uix' (serv