Field type refreshed only once

Hi there friends.
I have got a very sad problem.
DATA: ftype(60) .
SELECTION-SCREEN BEGIN OF BLOCK main WITH FRAME TITLE text-001.
  PARAMETERS: A(30) .
  PARAMETERS: B LIKE (ftype) .
SELECTION-SCREEN END OF BLOCK main .
AT SELECTION-SCREEN .
  CLEAR ftype .
  ftype = A .
When I launch program and specify in A field a value 'ADRC-NATION' and hit enter - type of field B is changed to ADRC-NATION dynamically
but when I try to do this second time, by specifying an 'ADRC-TITLE' value in field A, then hit enter - type of field B is not changed to ADRC-TITLE ftype variable contains 'ADRC-TITLE' value but in the screen I still see variable of old parameter ADRC-NATION
What can be the reason?
Do you know some alternative way to achieve such effect?
Will be thankful for help.
Regards,
P.

Hi,
it's not going work as you would like to. SAP tries to generate correct input field when the screen is called. In case that the text pool ftype is empty then it generates generic input field and change it as soon as ftype gets some value. After that it does not change this field. Maybe you can try to recall selection screen after each change. Dynpro is pretty old technology and it has various limitations. I am not sure if this is possible in your case but you can achieve your requirement easily in webdynpro.
Cheers

