Updating dynpro field

Hi all
I'm executing a dynpro and when the user press F4 in a field, the corresponding search help is executed but then when the user select a value, I need to do some calculations and show the results and also show an image on the screen.
How can I do that automatically? I mean: I want to update the screen as soon as the user select a value from the standard search help. Right now it is working but the user has to press a key.
I tried to add a function code in the input field but this option is grayed in the Screen Painter.
TIA, Mauro.

Mauro,
In PROCESS ON VALUE-REQUEST.
  FIELD lfa1-lifnr MODULE get_vendor_taxid.(where you give f4 help)
in MODULE get_vendor_taxid INPUT
  call FM for F4 help,
  after that do the calculation,
  use FM 'DYNP_VALUES_UPDATE' adn update required fields

Similar Messages

  • ALV-Grid and update dynpro fields

    Hi!
    I've created a dynpro with an ALV-Grid for Data-Overview and fields on the dynpro to change additional data.
    My ALV has one editable column, when this value change I calculate other value for  a field dynrpo, but I canu2019t see this change in my field dynpro.
    How can I update my data filed dynpro when changing the selected row at the ALV.
    I use the method handle_data_changed to obtain changes in ALV-Grid and it works fine, but I canu2019t update my fileds on the dynpro, when changing value in ALV.
    Thanks for any hints!
    Lili.

    This error occurs becuase when you change anything on the ALV, control is not triggering the PAI and PBO of your dynpro. Hence your values are not getting updated in the dynpro field.
    You should call the CL_GUI_CFW=>DISPATCH in PAI module to trigger the PAI also after the event has been triggered in the ALV.
      CALL METHOD CL_GUI_CFW=>DISPATCH
        importing return_code = return_code.
    * a control event occured => exit PAI
      if return_code <> cl_gui_cfw=>rc_noevent.
        clear g_ok_code.
        exit.
      endif.
    Regards,
    Naimesh Patel

  • DYNP_VALUES_UPDATE not Updating the Field on my Dynpro

    Hi.
    I want to create a dynpro where two fields are. Field 1 allows the user to enter a customer number, field two shall come up with a number that is calculated somehow. The calculation can last up to 20 seconds, so I dont want to make the user waite for this number.. .he shall be able to work with the rest of the dynpro.
    Therefore I called the function that does the calcuiation like that:
    MODULE user_command_0100 INPUT.
      DATA: lv_guid_16 TYPE guid_16.
      IF kna1-kunnr IS NOT INITIAL AND kna1-kunnr <> gv_kunnr
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_16 = lv_guid_16.
        gv_taskid = lv_guid_16+8(8).
        CALL FUNCTION 'YDETERMINE_DEPOTDISTANCE' 
          STARTING NEW TASK gv_taskid
          PERFORMING receive_depent ON END OF TASK
          EXPORTING
            i_kunnr = kna1-kunnr.
      ENDIF.
    ENDMODULE. 
    The next piece of code shall get the returning value if the function wants to return its results.
    FORM receive_depent USING i_task TYPE clike.
      TABLES: d020s.
      DATA: dyname LIKE d020s-prog,
            dynumb LIKE d020s-dnum.
      DATA: BEGIN OF dynpfields OCCURS 1.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF dynpfields.
      IF i_task = gv_taskid.
        RECEIVE RESULTS FROM FUNCTION 'YDETERMINE_DEPOTDISTANCE'
        IMPORTING
          e_depent         = kna1-yydepent
          e_accuracy       = gv_accuracy.
        MOVE 'KNA1-YYDEPENT' TO dynpfields-fieldname.
        MOVE kna1-yydepent TO dynpfields-fieldvalue.
        APPEND dynpfields.
        dyname = sy-cprog.
        dynumb = '0100'.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = dyname
            dynumb               = dynumb
          TABLES
            dynpfields           = dynpfields
          EXCEPTIONS
            invalid_abapworkarea = 01
            invalid_dynprofield  = 02
            invalid_dynproname   = 03
            invalid_dynpronummer = 04
            invalid_request      = 05
            no_fielddescription  = 06
            undefind_error       = 07.
        ASSERT sy-subrc = 0.
      ENDIF.
    Problem is: The DYNP_VALUES_UPDATE does not update the field on my dynpro at all. If I hit enter another time, then the field is provided by the value as another PBO will be processed. What is my mistake here?
    Regards
    Manfred
    Edited by: Rob Burbank on Oct 29, 2010 12:07 PM

    Hi Manfred,
    Replace all the DYNP_VALUES_UPDATE-related content by the following statement:
    SET USER-COMMAND 'xxx'.
    While DYNP_VALUES_UPDATE does update the fields, a roundtrip is not triggered so the content of the fields will not be refreshed. The SET USER-COMMAND does that.
    Hope this helps you!
    Cheers, Roel

  • Updating extended fields in SRM Business Partner Web Dynpro UI does not work

    Hey community,
    I'd like to extend the SAP SRM Business Partner Web Dynpro (SRM 7.13). I did it like in SAP Note 1386310 described. Everything works fine, the fields show the correct data. But updating these fields does not have any effect.
    I only want to extend the existent fields NAME_ORG3 and NAME_ORG4. I did the following steps:
    - Because of the fact that the fields are existent and not custom, I skipped the extension of structures INCL_EEW_BUT000 and INCL_EEW_BUT000_X (ok, in utter despair I even tried this, but of course I got the message "fields already exist...")
    - I added the 2 fields to the SRM business partner data transfer structure INCL_EEW_BP_CSF_COMPANY_DATA.
    - In Web Dynpro /SAPSRM/WDC_MODC_NAME, view V_PS_OIF_NAME I added the fields NAME_ORG3 and NAME_ORG4 to the context node COMPANY_DATA
    - I added corresponding Input fields and labels to the WD layout.
    - in view /sapsrm/v_mdfsbc I customized the new fields
    -> the new fields are visible in the WD, and, oh wow, they even show the correct data!
    -> Unfortunately, updating the fields does not work, but000 does not get any data.
    Debugging the function "bupa_central_extincl_change" brings up, that function BUP_MEMORY_BUT000_GET gets a but000 structure with filled NAME_ORG1 and NAME_ORG2, but NAME_ORG3 and NAME_ORG4 are empty.
    I also regarded SAP Note 1453747, but the code was already right.
    Any Ideas? Many thanks in advance!
    Steffi

    Hi  Stefanie Krause,
    I am also facing the same problem
    I added the one fields "APPROVAL_EMAIL” to the SRM business partner, data transfer structure '/SAPSRM/S_CLL_BP_COMPANY_DATA ' . I have appended the structure.
    I added corresponding Input fields and labels to the WD layout.
    -> the new fields are visible in the WD,
    -> i am able to visible the input field in WD,
    But if add some value press on next tab and back to the screen the value will be refreshed .
    Kindly help me
    Thanks and Regards,
    Maruthi.M

  • Problem with reading Dynpro fields

    Hi,
    I have some tabstrips. On each tabstrip, I have a
    container for an ALV and on the bottom I have another
    subscreen for some input fields.
    Under the subscreen I have some buttons to insert, delete
    etc...
    The fields in my subscreen I have bound to DDIC table
    fields and I have defined that in my program under TABLES
    in my declaration.
    So when I write something in the fields, their content
    has been written to my table-structure defined in TABLES.
    If you double click on a line in the alv, the content of
    the line has been written to my dynpro fields in the
    subscreen.
    My problem now is:
    When You have double clicked a line and the content was
    filled in my dynpro fields and I change the values after-
    wards, I do not have the changed field content in my
    TABLES structure. It´s because, the framework isn´t
    processing my PBO of the subscreen.
    How can I call the pbo manually to get the new field
    content, when I´m pressing the button on the parent
    dynpro?
    I hope it´s possible to understand my problem!
    Cheers Arne

    Hi again,
    I have tried both functions Dynpro_field_get and read_values, but I´m not getting any content. With dynpro_field_get, I´m getting the fieldnames, but not the values!
    I have seen, when I´m pressing enter, after I have typed in the new field values, my TABLES structure has been updated. But I think, it´s not very user friendly, if You have to pay attention to press enter before pressing the "add" button...
    Any other idea? Or do You know why I´m not getting any content?
    Cheers Arne
    Message was edited by: Arne Hein

  • Update dynro field values in PAI of BTE event 00000920

    Hello
    I have the following specific requirement in transaction f-28 : when I click a specific button called 'COMPUTE', I need tu update payment amount in tab 'Partial payment' with a specific amount instead of the default amount.
    So I have created the button 'COMPUTE' using BTE event 00000930 and it's OK.
    the specific amount is computed using BTE event 00000920 in a specific FM. In this FM, after the amount is known, i want to display it on the screen.
    The field payment amount in dynpro is DF05B-PSZAH (dynpro nb for batch-input is 3100, the dynpro number of the program is 6104).
    How can I display the computed value in this field of dynpro ?
    the last thing is : when I change manually (without button 'COMPUTE') the payment amount, the field 'assigned' is automatically re-compute (PAI screen 6104).
    How can I trigger this automatic change after having updated the dynpro field 'DF05B-PSZAH' ? In other way, how can i trigger this automatic change ?
    Thanks all

    I've found myself the technical solution : I used a enhancement point in FORM pos_zeile_bearbeiten of the program SAPDFF05X.
    First I still use BTE event 00000930 to create the specific button.
    To update the partial payment :
    - set to 'X' the field xaktp in the table postab for the line of the item
    - set to 'X' the field inpud in the table indtab for the line of the item
    - change the value of the field pszah (amount of the partial payement) and the value of the field psdif (diffrence between the amount of the invoice and the amount of the payment)
    Caution : the number of lines is not the same in postab and indtab (postab contains all items even those not shown in the screen and indtab contains all items shown in the screen) - to find the corresponding line inf ind tab ; search in table tsltab the value of the posnr corresponding to the item and the sy-index of this search will give you the index inn table indtab for the same item.

  • Adobe Interactive - Problem Updating Form Fields within tables

    I am working with Interactive forms. My scenario is I download the form, update, upload to the Web and then submit to the backend, I am basically use a blend of the tutorials available. From a Web Dynpro perspective all is working well.
    The problem I am having is in the Form itself.
    I have 10 fields which I want the user to update.  Fields which are bound at Page Level, work fine. e.g.
    <CONTEXT>.<PAGE>.<FIELD>::Change
    Data_Source.Page1.Langu::Change
    However Fields in a table do not seemed to work properly. e.g.
    <CONTEXT>.<PAGE>.<TABLE>.<ROW[x]>.<CELL[y]>.<FIELD>::Change
    Data_Source.Page1.tblCusDetails.Row[0].Cell[1].Name
    If I perform an update in the form Langu works well, Name does not.
    e.g. Page1.Langu.rawValue = "EN"                             This works OK
           Page1.tblCusDetails.Row[0].Cell[1].Name = "Andrew "            This does not work.
    I got round this issue by searching for the attribute at runtime.
    Now (Based on my scenario) I am trying to update my form;
    I download the form to the front end. Update and save. When I open the form again only Langu has saved, Name reverts back to <Emtpy>.
    My workaround would be to remove all the tables, which I will start now, but  I am wondering if I am doing something wrong or if its a bug in the form,?
    Can anyone help?
    Andrew

    Hello Bhavik:
    Thank you, for your quick response.  To be honest, I went through the tutorial from SAP TechEd, "Creating Interactive Forms in Web Dynpro for JAVA, and it is drving me crazy.
    I did create under the Contect actually Value Node:
    DataSource and within that two Value Node for PersonalData and TravelData.  For PersonalData, the following Value Attribute: CostCenter, Department, Name etc etc........
    The properties is already set for the value attributes to string, I tried to change it to init it will not take it? 
    Please call me Amr.  Thank you,

  • Getting a permission error while updating a field.

    hi,
    I want to update a field in OIM and push the same to OID. When i try to update it for like 20 times it woks for 18 times and doesnt work for couple of times. I check the log and i get the below error.....
    *Caused by: javax.ejb.AccessLocalException: [EJB:010160]Security Violation: User: 'xelsysadm' has insufficient permission to a*
    ccess EJB: type=<ejb>, application=Xellerate, module=xlDataObjectBeans.jar, ejb=tcLookupOperations, method=create, methodInte
    rface=LocalHome, signature={}.
    at weblogic.ejb.container.internal.MethodDescriptor.checkMethodPermissionsLocal(MethodDescriptor.java:573)
    at weblogic.ejb.container.internal.StatelessEJBLocalHome.create(StatelessEJBLocalHome.java:60)
    at com.thortech.xl.ejb.beans.tcLookupOperations_u50o5o_LocalHomeImpl.create(tcLookupOperations_u50o5o_LocalHomeImpl.j
    ava:70)
    Kindly help me to fix this.
    Thanks
    thilak

    http://bbs.archlinux.org/viewtopic.php?id=83076

  • Error in updating ALV field catalog in selection tool for Planning Book

    Hi ,
    I am Implementing BADI  '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
    This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
    1). INIT_OBJECT_LIST
    2). F4
    3). LOC_PROD_VALUE_LIST
    Please help on the same if u have any idea or clue.
    Thanks.

    Hi Srinivas!
    Where did you get your implementation from?
    It would be nice if you could debug your code!
    For the F4 method, have you seen this note?
    Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
    Also check this note. It contains selection modifications in the BAdI:
    Note 376902 - SDP selector: Basis corrections for BADI
    I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
    Thank you!
    Will
    SCM Support Consultant

  • Error in updating ALV field catalog in selection

    Dear all,
    I'm trying to use the standard transaction /SAPAPO/TSKEYFMAIN in order to check the TS values.
    After filling the selection variant, the system shows the following error:
    'Error in updating ALV field catalog in selection'
    Could you please provide me with further details about the error? What could be the possible solution to avoid it?
    Many thanks,
    SM

    Hi Marius,
    thanks for your answer.
    I would like to use the /SAPAPO/TSKEYFMAIN transaction to check massively the values in the time series KFs and not just the consistency of them.
    So do you know any other transaction to do it or do you have an idea about the error of /SAPAPO/TSKEYFMAIN?
    Thanks for your help!
    SM

  • Unable to update a field using the Data tab on a VIEW

    When viewing data using a VIEW instead of going to the table directly, am unable to change the values in any of the fields
    When I click on the list of VIEWs for a schema, then select a view that is based on a SELECT statement for a single table with a Primary key, and then click on the DATA tab to modify the value in one of the fields, SQL Developer does not allow me to change the value.
    Went into SQL Plus, and was able to execute an UPDATE statement against the same row of that VIEW, and update that field ("UPDATE vw_mytable SET thisfield = 'YES' WHEN row_id_number = 1'").
    Does SQL Developer not allow updating tables through a VIEW?
    Will it allow updating in the future? Please say yes.
    Oracle 10g DB and latest version of SQL Developer.

    Remember to add feature requests and vote on them on the SQL Developer Exchange!
    <br>
    <p>We have added updateable views to 1.1, but do remember, not all views are updateable - even in SQL*Plus.</p>
    <br>
    Sue

  • Update PRODH field from table T179T

    hi,
    i want to update PRODH field from table T179T into table VBRP. for this we
    need to take selection option also.
    selection option will be :
    ·             Sales Organization (field VBRK-VKORG)
    ·       Billing Date Range (VBRK-FKDAT)
    ·       Distribution Channel (Vbrk-vtweg
    while i have done this for one field by using hard code but like:
    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    but this is not the right way. please guide me how to solve this.

    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    <b>commit work.</b>
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    use commit work after update statement.
    But this code would make vbrp-vbeln as plc01 only.
    If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
    TABLES: VBRP.
    CLEAR VBRP.
    select single prodh
      from t179t
    where......
    UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
    commit work.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.

  • Update Z field from BSIK into BSAK when closing

    Hi,
    I have created Z field in BSIK table using "Append structure" option. I also created identical field via same option in table BSAK. When I clear open item system "delete" that item in table BSIK and create identical item in table BSAK (BSIK - open items; BSAK-closed items), BSIK and BSAK have same structure because of this trensfer of open items from BSIK to BSAK during open item clearing. My problem - when open item is cleared and item is transferd from BSIK to BSAK my Z field is not updated by system. Is it possible to set this in customizing or is there another way to update this Z field in BSAK when someone clear open items - user exit, modification or ???.
    Thanks in advance.
    Sasa

    Hi Andreas,
    than you for your responce.
    I tried to find out suitable event for this in fibf but withouth success. Could you suggest event that will be suitable for this purpuse.
    One more thing - if I reverse clearing (via transaction FBRA) system will transfer closed item from BSAK to BSIK and during that process Z field will not be updated so I also need event to update this field durind reverse clearing.
    Thank you in advance.
    Kind regards,
    Sasa

  • Sale value update (SAUFT) field

    Hi,
    I have a problem with sale vaule update in transaction FD33, this is field is getting improperly (SAUFT) updated and not matching with values in SO and open deliveries.  I am scheduling the job RVKRED77 (S066 and S067) to update this field and still getting problem.  Is there any alternative to this or we need to schedule this job RVKRED77 frequently? 
    Thanks a lot in advance
    Lakshmana Rao

    Hello, Ajay,
    As for your suggestion about KA02. I think it's impossible since APC recon account  is being used by numerous WBSs. 1:1 mapping is impossible.
    Reverse is also impossible since capitalization has been made.
    If you have another ideas, it would be great.
    Thank you in advance.

  • Master Detail Form - How 2 update a field in the Detail form using a query?

    Hello,
    I have a master detail form with, each master record having a fixed(6) number of detail records. One of the fields in the detail record is the PART_DESCRIPTION field. I am trying to update this field by querying Table_X. TABLE_X is in the format of (desciption id, description). Description id runs from 1 to 6.
    When the form displays, the PART_DESCRIPTION field for the 6 detail records needs to be automatically populated with the six values of description stored in Table_X. How can this be done?
    Tried using session storage objects, but made no headway.
    Would greatly appreciate pointers on how to go about doing this.
    Thanks.
    Dev

    If you are on a Portal Version lesser than 3.0.9.8.3, then please try the following to populate
    the PART_DESCRIPTION field.
    Steps:-
    1> Edit the form and go to the Additional PL/SQl section and put the following code in the
    "...after displaying the page area" :-
    declare
    type t_vc_arr is table of varchar2(4000) index by binary_integer;
    l_arr_desc t_vc_arr;
    l_form_name varchar2(200);
    l_form_state varchar2(500);
    begin
    l_form_name := p_session.get_module().get_name();
    l_form_state := p_session.get_value_as_varchar2(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE'
    if l_form_state = 'QUERY_AND_SAVE' then
    select description
    bulk collect into l_arr_desc
    from <schema>.table_x;
    htp.p('
    <script>
    var descArr = new Array();
    var Fidx = 1;
    var formObj = document.WWVM'||p_session.get_id()||';
    var fieldName = "'||l_form_name||'.DETAIL_BLOCK.PART_DESCRIPTION.0";
    for i in 1..l_arr_desc.count loop
    htp.p('descArr['||to_char(i-1)||']="'||l_arr_desc(i)||'";');
    end loop;
    htp.p('
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName+Fidx){
    formObj.elements[i].value = descArr[Fidx-1];
    ++Fidx;
    htp.p('</script>');
    end if;
    end;

Maybe you are looking for

  • Mapping display only item to three output parameters from a procedure?

    Hi all I have a procedure with three output parameters, which I would like to map the three output parameters to three display only items on the page. there is a page process called the procedure, which output statement1,statement2,statement3 paramet

  • Making an image explode into particles

    I have a photo of a face and I want to have a small object move in and when it touches the face, the face explodes into a bunch of particles that swirl and fly away. I get a sort of kalaedoscopic effect when I just use make particle option on the fac

  • Merging data in table rows into single page form to be printed?

    Hello all, I've been trying to make this work but after much hair pulling have had no luck with it. I have a three page pdf. On the first page are two tabls of employee names. Each row in the tables includes a cell for the employee name and also one

  • The (in)famous IP address conflict...

    Hi all I have a linksys befw11s4, which seems to be working fine - the only problem is that every week or so, when more than two computers (or smart phones) try to connect  I get the "IP Address conflict" or two devices with the same IP address or "

  • New to camera raw and have a basic question

    Hello, I have just started playing with camera raw and when I make changes, and say done, I am able to open that image up and continue with the corrections, which is great. but..... If I open up an image that has been edited in camera raw, and I want