Values in Screen Field

Hi,
There is a screen (3140 function group CRM_TSRV_UI) which has got field one with 'CRMT_3140_TSRV_UI-OBJECTIVE' which  is assigned to data element CRMT_OBJECTIVE. This data element 'CRMT_OBJECTIVE' has the length of 3 character and so does the domain 'CRM_OBJECTIVE' which is assigned to it.
In the domain there is a value table 'CRMC_ACT_OBJ' assigned to it which again has got the primary field 'objective' with length 3.
The table structure 'CRMC_ACT_OBJ' contains only two fields mandt and objective, but when you see the table contents it shows 3 fields, with one additional field 'description' coming from the another table which is maintained as a text table CRMC_ACT_OBJ_T
When I call this field on the screen 3140 (as a list box) it shows me the Description instead of Key, even when the length of the field is 3 characters.
what can be the explanation on how it is picking up the description and also not giving any error when the field length is 3 characters.
I have to restrict the value in this list and for that I tried using POV event (process on value-request) but when I try to input the description or any value with length more then 3 characters I got a error message.
Suggestions..!
Thanks in adv.
/Manik

Hi Manik,
This is standard SAP functionality. It is picking up the description from the text table i.e. CRMC_ACT_OBJ_T for the objective code in the table CRMC_ACT_OBJ.
SAP has internally linked both the tables to do so. Whenever you are refering to this field anywhere in your program just use code instead of the description and you won't get any error. SAP takes care of matching the code with the corresponiding description. You can check out this mapping in the SPRO transaction.
<b>Reward points if it helps.</b>
Message was edited by: Amit Mishra

