RSU5_SAPI_BADI

Hi All,
             I have implemeted this BADI. but the problem is when activate data_transform it is throwing error on this two statements if i comment these two statements . I can only extract those datasources which have methods in this badi all other data sources are going to dump please hepl me to correct.
check BW system
check checkbw_system( ) = 'X'.
check method is implemented
CHECK checkmethod_exists( lv_method ) = 'X'.
We impliment the methods for only which we are enhancing but all the data sources creating method is difficult.
Please help me.
Thanks in advance

Hi,
In this we can populate the datasource enhancement code under the main method.
                                                                                method IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM.
      DATA: ls_oltpsource TYPE rsaot_s_osource,
      lv_data TYPE REF TO data,
      lv_method TYPE seocmpname.
      FIELD-SYMBOLS: <lt_data> TYPE STANDARD TABLE.
check BW system*
       check checkbw_system( ) = 'X'.
check if any data is extracted
CHECK c_t_data IS NOT INITIAL.
CALL FUNCTION 'RSA1_SINGLE_OLTPSOURCE_GET'
EXPORTING
        i_oltpsource = i_datasource
        i_objvers = 'A'
IMPORTING
       e_s_oltpsource = ls_oltpsource
EXCEPTIONS
       no_authority = 1
       not_exist = 2
       inconsistent = 3
OTHERS = 4.
       IF sy-subrc <> 0
       EXIT.
ENDIF.
create data for Extract Structure
CREATE DATA lv_data TYPE TABLE OF (ls_oltpsource-exstruct).
ASSIGN lv_data->* TO <lt_data>.
ASSIGN c_t_data TO <lt_data>.
get method name for datasource
  lv_method = i_datasource.
to populate datasource enhacement code
CASE i_datasource.
WHEN <datasource name> .
code to populate the data source enhanced field data.
ENDCASE.
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7]

