Skip to Content

BOL and the use of CRM_ORDER_MAINTAIN

Hi Guys,

i have a question regarding the use of FM CRM_ORDER_MAINTAIN in the WebUI.

Many customers manipulate data with the FM CRM_ORDER_MAINTAIN even in WebUI.

From my understanding:

If BOL is loaded and I change data with CRM_ORDER_MAINTAIN -> the BOL will not be updated automatically.

So the changed data doesn't show up in WebUI.

In this case I have to force a reload of the BOL with CL_CRM_BOL_ENTITY->RELOAD( ).

Am I right?

Can anybody explain the behaviour of such changes in detail?

br

Jürgen

Edited by: juergen71 on Oct 20, 2011 9:51 AM

Edited by: juergen71 on Oct 20, 2011 9:54 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2011 at 10:14 AM

    The bol entity does not refresh automatically in case you have updated the database buffer with crm_order_maintain or similar kind of FM. But there are some scenarios which refreshes entities automatically.

    1. In case bol_core->modify is called by standard code during roundtrip

    2. the method get_related_entity is called for ur entity after the modification and it will return the current updated data .

    3. u use the method CL_CRM_BOL_ENTITY->REREAD after modification, but this can cause performance issue in case called mutilple times.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2011 at 07:41 AM

    Hi,

    Could you please elborate your requirement? in what situation you are calling the FM CRM_ORDER_MAINTAIN in webui.

    In web ui you can modify the data in BOL entities with the BOL object methods itself, you need not call any fm.

    Usually we use crm_order_maintain in GUI side so that we access order related data from Bol objects loaded in memory or from database.

    Thanks,

    Rajini A.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      I found this solution in a customer system. I would never use the function module in WebUI.

      From my point of view, the solution have to be redesigned at all.

      answered.

      br

      Jürgen

      Edited by: juergen71 on Dec 12, 2011 11:20 AM

      Edited by: juergen71 on Dec 12, 2011 11:20 AM

      Edited by: juergen71 on Dec 12, 2011 11:21 AM

  • Posted on Dec 12, 2011 at 10:22 AM

    closed.

    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.