Similar Messages

  • Holding the value in screen-field

    Dear All,
    I m facing the problem ,while i m putting the value in screen-field and then pressing enter,
    value in that screen-field is becoming null automatically.
    wht shld i do for holding the value even after PAI.
    Thanks in advance.

    Hi,
    You should define a corresponding variable for that screen field in your program.
    data: my_input_field type ... "same name and type as the one used in screen for field
    so when you enter data to that field and press ENTER, the data will be transported to that variable and in PAI you have its value there.
    Regards
    Marcin

  • How to populate the calculated value into screen field.

    I am doing one enhancement in QM.I have added one custom screen to notification transaction ( QM01/QM02/QM03) transaction tab strip control using the enhancement QQMA0001.The Details of the calling and called screens as shown bellow
    The Calling screen: SAPLIQS0
    Screen Number: 7790
    Screen Area :USER0001
    Called Screen: SAPLXQQM
    Screen Number: 0101
    I have developed the Custom Screen in screen 0101 and called in PBO of program SAPLIQS0 7790 screen.
    The Screen in calling perfectly .The Custom screen having different fields like Raw cost, Intermediate cost, Finished cost, SCAR Cost and Sales Order Cost Etc... These fields are out put filed types. No input for these screens.. I have few doubts regarding this
    How to populate the calculated values in Custom screen?
    Where we wrote the code to populate the calculated values in custom screen?
    You have any idea please guide me
    Thanks & Regards,
    Samantula

    As your screen fields should be global variables in SAPLXQQM, you may initialize them by implementing function module EXIT_SAPMIWO0_008 which also belongs to SAPLXQQM (Customer Exit: Transfer Notification Data to User Screen)

  • Process on value request in Dialog screen based on value of screen field

    Hello Gurus,
    I have a check box on a dialog screen. If the checkbox is checked, based on that I want the other field on the same dialog screen to follow logic for F4 dropdown.
    Now I know if I want to write this, I have to write this in Process on value-request. But how do I get the value of the check box checked or not on the same screen in Process on value-request.
    If it had been a simple selection screen I would have defined the check box as
    Parameter: v_checkbox as checkbox user-command uc1.
    But how do I handle above situation in dialog screen case ?
    Please help.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Sep 29, 2009 6:19 PM

    Hi Shah,
    You have the addition for MODULE statement as ON INPUT.
    Eg :  FIELD <screen field> MODULE <module> ON INPUT.
    You can give the check box field name in the above statement.
    If you want to find as soon as the check box is checked, you can find it here.
    Or else, in the addition ON REQUEST
      you can see for the check box field value whether it is checked or not.
    Thanks,
    Prasad

  • Assigning a value to screen field

    Hi,
      Anybody knows how to assign a value to a field in a standard transaction without using parameter ID.
    Pionts will be awarded.
    Thanks,
    lakshmi.

    Thank you so much Rich & eswar. here is my problem.
    Actually I am updating this field based on the contract starts date and material group using one user exit.But this field is geting updated whenever there is a change to this field.it is not geting updated in other cases that is "it is geting updated if you are changing the contents of the filed or giving a new value".
    But I want this field updated all the times.
        So I thought I will assign a dummy value to this filed before I update it.For this We need a parameter id. but it is not there. So I am searching for other solution.
      Can you please help me.
    Regards,
    Lakshmi

  • Providing value to screen field during f4.

    hi all,
    am having selection screen as follows
    parameters: p1 type ........
                        p2 type ...... .
    am providing f4 help for p1 as follows.
    at selection-screen on value-request for p1.
    select from db where abcxyz = p1...into table itab
    after that at runtime am getting a pop-up box where the values related to both p1 and p2 are coming, am selecting one value from the list related p1 .. and also able to populate in p1 field in selection screen at runtime ...
    but now i have to also populate p2 field simultaneously  at run time when am selecting the value for p1 .. because both are related ..
    am trying to pass the value to p2..but am unable to do it.
    pls advise with possible alternatives
    thanks
    suresh

    Hi,
    you must use DYNP_VALUES_UPDATE or RS_SELECTIONSCREEN_UPDATE function module (this latter is mandatory only for select-options). See forum for more information.
    Sandra

  • Not able to get the values from screen field?

    hello
    i am using MIRO and there is a screen name withholding tax and from there i want to retreive the withholding tax code before saving so that i can do some validations on it but how can i retrieve the values.
    when i press f1 there it shows structure not the table and structure contains no value so please help me in this so that i can retreive that value during run time
    thank you

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • Default values for Screen Fileds

    Hi All
    By default, if a user doesnt give a value for a particular field, it will have the Default Value of the particular type.But i want it to retain a Null Value in such case. Is it possible.
    I have a numeric field in my screen. I need ot trigger a error message if the user doesnt enter any value..
    And to accept if ihe enters 0.
    BUt even if the user doesnt give any value, the screen field gets 0.
    Is there any way to do this

    You might want to check out using the "on request" on some modules in the screen flow to determine if the user has keyed something in... from [Conditional Module Calls|http://help.sap.com/saphelp_46c/helpdata/EN/9f/dbabbd35c111d1829f0000e829fbfe/content.htm] :
    ON REQUEST
    The module <mod> is only called if the user has entered something in the field. This includes cases when the user overwrites an existing value with the same value, or explicitly enters the initial value.
    Jonathan

  • How to refresh value in selection screen field

    Hi Experts,
    I have a requirement to refresh the value in selection screen.while i run the report in selection screen i selecting one variant for look the output if i use some other field value with same variant without save its working fine i am avle to see the data but while i come back to again selection screen and selecting some other variant that extra add value is not getting refresh its showing with new variant.Its happening for only one variant not for all if i select some other variant then its getting refresh value in same field.Any one can help me for this issue.
    Thanks.

    Hi,
    That means, I believe - the value that is "not changing" is saved in the particular variant. You can easily verify it by starting the report without variant and then selecting the variant in question. Remove the value from screen and save the variant again. Don't forget to check of variant needs to be transported from development system...
    cheers
    Janis

  • Selection screen field value capturing

    Hi,
    I have developed a report for displaying amendment changes in a purchse order. The input are purchase order
    and plant. Now they have asked for an additional input of version field, which should also have F4 field-value help.
    For version field, default there is no F4 key. So, i have written code like after entering the PO number when we press the enter key, for the corresponding PO, it brings the version no in input field. But my problem is it is displaying the values for version field, but when i select some value it is not getting updated in selection-screen version field. I have attached my code below... please help me
    in the below code my problem is only between
    AT SELECTION-SCREEN on value-request for P_REVNO.
    and
    start-of-selection event...
    TABLES : ekko,
    ekpo,
    cdhdr,
    cdpos,
    MEPO1325,
    t001,
    t166c,
    t166t,
    adrc,
    komp, " net rate of header
    konv, " net value of purchase order
    zammendpodet.
    TYPES : BEGIN OF ts_cdpos,
    ebeln TYPE ekbe-ebeln,
    ebelp TYPE ekbe-ebelp,
    matnr type ekpo-matnr,
    maktx type makt-maktx,
    prdat type ekpo-prdat,
    belnr TYPE ekbe-belnr,
    budat TYPE ekbe-budat,
    tkey(70),
    txz01 TYPE ekpo-txz01,
    ctxnr TYPE t166c-ctxnr,
    desp(20) type C,
    MEINS LIKE MARA-MEINS,
    chtxt TYPE t166t-chtxt.
    INCLUDE STRUCTURE cdpos.
    TYPES : END OF ts_cdpos.
    data : begin of it_makt occurs 0,
    matnr like makt-matnr,
    maktx like makt-maktx,
    end of it_makt.
    data : begin of it_maRA occurs 0,
    matnr like maRA-matnr,
    mEINS like maRA-mEINS,
    end of it_maRA.
    *Internal table declartion
    DATA : it_erev TYPE TABLE OF erev WITH HEADER LINE,
    it_ekko1 type table of ekko with header line,
    it_konv2 type table of konv with header line,
    it_ekpo TYPE TABLE OF ekpo WITH HEADER LINE,
    it_ekpo1 TYPE TABLE OF ekpo WITH HEADER LINE,
    it_cdhdr TYPE TABLE OF cdhdr WITH HEADER LINE,
    it_t166c TYPE TABLE OF t166c WITH HEADER LINE,
    it_ekbe TYPE TABLE OF ekbe WITH HEADER LINE,
    IT_AMMEND TYPE TABLE OF ZAMMENDPODET WITH HEADER LINE,
    IT_AMMEND1 TYPE TABLE OF ZAMMENDPODET WITH HEADER LINE,
    it_komp TYPE TABLE OF KOMP WITH HEADER LINE,
    it_konv type table of konv with header line,
    it_konv1 type table of konv with header line,
    it_cdpos TYPE TABLE OF ts_cdpos WITH HEADER LINE.
    data : BEGIN OF it_erev1 occurs 0,
    revno TYPE erev-revno.
    data : end of it_erev1.
    data : begin of it_cdpos1 occurs 0.
    include structure cdpos.
    data : ebeln like ekko-ebeln,
    item like ekpo-ebelp,
    aedat like ekpo-aedat,
    matnr like ekpo-matnr,
    txz01 like ekpo-txz01,
    desp(20) type C,
    MEINS LIKE MARA-MEINS,
    item1 like ekpo-netpr.
    data : end of it_cdpos1.
    types : dy_temp TYPE lips-lgort.
    DATA : dyfields LIKE dynpread OCCURS 1 WITH HEADER LINE, dy_value TYPE dy_temp.
    DATA: progname TYPE sy-repid,
    dynnum TYPE sy-dynnr,
    dynpro_values TYPE TABLE OF dynpread,
    field_value LIKE LINE OF dynpro_values.
    *Work variable declaration
    DATA : v_revno TYPE erev-revno,
    revno1 type zammendpodet-revno,
    w_version TYPE erev-revno,
    w_erdat TYPE erev-erdat,
    w_eruhr TYPE erev-eruhr,
    wv_eruhr TYPE erev-eruhr,
    v_tabkey TYPE cdpos-tabkey,
    v_temp(5),
    v_olddate(8),
    v_newdate(8),
    v_value_old TYPE cdpos-value_old,
    V_OLD TYPE EKPO-BRTWR, " OLD VALUE FOR PURCHASE ORDER
    l_ind TYPE i,
    temp value 0 type i,
    temp1 type i,
    temp2 type i,
    temp3 type i,
    wa_cdpos like line of it_cdpos,
    wa_cdpos1 like line of it_cdpos1,
    v_tabkey1 TYPE cdpos-tabkey.
    PARAMETERS : p_ebeln TYPE ekko-ebeln,
    p_ebelp TYPE ekpo-ebelp.
    p_bukrs TYPE t001-bukrs,
    p_revno type erev-revno.
    INITIALIZATION.
    AT SELECTION-SCREEN on value-request for P_REVNO.
    CLEAR: dyfields[], dyfields.
    dyfields-fieldname = 'P_REVNO'.
    APPEND dyfields.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = sy-cprog
    dynumb = sy-dynnr
    TABLES
    dynpfields = dyfields.
    READ TABLE dyfields INDEX 1.
    SELECT revno
    FROM erev
    INTO TABLE it_erev1 WHERE edokn = p_ebeln.
    IF sy-subrc = 0.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'REVNO'
    dynpprog = progname
    dynpnr = dynnum
    dynprofield = 'P_REVNO'
    value_org = 'S'
    TABLES
    value_tab = it_eREV1
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    START-OF-SELECTION.
    SELECT SINGLE *
    FROM t001
    WHERE bukrs EQ p_bukrs.
    IF sy-subrc EQ 0.
    SELECT SINGLE *
    FROM adrc
    WHERE addrnumber EQ t001-adrnr.
    ENDIF.
    SELECT SINGLE *
    FROM ekko
    WHERE ebeln
    EQ p_ebeln
    AND frgke = 2.
    select * from konv into corresponding fields of table it_konv where knumv eq ekko-knumv.
    useful informations will be rewarded.
    thanks and regards,
    subbu.,

    Hi ,
           Use this function module
        call function 'DYNP_VALUES_UPDATE'
          exporting
            dyname               = sy-repid
            dynumb               = sy-dynnr
          tables
            dynpfields           = t_dynpfields
          exceptions
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            others               = 8.
    where t_dynpfields would contain name of field and value you want to update.
    Please reward if useful.

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • DYNP_VALUES_UPDATE does not change the value of my screen fields

    Hi,
    I have a screen with a header area and a control with an ALV.
    In my header area i have 2 fields shown as an icon.  These icons should change
    with an event triggered in the ALV (in handle_user_command)
    In handle_user_command I check the values of a column in my ALV - I have 3 possible cases : a green led, a yellow led or a red led.
    When i'm debugging the program, everything seems to be ok.  In my table i see the new values of the icons, but when I see the screen afterwards the old values have not been replaced.  (I also use an refresh of my ALV)
    Any help is welcome!
    THx,
    Helga

    Hi,
    declare the internal table like below:
    DATA: i_fieldvalues TYPE dynpread OCCURS 0 WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR field.
      PERFORM Display_contion_types.
    FORM Display_contion_types.
    Search help for Condition Type
      PERFORM Display_contion_types.
    Update screen fields like below:
    Update Screen Field.
          CLEAR i_fieldvalues[].
          MOVE: 'V_TEXT'         TO i_fieldvalues-fieldname .
          WRITE i_t685-vtext TO i_fieldvalues-fieldvalue .
          APPEND i_fieldvalues.
          CALL FUNCTION 'DYNP_VALUES_UPDATE'
               EXPORTING
                    dyname     = sy-cprog
                    dynumb     = sy-dynnr
               TABLES
                    dynpfields = i_fieldvalues.
    endif
    regards,
    Raja

  • How to get the latest screen value (of input field in VA01)

    Hi Experts,
    I have a problem that when I am in VA01 (create sales orders) I see the (old) default value of the Req.Deliv.Date
    (in Item Overview tab). I don't see the latest entered value.
    This is screen field RV45A-KETDAT.
    Eg When I enter VA01, I first enter the order type.
    In the next screen you will see that the Req.Deliv.Date has already an intial value (current date).
    Now when I change this field to Nov 14 2011, I will still see the delault current date (in PAI).
    Only much later, the program will adopt the new value (but this is too late for me).
    (I actually need the value in FM SD_PARTNER_ABLAD_SELECTION)
    How come and how can I retrieve the latest value?
    (I already tried FM DYNP_VALUES_READ but this didn't help)
    Please advice.
    Thanks very much!
    Guido

    Did you try DYNP_VALUES_READ like this
          PERFORM DYNP_VALUES_READ USING 'SAPMV45A'
                                   '4001'
                                    'RV45A-KETDAT'
                           CHANGING RV45A-KETDAT
                                    SY-SUBRC.
    try writing this where you need your values. This oerform already exists in VA01 code and is used in teh PAi for another field. So just try callign this with these values and see if it helps.

  • Value Transport (Exporting) to multiple screen fields in Search Help

    Hi all,
    I have created elementary search help using exit and attached it to data element. After F4 when I get hitlist I want all the values from the selected rows to get copied to the screen fields. I.e. I want the value transport.
    In the search help I am exporting those values which I want to get copied back but I am unable to get the result.
    With Regards,
    Chandra

    Hi,
        You can get this behaviour only by making the SEARCH HELP assignment at the STRUCTURE level.
    You need to create or use an existing structure to create your screen fields which you want to populate using the search help. Then assign this search help directly to the structure and there do the mapping between structure fields and the search help export params.
    Only by doing this you can autopopulate the values using one search help.
    Regards,
    Sesh

  • How to populate f4 values to standard pnp selection screen fields

    Hi Experts,
    my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my  f4 values in the selection screen

    Hi Venkat,
    To put ur own values in the F4 help of any field...all u have to do is.
    1st fetch all the records that u need to display in F4 help list...in one internal table.
    and then use the function module  'F4IF_INT_TABLE_VALUE_REQUEST'
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield =
    value_org =
    tables
    value_tab =
    return_tab =
    exceptions
    parameter_error = 1
    no_values_found = 2
    others = 3.
    where retfield is the field for which u need to give the F4 help.
    and valu_tab is the internal table in which u have the list of records to be displayed.
    this would do the work...
    I dont have the system in front of me...as soon as i have...will try to send a piece of code, to make ur work easy.
    Till then hope this helps u...all the best
    Regards,
    Radhika

Maybe you are looking for

  • HP Officejet Pro 8000-A809 Wireless C9297A- Hardware Question

     I removed cyan/magenta printhead yesterday to manually clean printheads.  Today printed Self-Test-diagnostic page, then attempted to print Print Quality Diagnostic page, and the paper jammed. When I opened up the top, the printhead assembly was stop

  • Problems installing Quicktime - please help!

    I just purchased a new iPod and I attempted to install Quicktime 7 from the site and as the download completes, an error message pops up saying "Some installation files are corrupt. Please download a fresh copy and retry intstallation." I also tried

  • Azure VLAN Servers Can't Communicate

    I have been running two Windows Servers 2012 r2 boxes in azure for a few months now and all of a sudden they can't talk to each other in anyway. I tried this but it did not seem to help me. Any ideas? I would like to transfer files between the two bu

  • Catalyst won't run project

    Catalyst posts an error dialog, and if I choose to build and run anyway, i get this error Unable to run the project   File not found: file:/Users/Clark/Application%20Support/Adobe/Flash%20Catalyst/ workspace/amsi web test/bin-debug/Main.html When i g

  • Parameters in Init.ora for Materialized Views

    Fellow Experts, Are there any other parameters that I need to insert in the init.ora besides QUERY_REWRITE_ENABLED and QUERY_REWRITE_INTEGRITY once I create a materialize view ? Thanks. Ray.