Update master data in BW with Visual Composer

Hi guys.
I have an attribute of an info object that I need to give the users access to update.
I would like to do it with visual composer.
I would like the user to see all rows in a table kind of view and the user will update only the rows that need to be changed and than he/she will click on a button that will update the master data table in BW.
I believe that I'll need to use a BAPI or a RFC for that? Does anyone know any good predefined ones for that?
Thanks
Shlomi

That's not really true. In VC you have access to all remote enabled functions. We have created specific functions to update attributes.
We are using it to allow our users to update their own master data instead of bugging the BI team.
Here is an example of our code.
Before I paste this in, you need to know a couple things.
1. You can only update one record at a time (with my code)
2. You have to pass back in the entire record, even if you are only changing one attribute of many.
3. It automatically does the attribute change run, so you do not need to to it.
This is a simple infoobject with a few attributes.
First we created a Get function (which collects the data and shows it to the user.
Then we gave them a edit button on the table that goes to a pop up.
The user selects the record to change, then hits the edit button.
When the popup  comes up the data is shown in a form, with a save and cancel button, fields that you do not wish users to see or change, hide them, but they all most be present on the form.
The  when the user hits save, it send it to the below function. The name of the infoobject is ZCAT_SUB.
FUNCTION zcat_update_subparty2.
""Local Interface:
*"  IMPORTING
*"     VALUE(I_T_ZSUBPARTY) LIKE  /BIC/PZCAT_SUB
*"  STRUCTURE  /BIC/PZCAT_SUB
*"  EXPORTING
*"     VALUE(E_RESULT) TYPE  STRING
  TYPE-POOLS: rs, rsarc, rsarr, sbiwa, rssm.
  DATA:
        l_t_zsubparty LIKE /bic/pzcat_sub OCCURS 10,
        l_s_minfo      TYPE  rssm_s_minfo,
        l_t_idocstate  TYPE  rsarr_t_idocstate,
        l_subrc        LIKE  sy-subrc.
  APPEND i_t_zsubparty TO l_t_zsubparty.
  CALL METHOD cl_rsdmd_update_master_data=>update_attributes_static
    EXPORTING
      i_iobjnm      = 'ZCAT_SUB'
      i_t_data      = l_t_zsubparty
      i_s_minfo     = l_s_minfo
      i_monitoring  = rs_c_false
    IMPORTING
      e_subrc       = l_subrc
    CHANGING
      c_t_idocstate = l_t_idocstate.
  IF sy-subrc <> 0.
    e_result = 'Error happened'.
  ELSE.
    e_result = 'Process Completed'.
    DATA:
      l_t_msg                  TYPE rs_t_msg,
      l_r_activate_master_data TYPE REF TO cl_rsdmd_activate_master_data.
    CREATE OBJECT l_r_activate_master_data
      EXPORTING
        i_iobjnm               = 'ZCAT_SUB'
        i_p_q_have_to_exist    = rs_c_true
      EXCEPTIONS
        iobj_not_found         = 1
        iobj_not_active        = 2
        generate_program_error = 3
        p_q_do_not_exist       = 4
        p_q_txt_do_not_exist   = 5
        OTHERS                 = 6.
    IF sy-subrc = 0.
      l_r_activate_master_data->activate( IMPORTING e_subrc = l_subrc
                                        CHANGING  c_t_msg = l_t_msg ).
    ENDIF.
  ENDIF.
ENDFUNCTION.

Similar Messages

  • Characteristics - Master data Tab- infosource with direct update

    Dear Experts,
    Please explain me in Laymans Language as i am new to BI (but am an ABAP consultant).
    In Info Object Characteristics,  Master data Tab there is infosource with direct update with an application Component.
    1. Now my doubt is,  when i specify the Application Component, this infosource would appear under the application component in Modeling->Infosources.
    Then on this infosource i would right click and create the info pakage and then data transfer process.
    is it correct?
    2. Suppose for this characteristic if i dont specify the infosource with direct update  then it wont appear in the infosource, so how can i load data in this case?
    Regards
    BI Learner

    Hi,
    Using an InfoSource with direct updating, master data (characteristics with attributes, texts, or hierarchies) of an InfoObject can be updated directly (without update rules, only using transfer rules) into the master data table. To do this you must assign it an application component. The system displays the characteristic in the InfoSource tree in the Data Warehousing Workbench. You can assign DataSources and source systems to the characteristic from there. You can then also load master data, texts, and hierarchies for the characteristic.
    You cannot use an InfoObject as an InfoSource with direct updating if:
    i. The characteristic you want to modify is characteristic 0SOURSYSTEM (source system ID).
    ii.  The characteristic has neither master data nor texts nor hierarchies. It is therefore impossible to load data for the characteristic.
    iii.  The characteristic that you want to modify turns out not to be a characteristic, but a unit or a key figure.
    To generate an export DataSource for a characteristic, the characteristic must also be an InfoSource with direct updating.
    1. *Now my doubt is, when i specify the Application Component, this infosource would appear under the application component in Modeling->Infosources.
    Then on this infosource i would right click and create the info pakage and then data transfer process.*
    The characteristic will be available in info source tree, you can assign a datasource->assignsource system->create package->load data.
    2. Suppose for this characteristic if i dont specify the infosource with direct update then it wont appear in the infosource, so how can i load data in this case?
    For a characteristic If you dont specify 'InfoSources with Direct Updating' then it wont appear in infosource tree.

  • How To... Update Master Data during upload of transaction data

    Can anybody let me know how this can be achieved.
    I have datasource (Legacy not R3) where I am getting both master data and text for number of infoobjects.
    I dont want separate datasources.
    The datasource is actually transactional datasource.
    I dont need text in the cubes or DSO I need the text tables of the infoobjects to be updated.
    I could find this on SDN but do anyone have document based on the below link.I was not able to find it.
    How To... Update Master Data during upload of transaction data
    Thanks.

    Dear Praveen
    I guess yr req is demanding the knowledge of Data Unification and Synchronization whose scope is a bit outer the area of BW.( its MDM actually )
    In BW we could very well fetch data out of different data sources (even across the different system) with no issues so why not u trying that. if there is any issue implementing that then please specify what kind of trouble you are interfacing...
    I got the below link which may be helpful
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e7bd6389-0a01-0010-eb95-d45835d446a8

  • How to UPDATE MASTER DATA RECORD PA0377 using FM HR_INFOTYPE_OPERATION

    How to UPDATE MASTER DATA RECORD IN INFOTYPE 0377 DIRECTLY using function module HR_INFOTYPE_OPERATION ? When i use operation = 'MOD'  im getting an ERROR as NO DATA STORED FOR 0377 IN SELECTION PERIOD.
           Can anyone please help me how to use HR_INFOTYPE_OPERATION to UPDATE MASTER DATA RECORD.
    Thanks,
    Karthi.

    Hi,
    please check this code
    it is very useful
    infotypes: 0105.
    parameters: p_pernr type p0105-pernr,
                p_subty type p0105-subty,
                p_begda type p0105-begda,
                p_endda type p0105-endda,
                p_opera type pspar-actio,
                p_usrid type p0105-usrid,
                p_commt as checkbox.    "Useful only when NO_COMMIT is 'X'
    data: w_return type bapireturn1,    "Error handling data
          w_key type bapipakey,         "If record has been created or changed the created/ changed
                                        "record's key (PSKEY) will be populated
          v_message type string.        "For printing returned messages
    call function 'BAPI_EMPLOYEE_ENQUEUE'
      exporting
        number = p_pernr
      importing
        return = w_return.
    if w_return is initial. "Employee is not locked
      p0105-pernr = p_pernr.
      p0105-subty =
      p0105-usrty = p_subty.
      p0105-begda = p_begda.
      p0105-endda = p_endda.
      p0105-usrid = p_usrid.
    *Calls Internally HR_MAINTAIN_MASTERDATA
      call function 'HR_INFOTYPE_OPERATION'
        exporting
          infty         = '0105'
          number        = p_pernr
          subtype       = p_subty
          validityend   = p_endda
          validitybegin = p_begda
          record        = p0105
          operation     = p_opera
          dialog_mode   = '0'
          nocommit      = 'X'
        importing
          return        = w_return
          key           = w_key.
    endif.
    if w_return is not initial.
      message id w_return-id type w_return-type number w_return-number
              with w_return-message_v1 w_return-message_v2 w_return-message_v3
              w_return-message_v4 into v_message.
      case w_return-type.
        when 'A' or 'E'.
          format color col_negative. write:/ v_message.
        when others.
          format color col_heading. write:/ v_message.
      endcase.
      call function 'BAPI_EMPLOYEE_DEQUEUE'
        exporting
          number = p_pernr.
    else.
      format color col_positive. write:/ 'Record Updated Successfully.'.
      if w_key is not initial.
        write:/ 'Key contains',
              / 'Personnel Number:', w_key-employeeno,
              / 'Subtype (absence type):', w_key-subtype,
              / 'Start date of Absence:', w_key-validbegin,
              / 'End date of Absence:', w_key-validend.
      endif.
      commit work.
    endif.
    Thanks and regards
    durga.K

  • HR master data change export with Interface-Toolbox PU12

    Hello out there !
    I implemented a HR master data change export with PU12 at one of my customers.
    It works fine - with one little problem:
    It is only possible to export one period (actual or selected).
    Is there any possibility to export more than one period (also periods in the future) ?
    The request is to export also master data with validity start date in a future period.
    Thanks for any help.
    Greetings, Holger Mächtig

    Dear Holger,
    I am very curious about your problem last year. Is it possible to do a future export with PU12?
    I am now working with PU12 for the first time and I have set up a export file in PU12.
    But when I am doing an update without filling the name for the file layout I have the following error:
    "An error occurred when opening the "export file"
    When I am filling the file layout I have the following error:
    "An error occurred when writing to an export file" (Error Number E107).
    "File processing: end of file".
    When I am not doing an update the export file runs and seems right.
    Do you know what I am doing wrong?
    Thanks in advance!
    Kind regards,
    Yvette

  • Check what master data was carried with last load

    Hello all,
    I have an issue. I'm looking for a solution, so maybe you can help me :).
    I have the InfoObject A linked to InfoObject B , through a transformation.
    I also have a DTP.
    Running the DTP , I load master data from A to B.
    A and B already contained data, before my load.
    How can I check what master data was carried with my last load?
    (I don't have the chance to check by request, as if in the case of a cube , for example)
    Thank you.

    I agree like cube we cannot see the request wise data wise data .
    The alternate to this is you are updating the data through the DTP correct .
    Goto DTP maintenanve screen and click on the PSA and check the date wise data in that .
    I hope you must be awared of  which date data you need to see . So you can check from the DTP PSA screen .
    Assign marks is the best way to appreciate help

  • Flexible update master data inconsistencies

    Dear experts,
    I have the following issue with flexible update master data for 0employee.
    0employee is getting loaded from 3 different sources. here is the example below;
    employee  address   phone compcode
    1                germany   123     
    1                denmark                001
    1                UK
    here employee is a key for 0employee what happens to above data after attribute change run.
    can any one let me know what will be final results.  my requirement is i have to get company code at any circumstances. it there a proper sequence of load to be followed in this case. your inputs is highly appreciated with points.
    Cheers,
    VSN

    If 0employee gets data from 3 different sources it will overwrite the existing records when same employee '1' is coming from Germany , Den , UK .. Only the recent record will be availble in MD tables..
    You need to add SOURCESYSTEM as compounding object to 0EMPLOYEE.
    Put constant GE for 0SOURCE SYSTEM in transformations
    constant Den for 0SOURCE SYSTEM in transformations
    constant UK for 0SOURCE SYSTEM in transformations
    when you execute MD
    Source system ...employee address phone compcode
    GE.............................1...................... germany.... 123
    Den.............................1...................... Denmark.... 123
    UK.............................1......................UK .............. 123

  • Is LSMW tool only used to update master data??

    Hi experts,
    Is LSMW tool only used to update master data??i.e for updating material master,customer master etc.,
    or it can be used to updated configuration tables also.i.e when we do configuration a CTS is to be created.then how the CTS generation is handled.
    Can anyone plesae explain me in detail?
    Thanks in advance,
    Regards,
    N.Sreelatha

    Hi
    LSMW is used to transfer Legacy data from one system to another system.
    Obvioulsy Configuration objects should be transported through CTS only and not with LSMW .
    Cheers,
    Hakim

  • Exit to be used for hr to update master data

    Hi,
    Can anyone tell me which exit shud be used to update master data in HR module.
    My extraction structure is  HRMS_BW_IS_ATTENDANCE.
    i have to append 'ndays' n to fill this field which exit shud be used.
    Thnx,
    Regards,
    Nishu Gupta

    Hi,
    Transaction Data:
    EXIT_SAPLRSAP_001
    Master Data:
    Attribute:       EXIT_SAPLRSAP_002
    Text:             EXIT_SAPLRSAP_003
    Hierarchy :     EXIT_SAPLRSAP_004
    Happy Tony

  • Problem in mapping sap bw server with Visual composer

    I tried to create a module.. but the sap bw server is not mapping with visual composer. is any need to have special authorization for that.. if any please mention the authorization and role to be given to get mapping of bw server with visual composer.
    please look into this issue..
    Regards,
    Mohankumar.G

    Hi,
    Have u done user mapping?
    Refer the following  link
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/cec42a45cb0a85e10000000a1553f6/content.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/43/cec42a45cb0a85e10000000a1553f6/content.htm</a>
    <a href="/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer">/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer</a>
    Regards,
    Hemalatha

  • How import data in Excel into Visual Composer

    Is there a realistic way to import data into visual composer?  I could not find a data service that was Remote enabled to do this?
    Does anyone have any ideas

    Currently no solution available to import data from excel to visual composer.
    Regards
    Basheer

  • Joining two queries with Visual Composer

    Hallo,
    I was working with visual composer to join two queries with the distinct operator. But on my table view, when i linked it with the distinct operator, i get only the key element customer (customer, customer_ext_key, customer_key). These are the queries that i want join:
    Query 1:
    Customer
    Net Sales
    Query 2:
    Customer
    Billed Quantity
    What i want to see is the following result:
    Customer
    Net Sales
    Billed Quantity
    Can anybody help me with this problem?
    Greeting,
    Murat.

    Hallo,
    I was working with visual composer to join two queries with the distinct operator. But on my table view, when i linked it with the distinct operator, i get only the key element customer (customer, customer_ext_key, customer_key). These are the queries that i want join:
    Query 1:
    Customer
    Net Sales
    Query 2:
    Customer
    Billed Quantity
    What i want to see is the following result:
    Customer
    Net Sales
    Billed Quantity
    Can anybody help me with this problem?
    Greeting,
    Murat.

  • Update Master Data Attributes yellow in DTP

    Hi All,
    After  loading the master data DTP, the request becomes greeen but the "Update Master Data Attributes" step is still yellow. Let me know how to overocome this error
    Thanks,
    Sathya

    Hi,
    This is a master data full load and it updates more than 1 lakh records. Technically the Overall and technical status of my  DTP request becomes Green but when i go to the details tab and drill down the data package the "Update Master Data Attributes" still remains yellow so i dont think my load will update the attributes for my info object successfully.
    Is there a  solution to overcome or did anyone face this similar issue?
    Thanks
    Sathya

  • Adding fexible updated Master Data as characteristics to an InfoCube

    hi there,
    is it possible to add fexible updated Master Data (in InfoProvider section: InfoCubes, ODS etc.) as characteristics to an InfoCube?
    Thanks
    Hiza

    Hi,
    Yup, I does not really matter how do you load data to this InfoObject flexible / non flexible.
    hope it helps
    Regards
    Vikash

  • Problem updating master data

    Hi all, im having a problem updating master data for an infoobject.
    Im not able to upload the data from the data source and im not able either to update it manually.
    Im getting this error Field symbol has not yet been assigned
    can anybody hekp me?

    Ask your Basis team to implement this note in BI system..
    Summary
    Symptom
    GETWA_NOT_ASSIGNED (a field symbol is not yet assigned) occurs when new master data providers are implemented after Note 1089231.
    Reason and Prerequisites
    This problem is caused by a program error.
    This problem only occurs when display attributes are requested and no data is returned.

Maybe you are looking for