cancel
Showing results for 
Search instead for 
Did you mean: 

Update Price Conditions in SAP CRM through a standalone Function Module or Report

former_member329102
Discoverer
0 Kudos

Hi everyone:

We have a requirement to update price conditions from a standalone function module (which is basically an RFC). The function module will not be called from WebUI. It will be called from another system to update price conditions.

In order to update price conditions, We have tried the below function modules -

  1. CRM_PRIDOC_MAINTAIN_MUL_OW
  2. CRM_PRIDOC_MAINTAIN_OW
  3. CRM_ORDER_MAINTAIN

followed by CRM_ORDER_SAVE and BAPI_TRANSACTION_COMMIT. But none of the above three approaches are working for us.

We have also tried triggering PRIDOC event as per below:

            CALL FUNCTION 'CRM_EVENT_PUBLISH_OW'
              EXPORTING
                iv_obj_name = 'PRICDOC'
                iv_guid_hi  = ls_orderadm_i-guid
                iv_kind_hi  = 'B'
                iv_event    = 'TRIGGER_FUNCTION'
                iv_attri1   = 'REGROUP_BRI'
              EXCEPTIONS
                OTHERS      = 1.

We also have tried changing the configuration to 'No Restriction' and also 'Manual entry has priority' options. But none of these are working.

We are able to update price conditions from WebUI. But, when we are trying to update price conditions from standalone FM, it is not working.

Does SAP support updating price conditions standalone from a FM or Report? Could anyone kindly guide us on this.

Accepted Solutions (0)

Answers (1)

Answers (1)

spencer_liang
Active Contributor
0 Kudos