Facing Problem with Select-options input data......help me?

I have a select-options on my selection screen. In the database table i have different four values for this. ex EEX01, EEX02, EEX03 and EEX04.
their overall names are DE, HE, IT, TR respectively.
Now the requirement is user will enter this data like DE to TR , i am now confused how do convert these value to the values that i have in table. Because i have to use this for extracting the data from database table.
thanks in advance.

hi,
what is the table name for the case.
and jsut list what are the fields .. we'll try to map the same and see if it works..
if for the field there is a check table attached then conversion routine will take care of that .
just check on the field of the domain  in the dbtable
like matn1 for dataelement matnr and domain matnr in mara table.
regards,
vijay

Similar Messages

  • Problem with select option in module pool

    Hello friends,
                           I have successfully created a select option in my module using sub-screen. My problem is the EXTENSION buttom in the select option. When i click on the EXTENSION button a proper pop-up appears but when i input some values or cancel this pop-up then the program gives the following dump.
    Error
    The attribute screen type with the values 'Normal Screen' and
    'Subscreen' determines the use of the screen. If a normal screen is used
    as subscreen or vice versa, an error occurs.
    The screen "ZRPMSEA" 0002 has, in this respect, an inappropriate screen type.
    Kindly Help

    HI,
    Go to the Screen Attributes and select the appropriate Radio Button
    1) Normal Screen " Whichever is required (in Which type of Screen you Want)
    2) Subscreen  " Check for the Correct type and Check the Radio Button Accordingly
    3) Modal Scree
    Cheerz
    Ram

  • Strange problem with select options, problem in my code or standard bug?

    I have a selection screen with no intervals.
    In my select option When i give a range for example
    BT(Between) 1 to 3 and then if i  remove 3 (s-high) value and press enter the BT changes to EQ automatically which is correct.
    Suppose i select BT as my operator and just give 1 in S-low and keep S-high as blank.
    It behaves wiered and the data selected is not correct.  BT now should have changed to EQ but it doesnt happen.
    Same case occurs with NB ie not in between.
    Can experts please give there advice on this behaviour of selection screen

    wht u can do is.....
    u can keep these two input fields as two diff attributes....
    consider it as A , B
    then on various possibilities....fire select queries...
    for eg:
    if A & B not initial.
    then select data between A and B
    if A is not initial B is initial
    then select data = A
    and all possiblities to can think

  • Problem with selection screen input

    my problem is when i enter l2_gr or l1_vbeln or l2_vbeln, in the selection screen, the output should come according to that.I am not getting the correct result.
    form summ_report.
      data: l2gr like ekbe-belnr.
       select fs_plant  fv_plant    f~r_plant
              fl1_sto        pl1_delivery  p~l1_gr
              pl2_sto        pl2_delivery  p~bsl_err_message
              kebeln         pl1_pgi       p~l2_pgi
       into (dochdr-swerks,   dochdr-vwerks,   dochdr-rwerks,
             dochdr-l1sto,    docitem-l1xblnr, docitem-l1gr,
            docitem-l2sto,   docitem-l2xblnr, docitem-err_msg,
             tabekko-ebeln,   docitem-l1pgi,   docitem-l2pgi)
       from zdochdr as f inner join zdocitem as p
                          on fl1_sto  =  pl1_sto inner join
                ekko as k on pl1_sto  = kebeln
       where f~s_plant     in s_werks  and
             f~v_plant        in v_werks  and
             f~r_plant  in r_werks  and
             f~l1_sto           in l1_sto   and
             p~l1_delivery      in l1_xblnr and
             p~l1_gr            in l1_gr    and
             p~l2_sto           in l2_sto   and
             p~l2_delivery      in l2_xblnr and
             k~aedat            in s_aedat.
    move : dochdr-swerks    to  final_data-i_swerks,
            dochdr-vwerks    to  final_data-i_vwerks,
            dochdr-rwerks    to  final_data-i_rwerks,
            dochdr-l1sto     to  final_data-i_l1sto,
            docitem-l1xblnr  to  final_data-i_l1xblnr,
            docitem-l1gr     to  final_data-i_l1gr,
            docitem-l2sto    to  final_data-i_l2sto,
            docitem-l2xblnr  to  final_data-i_l2xblnr,
            docitem-l2pgi    to  final_data-i_l2pgi,
            docitem-l1pgi    to  final_data-i_l1pgi,
            docitem-err_msg  to  final_data-i_errmsg.
            append final_data.
        endselect.
    L2 Goods receipt
    loop at final_data.
      select single belnr from ekbe into l2gr
        where ebeln = final_data-i_l2sto and
                  belnr in l2_gr and
                  bwart = '101' and
                  bewtp = 'E' and
                  vgabe = '1'.
      if sy-subrc eq 0.
        move l2gr to final_data-i_l2gr.
      endif.
    leg1 Billing document
    select vbeln from vbfa into (tabvbfa-vbeln)
      where vbeln in l1_vbeln and vbelv in (final_data-i_l2xblnr,final_data-i_l1xblnr).
    select single vbeln from vbrk into tabvbrk-vbeln
       where vbeln = tabvbfa-vbeln and fkart = 'IV'.
      if sy-subrc eq 0.
         move tabvbrk-vbeln to final_data-i_l1vbeln.
      endif.
       endselect.
    leg2 Billing document
    select vbeln from vbfa into (tabvbfa-vbeln1)
             where vbeln in l2_vbeln and
             vbelv in (final_data-i_l2xblnr,
                             final_data-i_l1xblnr).
    select single vbeln from vbrk into tabvbrk-vbeln1 where
                    vbeln = tabvbfa-vbeln1 and fkart = 'ZTYS'.
        if sy-subrc eq 0.
            move tabvbrk-vbeln1 to final_data-i_l2vbeln.
        endif.
       endselect.
    <b>if not l2_gr is initial or
        not l1_vbeln is initial or
         not l2_vbeln is initial.</b>        modify final_data.
      else.
         delete final_data.
      endif.
      endloop.
    endform.
    please help....
    Thanks,
    fractal.

    I think the code in bold is what you are trying to do.
    form summ_report.
      data: l2gr like ekbe-belnr.
      select f~s_plant f~v_plant     f~r_plant
             f~l1_sto  p~l1_delivery p~l1_gr
             p~l2_sto  p~l2_delivery p~bsl_err_message
             k~ebeln   p~l1_pgi      p~l2_pgi
        into (dochdr-swerks, dochdr-vwerks,   dochdr-rwerks,
              dochdr-l1sto,  docitem-l1xblnr, docitem-l1gr,
              docitem-l2sto, docitem-l2xblnr, docitem-err_msg,
              tabekko-ebeln, docitem-l1pgi,   ocitem-l2pgi)
        from zdochdr as f inner join zdocitem as p
          on f~l1_sto = p~l1_sto inner join ekko as k
          on p~l1_sto = k~ebeln
       where f~s_plant     in s_werks
         and f~v_plant     in v_werks
         and f~r_plant     in r_werks
         and f~l1_sto      in l1_sto
         and p~l1_delivery in l1_xblnr
         and p~l1_gr       in l1_gr
         and p~l2_sto      in l2_sto
         and p~l2_delivery in l2_xblnr
         and k~aedat       in s_aedat.
        move: dochdr-swerks   to final_data-i_swerks,
              dochdr-vwerks   to final_data-i_vwerks,
              dochdr-rwerks   to final_data-i_rwerks,
              dochdr-l1sto    to final_data-i_l1sto,
              docitem-l1xblnr to final_data-i_l1xblnr,
              docitem-l1gr    to final_data-i_l1gr,
              docitem-l2sto   to final_data-i_l2sto,
              docitem-l2xblnr to final_data-i_l2xblnr,
              docitem-l2pgi   to final_data-i_l2pgi,
              docitem-l1pgi   to final_data-i_l1pgi,
              docitem-err_msg to final_data-i_errmsg.
        append final_data.
      endselect.
    * L2 Goods receipt
      loop at final_data.
        select single belnr from ekbe
                            into l2gr
                           where ebeln = final_data-i_l2sto
                             and belnr in l2_gr
                             and bwart = '101'
                             and bewtp = 'E'
                             and vgabe = '1'.
        if sy-subrc eq 0.
          move l2gr to final_data-i_l2gr.
        endif.
    * leg1 Billing document
        select vbeln from vbfa
                     into tabvbfa-vbeln
                    where vbeln in l1_vbeln
                      and vbelv in (final_data-i_l2xblnr,final_data-i_l1xblnr).
          select single vbeln from vbrk
                              into tabvbrk-vbeln
                             where vbeln = tabvbfa-vbeln
                               and fkart = 'IV'.
          if sy-subrc eq 0.
            move tabvbrk-vbeln to final_data-i_l1vbeln.
          endif.
        endselect.
    * leg2 Billing document
        select vbeln from vbfa
                     into tabvbfa-vbeln1
                    where vbeln in l2_vbeln
                      and vbelv in (final_data-i_l2xblnr, final_data-i_l1xblnr).
          select single vbeln from vbrk
                              into tabvbrk-vbeln1
                             where vbeln = tabvbfa-vbeln1
                               and fkart = 'ZTYS'.
          if sy-subrc eq 0.
            move tabvbrk-vbeln1 to final_data-i_l2vbeln.
          endif.
        endselect.
        if not <b>final_data-i_l2gr</b>    is initial or
           not <b>final_data-i_l1vbeln</b> is initial or
           not <b>final_data-i_l2vbeln</b> is initial.
          modify final_data.
        else.
          delete final_data.
        endif.
      endloop.
    endform.

  • Facing problem with a date column in select query

    Hi,
    I am facing problem with a date column. Below is my query and its fainling with " invalid number format model" .
    Query: SELECT *
    FROM EMP
    WHERE trunc(LAST_UPDATED) >= to_date(to_char(22-05-2009,'dd-mm-yyyy'),'dd-mm-yyyy')
    LAST_UPDATED column is "DATE" data type.
    Please help me Thanks

    Radhakrishna Sarma wrote:
    SeánMacGC wrote:
    WHERE LAST_UPDATED >= to_date('22-05-2009','dd-mm-yyyy');
    You do not need the TRUNC here in any case.
    I don't think so. What if the user wants only data for 22nd May and the table has records with date later than 22nd also? In that case your query willl not work. In order for the Index to work, I think the query can be written like this I think Sean is right though. Use of TRUNC Function is quiet useless based on the condition given here, since the to_date Function used by OP will always point to midnight of the specified date, in this case 22-05-2009 00:00:00.
    Regards,
    Jo
    Edit: I think Sean proved his point... ;)

  • I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't

    I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't use.  This month my daughter comes home from College and she accidentally uses 24G.....14 over get blind sided with $140.00 in overages.  I called Verizon today......stopped in to the store today......My neighbor told me they waved charges for her one time.  Lots of charges.....But I'm am getting no help.  Not even an offer of a payment plan to help me out.  I went back just 6 months and I have over paid for 19G.....Seems like they would like to help out their loyal customers!!!!     Does anybody have any suggestions on how to deal with them?   We are not wealthy....or I would just pay this and walk away......

    There is a big misconception in what customers believe a cell carrier is obligated to do.
    You pay a set price to use up to that amount of xx data. It makes no difference if you use it to the paid limit or way under. Its like peace of mind when you don't have to worry about a data counter.
    Your daughter used the data, your plan is quite clear of what overage charges are. Why should or would Verizon wireless just forgive the charges because you are a customer? Your daughter used the data, get the money from her. That is the responsible thing to do.
    There is no "I have been a loyal customer so please remove the $120, or $250, or $2,000.00 since I did not mean to use it"
    Your electric company, or gas company or any other company does not remove valid charges. Why should Verizon wireless?
    Just pay the invoice and don't think you are being mistreated because Verizon is a business and not a charity.
    Good Luck

  • I got a problem with my personal account data how can i recovery my icloud id information back i can't remember even my birthday pls help me

    I got a problem with my personal account data how can i recovery my icloud id information back i can't remember even my birthday pls help me how to recovery my id information back

    Did you follow all of the instructions provided in the article that you linked from? If not, you must follow each and every step.
    If you have, then all you can do is contact iTunes Support:
    http://support.apple.com/kb/HT5699?viewlocale=en_US
    or by email: https://ssl.apple.com/emea/support/itunes/contact.html
    Cheers,
    GB

  • I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help

    I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help
    [ link removed by moderator ]

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • HT1933 I am facing problems with mails after update iPhone 4S/io7. I have configured yahoo mail in iPhone 4S. When I click on refresh, it shows new mail downloaded but when I go inside inbox the new mail don't show up. Can anyone help me with this iOS 7 i

    I am facing problems with mails after update iPhone 4S/io7. I have configured yahoo mail in iPhone 4S. When I click on refresh, it shows new mail downloaded but when I go inside inbox the new mail don't show up. Can anyone help me with this iOS 7 issue ?

    Hi were you able to resolve yours?
    I was very worried losing all my medical stuff on my iPad Air 2, plus i have nothing to use for the next day! So i have to try all the possible things i read on the internet!! And this worked on my part (Thank God, and thank you Google)
    Perform a hard reboot
    Hold down the Home button and Power button on your iPhone or iPad and keep holding them until you see the Apple logo. Once you do, you can let go. When your device boots back up, go ahead and check to see if the apps have started re-downloading. If they still appear to be stuck, continue on.

  • I have a problem in select-options

    hi frns,
             i am facing a big problem in select-options
    the requirement is such that
    i have 2 select-options
    one for matnr and the other for maktx
    so wen the clent select matnr with f4
    in the maktx the similar description should come by using f4
    pls help me out

    hi,
    TYPES DECLARATION
    types: begin of tp_marc,
            matnr type marc-matnr,
            werks type marc-werks,
          end of tp_marc.
    INTERNAL TABLE AND WORK AREA DECLARATION
    data: t_marc type standard table of tp_marc,
          wa_marc type tp_marc.
    data : dd like table of dselc with header line. "*--- IMPORTANT
    data : ft like table of dfies with header line.
    data : t_makt like table of makt with header line.
    parameters : matnr like makt-matnr .
    parameters : maktx like makt-maktx.
    at selection-screen output.
      loop at screen.
        if screen-name = 'MAKTX'.
          screen-input = 0.
          modify screen.
        endif.
      endloop.
    at selection-screen on value-request for matnr.
    SELECT matnr maktx  FROM makt INTO TABLE makt up to 500 rows.
      select *
       from makt
        up to 500 rows
      into table t_makt
      where spras = syst-langu.
      if sy-subrc <> 0.
        message 'INVALID MATERIAL NUMBER' type 'E'.
      endif.
    IMPORTANT
      refresh dd.
    dd-fldname = 'MATNR'.
    dd-dyfldname = 'MATNR'.
    append dd.
      dd-fldname = 'MAKTX'.
      dd-dyfldname = 'MAKTX'.
      append dd.
    *------- IMPORTANT
      refresh ft.
      ft-tabname = 'MAKT'.
      ft-fieldname = 'MATNR'.
      append ft.
      ft-tabname = 'MAKT'.
      ft-fieldname = 'MAKTX'.
      append ft.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
      exporting
    ddic_structure = 'T001' "*----- IMPORTANT IF STANDARD STRUCT
      retfield = 'MATNR'
      dynpprog = sy-repid
      dynpnr = sy-dynnr
      dynprofield = 'MATNR'
      value_org = 'S'
      tables
      field_tab = ft "*---- IMPORTANT
      value_tab = t_makt
      dynpfld_mapping = dd "* IMPORTANT
      exceptions
      parameter_error = 1
      no_values_found = 2
      others = 3.
      start-of-selection.
      select matnr
             werks
             from marc
             into table t_marc
             where matnr = matnr.
      if sy-subrc <> 0.
        message :'no results IN MARC' type 'E'.
      endif.
      write: at 1(36) sy-uline.
      format intensified on color = 7.
      new-line.
      write :sy-vline,at 10 'MATERIAL NUMBER',at 29 sy-vline, at 30 'PLANT',sy-vline.
      new-line.
      write: at 1(36) sy-uline.
      format intensified off color = 4.
      loop at t_marc into wa_marc.
        new-line.
        write :sy-vline,at 10 wa_marc-matnr ,sy-vline, at 30 wa_marc-werks, at 36 sy-vline.
      endloop.
      new-line.
      write: at 1(36) sy-uline.
    reward points if useful.
    regards,
    Vinod Samuel.

  • Facing problem with logo in the PDF attachment when sending mail...

    hi friends,
    i'm facing problem with logo in the PDF attachment to the mail.
    my requirement:
    1. enter spool number and mail id in the selection screen.
    process:
    1. now the program will fetch the spool data and converts it to PDF.
    2. but when i'm trying to send mail with this PDF as attachment.
    when i open the PDF file from the mail, logo is not coming properly (looks disturbed).
    can anyone help me how to resolve this issue...
    thanks in advance, murashali.

    hi dinakar, thanks for your mail...
    logo looks good in spool/script/smartform.
    even it look good when i download this spool to pdf and to the presentation server as pdf file.
    i'm using CONVERT_OTFSPOOLJOB_2_PDF.
    when i used CONVERT_ABAPSPOOLJOB_2_PDF, is gives a msg - 'spool number not found'.
    here i'm using folloing code to pass pdf to the function module: SO_NEW_DOCUMENT_ATT_SEND_API1.
    code:
    Transfer the 132-long strings to 255-long strings
      lt_mtab_pdf[] = pdf[].
      LOOP AT lt_mtab_pdf INTO lwa_mtab_pdf.
        TRANSLATE lwa_mtab_pdf USING ' ~'.
        CONCATENATE lv_gd_buffer lwa_mtab_pdf INTO lv_gd_buffer.
        CLEAR lwa_mtab_pdf.
      ENDLOOP.
      TRANSLATE lv_gd_buffer USING '~ '.
      DO.
        lwa_mess_att = lv_gd_buffer.
        APPEND lwa_mess_att TO lt_mess_att.
        CLEAR lwa_mess_att.
        SHIFT lv_gd_buffer LEFT BY 255 PLACES.
        IF lv_gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    NOTE: problem i believe is with ''.  i'm getting this tilt symbol () in my pdf internal table.  here in the above code the line   TRANSLATE lv_gd_buffer USING '~ ' is changing the existing tilt to space.  so my logo is getting disturbed.
    even i tried with REPLACE this tilt with other char, but it doent work.
    can you give any idea...

  • Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S

    Hi Experts,
    I  am facing the problem in the select statement where it giving the short dump
    DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S.
    i have searched many forms, but i found that the select option s_matnr have the limitaion 2000 entreis, but i am passing same s_matnr to other select statement with more than 2000 entries but it is not giving me any short dump.
    but i am facing problem with only one select statement where if i  pass select option s_matnr more than 1500 entris also giving short dump.
    my select statement is
    SELECT * FROM bsim                                       
             INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean  
               FOR ALL ENTRIES IN t_bwkey   WHERE  bwkey = t_bwkey-bwkey
                                            AND    matnr IN matnr
                                            AND    bwtar IN bwtar
                                            AND    budat >= datum-low.
    in the internal table g_t_bsim_lean internal table contain all the fields of the table bsim with 2 fields from other table.
    Please let me know whether i need to change the select statement or any other solution for this.
    Regards,
    udupi

    my select query is like this:
    DATA: BEGIN OF t_bwkey OCCURS 0,                          "184465
              bwkey LIKE bsim-bwkey,                            "184465
            END OF t_bwkey.                                     "184465
      LOOP AT g_t_organ          WHERE  keytype  =  c_bwkey.
        MOVE g_t_organ-bwkey     TO  t_bwkey-bwkey.
        COLLECT t_bwkey.                                        "184465
      ENDLOOP.                                                  "184465
      READ TABLE t_bwkey INDEX 1.                               "184465
      CHECK sy-subrc = 0.                                       "184465
      SELECT * FROM bsim                                        "n443935
             INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean   "n443935
               FOR ALL ENTRIES IN t_bwkey   WHERE  bwkey = t_bwkey-bwkey
                                            AND    matnr IN matnr
                                            AND    bwtar IN bwtar
                                            AND    budat >= datum-low.

  • Mulitple selection with select option on subscreen

    Hi colleagues,
       I've the following issue:
    I'm programming a dynpro this dynpro contains two subscreens. The lower subscreen will contain another dynpro defined as subscreen with an ALV to display results.
    The top subscreen (0150) area will be filled with a generated subscreen with the command
      SELECTION-SCREEN BEGIN OF SCREEN 0150 AS SUBSCREEN.
    with select options I define my selection area like:
    SELECT-OPTIONS: sa_6 FOR gs_rp_attrib_sel-sonr.
       If I call my transaction starting up the dynpro containing the two subscreens the result looks quit how I expect it. BUT then I try to start up the multiply selection Pop-UP for the selection field by pressing the button just right behind the HIGH input field, nothing happens. The multiply selection pop-up basicly does not show up.
       Any clues what I need to add that it will show up?
       Does the mulitply selection not work with
    SELECTION-SCREEN BEGIN OF SCREEN 0150 <b>AS SUBSCREEN</b>???
    (If I do a simple test program with a selection screen not being a subscreen, the multiply select popup comes up.)

    Hi,
    A subscreen cannot call another screen.
    I guess this is the reason why u are facing this problem.
    Thanks,
    Rashmi.

  • Problem with material and document date in sales order

    Hi All,
    I am working in ECC 6.0 .I am facing problem with two fields when in enter in to sales order(tcode:va01)
    1.A material comes automatically in line item.
    2.Document date also comes as 27.03.2008 instead of todays date in each order i create.
    I think its not related to configuration.I think its related to some modifications through exits or enhancement points.could someone suggest me a where to check and solve that.
    Your's suggestion is appreciated.

    Hi Sharad,
    Check MV45AFZZ include in se38..It is a user exit for basic validation on sales...We may be able to find some code there (if screen data is predefined by code as mentioned)
    Hope it helps
    Regards
    Byju

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination
    Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command:
    Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger of a called form.
    Statements in called form (Form name: FORM_CHILD):
    go_block('display_block') ;
    do_key('execute_query') ;
    -- Data from table_b will be populated in this block, based on the value of COLUMN_1 obtained
    -- from TABLE_A.
    -- Example: If the value of COLUMN_1 is 10, then all the matching records from TABLE_B, which
    -- are inserted with value 10 in TABLE_B.COLUMN_1 will be fetched and shown here.
    if user_choice = 'YES' then
    commit ;
    else
    rollback ;
    end if ;
    Statements in calling forms:
    There are two calling forms having following statements and it is going to call the above said called form.
    CALLING FORM 1
    Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...; Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    CALLING FORM 2:
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...;
    insert into table_b ...;
    Our understanding:
    Assume that both the forms are running from two different machines/instances, issuing commit at the same time. In this case, forms will start executing the statements written in ON-INSERT trigger, the moment POST command is executed. Though the commit is issued at the same time, according to oracle, only one of the request will be taken for processing first. Assume that calling form 1 is getting processed first.
    So, it fetches the value available in COLUMN_1 of TABLE_A and locks the row from further select, update, etc. as SELECT...FOR UPDATE command is used (note that NOWAIT is not given, hence the lock will be released only when COMMIT or ROLLBACK happens) and proceed executing further INSERT statements. Because of the lock provided by the SELECT...FOR UPDATE command, the statements in calling form 2 will wait for the resource.
    After executing the INSERT statements, the FORM_CHILD is called. The rows inserted in to TABLE_A will be queried and shown. The database changes will be committed when user closes the window (as COMMIT is issued in its WHEN-WINDOW-CLOSED trigger). Then the SELECT...FOR UPDATE lock will be released and calling form 2's statements will be executed.
    Actual happenings or Mis-behavior:
    Calling form 2 starts executing INSERT statements instead of waiting for SELECT...FOR UPDATE lock. Also, the value selected from TABLE_A.COLUMN_1 is same in both the calling forms, which is wrong.
    The rows inserted into TABLE_B are having similar COLUMN_1 values in calling form 2 and they are fetched and shown in the called form FORM_CHILD.
    Note that in calling form 2 also POST only is issued, but the changes posted there are accessible in calling form 1 also, which is wrong.
    Kindly suggest us as to how to fix above problem. It will be much use, if you can send us the information regarding the behavior of Oracle Forms POST built-in also.
    Our mail ID: [email protected]
    Thanks a lot in advance.

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

