Jobdetails/get previous job whitch called report in seperate task

We have 2 reports whitch will call the same function moduls in seperated new tasks and wait for anser.
We use it to work up data in parallel mode. The function module itself call a report
e.g.
        CALL FUNCTION pa_fbnam
           STARTING NEW TASK g_taskname     "Function module to perform in parallel
           DESTINATION IN GROUP pa_group 
           PERFORMING return_info ON END OF TASK
           EXPORTING
               ip_tjob   = g_id_tjob  "jede RFC Instanz bekommt eindeutige ID
               IP_DBS    = pa_dbs     "Kennung der Zieldatenbank
               IP_TASK   = g_taskname
           EXCEPTIONS
             communication_failure = 1 MESSAGE l_msgtxt.
Now the problem is, that the reports call the SAME function moduls. In the function modul we want to know
whitch report called the fm, because we need this info for the report ...
We tried "call stack" info - no chance, we tried import/export to/from memory - no chance
Daoes anyone has an idea, how we can track the 'call parts' or rather say how we can check, whitch report/function calls the new tasks?
thanks a lot
bye
Mike

Hi Mike,
Not sure.  I tested it in an ECC6 system as STARTING NEW TASK (function module in same client/application server as calling program) and via a bgRFC from ECC6 to SCM 5.1
In both cases the function returned the calling program details with no problems. 
If your calling program is running on the same application server as your RFC then maybe you could try the EXPORT/IMPORT command with the alternative of either SHARED MEMORY or SHARED BUFFER
export sy-repid to shared buffer indx(st) id 'ZZCALLER'.
where ZZCALLER is any arbitrary name.  In your RFC immediately delete the value (after reading it) by
delete from  shared buffer indx(st) id 'ZZCALLER'.
Unfortunately there could be a minute timing issue with caller A and caller B executing at the same time but this is minimal.
Cheers,
Pete
Addition:
Just a thought to 'help' a little with the timing issue; you could have two id's ZZCALLERA and ZZCALLERB.  Try to import both and by checking the sy-subrc you will know which one was called. Not brilliant but may help depending upon your overall solution design
Edited by: Pete Devereux on Feb 18, 2010 5:09 PM

