OPEN/CLOSE FORMS ???

HI,
I have one form say A
from which i am calling many forms
say A1,A2,A3... using OPEN_FORM Built In and
on A1,A2,A3 forms there is a exit button
for exiting the same form.
In the same way i want to close ALL
open forms when i press a button logout/exit on
the main form i.e form A .
In this application i given the provision
user can switch from one form to another
so that he can open/close any form at any time.
All i need is to close ALL form at a time
only when he press exit at the MAIN form A.
Any ideas/suggestion?
Early reply is appreciated.

1) F4 or Alt-F4 ?
Alt-F4 is the KEY-EXIT like CTRL-Q. Use this trigger for closing the other forms.
In your button you can easily write
do_key ('exit_form');
=============================================
2) the :global.Auto_Close is easy
main_form:
KEY-EXIT )
:global.Auto_Close := 'TRUE';
go_form ('A');
global.Auto_Close := 'FALSE';
exit_form;
form A:
WHEN-FORM-NAVIGATE )
DEFAULT_VALUE (NULL, 'global.Auto_Close');
IF :global.Auto_Close = 'TRUE' THEN
exit_form;
END IF;
=============================================
3) if main.fmb is your start-form and you open_form A and there you call_form AA - then you have the problem, that you first have to close AA, before you close A
I thought you work only with open_form instead of call_form
try it
Gerd