Maybe you are looking for

  • How to copy file from  one location to another

    Hi, I am new to java, I tried the following code to move the file from one location to another public class CopyFiles { public String copy ( File source, File target) throws IOException {    FileChannel sourceChannel = null; FileChannel targetChannel

  • Character sets - UTF8 or Chinese

    Hi, I am looking into enhancing the application I have built in Oracle to save/display data in Chinese & English. I have looking into how to change the character set of a database to accept different languages i.e. different characters. From what I u

  • Upload Of Transaction Data Using E-CATT

    Dear All,       I am trying to upload purchase order Data for transaction ME21 through E-catt. But I am not able to upload multiple line item data as the Test Script allows only one item data to be uploaded because I have uploaded only one item data

  • Acrobat XI Pro 11.0.9: No frame, bad document render in Windows

    After months of tolerably flaky performance (random crashes on document closse), last week Acrobat XI Pro started to misrender on the screen.  The frame that Windows places around it would disappear, and the document, including the toolbars, would re

  • Solaris 10/08 LUCREATE fails to exclude directories

    OK: I am trying to exclude the /usr1 filesystem when I create a new boot environment: Here is what I have tried so far without any luck: lucreate -c S1008-orig -m /:c0t0d0s7:ufs -z /tmp/exclude -n S10NEW09 /tmp/exclude x /usr1 lucreate -c S1008-orig