Skip to Content
author's profile photo Former Member
Former Member

WebUI Content is not updated. Even the data are changed

Hello together,

we are using a Webservice for updating some data from a non SAP Tool. The data were written back on the item level. We are updating a Z Table properly but with the data for the component IUPRICES we are confronted with the following behavior:

When we navigate to the item that should be updated the data in the assignement block for prices are n beeing updated. We tried to configure the view with the settings "lazy" for this assigment block in order to get a round trip when opening it. But this didn' t help.

In the Bol Browser i can still se that the prices are shown correctly updated for this item.

When we get out of the order and navigate back to the item the data are shown as updated.

Is there any solution to force the roundtrip via Webservice or a possibility to make something like a publish_current call?

This should happen after saving the data.

There is a possibility to create a button for forcing the roundtrip but there should be a better one..

Thank you for your help and input

MIJu@project

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Dec 12, 2011 at 06:16 PM

    Hi

    Try updating the BOL core using the below sample code to update the buffer.

    data: lr_core TYPE REF TO cl_crm_bol_core,
      lr_core = cl_crm_bol_core=>get_instance( ).
      IF lr_core IS BOUND.
        lr_core->modify( ).
      ENDIF.
    lr_entity->reread( ). " The entity which you want to get refreshed
    

    Hope this helps.

    Thanks

    Vishal

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ok the code snippet you posted is for attritbutes. Here the behavior is ok. The data are shown correctly. For prices we re using the following methods of the class cl_crm_isu_order_prices:

      set_price_version for a new price version and the method set_prices for the prices. Here we get the failling behavior.

  • Posted on Dec 13, 2011 at 07:40 AM

    Hi

    before updating the data please lock the object please check the below code it may use full to you

    data: lr_core type ref to cl_crm_bol_core,

    LR_ENTITY TYPE REF TO cl_crm_bol_entity.

    Data lv_transaction TYPE REF TO if_bol_transaction_context.

    if LR_ENTITY->lock( ) = if_genil_Boolean=>true.

    here enter modified attribute name and modified attribute value

    LR_ENTITY->set_property( iv_attr_name = 'xxxxxxx' iv_value = 'xxxxxx' )..

    *then\

    LR_CORE->modify( ).

    lv_transaction = lr_core->get_transaction( ).

    lv_transaction->save( ).

    lv_transaction->commit( ).

    endif.

    Regards

    Siva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2011 at 11:23 AM

    Hi

    For roundtrip , try creating refresh event (ON_NEW_FOCUS) in the context node , for which you are facing issue .This method will be triggered after SAVE also .

    Go through the CONNECT_NODES ,CREATE_<cn> ,ON_NEW_FOCUS of context node of any standard component views for reference .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2012 at 11:05 AM

    Thank you for your snippets. it s running finally.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.