Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create default sales area data on BP creation using BUPA_GENERAL_UPDATE

Dear all!

We have the following requirement: whenever a user creates an organization in WCUI, we need to create some default data for the BP in the background, such as relationships (employee responsible, etc) and sales area data.

I have created an implementation for BADI BUPA_GENERAL_UPDATE and use it to add the desired data. For relationships, this is working just great, but I´m having trouble with the adding of sales area data, since the system is not properly saving the data. I use the following code:

* Assign data for sales area
  MOVE: 'O 50000632' TO ls_sales_area-sales_organization,
        '01'   TO ls_sales_area-distribution_channel,
        '01'   TO ls_sales_area-division.

  ls_data-customer_group1 = '330'.
  ls_data-customer_group2 = '003'.
  ls_data-customer_group3 = '002'.
  ls_data-customer_group4 = '006'.
  ls_data-customer_group5 = '021'.
  ls_data-pay_guar_proc   = '0001'.

      iv_partner_guid = ls_changed_instances
      is_sales_area   = ls_sales_area
      is_data         = ls_data
      iv_x_save       = ' '
      et_return       = lt_return
      ev_error        = lv_error.


Problem is, that with the call of


I get a short dump of type "SYSTEM_ON_COMMIT_INTERRUPTED", but without the call, the sales area data is not saved. I tried the same code in a Z-report (not in a BADI) and it worked just fine.

Any ideas on how to commit the data so the sales areas will be saved? Helpful answers will be rewarded!!

Thank you all & Kind regards


Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question