Similar Messages

  • Open/Close form from Menu

    I am having a frustrating problem! I am trying to set up a menu that will open a form ('Open_Form('myform')) and close the current form. Opening the new form is no problem, but I can't seem to find the code to close the first form. This can't be that difficult! Can anyone help?
    Thanks

    SaraS
    Use new_form built-in.
    Regards

  • Open form - close form problem

    Hi. Using JDeveloper 10.1.3.3., ADF BC.
    Simple, yet not so simple problem: I have two forms, Main and Detail (JFrame). Main form has menu item which I use to open Detail form:
    try {
    FormDetail frmDetail = new FormDetail();
    frmDetail.setBindingContext(panelBinding.getBindingContext());
    // center jframe, visible = true
    showNewForm(frmDetail);
    } catch (Exception ex) {
    ex.printStackTrace();
    } finally {
    I want to create new instance every time I show Detail form. But I have problem closing detail form. Here is Detail constructor:
    public FormDetail() {
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    Here are actions:
    1) start Main form
    2) open Detail form
    3) close Detail form
    4) try to open Detail form - oracle.jbo.JboException 35001.
    I've read about this error, but I don't know how to avoid it.
    I cannot accept that I always have to use setVisible(true) and setVisible(false) on all my forms. There has to be a way to dispose of detail forms, and re-create them. Can someone please help?
    Also, read article on Re: ADF-JClient bug
    No solution there

    I have looked at it before. I am not working with MDI forms, so I cannot apply this.
    I found this article which could solve my problem, but I don't know how is "thedude" creating that Abstract class he was talking about...
    Link: Re: how to release panelbinding correctly?
    As I understood, I should release panel binding before I can release the form...
    Default behavior of detail form's window listener is Exit(0). I want to reinstantiate form every time I open it.

  • How to open a form and close another one

    hi,
    I wish to open a form from another, and then close the calling form. In other words, having FORM1 and FORM2, FORM1 should do this:
    OPEN_FORM ('FORM2',ACTIVATE,SESSION);
    EXIT_FORM(NO_COMMIT,NO_VALIDATE);
    but I cant get this to work. As FORM1 is modal, it opens FORM2 but its still open. Changing the order of the two statements only cause FORM1 to be closed. Can I perform the two operations from within FORM1, avoiding to put the EXIT_FORM statement in FORM2?
    thank you

    Hello,
    Use NEW_FORM to replace the calling module.
    Francois

  • Why we use write form,open form,close form,in script

    urgent

    Hi,
    OPEN_FORM
    The function module OPEN_FORM opens form printing. You must call this function module before you can use any other form function (WRITE_FORM, START_FORM, CONTROL_FORM...).
    You need not specify a form name. If you omit the name, you must use the function module START_FORM to open a form before starting the output.
    You must end form printing by using the function module CLOSE_FORM. Otherwise, the system does not print or display anything.
    Within a program, you can use several OPEN_FORM.. CLOSE_FORM pairs. This allows you to write output to several different spool requests from within one program.
    START_FORM
    In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.
    To switch forms, use the function module START_FORM. If another form is still open, you must close it first using END_FORM.
    If you specify no form name when calling START_FORM, the system restarts the last open form. If after OPEN_FORM no form was activated yet, the system leaves the function module with the exception UNUSED.
    OPEN_FORM->
    To initialize the printing of forms via the Raw Data Interface, use function modules (OPEN_FORM und CLOSE_FORM) and a flag in the form (administration data). For this purpose, the function modules include the additional optional import parameter RAW_DATA_INTERFACE.
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/cb3d8e455611d189710000e8322d00/content.htm
    START_FORM->
    In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.
    To switch forms, use the function module START_FORM. If another form is still open, you must close it first using END_FORM.
    If you specify no form name when calling START_FORM, the system restarts the last open form. If after OPEN_FORM no form was activated yet, the system leaves the function module with the exception UNUSED.
    from: http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/frameset
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Frm-92101 happens when I open a form from another form and close it.

    Frm-92101 happens when I open a form from another form, check something, show a message to the user and exit the form to the previous form.
    Forms version: 10.1.2.0.2. Java: 1.6.0_23. Browser: IE6
    When I put before the "EXIT_FORM" two messages, everything is fine and the second form is closed and I repeat to the first form just as I wanted.
    In forms 9.0 it didn't happen.
    Does it have a connection with the fact I use JRE instead of JInitiator?
    Thank you.

    >
    There are numerous causes of the FRM-92101 error. I recommend you start your investigation by tracing your Forms session so you can see what your form is doing when the error occurs. Check out My Oracle Support document How to Use Forms Trace with Forms [ID 209372.1] for information on how to enable the trace. Also, take a look at My Oracle Support document Known Causes of FRM-92101 Error In Forms [ID 604633.1].
    Hope this helps,
    Craig
    >
    I have just found that there is a "Synchronize" command in one of the main attached libraries, and when I comment that command the application works well. But I don't want to comment it because it's a great library and I assume it has a part in the system.
    I have discovered that in the new Forms' help, the fact that the System.Current_Item mustn't be null so the command "Synchronize" will work, is mentioned. In the old Forms' help, that fact is not mentioned.
    So I tried to put it inside a condition that checks if the current item is not null, but the compiler doesn't recognize the "current_item". I don't know why. Because it's a library? So how can I check this? I can sent it as a parameter, but I don't want. Do you know something about it? Thank you.

  • Open close PO's

    Hi All,
    I want help in changing my code for getting open & close PO’s. I wrote the code in Start-of-Selection. This code is working fine with my PO’s whether close or open basing on the status of delivery or on the quantity delivered and invoiced. My problem is that when this PO is having line items & if the 1st two or any of the PO’s closed & last item yet to be delivered it is giving correct result that this PO’s is still open. If my last item in PO’s is closed & 1st two or three items are open it is giving closed. Basing on last item my program is working. It is not checking on each line item to decide whether it is closed or open. Kindly help to change the code to check each line item whether closed or open & give the final result. Your help is appreciated.
    Regards,
    Ram
    <b><u>This is the code I have written</u>.</b>
    DATA: SUBTOTAL LIKE EKPO-MENGE.
      DATA: STATUS TYPE I VALUE 1.
      SELECT  EKKO~EBELN
              EKKO~LIFNR
              EKKO~BEDAT
              EKKO~WAERS
              EKKO~EKGRP
      INTO CORRESPONDING FIELDS OF TABLE IEKKO
      FROM EKKO
      WHERE EKKO~EBELN IN S_EBELN
      AND   LIFNR IN S_LIFNR
      AND   EKGRP IN S_EKGRP
      AND   EKKO~BUKRS IN S_BUKRS
      AND   BEDAT IN S_BEDAT.
      SELECT EKPO~EBELN
             EKPO~EBELP
             EKPO~NETWR
             EKPO~ELIKZ
          FROM EKPO
          INTO CORRESPONDING FIELDS OF TABLE IEKPO
          FOR ALL ENTRIES IN IEKKO
          WHERE EKPO~EBELN EQ IEKKO-EBELN
            AND EKPO~LOEKZ <> 'L'.
      IEKPO1[] = IEKPO[].
      LOOP AT IEKKO.
        LOOP AT IEKPO WHERE EBELN EQ IEKKO-EBELN.
          LOOP AT IEKPO1 WHERE EBELN EQ IEKPO-EBELN AND EBELP EQ IEKPO-EBELP.
            STATUS = 1.
            IF IEKPO-ELIKZ NE 'X'.
              STATUS = '0'.
            ELSE.
              IEKPO1-CK = 'X'.
              MODIFY IEKPO1.
            ENDIF.
          ENDLOOP.
        ENDLOOP.
        IF STATUS EQ '0'.
          IEKKO-POSTA = 'Open'.
          MODIFY IEKKO.
        ELSE.
          IEKKO-POSTA = 'Close'.
          MODIFY IEKKO.
        ENDIF.
      ENDLOOP.
    Status consideration based on Quantity delivered and invoiced
      SELECT EKET~EBELN
             EKET~EBELP
             EKET~ETENR
             EKET~WEMNG
             EKET~MENGE
        FROM EKET
        INTO CORRESPONDING FIELDS OF TABLE IEKET
        FOR ALL ENTRIES IN IEKPO
        WHERE EKET~EBELN EQ IEKPO-EBELN
        AND   EKET~EBELP EQ IEKPO-EBELP.
      LOOP AT IEKPO.
        LOOP AT IEKET WHERE EBELN EQ IEKPO-EBELN AND EBELP EQ IEKPO-EBELP.
          IEKPO-QTYRC = QTYRC + IEKET-WEMNG.
          IEKPO-QTYOR = QTYOR + IEKET-MENGE.
        ENDLOOP.
        MODIFY IEKPO.
      ENDLOOP.
      LOOP AT IEKKO.
        LOOP AT IEKPO WHERE EBELN EQ IEKKO-EBELN.
          SUBTOTAL =  IEKPO-QTYRC - IEKPO-QTYOR.
        ENDLOOP.
        IF  SUBTOTAL <> '0'.
          IEKKO-POSTA = 'Open'.
          MODIFY IEKKO.
        ELSE.
          IEKKO-POSTA = 'Close'.
          MODIFY IEKKO.
        ENDIF.
      ENDLOOP.
      LOOP AT IEKKO.
        LOOP AT IEKPO WHERE EBELN EQ IEKKO-EBELN.
          IEKKO-TOTAL = IEKKO-TOTAL + IEKPO-NETWR.
        ENDLOOP.
        MODIFY IEKKO.
      ENDLOOP.
    *Finished Status consideration based on Quantity delivered and invoiced
    Fetch Vendor Name
      LOOP AT IEKKO.
        SELECT LFA1~NAME1
        INTO IEKKO-NAME1
        FROM LFA1
        WHERE LFA1~LIFNR EQ IEKKO-LIFNR.
          MODIFY IEKKO.
        ENDSELECT.
    Fetch
        SELECT T024~EKNAM
        INTO IEKKO-EKNAM
        FROM T024
        WHERE T024~EKGRP EQ IEKKO-EKGRP.
          MODIFY IEKKO.
        ENDSELECT.
      ENDLOOP.
    <b></b><b></b>

    Hi
    You are using so many nested loops in the code which is not advised
    see the sample code for the open PO's based on Vendor
    and do accordingly
    *& Report  ZMM_PO_REPORT
    REPORT  ZMM_PO_REPORT message-Id yb
           NO STANDARD PAGE HEADING
           LINE-COUNT 60(1)
           LINE-SIZE 230.
           D A T A B A S E  T A B L E S   D E C L A R A T I O N
    TABLES: lfa1,           " Vendor Master
            t161,           " PO Doc Types
            t024,           " Purchase Groups
            ekko.           " PO Header
                   T Y P E S  D E C L A R A T I O N S
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_po,
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            bstyp TYPE bstyp,           " PO Category
            bukrs TYPE bukrs,           " Company Code
            bsart TYPE bbsrt,           " PO Type
            lifnr TYPE lifnr,           " Vendor No
            ekgrp TYPE bkgrp,           " Purchase Group
            waers TYPE waers,           " Currency
            bedat TYPE etbdt,           " PO Date
            txz01 TYPE txz01,           " Material Text
            werks TYPE ewerk,           " Plant
            lgort TYPE lgort_d,         " Storage Location
            matkl TYPE matkl,           " Material Group
            menge TYPE bamng,           " PR Quantity
            meins TYPE bamei,           " UOM
            bprme TYPE bbprm,           " Price Unit
            netpr TYPE netpr,           " Net price
            peinh TYPE peinh,           " Price Unit UOM
            pstyp TYPE pstyp,           " Item Category
            knttp TYPE knttp,           " Account Assignment Category
           END OF s_po.
    Purchase Orders History Structure
    TYPES: BEGIN OF s_account,
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            gjahr TYPE mjahr,           " Fiscal Year
            belnr TYPE mblnr,           " PO Invoice No
            menge TYPE menge_d,         " PR Quantity
            wrbtr TYPE wrbtr,           " Price in Local Currency
            dmbtr TYPE dmbtr,           " Price in Foreign Currency
            waers TYPE waers,           " Currency
            shkzg TYPE shkzg,           " Dr/Cr Indicator
           END OF s_account.
    Purchase Orders History Structure(Item Sum)
    TYPES: BEGIN OF s_inv_sum,
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            menge TYPE menge_d,         " PR Quantity
            wrbtr TYPE wrbtr,           " Price in Foreign Currency
            waers TYPE waers,           " Currency
           END OF s_inv_sum.
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_rep,
            lifnr TYPE lifnr,           " Vendor No
            ebeln TYPE ebeln,           " PO No.
            ebelp TYPE ebelp,           " PO Item
            bstyp TYPE bstyp,           " PO Category
            bsart TYPE bbsrt,           " PO Type
            ekgrp TYPE bkgrp,           " Purchase Group
            waers TYPE waers,           " Currency
            bedat TYPE etbdt,           " PO Date
            txz01 TYPE txz01,           " Material Text
            werks TYPE ewerk,           " Plant
            lgort TYPE lgort_d,         " Storage Location
            matkl TYPE matkl,           " Material Group
            menge TYPE bamng,           " PR Quantity
            meins TYPE bamei,           " UOM
            bprme TYPE bbprm,           " Price Unit
            netpr TYPE netpr,           " Net price
            peinh TYPE peinh,           " Price Unit UOM
            pstyp TYPE pstyp,           " Item Category
            knttp TYPE knttp,           " Account Assignment Category
            name1 TYPE name1,           " Plant
            orewr TYPE netpr,           " To be Invoiced Price
            curr  TYPE waers,           " Inv Doc Currency
           END OF s_rep.
               D A T A  D E C L A R A T I O N S
    DATA: gv_title1 TYPE sylisel,            " Report title
          gv_dial.                           " Color flag
                C O N S T A N T S  D E C L A R A T I O N S
    CONSTANTS: c_x                VALUE 'X',   " Flag X
               c_h                VALUE 'H',   " Debit
               c_vgabe TYPE vgabe VALUE '2'.   " Transaction Type
         I N T E R N A L  T A B L E S  D E C L A R A T I O N S
    DATA: i_po    TYPE STANDARD TABLE OF s_po WITH HEADER LINE,
                                 " Purchase Order
          i_inv   TYPE STANDARD TABLE OF s_inv_sum WITH HEADER LINE,
                                         " PO Invoice Values
          i_rep   TYPE STANDARD TABLE OF s_rep WITH HEADER LINE,
                                     " PO Invoice Values
          i_ekbe  TYPE STANDARD TABLE OF s_account WITH HEADER LINE.
                               " PO Invoice Values
                     S E L E C T I O N  S C R E E N                      *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR lfa1-lifnr MATCHCODE OBJECT kred,
                    s_ebeln FOR ekko-ebeln MATCHCODE OBJECT mekk,
                    s_bsart FOR t161-bsart,
                    s_ekgrp FOR t024-ekgrp,
                    s_bedat FOR ekko-bedat.
    SELECTION-SCREEN END OF BLOCK b1.
                      I N I T I A L I Z A T I O N                        *
    INITIALIZATION.
                  A T  S E L E C T I O N - S C R E E N                   *
    AT SELECTION-SCREEN.
    Validate the screen fields
      PERFORM validate_screen.
                   S T A R T - O F - S E L E C T I O N                   *
    START-OF-SELECTION.
    Fetch main data
      PERFORM fetch_data.
                   T O P - O F - P A G E                                 *
    TOP-OF-PAGE.
    Header of the List
      PERFORM header.
                   E N D - O F - P A G E                                 *
    Footer
    END-OF-PAGE.
      ULINE.
                   E N D - O F - S E L E C T I O N                       *
    END-OF-SELECTION.
    Display the Report Output data
      PERFORM display_data.
    At Line-Selection
    AT LINE-SELECTION.
    When double clicked on EBELN display the details of Purchase Doc
      PERFORM line_sel.
    *&      Form  validate_screen
    Validation of Selection Screen fields
    FORM validate_screen .
    Validation of Vendor Number
      CLEAR lfa1-lifnr.
      IF NOT s_lifnr[] IS INITIAL.
        SELECT lifnr UP TO 1 ROWS
            INTO lfa1-lifnr
            FROM lfa1
            WHERE lifnr IN s_lifnr.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Vendor'(002).
        ENDIF.
      ENDIF.
    Validation of PO Number
      CLEAR ekko-ebeln.
      IF NOT s_ebeln[] IS INITIAL.
        SELECT ebeln UP TO 1 ROWS
            INTO ekko-ebeln
            FROM ekko
            WHERE ebeln IN s_ebeln.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Document Number'(003).
        ENDIF.
      ENDIF.
    Validation of PO Document Type
      CLEAR t161-bsart.
      IF NOT s_bsart[] IS INITIAL.
        SELECT bsart UP TO 1 ROWS
            INTO t161-bsart
            FROM t161
            WHERE bsart IN s_bsart.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Purchase Document Type'(004).
        ENDIF.
      ENDIF.
    Validation of Purchasing Group
      CLEAR t024-ekgrp.
      IF NOT s_ekgrp[] IS INITIAL.
        SELECT ekgrp UP TO 1 ROWS
            INTO t024-ekgrp
            FROM t024
            WHERE ekgrp IN s_ekgrp.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Purchasing Group'(005).
        ENDIF.
      ENDIF.
    ENDFORM.                    " validate_screen
    *&      Form  fetch_data
    Fetching the PO related data from Database Tables
    FORM fetch_data .
      CLEAR i_po.
      REFRESH i_po.
      SELECT a~ebeln            " PO No.
             b~ebelp            " PO Item
             a~bstyp            " PO Category
             a~bukrs            " Company Code
             a~bsart            " PO Type
             a~lifnr            " Vendor No
             a~ekgrp            " Purchase Group
             a~waers            " Currency
             a~bedat            " PO Date
             b~txz01            " Material Text
             b~werks            " Plant
             b~lgort            " Storage Location
             b~matkl            " Material Group
             b~menge            " PR Quantity
             b~meins            " UOM
             b~bprme            " Price Unit
             b~netpr            " Net price
             b~peinh            " Price Unit UOM
             b~pstyp            " Item Category
             b~knttp            " Account Assignment Category
        INTO TABLE i_po
        FROM ekko AS a JOIN ekpo AS b
        ON a~ebeln = b~ebeln
        WHERE a~ebeln IN s_ebeln AND
              a~lifnr IN s_lifnr AND
              a~ekgrp IN s_ekgrp AND
              a~bsart IN s_bsart AND
              a~bedat IN s_bedat.
      SORT i_po BY ebeln ebelp.
      break-point.
      IF NOT i_po[] IS INITIAL.
    Fetch the PO History/Invoice Details from EKBE Table
        CLEAR i_ekbe.
        REFRESH i_ekbe.
        SELECT ebeln           " PO No.
               ebelp           " PO Item
               gjahr           " Fiscal Year
               belnr           " PO Invoice No
               menge           " PR Quantity
               wrbtr           " Price in Local Currency
               dmbtr           " Price in Foreign Currency
               waers           " Currency
               shkzg           " Dr/Cr Indicator
         INTO TABLE i_ekbe
         FROM ekbe
         FOR ALL ENTRIES IN i_po
         WHERE ebeln = i_po-ebeln AND
               ebelp = i_po-ebelp AND
               vgabe = c_vgabe.
        IF sy-subrc = 0.
          SORT i_ekbe BY ebeln ebelp.
          LOOP AT i_ekbe.
            IF i_ekbe-shkzg = c_h.
              i_ekbe-wrbtr = i_ekbe-wrbtr * -1.
            ENDIF.
            MODIFY i_ekbe.
          ENDLOOP.
      break-point.
    Sum up the Item wise Invoice totals
          LOOP AT i_ekbe.
            AT END OF ebelp.
              READ TABLE i_ekbe INDEX sy-tabix.
              SUM.
              MOVE-CORRESPONDING i_ekbe TO i_inv.
              APPEND i_inv.
            ENDAT.
            CLEAR i_inv.
          ENDLOOP.
          SORT i_inv BY ebeln ebelp.
            break-point.
        ENDIF.
      ENDIF.
    Move the Vendor Name and Invoice Values to I_rep Internal Table
      LOOP AT i_po.
        MOVE-CORRESPONDING i_po TO i_rep.
        CLEAR i_inv.
        READ TABLE i_inv WITH KEY ebeln = i_po-ebeln
                                  ebelp = i_po-ebelp.
        IF sy-subrc = 0.
          i_rep-orewr = ( i_po-menge - i_inv-menge ) * i_po-netpr.
          i_rep-curr  = i_inv-waers.
        ELSE.
          i_rep-orewr = i_po-menge * i_po-netpr.
          i_rep-curr  = i_po-waers.
        ENDIF.
      break-point.
    Get the Vendor Name
        CLEAR lfa1-name1.
        SELECT SINGLE name1 FROM lfa1 INTO lfa1-name1
          WHERE lifnr = i_po-lifnr.
        IF sy-subrc = 0.
          i_rep-name1  = lfa1-name1.
        ENDIF.
        APPEND i_rep.
        CLEAR  i_rep.
          break-point.
      ENDLOOP.
      SORT i_rep BY lifnr ebeln ebelp.
      DELETE i_rep WHERE orewr LE 0.
      break-point.
    ENDFORM.                    " fetch_data
    *&      Form  display_data
    Display the Report Output data
    FORM display_data .
      DATA: lv_flag,               " New Flag
            lv_rec TYPE i.         " No of Records
      CLEAR lv_rec.
      IF i_rep[] IS INITIAL.
        MESSAGE e000 WITH 'No Data found'(022).
      ELSE.
        LOOP AT i_rep.
    Toggle Color
          PERFORM toggle_color.
          IF lv_flag <> space.
            NEW-LINE.
          ENDIF.
    At New Purchase Document
          AT NEW ebeln.
            WRITE:/1 sy-vline, 2(10) i_rep-ebeln INTENSIFIED OFF.
            lv_flag = c_x.
            lv_rec = lv_rec + 1.
          ENDAT.
          WRITE: 1 sy-vline,
                12 sy-vline,13(4)   i_rep-bsart,
                17 sy-vline,18(10)  i_rep-lifnr,
                28 sy-vline,29(35)  i_rep-name1,
                64 sy-vline,65(4)   i_rep-ekgrp,
                69 sy-vline,70(10)  i_rep-bedat,
                80 sy-vline,81(5)   i_rep-ebelp,
                86 sy-vline,87(40)  i_rep-txz01,
               127 sy-vline,128(9)  i_rep-matkl,
               137 sy-vline,138(1)  i_rep-pstyp,
               139 sy-vline,140(1)  i_rep-knttp,
               141 sy-vline,142(4)  i_rep-werks,
               146 sy-vline,147(4)  i_rep-lgort,
               151 sy-vline,152(13) i_rep-menge UNIT i_rep-meins,
               165 sy-vline,166(3)  i_rep-meins,
               169 sy-vline,170(15) i_rep-netpr CURRENCY i_rep-waers,
               185 sy-vline,186(4)  i_rep-waers,
               190 sy-vline,191(5)  i_rep-peinh,
               196 sy-vline,197(4)  i_rep-bprme,
               201 sy-vline,202(15) i_rep-orewr CURRENCY i_rep-curr,
               217 sy-vline,218(4)  i_rep-curr,
               222 sy-vline,223(7)  i_rep-bstyp centered,
               230 sy-vline.
          NEW-LINE.
          hide: i_rep-ebeln.
        ENDLOOP.
        ULINE.
        FORMAT COLOR OFF.
        WRITE : /2 'Total Number of Purchasing Documents:'(025) COLOR 3,
                    lv_rec COLOR 3.
      ENDIF.
    ENDFORM.                    " display_data
    *&      Form  header
    Write the Report Header
    FORM header .
      FORMAT RESET.
    header
      WRITE:/1(230) 'LIST OF PURCHASE DOCUMENTS PER VENDOR'(006) CENTERED.
      SKIP.
      FORMAT COLOR COL_HEADING.
      ULINE.
      WRITE:/1 sy-vline,2(10)   'Pur.Doc.No'(006) CENTERED,
            12 sy-vline,13(4)   'Type'(007),
            17 sy-vline,18(10)  'Vendor'(008) CENTERED,
            28 sy-vline,29(35)  'Name'(009) CENTERED,
            64 sy-vline,65(4)   'PGrp'(010) CENTERED,
            69 sy-vline,70(10)  'Doc.Date'(012) CENTERED,
            80 sy-vline,81(5)   'Item'(011),
            86 sy-vline,87(40)  'Material Short Text'(024) CENTERED,
           127 sy-vline,128(9)  'Mat.Group'(013),
           137 sy-vline,138(1)  'I',
           139 sy-vline,140(1)  'A',
           141 sy-vline,142(4)  'Plnt'(014),
           146 sy-vline,147(4)  'SLoc'(015),
           151 sy-vline,152(13) 'Quantity'(016) CENTERED,
           165 sy-vline,166(3)  'UoM'(017),
           169 sy-vline,170(15) 'Net Value'(018) CENTERED,
           185 sy-vline,186(4)  'Curr'(019),
           190 sy-vline,191(5)  'Per'(020),
           196 sy-vline,197(4)  'Unit'(021),
           201 sy-vline,202(15) 'To be Invoiced'(023) CENTERED,
           217 sy-vline,218(4)  'Curr'(019),
           222 sy-vline,223(7)  'Doc.Cat'(026),
           230 sy-vline.
      ULINE.
    ENDFORM.                    " header
    *&      Form  toggle_color
    This routine alters the color of the records in the list
    FORM toggle_color.
      IF gv_dial = space.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
        gv_dial = c_x.
      ELSE.
        FORMAT COLOR 1 INTENSIFIED OFF.
        CLEAR gv_dial.
      ENDIF.
    ENDFORM.                    " toggle_color
    *&      Form  LINE_SEL
    *When double clicked on EBELN field display the details of Purchase Doc
    FORM line_sel.
      CASE sy-lsind.
        WHEN '1'.
          DATA: lv_field(20),
                lv_value(10),
                lv_bstyp like i_rep-bstyp.
          clear: lv_bstyp,lv_value, lv_field.
          GET CURSOR FIELD lv_field VALUE lv_value.
          IF lv_field = 'I_REP-EBELN'.
            IF NOT lv_value IS INITIAL.
              READ LINE sy-index FIELD VALUE i_rep-bstyp
                                       INTO  lv_bstyp.
             READ CURRENT LINE FIELD VALUE i_rep-bstyp INTO lv_bstyp.
              if lv_bstyp = 'F'.
                SET PARAMETER ID 'BES' FIELD lv_value.
                CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
              elseif ( lv_bstyp = 'K' or lv_bstyp = 'L' ).
                SET PARAMETER ID 'VRT' FIELD lv_value.
                CALL TRANSACTION 'ME33' AND SKIP FIRST SCREEN.
              elseif lv_bstyp = 'A'.
                SET PARAMETER ID 'ANF' FIELD lv_value.
                CALL TRANSACTION 'ME43' AND SKIP FIRST SCREEN.
              endif.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.                    " line_sel
    Regards
    Anji

  • Opening a form in a POP UP window from report

    I would like to open a form in a new window from a
    link on a field in the report .
    Parameters should be passed from the report to form.
    Is it possible to do this with a portal link?
    Also After modification of the form & on click of save is it possible to close the newly opened window(form) & refresh the report to reflect the changes as both refer to the same table.
    Any Idea pls reply,
    Thanks in Adv,
    Sajith.

    Hi,
    You can achieve this using by sql based reports. Here is a sample code snippet
    select ''||
    to_char(empno)||'' empno
    from SCOTT.EMP
    Please dont forget to change the display type of the column to HTML in the column formatting section of the reports,
    otherwise the report will render the html code.
    You can have a close button on the form on which you can write a javascript which closes itself. You can write this
    on OnClick
    self.close();
    Hope this clarifies you doubt :-)
    Thanks,
    Sharmila

  • How to open new form with set value

    I have two forms CLIENT and ORDERS who are connected by "client_id" in a one to many relationship [one client can have many orders]. What code to I put in the button so that that when I click on it from the CLIENT table, it goes to the ORDERS form with just the orders that match that "client_id"? The application is in oracle 9i developer using swing.
    Here's what I have so far, code to open the form without the binding
    //Open Order Form
    FormIcdClientApplicationView frameTarget = new FormOrderApplicationView(getPanelBinding());
    frameTarget.setVisible(true);
    // Close this window
    this.setVisible(false);

    Hello,
    This is the Forms forum. I am sure you will have more chance to get answer in the JDeveloper forum.
    FRancois

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • Browser page still open ,adobe form is closed

    Hello ,
    We are facing browser issue in Adobe Interactive forms.We are opening the form from a thirdparty portal and whenever we click on submit button the adobeform is closed but the browser is not getting closed.
    Can someone suggest me where should i write the code to close te browser.Is it in Webdynpro,or thirdparty portal or in javascript.
    We tried bothe the layouts i.e ZCI and ACFx.We are uisng Adobe 8.1 version.The Adobe is processed by Webdynpro for ABAP.
    Please help me.
    Regards,
    Sridar

    You can use an Exit Plug in Web Dynpro ABAP to close the browser window, but there is no tell what will happen if you call this functionality in another portal.  The other portal could be running the WDA inside some frame and JavaScript access to the top frame might not be possible.

  • VS 2013 SP4 crashes when opening a Form with large Numbers of elements on Windows 8 32-Bit

    Hi, I have made a C#-Project, which is fully functional but opening the main form causes VS 2013 Sp4 to crash. I can build the solution an open all Files. Only when i open the form in Designer, VS crashes and want to restart. There are no Log-Entrys. Only
    in the event-log there is an Event-Id 1000 with code 0x0000409. I can open the form on two other Windows 8.1 64-Bit machines without Problems. Looking on "free Mem" while opening in Resourcemonitor it crashes when at least are around 190 MB free.
    How can I investigate this Problem?

    Hi Frank,
    If the same solution works well in other machine, I doubt that it is your Environment issue.
    Of course, to make sure that it is not the project files issue, please create a blank solution, and then add all project files to this new solution, test it again.
    Maybe you could delete .suo file in your solution folder, and then re-open your .sln file, test it again.
    If there are many projects in the same solution, I suggest you create different solutions for them, test it again.
    But as your previous description, I doubt that it would be related to your VS/Windows Environment.
    Please disable all add-ins in your VS, maybe you could run your VS in safe mode, test it again.
    http://msdn.microsoft.com/en-us/library/ms241278.aspx
    To make sure that it is not the account issue, please run your VS as the admin.
    In addition, the most important issue is that we have make sure that it is not the Window Configuration issue.
    For example, when you run your windows for a long time, or your task manager is so busy, or other processes take high CPU and so on, I think they will impact your VS or other software performance.
    Please restart your PC, close other processes which take high memory, please also close third party tools like firewall or the Anti-virus. If you open a few VS Editors, just close them, and then just open one, test it again.
    Best Regards,
    Jack 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Open multiple forms, few in Enter-Query mode

    Hi All,
    I want to open multiple forms from a form using open_form built-in. If user clicks on different items of the parent form different child forms are invoked.
    But if one child form is opened in Enter-Query mode (I have 'enter_query;' in its when-new-form-instance) it does not allow to put focus back on parent form and invoke other forms until I execute_query in child form or close the child form.
    Waiting for your replies. Thanks in advance.
    Regards
    Mona

    Hi Friends,
    Has anybody ever faced this problem. Please reply.
    Regards

  • How to open multiple forms through differnt responsiblity

    I have a 11.5.10.2 system on Linux red hat.
    Business pepole want to open multiple forms through different responsiblities from multiple web brower sessions.
    However when I opened 2 IE brower sessions, log into responsiblity and open one oracle form in one IE session and log into another responsiblity through second IE session. The first opened form disappear and replaced by the second oracle form opened from another IE session. That means only one Oracle form can be open at the same time for this case.
    The current walkaround solution is to open 2 browser sessions using 2 different browsers ( one is IE another is Firefox) to fix this issue. Apparently this is not a good solution.
    Can you please give me some suggestion to fix this issue?

    Thank you very much for the information.
    The note mention:
    The new forms launcher does not support opening multiple forms applets for the same database across different responsibilities. Opening a form in another responsibility will cause any forms currently open to close. This behaviour is standard.
    However it is possible to enable users to open multiple forms sessions for the same database for the same responsibility when using MS Internet Explorer as the client browser. This is made possible with Patch 3293241. This patch is included in Oracle Applications release 11.5.10 as standard.
    My current system is 11.5.10.2. I verified that patch 3293241 has been applied. I have no problem to open mutiple forms with in SINGLE web brower session, within same responsibility. I am aware that you can not open multiple forms through SINGLE web brower session through multiple responsiblity. What I tried to do is to open mutiple forms through multiple web browers sessions. Open one brower session, log into system and open a form, then open another web brower session, log into the sytem and open a form through different responsiblity. The system does not allow me to open multiple forms through multiple web brower sessions. Only the latest form can be displayed. Is this standard design for 11.5.10?
    Can Form Servlet architecture solve this limitation?
    Actually afterI changed some form funcation paramter in Oracle Application Developer responsiblity, I can open 2 form session from 2 different responsiblities through 2 web brower sessions. I can open one form session as Application Developer and another form session through another responsiblity. Then I can switch to other responsiblity through Application Developer responsiblity to open forms.
    Is there any other way I can open multiple form sessions to the same database through multiple web brower sessions?
    Thanks a lot for your help
    Edited by: wcxtao on Nov 3, 2008 9:47 AM
    Edited by: wcxtao on Nov 3, 2008 9:57 AM
    Edited by: wcxtao on Nov 3, 2008 10:08 AM

  • Opener.document.forms.wwv_flow.supplier has no properties

    I'm trying to pass a value from a Popup page to a multi-row report (tabular form).
    and I'm getting the error, which you can read in my subject line of this posting.
    I don't know what the error is telling me when it reads: SUPPLIER has no properties.
    the javascript is as follows:
    opener.document.forms["wwv_flow"].supplier['f01_0008'].value = passVal1; close()...
    where SUPPLIER is the item in the Tabular Form to receive the value I'm passing back from the popup page.
    and
    f01_0008 is the identifier for the row in the tabular form to passback to.
    Can anyone help me here?

    Hi Carl. Thanks for your reply. I'm really floundering around here with this.
    I don't really know how to write javascript, but am using what I find available and trying to adapt it to my application.
    I found an example in the forum that seemed to be an exact match to what I was trying to do, but it was incomplete.
    This is the code that I've got in the HTML header of my Popup page:
    <script language="JavaScript">
    function passBack(passItem1, passVal1)
    opener.document.forms["wwv_flow"].supplier['&P143_ITEM.'].value = passVal1; close();
    </script>
    P143_ITEM is a hidden item on the popup page that contains the rownumber from the tabular form on the calling page.
    SUPPLIER is a column in the row of the calling page.
    And is where I want to pass the value To from the popup page.
    When I drag my cursor over the hyperlink text on the Popup page,
    Then the information I see at the bottom of the page is this:
    javascript:passBack('f01_0006','Graybar Electric Co.');
    It appears to be correct.
    Where F01_0006 is the row where I want to pass the value GRAYBAR ELECTRIC CO.
    The problem seems to be that I cannot specify the Column where I want to pass
    'Graybar Electric Co.' to. (ie: the column SUPPLIER)
    If you have any ideas, it would be greatly! appreciated.
    Thanks- Gary

Maybe you are looking for

  • No sound in new sequence

    To fix a video resolution problem, I copied all my clips and audio from one sequence into a new sequence.  The old sequence plays back perfectly, with the new sequence has no sound. What have I done wrong? Any help appreciated.

  • Text From Info Record

    Hi, We maintain warehouse instruction  text in Purchase Order header level on TEXT tab manully. To maintain it for each purchase order is time consuming. So we are looking for, like  it should come by default on header level. As we require it for Ven

  • PSD Template for Memorex DVD Labels?

    Got a great price on Memorex CD Label Refills, 120 pack, but I discovered the alignment on them is not vertical. Each label is in opposite corners. Is there a template for this someone knows of? If not, can you tell me how to get my existing pdf for

  • Problem when application is closed using CTRL-C

    When my app is launched it displays a JFrame and connects to a DB. In my GUI I have a windowClosing event handler and also a handler for a Disconnect button which will gracefully close the DB connection befor exiting. However when a user executes fro

  • How can I access email?

    The passwords nor security question answers worked...I was told a new code would be sent to the email...yet, I cannot access the hotmail account. Can you send a code to my verizon.net account to allow me to reset passwords, etc. in hotmail?