Activating u00E1 former Window after calling a Document management picture

Hi,
in an ABAP programm I am calling function module CVAPI_DOC_VIEW2 which opens a new window where I can view a Document management picture for a given material number.
My problem is, that the new called window is active and I have to use a mouse click to activate the first window to enter a new material number with a barcode reader.
How can I activate the first window through ABAP without having to use a mouse click again ?
Is there a function module or class available which I can call to activate the first window again?
Below you find a short programm which calls the funtion module CVAPI_DOC_VIEW2.
Thank you in advance for an answer.
Regards
Franz Grott
Tel. 0172-6056850
REPORT  zdummy02.
SELECTION-SCREEN BEGIN OF SCREEN 9100.
PARAMETERS: p_matnr TYPE matnr DEFAULT 'CH-6300' OBLIGATORY.
SELECTION-SCREEN END OF SCREEN 9100.
START-OF-SELECTION.
  TABLES: drad.
  DATA: lt_drad TYPE TABLE OF drad.
  CALL SCREEN 9100.
  SELECT * FROM drad INTO TABLE lt_drad
    WHERE dokob = 'MARA'
    AND   objky = p_matnr.
  LOOP AT lt_drad INTO drad.
    CALL FUNCTION 'CVAPI_DOC_VIEW2'
      EXPORTING
        pf_dokar       = drad-dokar
        pf_doknr       = drad-doknr
        pf_dokvr       = drad-dokvr
        pf_doktl       = drad-doktl
  PF_APPTP       = '1'
     EXCEPTIONS
       error          = 1
       OTHERS         = 2
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDLOOP.

I've run into this issue in CP4 as well though I've never been sure why it happens. It looks like you're opening the swf through a browser to so, for want of a solution, the easiest workaround is the edit the html file.
open it in a text editor such as Notepad.
Five or six lines down you'll find the title element which defines the title as it will display in your browser titlebar:  <title>This text is the title that displays in your browser title bar</title>
Just change the text the the title you want and save the html file.
If you go with this solution, I suggest that when you are publishing the project again you deselect the option "Export HTML" in the publish wondow. Otherwise you will have to edit your html file each time you publish.
Hope this helps.
Niamh

