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

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

  • Zero value in Amount field during transaction upload into BPC

    Hi Experts,
    When I run DM package to load transaction data from BW to BPC,I am getting warning error with rejected list which contains amount field as zero value.
    Is it possible to load records with amount value as Zero.My current EPM version is 10 SP14 Patch 1.
    Currently my cube is in load mode .I have understood that during transaction data upload the cube should be in load mode and during inputting data using input forms it should be in planning mode.Please correct me if I am wrong.
    Thanks,
    Raju

    Thanks for your quick turn around.
    I have multiple keyfigures which have zero values in some records hence I am getting zero values in Amount field.
    Shall I mark Real-Time  data Target can be planned; data loading not allowed always.
    Regards,
    Venkat

  • 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

  • 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.

  • 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

  • Selecting Not Rated value for Pass field during course follow up

    Dear Experts,
    We have some courses that are not assessed and as such there is no rating that can be attached to the participant. During course follow-up via LSO_PSV2, the Pass field does have the drop-down value 'Not Rated' but if we select it, the error message Unevaluated participation cannot be followed up appears.
    Is there a way to make the Pass field optional? I've looked in the config at the Control of Process Steps but the only option is either Signature and Activate.
    Any assistance is greatly appreciated.
    Thank you
    George

    Facing the same issue on clicking on the check box for followup.
    Did you manage to resolve this?
    Unevaluated participation cannot be followed up

  • Setting default values to CUSTOMERH field during creation of ORDER?

    Hi guys,
    Does anyone know of any BAdI that is called once during the ORDER creation?
    I have a CUSTOMERH field that needs to be set to 'X' during creation, and the user can de-select them anything. Anyone know how this can be achieved??
    Many thanks in advance, points to be awarded for any helpful ideas.

    Hi Joshua,
    have a look to the interface IF_EX_ORDER_SAVE.
    this give you the Methods CHANGE_BEFORE_UPDATE and PREPARE.
    I hope you can use this.
    kind regards an happy x-mas
    Torsten

  • How to set values of formula fields during runtime in crystal reports

    Hello All,
    Could any one help in letting me know how to set the values of a formula in the runtime.
    I tried using the below systax in the formula field
    Assume that I have 2 formula fields
    1. format_count
    2. format_display
    my formula is like below:
    in the formula field format_count i have
    format_display=pagenumber
    when checking for errors its throwing error stating "stamement is expected"
    Could any one help in resolving this
    Thanks

    Hi Ranjeet,
    Whenever you assign values to a variable, you need to use :=
    Like this:
    numbervar x := pagenumber
    And what exactly are you trying to do anyway?
    -Abhilash

  • Clear Screen Field

    Dear Friends
    I have a Screen and 6 drop down boxes are there with different table references.
    I have use PROCESS ON VALUE-REQUEST block for the getting there serch help values with use FM 'F4IF_INT_TABLE_VALUE_REQUEST'
    my question is when i select One drop down belows are must be clear. that means
    if I select Drop down 2 ==== Drop down 3,4,5,6 must be clear
    if I select Drop down 5 ==== Drop down 5,6 must be clear
    i use in PAI event like CLEAR <Field Name> but its not working
    Can you anyone give me a solution to clear this issue
    Thanks and Regards

    Have a search through the ABAP UI forum for function module 'DYNP_VALUES_UPDATE' examples - you can use this in the way you want to update the value of other screen fields during a POV event i.e. in the F4 for another field.
    If you scroll down through:
    Re: getting the description
    you'll see an example I posted of using this to set text for an associated field, but clear (set to space) should work equally well.
    Jonathan

  • Screen field (MEPO1211-KONNR) not populated user exit ZXM06U43

    Hi Expert,
                      I have to check  Outline agreement (EKKO-KONNR) in the user exit ZXM06U43 when creating or changing PO. one screen field (MEPO1211-KONNR) is provided for that. But value is not populated  into that field(MEPO1211-KONNR) for this user exit ZXM06U43, its always blank. Infact hole structure (MEPO1211) is blank for this exit. 
    So can anybody provide me the screen field name so I can get the value of KONNR in this exit.

    Hi,
    In the user exit - EXIT_SAPMM06E_012, YOU CAN ONLY DO CHECKS/VALIDATIONS;
    you have a paramter I_BSTYP which hold the type of the document(PO/Out Agreement/PR).
    Paramter I_EKKO will hold the data entered on the screen. It will be the incoming data which can be used to validate.
    TO PASS THE DATA, CHECK the below exit:
    EXIT_SAPMM06E_018 : Import Data from Customer Subscreen for Purchasing Document
    EXIT_SAPMM06E_007/EXIT_SAPMM06E_006: Export Data to Customer Subscreen for Purchasing Document Header
    Hope this helps
    Regards
    Shiva

  • Difficulty in setting value of a field at runtime

    I have a form with input text fields. One of the fields is disabled and automatically filled by the system. I am having problem filling this field at runtime.
    What I did was that I tried to set the value of the field during the save operation (that is when I clicked on the save button). The system sets the value of the field but it did not commit the value into the table. This is is the code that I used
        public String SaveParameterRecord() {
           this.codeTypeId.setValue("GB011");
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
    Again I tried with with method call, but it gave me java.lang.NullPointerException at the point (this.codeTypeId.setValue("GB011"))
        public String CheckParameterMethod() {
             BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
             this.codeTypeId.setValue("GB011");  
            return null;

    hi Frank,
    The issue I see is that by putting this.codeTypeId.setValue("GB011"); wont be updating the model, and that is why after your commit, the value comes null. Is that variable depending on any other value? If you really want to update the model at that stage you will need to do something like;
      public static void setExpressionValue(String expression, Object newValue) {
          FacesContext facesContext = getFacesContext();
          Application app = facesContext.getApplication();
          ExpressionFactory elFactory = app.getExpressionFactory();
          ELContext elContext = facesContext.getELContext();
          ValueExpression valueExp =
              elFactory.createValueExpression(elContext, expression,
                                              Object.class);
          //Check that the input newValue can be cast to the property type
          //expected by the managed bean.
          //If the managed Bean expects a primitive we rely on Auto-Unboxing
          Class bindClass = valueExp.getType(elContext);
          if (bindClass.isPrimitive() || bindClass.isInstance(newValue)) {
              valueExp.setValue(elContext, newValue);
    And then instead using this.codeTypeId.setValue("GB011"); you will call setExpressionValue("#{bindings.yourVariable.inputValue}","GB011"). But then again I dont recommend you doing this.
    If this variable depends on another variable, you can use a setPropertyListener and autoSubmit=true.
    Regards

  • 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

Maybe you are looking for