Similar Messages

  • Can field type be changed once I have set it up?

    I am working on a form and one of the fields is supposed to be a drop down menu with about 50 different choices (choose 1). I accidentally set it up as a list box instead of a combo box. Is there any way to change this field to a combo box, keeping all 50 of the options that I already (manually) typed?
    Or is there an easier way to import items into a combo box?
    I am using Adobe Acrobat 9 Pro
    Thanks for your help!

    Depending upon the product. Version 5 and below allowed changing the field type, but many of the properties are lost.
    I would use JavaScript to create a list of the entries in your current list box into an array and then use that array to populate the new combo box.
    // variable for field name to get data from
    var sField = "myList";
    // variable for field name to place data in
    var sNewField = "myCombo";
    // get the field object sField
    var oField = this.getField(sField);
    // get the number of items in the combo or list box
    var nItems = oField.numItems;
    // variable to hold an item entry from combo or list box
    var aItem;
    // define an array for item in combo or list box
    var aEntries = new Array(nItems)
    // loop through the items in the combo or list box
    for(i = 0; i < nItems; i++) {
    // get item at index i
    aItem = [oField.getItemAt({nIdx: i, bExportValue: false}), oField.getItemAt({nIdx: i, bExportValue: true})];
    // insert into entries array
    aEntries[i] = aItem;
    } // end loop through the items in the combo or list box
    // populate the new field
    // get the new field object
    var oNewField = this.getField(sNewField);
    // set the items into the new field
    oNewField.setItems(aEntries);
    // end of script
    With a combo or list box with that number of entries, I would use a document level script to populate the field when the PDF is opened or to populate the field and then comment out the action for the setting of the items. This would make maintenance of the list much easier.

  • How to display field value only once in REUSE_ALV_GRID_DISPLAY

    hi experts,
                   i am using REUSE_ALV_GRID_DISPLAY, for alv outpur display.but i want one of the field in output ,not to display the value which is of same, it have to be displayed only once, I mean i have a number which contains multiple line items corresponding, here i want to display the field value only once when it is repeating , for the same header number, how can i achieve it

    Hi,
    check the sample code,
    REPORT  Z_ALV.
    Database table declaration
    TABLES:
      sflight.
    Typepool declaration
    TYPE-POOLS:
      slis.
    Selection screen elements
    SELECTION-SCREEN BEGIN OF BLOCK blk_1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS:
      s_carrid FOR sflight-carrid.
    SELECTION-SCREEN END OF BLOCK blk_1.
    Field string to hold sflight data
    DATA:
      BEGIN OF fs_sflight ,
        carrid   TYPE sflight-carrid,      " Carrier Id
        connid   TYPE sflight-connid,      " Connection No
        fldate   TYPE sflight-fldate,      " Flight date
        seatsmax TYPE sflight-seatsmax,    " Maximum seats
        seatsocc TYPE sflight-seatsocc,    " Occupied seats
      END OF fs_sflight.
    Internal table to hold sflight data
    DATA:
      t_sflight LIKE
       STANDARD TABLE
             OF fs_sflight .
    Work variables
    DATA:
      t_fieldcat TYPE  slis_t_fieldcat_alv,
      fs_fieldcat LIKE
             LINE OF t_fieldcat.
    *START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM get_data_sflight.            " Getting data for display
      PERFORM create_field_cat.            " Create field catalog
      PERFORM alv_display.
    *&      Form  create_field_cat
          Subroutine to create field catalog
          There is no interface paramete
    FORM create_field_cat .
      PERFORM fill_fieldcat USING   'Carrier Id'    'CARRID'   '2'.
      PERFORM fill_fieldcat USING   'Connection No' 'CONNID'   '1'.
      PERFORM fill_fieldcat USING   'Flight Date'   'FLDATE'   '3'.
      PERFORM fill_fieldcat USING   'Maxm.Seats'    'SEATSMAX' '4'.
      PERFORM fill_fieldcat USING   'Seats Occ'     'SEATSOCC' '5'.
    ENDFORM.                                    "create_field_cat
    *&      Form  fill_fieldcat
          Subroutine to fill data to field column
         -->p_seltext      Column label
         -->p_fieldname    Fieldname of database table
         -->p_col_pos      Column position
    FORM fill_fieldcat  USING
                        p_seltext    LIKE fs_fieldcat-seltext_m
                        p_fieldname  LIKE fs_fieldcat-fieldname
                        p_col_pos    LIKE fs_fieldcat-col_pos.
      fs_fieldcat-seltext_m  = p_seltext.
      fs_fieldcat-fieldname  = p_fieldname.
      fs_fieldcat-col_pos    = p_col_pos.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
    ENDFORM.                    " fill_fieldcat
    *&      Form  get_data_sflight
          Subroutine to fetch data from database table
          There is no interface parameter
    FORM get_data_sflight .
      SELECT carrid
             connid
             fldate
             seatsmax
             seatsocc
        FROM sflight
        INTO TABLE t_sflight
       WHERE carrid IN s_carrid.
    ENDFORM.                    " get_data_sflight
    *&      Form  alv_display
          Subroutine for ALV display
          There is no interface parameter
    FORM alv_display .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          it_fieldcat   = t_fieldcat
        TABLES
          t_outtab      = t_sflight
        EXCEPTIONS
          program_error = 1
          OTHERS        = 2.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " alv_display
    End of code

  • CUP - field mapping from request to SU01 for Accnt No worked only once

    CUP - field mapping from request to SU01 worked only once. I configured the Field Mapping for Account Number with Account Id. First request worked fine in DEV systems, 2nd and 3rd requests failed. Same thing happened in QA systems. Not sure whether the difference in SP on GRC and ECC is causing this. Any help is greatly appreciated.
    We are currentky on GRC 5.3 ABAP stack SP 14.0  
    and
    ECC - SAPK-53315INVIRSANH VIRSANH 530_700: Support Package 0015
    Any help is greatly appreciated.
    Thanks,
    Vish

    Hi Diego,
    Yes, we are on VIRSANH SP15  also VIRSAHR SP13 for SAP_HR . My connector type is SAP HR System, Version ECC 6.0.
    We are on GRC 5.3  Support Pack 14.0 . Our GRC 5.3 installation is running on ABAP stack.
    It is very strange that in QA client, SU01 got updated atleast 3 times with new account number , user group. Tried 4th time, did not work. In DEV client, it worked only once.
    Thanks,
    Vish

  • How to set a payload field value only once for multiple instances selected?

    The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
    Thanks,
    Carlos.

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • When i type the https URL in my FireFox browser version 3.6 to 5.0, i get login pop up window two times. But in IE browser i get only once. Please tell me why FireFox is showing pop up screen two times to enter my uid/pwd. Thanks!

    We have our company internal application which is protected by SiteMinder. When we type https://appname.domain.com in IE i get popup window asking me to enter uid/pwd and works fine. However same URL when i login in FireFox, i get pop up window two times. So i wonder why FF is asking two times instead of just only once.
    Thanks for your help.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Refresh Flex application only once.

    Hi All ,
      In my Flex Application i am calling a function  like :
    applicationComplete = "addPanel(999999);" , which will add a panel. 999999 is nothing but flag.
    But i should refresh application  Only Once .... how to do that..
    Thanks in Advance...

    The SWC files are within the resource directory of LCDS.
    For example:
    C:\lcds31\resources\lcds_swcs\FlexSDK4\frameworks\locale\en_US
    fiber_rb.swc
    C:\lcds31\resources\lcds_swcs\FlexSDK4\frameworks\libs
    fiber.swc and fds.swc
    You can use the following within ANT.
    <!-- Get default compiler options. -->
              <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                <!-- List of path elements that form the roots of ActionScript
                class hierarchies. -->
                <source-path path-element="${FLEX_HOME}/frameworks"/>
              <!-- List of SWC files or directories that contain SWC files. -->
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="../bundles/{locale}" />
                </compiler.library-path>

  • This operation is not available for read only field 'Type MVF'

    Hi All,
    We are using OrderToCash PIP and we are on Siebel 8.1X.
    While Synching the customer from Ebiz to Siebel facing the following issues:
    Method 'WriteRecord' of business component 'Account' (integration component 'Account') for record with search specification '[Row Id] = "2d3434313239353"' returned the following error:"This operation is not available for read only field 'Type MVF'.(SBL-DAT-00402)"(SBL-EAI-04451)
    Please suggest us what steps to be done in Siebel.
    Thanks
    Maanasa

    First check the process why this is calling Account BC WriteRecord(). The field "Type MVF" might be read only and this sync process is trying to update this field which is read only. This is the reason for the error. Check the OM log / EAI Obj Manager Comp log (set log level to 5) and check.
    Joseph Arul Dass

  • Pl.ignore pevious post--make some fields appear only once....

    hi,
    my report looks like this:
    batch no:-date:----name:--amount:---so many fields:
    1---------01/01/03---abc----$50------.....
    ----------01/01/03---bcd----$20------.....
    ----------01/02/03---hgi----$30------.....
    ----------BATCH TOTAl:-----$100
    =====================================================
    question:-> is there any way that I can make date field appear only once if the date is same?
    Thanks,
    prasad.

    That is the trick of my question.
    I wanted the total value to be grouped by Batch Number and NOT by date and at the same time date should not appear more than once.
    I am not able to convince my client that it is not possible in Oracle to TOTAL BY BATCH NUMBER and GROUP BY DATE.
    Someone has created this report in some other report writing tool (I think MS-ACCESS), and they want the same report in Oralce now at any cost.
    Can I achieve this by writing a trigger? If yes, is there any link or help available?
    Thanks for the reply.
    Regards,
    Prasad.

  • Write a db field only once

    Hi
    I want to guarantee, that a specific fileld of a row is written only once. If it is NULL it can be written (once), if it has a value it can't be modified anymore. Is there a better solution than to solve this problem with triggers?
    Thanks
    Peter

    There is no problem with the trigger-solution. I only wanted to know if there exists an other solutionIn Oracle, unlike Perl, usually There Is Only One Way To Do It. For enforcing this sort of business rule a trigger is the way. Unless you're building a table API in PL/SQL, it which case you can enforce the rule in the Update procedure.
    Cheers, APC

  • When I long in and type my sync key its said : incorrect key.I worked only once

    I have Firefox 4 on Mac. I have sync for Iphone settled. I have Home app' in the Iphone...I cannot log in, response : incorrect Sync Key. But it worked only once.
    I want uninstall all the stuff and start again, how?

    Sounds as if you are trying to create a new Sync account. You need to treat that software reload as a '''new device''' for purposes of Sync.
    https://support.mozilla.com/en-US/kb/add-a-device-to-firefox-sync#w_add-another-computer

  • Trigger Process chains only once in a day

    Hi All,
    I have a requirement where a process chain triggers on arrival of some files.Now I want this chain to trigger only once in a day even if file arrives before the start of next day.How can i acheive this.
    Reagrds,
    Raj

    Hi,
    Please use below:
    REPORT  ZCHECKPCNEW.
    TABLES : RSPCLOGCHAIN.
    DATA : IT_TAB TYPE TABLE OF RSPCLOGCHAIN,
           WA_TAB TYPE RSPCLOGCHAIN.
    FIELD-SYMBOLS <FS> LIKE LINE OF IT_TAB.
    PARAMETERS :LV_CHAIN TYPE RSPCLOGCHAIN-CHAIN_ID.
    SELECT * FROM RSPCLOGCHAIN INTO TABLE IT_TAB
    WHERE CHAIN_ID  = LV_CHAIN
    AND DATUM = SY-DATUM.
    SORT IT_TAB DESCENDING BY DATUM ZEIT.
    READ TABLE IT_TAB INDEX 1 ASSIGNING <FS>.
    IF SY-SUBRC = 0.
      IF <FS>-ZEIT < SY-UZEIT.
      MESSAGE E000(SABAPDOCU) WITH 'Error'.
      ELSE.
      MESSAGE I162(00) WITH 'Successful'.
      ENDIF.
    ELSE.
    MESSAGE I162(00) WITH 'Successful'.
    ENDIF.
    -Vikram

  • How to unghost Field Control and Field Type

    We have created a custom field type and field control. As we know once we deployed field control and field type, it will keep some file like (Control file , XML file) in the file system (Hive).
    Due to business need, I just want to remove the dependency from file system and want to store every thing in database. means I want to un-ghost Field Type and Field Control. How can I achieve this.
    Please provide me some guidance on this.

    I don't think that's possible. Type definitions such as Features, Site Definitions, Field Type need to reside in the system hive. Only instances would be stored in the database.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • The bidder should quote only once in LAC

    Dear Experts,
    We have a special requirement in LAC.
    The bider should be able to quote only once in the LAC. Can there be any BADI to achieve this?
    The exact details of the business requirement is as below:
    We would like to have 2 document types of Auction. One is "Preliminary auction". Other is "Final Auction".
    We need above correction in the document type viz "preliminary auction", the other document type "final auction" should work as it is in standard SAP.
    Kindly suggest.
    GH

    My suggestion would be the same as Masa's. RFP is the right venue for your "preliminary" type of price quote. Except for the "Live" feature, other requirements, such as driving down price could be achieved. An example would be the following:
    1. Define a custom field for RFx that essentially stores the latest bidder price quote
    2. When a bidder responds, in BBP_DOC_SAVE_BADI for BUS2202 (response), update that custom field with the response item price
    3. In BBP_DOC_CHANGE_BADI for BUS2202 (response), check the bid price against the preceding RFx's item custom field mentioned above and throw error message if the quoted price is higher.

  • Materialized View to run only once in a year...

    Hi everybody...
    I want to create a materialized view which will run only once in a year and specifically some minutes after 00:00 a.m. on new year's day,
    so i created the following:
    CREATE MATERIALIZED VIEW <mv_name>
    BUILD IMMEDIATE
    REFRESH START WITH TO_DATE('01/01/2007 00:15:00','DD/MM/RRRR HH24:MI:SS')
    NEXT SYSDATE+366
    I have two notes:
    1) how to declare the refresh to be done the first new year's day after the day it'll be created , i mean not static date (01/01/2007)
    2)some years are leap and some are not , so in order to run every new year's day how should i transform the above..????
    3)is there any view which displays the next run of a materialized view..???
    the view DBA_MV_REFRESH_TIMES displays the last refresh of mv's...
    I use Oracle 10.2.0.1 on XP ...
    Thanks , a lot
    Simon

    1).
    use the expression that evaluates to next january first.
    SQL> select sysdate, add_months(trunc(sysdate, 'yyyy'), 12) from dual ;
    SYSDATE     ADD_MONTHS(
    19-JUN-2006 01-JAN-2007
    1 row selected.
    SQL>2). for this also use the same expression that will evaluate to the january first of the year after that.

Maybe you are looking for

  • Question about read method of InputStream

    Hello everyone, I am using read method of InputStream to read a stream from a remote machine. The network connection is not very stable (for example, a wireless network whose the signal strength is relatively low). I am wondering if read method retur

  • How to Populate a table in PL/SQL

    Hi Every1, please clarify me How to Populate a table in PL/SQL,Thanx in advance... Thanks & Regards, Ram Nainar S

  • Program closes as soon as it opens.

    I tried to open Garageband today (I haven't used it in about a month) and it took an extremely long time to open. As soon as it did open, it closed before I could do anything. All I get is the "Program quit unexpectedly" message. Anybody know what co

  • Transfering ipod music to itunes

    How do i take my new ipod that my brother loaded with all his music and dump that new music from my new i pod into my itunes

  • Apple Mobile Device says cannot find msi file

    When I run the Apple Mobile Device support it says the msi file is missing.  I have tried repairing but that does nothing.  My iPod does not show up in iTunes and in my Computer.