Similar Messages

  • Netscape 7 replaces form window when calling reports

    Netscape 7.0, unlike Netscape 4.7 does not handle forms application that calls on Reports to display Report preview in PDF.
    When our forms call reports to display a report to the user in the browser, the window on which the form screen is presented is replaced by the window which brings up adobe reader to display the report.
    IE 5.5, Netscape 4.7 work fine.
    Is there a configuration which must be set in Netscape or in the forms code to direct the browser to open a separate window to receive reports output?

    Lawrence,
    try calling it
    web.show_document('<URL'>,_blank);
    This should do it. In Forms9i this built-in is able to call out to javascript, giving you even more control over the window you use it in.
    Frank

  • Redispaying a window after calling dispose() in MacOS

    When I call dispose() on an object that extends JDialog and then later call
    pack();
    setVisible(true);
    on the same object, the window reappears as it should except in MacOS.
    When im running the program in MacOS, the redisplayed window isn't quite the same.
    Selected checkboxes, the right end of comboboxes, the borders of clicked buttons,
    aren't highlighted (either blue or graphite).
    Is there any way to get around this?

    Read the API.
    Yes but it also says that calling show or pack after dispose should
    re-create the native resources exactly as they were before Oops... talk about tunnel vision. Even without reading that, I should have known that it was possible since I knew that components don't get "realized" until a pack or show is done.

  • There is no response form windows after connecting iphone 4

    when  i connet my iphone 4 to pc there no detection of my phone
    i have installed itunes but then also it dosent detect

    Did you check if Apple Mobile Devcie Service is still active on your computer? iPhone and iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows
    More tips here: iOS: Device not recognized in iTunes for Windows

  • Problem to close Form window

    I want to close Form portlet window after the user has pressed Insert.
    I have added code go('javascript:self.close();') into onSuccess section. This works fine when I'm using Netscape but not in IE 6. Method self.close (or window.close) works fine in IE when I'm using it e.g. in UIF templates.
    Does anyone know any trick how to close Form window after successful (Insert) operation?
    Regards
    Rainer

    I found solution myself. I inserted illegally formatted URL in to onSuccess field, and I managed to debug error. The portal is trying to call page http://server:7778/pls/portal/javascript:window.close();
    My solution was to write a simple HTML page:
    <html><body onLoad="self.close();"></body></html>
    whose URL is written into onSuccess field.
    Please comment, if you find possible errors in this solution.
    Regards
    Rainer

  • Form "window"  Menu changed after  Migration

    Hi All,
    I have migrated form 6i to 10g.After migration the forms WINDOW menu contain a menu item (which is a radio button ) called FILLER_WINDOW.
    Client wants to disable this menu item.
    Can i disable it?
    Thanks in advance.

    Hi,
    Can you please let me know how as i'm not able to find this menu item in .MMB.
    Thanks,
    DK

  • Forms window closing after reconnecting sniped session

    The user accounts in our Oracle database are set up with profiles such that their sessions are terminated after 60 minutes of idle time. However, our Forms application allows users to reconnect to the database if the session has timed out in this way.
    After reconnecting, my Forms window closes abnormally, and I have to return to my browser window to start a new Forms session. The closing of the Forms window does not necessarily happen immediately - it seems to happen only if I navigate to a certain form (the application's main menu). If I happen to be on a different form when I reconnect, I can query and update data, and navigate to other forms, but once I navigate back to the main menu form, the session is abnormally terminated.
    No error messages are produced anywhere when this happens (at least not where I've looked thus far :) I have searched the forms server, the database server, and the client computer.
    I have brought up the issue with the vendor who developed the application, but I was wondering if this issue rang any bells with anyone here.

    Hi,
    are you saying that the Browser window is closed when this happens ? In this case I would assume something else than Forms to cause this issue - maybe some custom code that calls JavaScript to close the window on exit. Forms usually errors with a JavaException that you can see in the JInitiator console (assuming Forms running on the web). Have a look and if there is nothing in there, bug the vendor to look into this.
    Frank

  • I am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    i am trying to generate purchase order and i create a BAPI also which is active.
    But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    Hi,
    Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
    This is my CODE-
    FUNCTION ZBAPIPOTV2.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(POHD) TYPE  ZPOHD OPTIONAL
    *"     VALUE(POITEM) TYPE  ZPOITEM OPTIONAL
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET1 OPTIONAL
    data: ls_pohd type bapimepoheader,
             ls_pohdx TYPE bapimepoheaderx,
             lt_poit TYPE TABLE OF bapimepoitem,
             lt_poitx TYPE TABLE OF bapimepoitemx,
             ls_poit TYPE bapimepoitem,
             ls_poitx TYPE bapimepoitemx.
       MOVE-CORRESPONDING pohd to ls_pohd.
       MOVE-CORRESPONDING poitem to ls_poit.
       ls_pohdx-comp_code = 'x'.
       ls_pohdx-doc_type = 'x'.
       ls_pohdx-vendor = 'x'.
       ls_pohdx-purch_org = 'x'.
       ls_pohdx-pur_group = 'x'.
       ls_poit-po_item = '00010'.
       APPEND ls_poit to lt_poit.
       ls_poitx-po_item = '00010'.
       ls_poitx-po_itemx = 'x'.
       ls_poitx-material = 'x'.
       ls_poitx-plant = 'x'.
       ls_poitx-quantity = 'x'.
       APPEND ls_poitx to lt_poitx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
         POHEADER                     = ls_pohd
        POHEADERX                    =  ls_pohdx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    *   PARK_COMPLETE                =
    *   PARK_UNCOMPLETE              =
    * IMPORTING
    *   EXPPURCHASEORDER             =
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       = return
        POITEM                       = lt_poit
        POITEMX                      = lt_poitx
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   SERIALNUMBER                 =
    *   SERIALNUMBERX                =
    *   INVPLANHEADER                =
    *   INVPLANHEADERX               =
    *   INVPLANITEM                  =
    *   INVPLANITEMX                 =
    ENDFUNCTION.
    i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". 

  • Form doesn't exists after calling driver program

    Hi,
         I had created a invoice form, and i called through driver program in se38.After executing i m getting as 'Form doesn't exists'.
    'zinvoice1'   is the name of the smartform.
    Code as follows:
    REPORT  ZINVOICE1.
    tables: kna1,vbrp,vbrk.
    parameters: p_kunnr like vbrk-kunag,
                p_vbeln like vbrk-vbeln.
    data : fm_name type rs38l_fnam.
    data: t_vbrp like standard table of vbrp,
          t_vbrk like standard table of vbrk.
    data: fs_kna1 type kna1,
          fs_vbrk like line of t_vbrk,
          fs_vbrp like line of t_vbrp.
    start-of-selection.
    select single * from kna1 into fs_kna1
           where kunnr eq p_kunnr.
    select * from vbrk into table t_vbrk
            where kunag eq p_kunnr and vbeln eq p_vbeln.
    select * from vbrp into table t_vbrp for all entries in t_vbrk
             where vbeln = t_vbrk-vbeln.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = 'zinvoice1'
        VARIANT                  = ' '
        DIRECT_CALL              = ' '
       IMPORTING
         FM_NAME                  = fm_name
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION '/1BCDWB/SF00000050'
      EXPORTING
        ARCHIVE_INDEX              =
        ARCHIVE_INDEX_TAB          =
        ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         =
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
        OUTPUT_OPTIONS             =
        USER_SETTINGS              = 'X'
          IM_FS_KNA1                 = fs_kna1
          IM_T_VBRP                  = t_vbrp
      IMPORTING
        DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            =
        JOB_OUTPUT_OPTIONS         =
        TABLES
          IM_T_VBRK                  = t_vbrk
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZINVOICE1'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IM_FS_KNA1 = fs_kna1
    IM_T_VBRP = t_vbrp
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    IM_T_VBRK = t_vbrk
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • After closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    after closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    You can always shut it down manually via the Task Manager
    (CtrlShiftEsc)...
    On Mon, Sep 1, 2014 at 3:05 PM, frank koethen <[email protected]>

  • You cannot open window  Service Call Form with your current license  8.8

    Hi Expersts,
         I am trying allocate license for users in 8.8 (PATCH 09) , I am assigning properly but when log in to assigned user i am continously getting the following error. again i checked license has been allocated correctly. it is a CRM License
    Kindly help
    You cannot open window [60110] Service Call Form with your current license
    Regards
    Mohamed

    Dear Mohamed,
    This issue probably occurs due to the application error described in the SAP Note [1456922|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1456922].
    When login B1 with incorrect upper/lower cases for the user name (eg. The user name is registered "manager" but login as "Manager"), the user can login successfully but fails to open a certain form window the user has permission.                                                        
    This issue is planned to be fix in a Patch of 8.8.
    As workaround, until the issue will be fixed, the users should use exactly the same user name as itu2019s represented in the OUSR table, with case sensitive user code.
    hope it helps,
    Regards,
    Ladislav Meszaros
    SAP Business One Forum Team

  • How to keep first form window state maximize when you called the second for

    HI,
    how to keep first form window state maximize when you called the second form ?
    Thanks

    Here is sample of doing this.
    Chris

  • Document ID - Property field shows on item view property page after deactivating the Document ID Service features at Site Collection level

    Hi,
    When a site collection was created, I enabled the Document ID feature at site collection level.  Then some item was created in a document library as well as list libarary
    Now it was decided that we dont want the Document ID feature so I disable the feature from Collection feature list
    Still when a user view the property of a document it shows the Document ID property with the ID (when click on the ID it shows the message that 
    This Site Collection is not configured to use Document IDs.
    Troubleshoot
    issues with Microsoft SharePoint Foundation.
    Correlation ID: 9640ac9f-4b9c-4ae8-9f0b-402ed7e3b3c5)     Is there anything that I should do so that DOcument ID property does not show on the document property page... I tried
    to looked at the content type to see if I can remove the document ID but I could not find the Document ID as a property that can be removed from the type

     
    Hi,
    I would just remove the column from the view.  You can make views for each list, it you look under the list by Clicking List while the list is open, you should see a link in the ribbon which say "Modify view" click this link. 
    This link will open the edit view page you can then uncheck the box for the column which will remove it form that view.
    According to this
    http://msdn.microsoft.com/en-us/library/ee559302.aspx
    Deactivating the feature removes links to the Site Collection Settings page, makes the page that is used to look up document IDs no longer available, turns off the document ID service, and stops assigning document IDs. The server does not remove the columns
    that it adds at the site level when the feature is first activated so that, even after deactivation, the existing document IDs are preserved. After the feature is deactivated, users who try to use a static URL to look up an item by its document ID see an error
    message indicating that "This Site Collection is not configured to use document IDs."
    The Document id service will add new columns to the document content type and the document set content type. 
    It also adds an event receiver which should be deactivated when you deactivate the doc id service. 
    Theoretically.  You should be able to go in and remove the columns from the document type, and then force an update.
    Thanks,
    Rock Wang
    Rock Wang TechNet Community Support

  • Hi, coding to display popup window after first alv grid display

    hi
    can anybody please send coding to display popup window after first alv grid display i.e.  first the prog shows grid display and from grid display the user select the field and on the basis of field value i need to show pop up window in the first secondary window and then third popup window.
    thanx
    rocky

    Hi rocky,
    here is the sample code .hope this helps you.
    TYPE-POOLS : SLIS.
    DATA : GT_OUTTAB TYPE VBAK OCCURS 0,
           GS_PRIVATE TYPE SLIS_DATA_CALLER_EXIT,
           GS_SELFIELD TYPE SLIS_SELFIELD.
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    DATA : ITAB TYPE TABLE OF SLIS_SELFIELD,
           WA_ITAB LIKE LINE OF ITAB.
    START-OF-SELECTION.
    PERFORM POPULATE_GT_OUTTAB.
    PERFORM GET_POPUP.
    PERFORM POPULATE_ITAB.
    PERFORM FIELDCAT.
    PERFORM DISPLAY_DETAILS.
    *&      Form  FIELDCAT
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
    LOOP AT ITAB INTO WA_ITAB.
    WA_FIELDCAT-FIELDNAME = 'TABINDEX'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 1.
    WA_FIELDCAT-SELTEXT_L = 'TABLE INDEX'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'SEL_TAB_FIELD'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 2.
    WA_FIELDCAT-OUTPUTLEN = 20.
    WA_FIELDCAT-SELTEXT_L = 'FIELD NAME'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'VALUE'.
    WA_FIELDCAT-TABNAME = 'WA_ITAB'.
    WA_FIELDCAT-COL_POS = 3.
    WA_FIELDCAT-SELTEXT_L = 'FIELD VALUE'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    ENDLOOP.
    ENDFORM.                    " FIELDCAT
    *&      Form  POPULATE_GT_OUTTAB
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_GT_OUTTAB .
    SELECT * FROM VBAK
           UP TO 10 ROWS
           INTO TABLE GT_OUTTAB.
    ENDFORM.                    " POPULATE_GT_OUTTAB
    *&      Form  GET_POPUP
          text
    -->  p1        text
    <--  p2        text
    FORM GET_POPUP .
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
       I_TITLE                       = 'SALES ORDER'
      I_SELECTION                   = 'X'
      I_ALLOW_NO_SELECTION          =
       I_ZEBRA                       = 'X'
      I_SCREEN_START_COLUMN         = 0
      I_SCREEN_START_LINE           = 0
      I_SCREEN_END_COLUMN           = 0
      I_SCREEN_END_LINE             = 0
      I_CHECKBOX_FIELDNAME          =
      I_LINEMARK_FIELDNAME          =
      I_SCROLL_TO_SEL_LINE          = 'X'
        I_TABNAME                     = 'SALES ORDER'
        I_STRUCTURE_NAME              = 'VBAK'
      IT_FIELDCAT                   =
      IT_EXCLUDING                  =
      I_CALLBACK_PROGRAM            =
      I_CALLBACK_USER_COMMAND       =
       IS_PRIVATE                    = GS_PRIVATE
    IMPORTING
       ES_SELFIELD                   = GS_SELFIELD
      E_EXIT                        = G_EXIT
      TABLES
        T_OUTTAB                      = GT_OUTTAB
    EXCEPTIONS
       PROGRAM_ERROR                 = 1
       OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " GET_POPUP
    *&      Form  POPULATE_ITAB
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_ITAB .
    WA_ITAB-TABNAME = GS_SELFIELD-TABNAME.
    WA_ITAB-TABINDEX = GS_SELFIELD-TABINDEX.
    WA_ITAB-SEL_TAB_FIELD = GS_SELFIELD-SEL_TAB_FIELD.
    WA_ITAB-VALUE = GS_SELFIELD-VALUE.
    APPEND WA_ITAB TO ITAB.
    ENDFORM.                    " POPULATE_ITAB
    *&      Form  DISPLAY_DETAILS
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_DETAILS .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
       IT_FIELDCAT                    = IT_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = ITAB
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " DISPLAY_DETAILS
    award points if helpful.
    regards,
    deepthi reddy

  • Form hangs while calling Report

    Hi, I am converting some Forms/reports from 6i to 10g.
    The form I am testing is calling a report repeatedly using the following code:
    rep_id := Find_Report_Object('FILE_RECORD_DESCRIPTION');
    <<open_files>>
    OPEN files;
    <<get_next_file>>
    FETCH files INTO file_name;
    IF files%NOTFOUND
         THEN
         CLOSE files;
         RETURN;
    END IF;
    :FILE_RECORD_DESC_STATUS := 'Doing file' || file_name;
    SYNCHRONIZE;
    IF :TYPE = 'PDF'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\PDF\' || file_name || '.pdf');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    IF :TYPE = 'HTML'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\' || file_name || '.htm');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    report := Run_Report_Object(rep_id);
    GOTO get_next_file;
    When REPORT_DESFORMAT is set to ‘HTML’, everything works well. Around 40 .htm documents are created on C:\DOC. But when REPORT_DESFORMAT is set to ‘PDF’ the form hang after creating 10 or 11 .pdf documents!!!
    Any idea what I am doing wrong? Do I have to free up some sort of buffer/memory/other things when creating .pdf document?
    Regards
    Yves

    I tried different things and it seams that the amount of data (i.e the size of the .pdf) determine how many times the report can be called before the form hangs. Form did hang after only 2 call for big report (around 20 pages each) but hangs after several calls for smaller ones???
    Yves

Maybe you are looking for