Similar Messages

  • [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI

    Hi Everybody,
    Right now, could you kindly please tell me how to i use customer exit but using BADI, particularly for BADI : RSU5_SAPI_BADI.
    <b>I just wanna use the customer exit on variable (variable user-exit).</b>
    So far i've tried these steps (might you correct me/advise):
    1. tcode : SE18
    2. Enter the Badi Name : RSU5_SAPI_BADI
    3. (Toolbar) enhancement implementation -> Create
    4.  ... (After that i don't know what i've to do ..)
    Could you tell me step-by-step to make it ?
    Such as what i should fill-in for Implementation Name and any parameter should i fill in there and how to debug it ???
    Many-many thanks all for the attention.
    Hopefully i can make it :).
    Kind regards,
    Niel.

    Check out this link:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7</a>

  • HR Master Data Enhancement using BAdi RSU5_SAPI_BADI.

    Hi Experts,
       I am trying to use first time BAdi 'RSU5_SAPI_BADI' instead of RSAP0001 for enhancing HR Master data.  I have enhanced the structure and I have created implemention method for BAdi and activated fine. Then I am not sure about the next step, I did search SDN but this point is not clear. Where is the link between these two things between Structure and the method, how is it called to populate the data. Because When I run RSA3, it shows my new field with blanks.  So I am missing some thing that integrates. IF some one has implemented this please let me know. Your help is appreciated.
    Thanks!
    Moorthy
    I was able to populate the new fields only when I use the structure in one place ie in BAdI. I mean, two fields were populating using user exit and I was trying two fields using BAdI for the same structure. When I tried all fields from BAdI only then it worked. So is my assumtion correct that we should either use user exit or BAdI for the same structure?
    Message was edited by:
            Moorthy

    Created one method for each datasource and is working fine.

  • FPOP transaction - RSU5_SAPI_BADI

    All,
    I am pretty new BI and need your help in understanding FPOP and the BADI RSU5_SAPI_BADI.
    We have implemented the BADI RSU5_SAPI_BADI to populate some custom attributes(fields). The transaction FPOP will populate the delta Queue (RSA7) with the delta records that need to be extracted. From RSA7, the data will be pulled into BI.
    Here my question is, does the BADI will triggered when we run FPOP transaction or it will only gets triggered when the data is being pulled from delta queue into BI?
    I observed that the custom logic is getting triggered even when we ran FPOP. If the logic is getting triggered two times (once FPOP run and another is while BI pulling the data from delta queue), how can I restrict this logic to trigger only once.
    Appreciate your help.
    Best Regards,
    Veera.

    What all objects have you collected in the transport?
    YOu will have to take the Implementation along with the implementing class...

  • Using RSU5_SAPI_BADI for extending extractors

    Hi Experts,
    I did not have a problem using RSU5_SAPI_BADI  for transaction data extraction, but I did encounter
    problems using it in master's data.  The fields which were filled out during the extraction weren't loaded to
    BW.  But if i test it RSA3, it works fine.   Did I miss something?
    In Function Exit EXIT_SAPLRSAP_002, code works too.  In here the extracted data is contained in
    a different internal table variable i_t_data.  But  RSU5_SAPI_BADI  only has c_t_data. Is there
    a counterpart for this in BADi too?
    Thanks for the help.
    Best Regards,
    Rose

    Hi,
    In rsa1, within Global settings, define your userid as the debugging user.  RSADMINA
    o  Call Transcation RSA1 and choose 'Settings   > Global settings
        ...' from the menu.
    o  Enter the current user in field 'User, for whom debug mode is
        active', and start the Admin Workbench again (Transaction RSA1).
    o  In the scheduler under 'Update parameter', deactivate checkbox
        'Update data in master system at once'.
    o  Schedule the request with 'Instant loading of data online'.
    Colin

  • Question on BADI  RSU5_SAPI_BADI Method HIER_TRANSFORM

    We are in the process of converting our R/3 datasource EXIT_SAPLRSAP_004 to BADI  RSU5_SAPI_BADI using method HIER_TRANSFORM.
    EXIT_SAPLRSAP_004 has parameter I_S_HIEBAS in the import tab which we have coded as:
    <i>If i_s_hiebas-hclass = '0000'.  </i>
    but HIER_TRANSFORM does NOT have this parameter I_S_HIEBAS in the methods tab.  How can we code this same statement in BADI if this parameter is not in the methods tab of HIER_TRANSFORM?
    Appreciate any input.
    Thao

    hi Thao,
    method HIER_TRANSFORM has parameters
    I_DATASOURCE
    I_S_HIEFLAG
    I_S_HIER_SEL
    I_T_LANGU
    C_T_HIETEXT
    C_T_HIENODE
    C_T_FOLDERT
    C_T_HIEINTV
    C_T_MESSAGES
    (you can see this in SE18, display RSU5_SAPI_BADI, tab interface, double click HIER_TRANSFORM, tab 'method' click 'parameters')
    you can try parameter I_S_HIER_SEL, there is HCLASS (double click RSAP_S_HIER_LIST, and double click ROSHIERSEL), your code may look like
    method IF_EX_RSU5_SAPI_BADI~HIER_TRANSFORM .
    if I_S_HIER_SEL-HCLASS = '000'.
    endif.
    endmethod.
    hope this helps.

  • Issues with RSU5_SAPI_BADI

    Hi
    I've followed the procedure based on the how to document
    [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7;jsessionid=(J2EE3414900)ID1288170250DB01700328865016368132End]
    but i am having issues with
    check BW system
    check checkbw_system( ) = 'X'.
    and
    check method is implemented
    CHECK checkmethod_exists( lv_method ) = 'X'.
    Though i comment the above two i am getting shortdumps while running RSA3.
    any suggestions.

    BI C wrote:
    > Thanks Ralf for responding.
    >
    > Flávio advised me to use try and catch block in the piece of code at call method by commenting the below two
    >
    > ** check BW system
    > *  check checkbw_system( ) = 'X'.
    >
    > * check method is implemented
    > *  CHECK checkmethod_exists( lv_method ) = 'X'.
    >
    > So i changed the code to this
    >
    >   try.
    >       CALL METHOD (lv_method)
    >         EXPORTING
    >           i_updmode    = i_updmode
    >           i_t_select   = i_t_select
    >           i_t_fields   = i_t_fields
    >         CHANGING
    >           c_t_data     = <lt_data>
    >           c_t_messages = c_t_messages.
    >
    >     CATCH cx_root.  "Handler for all exceptions
    >   endtry.
    >
    > I did debug it but raising exceptions while calling the above method and eventually the method (where i got the code to populate zzfields) is not working.
    >
    > suggestions please
    There is another error in the method:
    the  I_DATASOURCE = i_datasource is missing and that's a mandatory import parameter
    It should look something like this:
    CALL METHOD (lv_method)
        EXPORTING
          i_DATASOURCE = i_datasource
          i_updmode    = i_updmode
          i_t_select   = i_t_select
          i_t_fields   = i_t_fields
        CHANGING
          c_t_data     = <lt_data>
          c_t_messages = c_t_messages.
    Edited by: Matthias Gamsjager on Dec 10, 2009 10:58 AM
    Beside this one there is something else missing in his pdf:
    On page 8 he said:
    Create a new method and name it: _TEMPLATE_DATASOURCE.
    Then click over the name of the new method and paste the following code:
    dont create a new one but make a copy of IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM
    This will create the a DATA_TRANSFORM method with all the parameters needed.
    Edited by: Matthias Gamsjager on Dec 10, 2009 11:02 AM
    Edited by: Matthias Gamsjager on Dec 10, 2009 11:04 AM

  • Customer Field in Standard BI Content

    Hi Experts,
    in CRM 7.0 there is a feature called Online Reporting which is using the Netweaver BI functionality to directly execute BW reports within CRM. I have set this up and it is working fine for the standard CRM BI content (which seems to be based on BW version 3.x) that is delivered. So I can execute a standard query and the data is then pulled via Query, InfoCube and DataSource synchronously and displayed in the CRM Web UI.
    I am now trying to add a customer field to the whole chain so my first task is to enhance the standard extractor. I manged to do this via an append include and BAdI RSU5_SAPI_BADI. When testing the extractor the data for the new field is populated correctly.  When checking the data source in RSA1 I can also see the new field in the fields list of the datasource. The fields is also available in the transfer structure. I now mapped an Infoobject (which I had created before) to this customer field of the transfer structure. And then I created a transfer rule to map the field to the communication structure.
    In order to test these changes I have created a start routine and set a break-point to see if the data is provided properly. The debugger stops and all the data is there EXCEPT for my new field. Does anybody have an idea what might be missing in my configuration?
    Thanks for your help. Points will be rewarded!
    Cheers,
    Jens

    Hi Experts,
    unfortunately, I just realized that for CRM 7.0 it is not recommended by SAP in general to enhance the BI content for Online Reporting. As from EhP1 there seems to be an Interactive Reporting Enhancement Workbench to support this requirement. See post from Sven Kriebel:
    CRM 7.0 - Enhancement of Data Sources for interactive Reporting
    So until the next upgrade I will have to stick with what AET provides.
    Anyway, thanks a lot for your helpful answers!
    Cheers,
    Jens

  • User exit/BADI  required for coding for the selection custom fields in RSA3

    Hi,
       I have a requirement  in the Datasource extractor. I need to add custom Z fields  in the Data souce of the  2LIS_02_SCL and need to include in the selection part. So I have added the custom filed in the append structure and include the check in the selection checkbox in the transaction LBWE  under the datasource specified above. For the corresponding custom fields, to be populated in the ALV list, I have written the code in corresponding user exit  ZXRSAU01.
    Now I can view my custom Z fields in the list as well as on the selection fileds  while executing the transaction RSA3. But I need to write code for the selection criteria part.  On entering value in the selection criteria of my custom z field, no  values are selected to the corresponding query. Please let me know where should i write the coding part for the selection criteria of the Z fields for the Datasource.
    On debugging, to my understanding only  the standard fields are alone getting filtered by providnig the values in the selection part of the RSA3 tcode. It is called in Macros : Sel  < Datasorce> .... and  the fetch cursor is included inside the macros.
    Please let me know any user exits or Badi;s available for it.
    Thanks in advance

    Hi shivu,
    you might try the BAdI RSU5_SAPI_BADI. A good introduction can be found in the following document:
    [Enhancing DataSources with BAdI RSU5_SAPI_BADI|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7]
    The BAdI is called at the time of extraction, so this would be the right place to populate your additional fields.
    Best,
    Chris

  • Inventory Management - BADI

    Good day,
    Currently the Inventory Management extractors(2LIS_03_BF, 2LIS_03_BX, 2LIS_03_UM) only extracts Local Currency. We would like to extract the values in Group Currency as well. Doing currency translations is not an option for several business reasons. We have to have the Group currency as it appears in the Material Ledger. I debugged the standard extractor for Inventory management and noticed that the extractor caters for a BAdI(Business Add In). Can anyone please give me an indication where I can look for this BAdI. I looked on SPRO on R/3 and there is a list of BAdI's under BW, but I don't know which one to use and how to use it. I would appreciate help in this regard.
    Thank you.
    Regards.
    Verushca Hunter

    Hi dear and welcome on board !
    I think you have to fill your additional field in the usual exit provided for customer enhancement (RSAP0001) in CMOD transaction, EXIT_SAPLRSAP_001 in the include ZXRSAU01...
    Otherwise you can go fot the new RSU5_SAPI_BADI...
    Hope it helps!
    Bye,
    ROberto
    ...and please don't forget to reward the answers...it's THE way to say thanks here !

  • Function module and BADI

    Hi BW gurus
    I have a datasource 0CRM_SRV_PROCESS_H and i need to enhance it where the table is BUT000 source field is PARTNER
    in the datasource im taking ZZENDCUST as the enhanced field for that i have a pseudo code like (Use FM CRM_ORDER_READ. Pass Transaction number GUID and get Partner from the table ET_PARTNER (Field: PARTNER_NO) where PARTNER_FCT = u2018ZECu2019.).This pseudo code is for my reference .My requirement is that i need to use a standard BADI RSU5_SAPI_BADI for this .how to go with this requirement.I need to know that how the BADI and function module can be linked.
    Regards,
    Siva

    Hi Siva:
    You need to look for "Enhancing datasources". Basically, in the source system, go to
    t-code: SE18
    Select: BADI NAME: RSU5_SAPI_BADI
    In the Menu: Enhancement Implementation, select: Create.
    You can also display the BADI and click on the documentation, there is good information there.
    See this link for more information:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7?QuickLink=index&overridelayout=true

  • Variable Values in BADI's

    Hello All
    We have a requirement where we need to pass the value of a characteristic variable entered by the user to a cutomer exit variable and based on that need to perform a validation and return back the same value if it is correct else to return the blank/null value.
    Can anyone plz advice how can I achieve it ?
    Regards
    Ashish

    Hi Ashish,
    Please go through the following BAdi PDF:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f05700a6-23e2-2910-b48a-c58392764dda
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/409fa539-30e2-2910-7a8e-80279d09893e
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702
    BADi Enhancement:
    [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI
    Implementing BADIs:
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/3e7cf4940e11d295df0000e82de14a/content.htm
    goto Tcode se19, give the implementation name and write a code as per yr field enhancement , save it then it will be serving as a badi which u can use

  • Good book on ABAP for BW

    Hi,
    If anyone can suggest a good book to buy covering ABAP for BW. Basically, decent ABAP coverage with focus on BW.
    Any info is appreciated.
    rgds.
    vinod

    Hallo Vinod,
    the book of Egger et al. is ok, but it is not specific to ABAP, it deals with the hole extraction process (extractors for master and transaction data like the COPA extractor or the LIS extractor). The SAP Essential booklet of Dirk Herzog covers all diferent kinds of user exits and BADIs in the BW context like the variables exit EXIT_SAPLRRS0_001 or the new extraction BAdI RSU5_SAPI_BADI. I would recommend the second one for your purpose, if you don't confine yourself to programm ABAPs for transfer and update rules.
    Only my two cents...
    Regards Martin

  • 2LIS_03_BF Error

    Hi All,
    We are in the process of upgrading 3.0b to Netweaver 2004s and while extracting the data from 2LIS_03_BF DataSource we are getting the error  in RSMO "Material XXXXX does not exist or is not activated (Message no. M3305) ".This LO extraction was done after filling the setup tables. When we checked in the source system (ECC 6.0) the material is not avilable in material master .However that material could be archieved completly from the System by the User .
    When we checked the application log in the source system we were getting the Status message (not the error message)
    'Diagnosis:
    BADI implementation: Explosion of structured materials
    The document information in document XXXXXX, item XXXX in the data source 2LIS_02_BF is not complete for the explosion of structured materials. The field MATNR does not contain a value".
    When we further analysed then found that the   BAdi  'RSU5_SAPI_BADI'  is active for  implementation WRF_BWEXT_STRUKTART  in the system.This is different from the earlier version 4.6c .Also the method IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM has  DataSource 2LIS_03_BF as attributes.
    So our question is how to complete the loading even the material does not exist in the source system ? We have completed all the master data loading and this is only for transactional loading.
    If we deactivte this BAdi this error would be resolved?But this BAdi is used for adding the extra fields  .So what could be the impact if we need this BAdi later?
    Or is there any other reason for getting this error?
    Thank you .
    I will assign the points for the helpful answers
    Regards,
    Raja

    Hi Nagesh,
    Thanks for your prompt reply.
    We are not using the 7.0 Transformation method as it is a techical upgrade .
    We are using the InfoPackge (3X method) and  we have used 'Always update data,even if no master data exists for the data " option  .
    Please see below the part of coding from the Method CHECK_SPLITINFO_COMPLETENESS of the class interface CL_IM_WRF_BWEXT_STRUKTART.
    <i><b><i>* now start the completeness check
    1. material number available ?
      assign component 'MATNR'           "#ec notext
          of structure I_S_DOCUMENT_ITEM
          to <check_field>.
    does this field exist in the structure
      if sy-subrc = 0.
      YES: Is the field value initial ?
        if <check_field> is initial.
        YES: split_info is incomplete
          message S001(wrf_bw_extraction)
             with i_datasource 'MATNR'     "#ec notext
                  <doc_no> <doc_pos>
          raising split_info_incomplete.
        endif.
      else.
        message E002(wrf_bw_extraction)
           with i_datasource 'MATNR'     "#ec notext
        raising split_info_incomplete.
      endif.</i></b></i>
    The message  001 (wrf_bw_extraction) contains the same status messge we are getting
    Thats why we think the error is coming because of the BAdi ..
    Please correct us if we are wrong ..
    Thanks & Regards,
    Raja

  • Variable User Exits

    Previously I have only used CMOD to manipulate variables in queries. However, my current client has BW 3.5 and I have read that the direction now is to use the BADI RSU5_SAPI_BADI.
    Can anybody provide an example of a user exit using the BADI? I know enough ABAP to get by in the old user exit but I don't think my knowledge extends this far.
    I am on BW 3.5 SP13.
    Cheers,

    hi,
    sample code
      INCLUDE ZXRSRU01                                                   *
      DATA: L_S_RANGE TYPE RSR_S_RANGESID.
      DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
      CASE I_VNAM.
      WHEN 'CUMMONTH'.
        IF I_STEP = 2.                                  "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'MONTH'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
            L_S_RANGE-LOW+4(2) = '01'.
            L_S_RANGE-HIGH     = LOC_VAR_RANGE-LOW.   "high value = input
            L_S_RANGE-SIGN     = 'I'.
            L_S_RANGE-OPT      = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
      ENDCASE.
    sent doc also ...

Maybe you are looking for

  • What are the conditions to be able to delete PO line items?

    Hello All, We are trying to delete a PO line item as we are unable to make corrections on the Service Entry of that PO - invoice was deleted but generated a credit memo - also  tried unsuccessfully to delete PO line item but got failed. Please provid

  • Javax.naming.NameNotFoundException: comp not bound

    When i try to deploy the following error message.. pls help Hii all..I am facing some problems with eclipse.If any one know waht the problem is pls help me.. i cant bulid the work space completely as i get out of memory error continuously. i use 1GB

  • Trouble ejecting

    My CD/DVD rom drive has been having problems lately with ejecting. It seems to start having troubles in windows, so I restart in OSX and it does the same thing for a while, but then finally it will eject. After that it's fine as long as I stay in OSX

  • ABAP Proxy does not send data to XI system.

    I have a very simple program to test an ABAP Proxy: REPORT  Z_TEST_PERSON_OB. DATA prxy TYPE REF TO Z996CO_PERSON_OB2. CREATE OBJECT prxy. DATA person TYPE Z996PERSON_MT  . *TRY. person-person_mt-first_name = 'Ken and Kenneth'. person-person_mt-Serie

  • File overwritten by upgrade tool EHPI during upgrade configuration step

    Hello, During upgrade using EHPI the upgrade pauses with an error  that says to replace R3trans with a newer version into the EHPI/abap/exenew directory. After copying the file and continuing with the upgrade it pauses again with the same error. I se