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

Question "How to write data into an infocube"

Hello everyone,

this is my first post, I hope it's ok 😊

I am really new to ABAP since I have never used it before and I have a problem, I need to write a BADI wich when i use the EPMSAVEDATA function into Excel to save data into an infocube is supposed to write those data also in another Cube but I can't manage to do it (and I have to do it with a badi cannot use Excel+Vba as always did.).

The badi I have wrote is very simple and is:

CALL FUNCTION 'RSDRI_CUBE_WRITE_PACKAGE'

EXPORTING

I_INFOCUBE = '/CPMB/ZGIXZJW'

* I_CURR_CONVERSION = RS_C_TRUE

* I_NCUM_INIT = RS_C_FALSE

* I_MDATA_CHECK = RS_C_FALSE

* I_DELTA = RS_C_FALSE

* IMPORTING

* E_REQUID =

* E_RECORDS =

* E_TS_MSG =

CHANGING

c_t_data = ct_data.


then I put those badi into DEFAULT.LFG scrypt in that way


*START_BADI SIDIPROVA

WRITE=ON

*END_BADI


but it's not working.


I think the problem is in the badi itself because I tried to make it do a straight write into a bw table and it works.

Can anyone help me with it please or tell me how to write a badi to write the EPMSAVEDATA target into 2 cubes?


many thanks to everyone.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 17, 2013 at 11:48 AM

    Hi Emiliano,

    It's better to develop a Write Back badi that will be triggered automatically when you send data to the cube.

    Then look on the following methods:

    cl_ujo_wb_factory=>create_write_back

    lo_ujo_wb->write_back

    Vadim

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2016 at 01:01 PM

    Hi Emiliano,

    why do you need to write an ABAP code?

    you can create a hidden report that is connected to the second CUBE and when you press SAVE button it will be saved in both models.

    or you can use logic script and Destination_app command.

    Tomas.

    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.