cancel
Showing results for 
Search instead for 
Did you mean: 

Upload buckets from back-end system

Former Member
0 Kudos

Hello.

How can I upload bucket from back-end system? Do this for classes, function modules?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

nikos_c
Explorer
0 Kudos

Hi,

I have not used this FM, but I think that you might have to use a "Commit Work"-like function in order to commit.

Could you try calling the /RPM/SAVE_CHANGES FM after /RPM/BUCKET_MODIFY and tell us if this fixed your issue?

Thank you.

andrea_langlotz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Alexandr,

you can try to use function module /RPM/BUCKET_MODIFY in create mode (iv_change_mode = 'C') to create new buckets. Please note this is not a officially supported API, so it might change during the cause of time.

Andrea

Former Member
0 Kudos

Hello, Andrea.

Thank you for reply.

But, this FM return me EV_RC = 0, and table /RPM/BUCKET_D is not have +1 records.


DATA:
*"  EXPORTING
      iv_language TYPE laiso,
      iv_change_mode TYPE char1,
      iv_short_texts TYPE string,
*"  EXPORTING
      ev_rc TYPE  i,
*"  TABLES
      it_attributes TYPE /rpm/tt_bucket_api,
      w_attributes TYPE /rpm/ts_bucket_api,
      it_item_providers TYPE /rpm/tt_fieldservice_providers,
      it_decision_providers TYPE /rpm/tt_fieldservice_providers,
      it_initiative_providers TYPE /rpm/tt_fieldservice_providers,
      et_guid TYPE /rpm/tt_guid,
      et_msg TYPE /rpm/tt_messages.

* u0421u0433u0435u043Du0435u0440u0438u0440u043Eu0432u0430u0442u044C GUID (UUID)
DATA:
      lcl_system_uuid TYPE REF TO cl_system_uuid,
      l_guid TYPE sysuuid_x16.

CREATE OBJECT lcl_system_uuid.

TRY.
    CALL METHOD lcl_system_uuid->if_system_uuid~create_uuid_x16
      RECEIVING
        uuid = l_guid.
  CATCH cx_uuid_error .
ENDTRY.

* u0417u0430u043Fu043Eu043Bu043Du0438u0442u044C u0430u0442u0442u0440u0438u0431u0443u0442u044B
iv_language = 'RU'.
iv_change_mode = 'C'.
iv_short_texts = 'test111'.

w_attributes-bucket_guid = l_guid.
w_attributes-external_id = 'ST_3-2'.
w_attributes-description = 'test11111'.
w_attributes-portfolio_guid = '00238BBDDF3602DE9CB58ED2E760553E'.
w_attributes-parent_guid = '00238BBDDF3602DE9CB59E01C3F2D756'.
w_attributes-currency = 'RUB'.
w_attributes-period_type = '3'.
w_attributes-unit = 'TAG'.
w_attributes-changed_by = 'RUDNEV_AA'.
w_attributes-release_status = '0002'.
w_attributes-begda_dem = '20100101'.
w_attributes-endda_dem = '20101231'.
w_attributes-begda_fin = '20100101'.
w_attributes-endda_fin = '20101231'.
w_attributes-cap_period_type = '3'.

APPEND w_attributes TO it_attributes.

CALL FUNCTION '/RPM/BUCKET_MODIFY'
  EXPORTING
    iv_language             = 'RU'
    iv_change_mode          = 'C'
    iv_short_texts          = 'test111'
  IMPORTING
    ev_rc                   = ev_rc
  TABLES
    it_attributes           = it_attributes
    it_item_providers       = it_item_providers
    it_decision_providers   = it_decision_providers
    it_initiative_providers = it_initiative_providers
    et_guid                 = et_guid
    et_msg                  = et_msg.