Similar Messages

  • Problem in getting previous screen in Classic report.

    Hello everyone,
                          I am facing a serious problem in getting the previous screen in classical report.
    let me tell you in detail.
    When i run the report, i will have a selection screen with some checkboxes and select-options. Now in the report i have functionality to get some more select-options from user selection. Here i am calling the pop-up screen, wherein if user selects checkboxes, then those fields will be visible on the default selection screen.
    To display them i am using Modif-id concept. Depending on the checkbox values, i am setting up the variables. Using those variables i am modifying screen.
    Now suppose user has got some extra fields and run the report. It will get the output in the desired format.
    Now the problem is when i am pressing 'BACK' button on the report output. The fields which are appended using modif-id are getting cleared. After that what i have is only the default selection-screen.
    I want those fields to be restored. How do i go for it. Please help me out.
    thanks in advance.

    Hi thanks for reply.
                               Actually code is too big to post. But have you understood my problem. Some part of code ia am sending.
    AT SELECTION-SCREEN OUTPUT.
    IF SY-UCOMM <> 'ONLI' AND SY-UCOMM <> 'FLDS' AND SY-UCOMM <> 'OK' AND
    SY-DYNNR <> '0100' AND SY-UCOMM = ' '.
      LEAVE TO SCREEN 1000.
    ENDIF.
    Now i want to know, whether i could get bcak those fields which which are appended using Modif-id,
    how do i get the information about screen fiedls which was there after leaving the screen.
    Thanks.

  • Getting rep-3002 when calling report from form on web

    i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.

    Hello,
    If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Urgent: Getting FRM-41211 when calling reports from forms for first time.

    Hi,
    We are running into the FRM-41211 error, when the users try to call a report from a form. The report is called from a form in SYNCHRONOUS mode. This is the only report that is being called. No other report is
    running at that time when the users get this error. This is happening only the first time when they try to call the report from the form. After getting this error, when they click on OK, and when they try to call this
    report again, the report works fine.
    Any ideas?? It's urgent...
    Thanks
    Vamshi.
    null

    Maybe try to use "run_report_product"?

  • Getting   FRM-41029   when calling report from form

    Hi
    I have following procedure to run the report but its running fine but giving error FRM-41029 when calling the report from the form.
    runrep('MATREP,'REPSER','PDF','F:\rec\RepEnt.RDF');
    Repid := FIND_REPORT_OBJECT(repobj);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE, RUNTIME);
    set_report_object_property(repid, REPORT_SERVER, repserv);
    set_report_object_property(repid, REPORT_COMM_MODE, SYNCHRONOUS);
    set_report_object_property(repid, REPORT_DESTYPE,'file');
    set_report_object_property(repid, REPORT_DESFORMAT,repfor);
    set_report_object_property(repid, REPORT_FILENAME,repfile);
    rgds
    soumya

    hi
    try something like this.
    PROCEDURE sarah ( p_report_name varchar2, vParamValue number ) is
    l_param_list  paramlist;
    l_rep_id      report_object;
    l_rep_job     varchar2(100);
    l_rep_status  varchar(100);
    BEGIN
    l_param_list := Get_parameter_List('tmp');
    IF NOT Id_Null(l_param_list ) THEN
    Destroy_parameter_List( l_param_list );
    END IF;
    l_param_list := Create_parameter_List('tmp');
    add_parameter(l_param_list ,'p_num',text_parameter,to_char( vParamValue ));
    l_rep_id := FIND_REPORT_OBJECT( p_report_name );
    if
         id_null ( l_rep_id )
    then
      msg ( 'There is no Report ' || p_report_name || ' in form ' || name_in ( 'system.current_form' ) );
      raise form_trigger_failure;
    end if;
    SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_OTHER, 'paramform=no');
    l_rep_job := RUN_REPORT_OBJECT( l_rep_id, l_param_list );
    l_rep_status := REPORT_OBJECT_STATUS( l_rep_job );
    WHILE l_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    l_rep_status := report_object_status( l_rep_job );
    END LOOP;
    WEB.SHOW_DOCUMENT('http://sarah:8889/reports/rwservlet/getjobid'||substr(l_rep_job,instr(l_rep_job,'_',-1)+1) || '?server=repserver', '_blank');
    END; then u may call the procedure something like this.
    when-button-pressed trigger.
    begin
    sarah ('REPORT6', :block.item );
    end;sarah
    Edited by: S@R@h on Nov 30, 2009 9:39 PM

  • Getting Report ID of Calling Report in Child Report

    Hi,
    Am using Business objects webi reports at my job.
    I have a scenario where i call report B from report A and  report B from report C.Am using hyperlinks to call the other reports.
    A ->calls->B
    C->Calls->B
    I wanted to know how to get the report id of the parent report(calling report)(A/C) in the child report (B). I need those details as i have to have back button in child report(B) which takes me to corresponding calling(parent) report.
    So if A->calls->B back button in B report should take me to A Report.
    C->B back button in B report should take me to C Report.
    Your help is very much appreciated.
    Thanks & Regards,
    Sravya

    Karthik,
    Thanks for your response.But my problem is not getting report id.I need to make a dynamic back button which points to correct parent report from child report, though there are many parent reports calling the child report.
    So i should be able to track which report has called.
    Looking forward for some help
    Thanks
    Sravya

  • How can I get my old iTunes music onto my new computer without access to my old computer? I left my previous job and forgot to transfer my music. I bought iTunes match and it shows my old Mac as a device, but I cannot get the music off it.

    How can I get my old iTunes music onto my new computer without access to my old computer? I left my previous job and forgot to transfer my music. I bought iTunes match and it shows my old Mac as a device, but I cannot access any of the old music. All I can find are what was on my iPhone, but that's not what I want. I need all my old music from my old Mac, which has been wiped clean by IT at my old job. BUT, I did have iCloud at that time and I thought all my music would be accessible through it. I don't understand the Cloud! And I'm thinking spending $24.99 on iTunes Match was a waste of money because I still can't access my old music.

    When you are done with this issue, consider the computer back at the office may still
    have access to your iTunes account, and it should be de-auhorized. You can do that
    remotely, but be sure you carefully do not mess up your other computer iTunes libraries.
    Good luck & happy computing!

  • Issue calling report from a Form(11.1.2).

    Hi,
    I have an existing code in the form to call a report and it seems to be working in the current 10g version of production server and I am migrating forms 10g to 11gR2. My issue here is when, I want to call the report from Forms 11g ( i.e. in developer suite) it is taking the report server as a blank. My Oracle FMW (11.1.2) is installed on the Windows 2008 R2 server. I do not know, if I need to configure the report server locally after the installation of FMW. Please help me out, if someone has faced a similar issue before.
    DECLARE
              rep_Report                                                            report_object     := find_report_object('XYZ');
                   rep_server                                                        varchar2(100);
                   rep_jobidFull                                                            varchar2(100);
                   rep_jobidPartial                                                                            varchar2(100);     
    BEGIN
                   -- Get the report server name
                   tool_env.getvar('REPORTS_SERVER_NAME', rep_server); --UNIX
              IF rep_server IS NULL THEN -- WINDOWS
                   tool_env.getvar('HOSTNAME', rep_server);
              END IF;     
              message('rep_server'||' '||rep_server);
                   SET_REPORT_OBJECT_PROPERTY(rep_Report,REPORT_SERVER,rep_server);
                   rep_jobidFull := run_report_object(rep_Report, pl_id);
                   message('rep_jobidFull'||' '||rep_jobidFull);
                   rep_jobidPartial := substr(rep_jobidFull,length(rep_server)+2,length(rep_jobidFull));
                   message('rep_jobidPartial'||' '||rep_jobidPartial);
         web.show_document('/reports/rwservlet/getjobid'||rep_jobidPartial||'?server='||rep_server,'_blank');
    END;
    Errors:
    FRM-41211: Integration error: SSL failure running another product.
    REP-51000: The Reports Server name is not specified.
    Thnx,
    Sona.

    Hello,
    Usually in development installation report server gets installed by default unless you uncheck it.
    You can find the report server name by:
    a)looking into rwservlet.properties file
    or
    b)as entry in Start > All Programs > Oracle Classic instance - asinst_1 > Reports Services > Start Report Server rep_wls_reports_<hostname>_<InstanceName>
    or
    c)http://<yourhostname>:7001/reports/rwservlet/getserverinfo
    In order to run the report from froms you need:
    -to implement the solution i described in a previous update
    or
    -use a harcoded value in the form
    SET_REPORT_OBJECT_PROPERTY(rep_Report,REPORT_SERVER,'your_report_server name');
    Since you are in 11gR2 development mode you cannote use EM or OPMN to get the status of the report server as Roberto Suggested.
    For your reference also check:
    Oracle Forms and Reports 11g Release 2 (11.1.2) Development Installation FAQ (Doc ID 1373210.1)
    Regards,
    Alex
    If someone answer helped please mark it accordingly.

  • Calling reports from oracle forms 9i

    Hi
    I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
    declare
         pl_id2 ParamList;
         pl_name2 VARCHAR2(30) := 'liste2';      
    v_rep VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
    pl_id2 := get_parameter_list(pl_name2);
    if (Id_Null(pl_id2) )THEN     
    pl_id2 := Create_Parameter_List(pl_name2);
    IF NOT Id_Null(pl_id2) THEN     
         add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
    END IF;
    end if;
    IF NOT Id_Null(pl_id2) THEN
    if(:mois is not null) then
    v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
    message(v_rep);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
    ELSE      
    message('Error when running report');
    END IF;
    end;
    the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
    so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
    Rq: the report my_report is running very well in report builder.
    does someone see where is the problem so can help me??
    thanx.

    Hi,
    This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
    http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
    and check the detailed error occured.
    This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
    Regards,
    -Bulent

  • Calling report didn't generate desired output.

    Actually we are calling a XML Report from another XML Report,using fnd_request.submit_request in after report trigger ,it is Working fine for first(parent) report..
    But for Calling report(second Report) it is generating XML Data.If we run that second report separately..it is getting correct output..
    Pls give me suggestion in this issue.

    Hi,
    Thanks .......
    I have added scripts details previous message, i have run only tscheck.sh script.
    [oracle@ap-pun-ws5645 db_1]$ echo "messagebody" >> testme.txt
    [oracle@ap-pun-ws5645 db_1]$ mailx -v -s "subject" [email protected] < testme.txt
    [email protected].. Connecting to [127.0.0.1] via relay...
    220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 4 May 2011 10:01:08 +0900
    EHLO localhost.localdomain250-localhost.localdomain Hello localhost [127.0.0.1] (may be forged), pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-8BITMIME
    250-SIZE
    250-DSN
    250-ETRN
    250-DELIVERBY
    250 HELP
    MAIL From:<[email protected]> SIZE=76250 2.1.0 <[email protected]>... Sender ok
    RCPT To:<[email protected]>
    DATA250 2.1.5 <[email protected]>... Recipient ok
    354 Enter mail, end with "." on a line by itself
    .250 2.0.0 p44118AE027160 Message accepted for delivery
    <[email protected]>... Sent (p44118AE027160 Message accepted for delivery)
    Closing connection to [127.0.0.1]
    QUITbut still didn't get any mail

  • BAPI to get Previous Employment info

    Hi,
    does anybody know a BAPI call to get previous Employment informations of an employee?
    e.g.
    Employer, City, Job type, work contract?
    regards,
    Andre

    hi,
    check the below link i think u can find the bapi required for u r application
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    Try Bapi BAPI_EMPLOYEE_GETDATA. The table in which this data is stored are named PA****. Replace the **** with number of the infotype. Thus infotype 0001, organizational assignment, can be found in table PA0001.
    Good luck!
    Regards,
    Naveen

  • Automatically print fax call report from LaserJet 500 MFP M525

    How do you set up an LaserJet 500 MFP M525 to automatically print out a Fax Call report after each fax is sent?  We are receiving a report after each fax is received and I do not want that.  I need to have proof of fax sent.   Please help!!!  thanks

    Hi mllundee,
    Sorry about that, I must have grabbed the wrong link when I wrote the message. :-s
    I am looking for the User Guide for the LaserJet 500 MFP M525 now. Page 153 lists the notification setting. This should be the setting to get a report on sent faxes. 
    1. From the Home screen on the product control panel, scroll to and touch the Administration button.
    2. Open the following menus:
    Fax Settings
    Fax Send Settings
    Default Job Options
    Notification
    Please let me know if this helps or not.
    AlliBee
    I am an HP employee, but opinions expressed here are my own.
    Click the thumbs up + button if I have helped you. Mark Accepted Solution if your problem is solved. If both apply......do both.

  • Getting assigned job id

    Hi,
    How can I get the job id that was assigned by the reports (10g) engine (for later status checks)? I haven't found any report-running API that would return it (or any way to book a number and then passing it along with the job)
    Thanks in advance,
    Nik

    What technology are you using to call the report.
    i.e.
    If you are using a 10G database you could using the srw package to call the report and get the job id number.
    e.g. create or replace procedure event_driven_report_2 as
    myPlist SRW_PARAMLIST;
    myIdent SRW.Job_Ident;
    BEGIN
    myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
    srw.add_parameter(myPlist,'GATEWAY','http://<host:port>/reports/rwservlet');
    srw.add_parameter(myPlist,'SERVER','my904win');
    srw.add_parameter(myPlist,'REPORT','test.rdf');
    srw.add_parameter(myPlist,'USERID','<userid>');
    srw.add_parameter(myPlist,'DESTYPE','file');
    srw.add_parameter(myPlist,'DESFORMAT','HTMLCSS');
    srw.add_parameter(myPlist,'DESNAME','c:\temp\emp.htm');
    myIdent := srw.run_report(myPlist);
    EXCEPTION
    when others then
    raise;
    END;
    If you are using oracle forms to call the report
    DECLARE
     repid REPORT_OBJECT; 
    v_rep VARCHAR2(100); 
    rep_status VARCHAR2(20);
    BEGIN
     repid := FIND_REPORT_OBJECT('report4');
     v_rep := RUN_REPORT_OBJECT(repid);
    END;
    There are other methods available other techologies ...
    Cheers
    Q

  • Calling Report from Menu (Oracle Forms 10g)

    We have the applications in Forms6i & Reports 6i (Client Server) and migrating to Forms 10g and Reports 10g. We have the menu, from that menu we are calling all the forms and Reports. For especially Reports earlier we user RUN_PRODUCT but now 10g it is not working. How can call the report using RUN_REPORT_OBJECT
    Important things we have some dynamic parameters (input) to the each report. That means when i called the report from the menu i need to get first parameter form to take the parameters and then can be run the report.

    Here is the code to call report from menu in 10g
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
    pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
         Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');           
    Add_Parameter(pl_id,'P_C_CODE',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_CODE',TEXT_PARAMETER,:GLOBAL.BRANCH);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_VOUCHER_ENTRY.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
                   --Display report in the browser
                   WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

  • FRM - 41219 CANNOT FIND REPORT INVALID ID  - CALLING REPORT FROM FORM

    I am using Developer Suite 10g (forms 9i, reports 9i) . windows XP.
    I am using the following code in WHEN-BUTTON-PRESSED-PRESSED trigger in form to call report.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := find_report_object('C:\EMP.RDF');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    as as result It is displaying FRM - 41219 CANNOT FIND REPORT INVALID ID.
    I have used the EMP.JSP also in find_report_object built-in. But there is no difference.
    what could be the reason - plz give the solution.
    with thanks
    by GMS

    Unless you made a mistake and overlooked it, what I suggested should work. Having said that, you did not mention the exact Forms version you are using. There may have been a problem in the version you are using which was corrected in a later release. I tested the example I offered using Forms 10.1.2.3 and it works correctly. Carefully review what you did. Verify that the file actually exists in the file system. Also, I would recommend renaming the file with all lower case letters and referencing it in the form with all lower case letters. Here is the complete code of the form I tested. I will also include the property values from the Report object.
    Report1 settings:
    Name - REPORT1
    Subclass Information -
    Comments -
    Filename - dummy.rdf
    Execution Mode - Batch
    Communication Mode - Synchronous
    Data Source Data Block - <Null>
    Query Name -
    Report Destination Type - File
    Report Destination Name -
    Report Destination Format -
    Report Server -
    Other Reports Parameters - On the form create the following items in BLOCK1:
    Text fields:
    <li>SERVERNAME
    <li>REPNAME
    <li>OTHERPARAMS
    Button:
    <li>CALL_REP
    In the WHEN-BUTTON-PRESSED trigger add this code:
    Declare
    repid REPORT_OBJECT;
    v_rep varchar2(256);
    rep_status varchar2(256);
    Begin
       repid := find_report_object('REPORT1');
    -- Set Report Object properties
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'HTML');
    -- Comm mode 1 = SYNCHRONOUS
    -- Comm mode 2 = ASYNCHRONOUS
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, 1);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, :block1.SERVERNAME);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, :block1.REPNAME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,:block1.otherparams);
    SYNCHRONIZE;
    -- Run report and get status
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := report_object_status(v_rep);
    SYNCHRONIZE;
    -- Wait for Reports to generate results
        WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
        LOOP
          rep_status := report_object_status(v_rep);
        END LOOP;
        SYNCHRONIZE;
    -- If DESTYPE is appropriate for displaying to user, execute WEB.SHOW ;   
        IF rep_status = 'FINISHED' THEN
          WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||:block1.SERVERNAME,'_blank');
        ELSE
          message(rep_status);
        END IF;  
    END; When you run the form, enter the Report Server name and the Report filename (include the path if you have not configured REPORTS_PATH). Then click on the button. Note that the substr logic may need to be altered slightly if you are using an old version of Forms/Reports.
    .

Maybe you are looking for