Virtual infocube with Function module

hi!
i wrote function module that fill virtual cube with data.
i can view loaded data. but data in Bex is not displayed hierarchically.
what to do?
interface of function module:
import parameters:
I_INFOPROV type RSINFOPROV
I_TH_SFC type RSDRI_TH_SFC
I_TH_SFK type RSDRI_TH_SFK
I_T_RANGE type RSDRI_T_RANGE
I_TX_RANGETAB type RSDRI_TX_RANGETAB
I_FIRST_CALL type RS_BOOL
I_PACKAGEZISE type I
export parameters:
E_T_DATA type STANDARD TABLE
E_END_OF_DATA type RS_BOOL
E_T_MSG type RS_T_MSG
may be any parameters are missing.
or anything in BEx must be configured.

Hi Claudio,
I never implemented Virtual InfoCube with services with a FM, but I know there is a couple of How To Documents about named:
- How to Reporting from External Data via Virtual InfoProvider
-How to Implement a Virtual InfoCube with Services
both with some code samples: did you read it?
Hope it helps
GFV

Similar Messages

  • Create virtual infocube using function module

    HI all,  Searched lot of document to create virtual infocube using function module, I am not getting good one, If any one give PDF document step by step process it will be useful for me. thank u

    Hi
    Please refer this document.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9066d1fa-efc1-2b10-7b96-9ddee3b11b40?quicklink=index&overridelayout=true
    Thanks
    Suganya

  • Virtual Provider with function Module

    Hi,
    I have one Querry which is built on Virtual Provider.But due to huge amount of data , it goes to dump.The Query fetches only one single record , summation of all the key figures.
    Currently Virtual Provider is built on DTP Based on DTP/3.x InfoSource.
    If i create Virtual Provider on Function Module,which will calculate the sum of key figures , will it solve my problem.Or is there any other option.
    I dont wnat to do any analysis on it , just for Reconcilation purpose
    Regards,
    Anita

    The query execution will be fast if your code to get the data is tight and the SQl is tuned - same as anythign else really
    Step by step -
    create a generic datasource on BW using FM
    code the FM to get data from the cubes/ODS objects
    replicate the datasoruce on the BW box on itself
    create a virtual provider that uses the datasource
    create a transformation between the datasource and the virtual cube
    create a direct access DTP between the virtual cube and datasource
    create a query
    however - you may still have response time problems using the virtual cube
    Can you use aggregates to get the response time down without using a virtual cube?
    When you analyse the SQL and check the query execution path in RSRT - are the stats up to date?
    If you could SQL against the tables better than the OLAP processor does - then you use a virtual cube
    This should be a last resort - you ned to go through all the normal options first

  • Virtual cube with function module

    hi
    I wrote function module which is used with virtual cube.
    When I launch query build on this cube in the BEX i can't interrupt execution
    of function module. How to put break point. may be there is any option that could turn off debugging?

    Try an external breakpoint.  How you set that depends on your version.  If there's not a button for it on your editor screen, look at utilities->settings->ABAP Editor->debugging in SE38.
    matt

  • Virtual InfoProvider with Function module, how to u0094bypassu0094 OLAP memory

    Hi
    I have created a Virtual Infoprovider with services as described in the How to… Implement a VirtualProvider with Services (SAP NetWeaver 2004s). It works and I have even been able to make some special calculations within the code. But how do I make sure that the OLAP engine always fetches data from the source table eg when drilling or filtering in the front-end? I have disabled the query cache but I also need to disable the OLAP engines own cache / memory how do I do that? I need the functionality as the implemented calculations depend on the overall report result and they must be calculated before aggregation.
    Hope that you can help
    Kristian

    Hi Deepu
    As I wrote, I have allready set the cache Mode to "0 Cache is Inactive". But this is the the general data cache i.e. reuse of data among users this is not deep enough. I need to make sure that each and every query step goes to the DB for new data.
    WKR
    Kristian

  • Virtual InfoCube with Services - function module parameters documentation ?

    Hello,
    I have been trying to use a Virtual Infocube with Services.
    I have seen most of the posts in SDN, and read the documentation in http://help.sap.com/saphelp_nw04/helpdata/en/8d/2b4e3cb7f4d83ee10000000a114084/frameset.htm
    I did not manage to find a precise description of the import 
    parameters of the Variant 2.
    In particular, what is the meaning of the
    i_tx_rangetab TYPE rsdri_tx_rangetab parameter. I read in the code of RS_BCT_FIGL_DATA_GET that it has to do with query columns. In the tests I did this table is alway empty.
    Also, i_th_sfc gives you the list of characteristics used in the query. But it does not inform you on wether these are in the 'rows' 'free characteristics' or 'filter'. Is there a way of knowing that?
    Claudio Ciardelli

    Hi Claudio,
    I never implemented Virtual InfoCube with services with a FM, but I know there is a couple of How To Documents about named:
    - How to Reporting from External Data via Virtual InfoProvider
    -How to Implement a Virtual InfoCube with Services
    both with some code samples: did you read it?
    Hope it helps
    GFV

  • Virtual infocube with services - division of suppliers in categories

    Hello,
    I’ve a problem and the idea to solve it with a virtual infocube with services. But unfortunately I don’t know if it’s really possible to solve it like this.
    The scenario is:
    I’ve suppliers, turnovers, goods (which have been delivered) and different quality deficiencies.  In dependence of the turnover with each supplier, they will be ranked. For the position in the ranking they get points. From this start points one have to subtract points for the different quality deficiencies. In dependence of this end-sum, the suppliers will be divided into categories. And this division should be shown in the query.
    But the suppliers can vary in each run of the query in dependence of the selection in the query. And the turnover of each supplier which depends on the selected goods can vary, too. So the division into the different categories depends on the selection and is dynamic. One doesn’t know this before. And so it isn’t possible to save the category of each supplier in an infoprovider.
    Now I want to know, if it’s possible to solve this with a virtual infocube with services.
    I hope there’s somebody who can help me. Thank you.
    Susanne

    Hello Susanne,
    first of all, yes, it can be solved with VirtualProviders. But I wouldn't expect it to have a good performance. It depends on the number of data records we are talking about.
    When you create a VirtualProvider you should make sure that the RFC Packing switch is flagged on. You can then get the selections in the tables-parameter selection with the structure bapi6200sl. Now you need to read the raw data for your selection. Either use the function module RSDRI_INFOPROV_READ or write the data into an ODS to simplify the selection.
    Based on the raw data you need to do you calculation and write the data back to the table data.
    For details of the implementation of the VirtualProvider and the function module you can check the SDN. These topics are also covered in my book ABAP Development in SAP BW - User Exits and BAdIs that was lately translated into English. You can find both the German and English version under <a href="http://www.sap-hefte.de/katalog/hefte/titel/gp/titelID-1256">www.sap-hefte.de</a> or <a href="http://www.sappress.com/product.cfm?account=&product=H1948">www.sappress.com</a>
    Best regards

  • VirtualProvider with Function module problem !

    I implemented virtualprovider with function module. Unfortunately  when I run query i get message error :
    u201CFunction call of ZT0X failed; the obligatory parameter CHARACTERISTICS
    An exception with the type CX_SY_DYN_CALL_PARAM_MISSING occurred, but was
    I>> Row: 67 Inc: READ_DATA Prog: CL_RSDRV_VPROV_LOC_NOSIDu201D
    Any suggestions ?
    Below source code:
    u201CFUNCTION ZT0X.
    ""Lokalny interfejs:
    *"  IMPORTING
    *"     VALUE(INFOCUBE) LIKE  BAPI6200-INFOCUBE DEFAULT 'ZT03'
    *"     VALUE(KEYDATE) LIKE  BAPI6200-KEYDATE OPTIONAL
    *"  EXPORTING
    *"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      SELECTION STRUCTURE  BAPI6200SL
    *"      CHARACTERISTICS STRUCTURE  BAPI6200FD
    *"      KEYFIGURES STRUCTURE  BAPI6200FD
    *"      DATA STRUCTURE  BAPI6100DA
    DATA:
        l_r_srv              TYPE ref to CL_RSDRV_REMOTE_IPROV_SRV,
        l_th_mapping         TYPE CL_RSDRV_REMOTE_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
    *  break-point ID ZRSDRV_RC1.
    * break DEVELOPER.
      perform build_mapping_table
        changing l_th_mapping.
      create object l_r_srv
        exporting
          i_tablnm              = '/BIC/PZPRD_ID'
          i_th_iobj_fld_mapping = l_th_mapping.
      l_r_srv->open_cursor(
        i_t_characteristics = characteristics[]
        i_t_keyfigures      = keyfigures[]
        i_t_selection       = selection[] ).
       l_r_srv->fetch_pack_data(
        importing
          e_t_data = data[] ).
      return-type = 'S'.
    ENDFUNCTION.
    &---- <
    *&        Form  build_mapping_table
    &---- <
    Form build_mapping_table
      changing
        c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
      DATA:
        l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.
      l_s_map-iobjnm = 'ZPRD_ID'.
      l_s_map-fldnm  = '/BIC/ZPRD_ID'.
      insert l_s_map into table c_th_mapping.
      l_s_map-iobjnm = 'ZWARTOSC'.
      l_s_map-fldnm  = '/BIC/Z_CEN_W'.
      insert l_s_map into table c_th_mapping.
    +endform.u201D

    Hello
    I experienced the same issue. Were u able to solve it? If yes , kindly ask you to make posting here so that others can benefit as well.
    Huge thanks

  • Regarding Virtual InfoCube with Services

    Hi All,
    I have a general doubt regarding two Standard InfoCubes
    We have two InfoCubes FIGL_C01, FIGL_C01, based on which we have two Virtual InfoCubes with services. FIGL_VC1, FIGL_VC2.
    What is the necessity for maintaining these InfoProviders as we are already having the base InfoCubes on which we can derive the queries.
    What is the basic use of Virutal InfoCube with Services.
    Regards.

    Hi,
    SAP help says:
    <i>At query runtime, the service of the virtual InfoCubes uses the data from the basic InfoCubes to determine the balance-dependent location of the financial statement items (contra items), in the financial statement version and presents the result in the query. From the technical point of view, the service determines the item indicator in the key for the financial statement items depending on the balance in the respective node in the financial statement structure.</i>
    To know further infomation about why we need to find the Item indicator in finance statement refer:
    http://help.sap.com/saphelp_nw04/helpdata/en/04/7b95fb42b0f94aba334c0890dbbda4/frameset.htm
    Note 673564 describes exactly why the virtual Infocubes 0FIGL_VC1 and 0FIGL_VC2 were developed. (because BW cannot handle the FI fin. statement hierarchies)
    With rgds,
    Anil Kumar Sharma .P

  • To update Employee Data with Function module

    Hi
    CRM employee master and HR employee master need to be mapped
    for the labor cost posting function to work.
    In BP transaction (Change in BP role : Employee),
    I could update "Personnel number" and "User Name"
    under Identification Tab
    now I need to do same job with Function module in report program.
    Anybody knows that what Function module should I use ?
    I tryed to do it with Function "CRMXIF_PARTNER_SAVE"
    but I only succesed to update imformations under Adress tab in BP transaction.
    thank you.

    Use FM BAPI_BUPA_CREATE_FROM_DATA.
    Rg,
    Harshit

  • How to copy a generic extractor with function module into a new system?

    Dear Gurus,
    i would like to know how i can copy a gneric datasource with function module from one system to the target system.
    Thank you
    Cheers

    Hi Anesh,
    thank you for replying.
    Since the Datasource will have a new new in the new system, i will create a new one.
    Create a generic datasource base on the table is not the problem.
    My problem is how could i copy the FM in the new system?
    If you can help me on that, it will be fine.
    Thanks

  • VirtualProvider with Function Module

    Hi,Experts
    Can anyone tell me how to create a VirtualProvider with Function Module?
    I have read the How to guide"How to Implement a VirtualProvider with service",but I can't go throw the source code.
    Please give me a sample test code of yours!
    Thanks a lot!
    My Email:[email protected]

    Hi Jin
    This question does not belong to this forum, close it and post it in the appropriate one.
    Also, please remove your email address from the thread as it violates the forum guidelines.

  • Hierarchial Layout Saving with function modules

    Hai to all
    i am facing a problem while saving layout in Hierarchial list display with function module.
    below error message is coming when i am going save my layout.
      210     if l_def_variant-variant eq rs_variant-variant.                
      211       l_default = 'X'.                                             
      212     endif.                                                         
      213   endif.                                                           
      214                                                                    
      215   call function 'LT_FC_SAVE'                                       
      216        exporting                                                   
      217 *           I_TOOL            = 'LT'                               
      218             i_tabname         = r_tabname                          
      219             i_tabname_slave   = r_tabname_slave                    
      220             is_variant        = rs_variant                         
      221             it_fieldcat       = rt_fieldcat[]                      
      222             it_sort           = rt_sort[]                          
      223             it_filter         = rt_filter[]                        
      224             is_layout         = rs_layout                          
      225             i_default_variant = l_default                          
      226        exceptions                                                  
      227             fc_not_complete = 1                                    
      228             others          = 2.                                   
      229   case sy-subrc.                                                   
      230     when '0'.                                                      
      231       message s018(0k).                                            
      232     when '1'.                                                      
    >>>>>       message x000(0k) with 'LT_FC_SAVE' sy-subrc                  
      234               raising fc_not_complete.                             
      235   endcase.                                                         
    it is very urgent...
    Subhash.M

    data: ls_vari      type disvariant.
    DATA: w_repid      TYPE sy-repid.
      ls_vari-report      = w_repid.
      ls_vari-username    = sy-uname.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK              = ' '
         i_callback_program             = w_repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
         is_layout                      = wa_layout
          it_fieldcat                    = i_fcat[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
       it_sort                        = i_sort[]
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
         i_default                      = 'X'
         i_save                         = 'X'
       IS_VARIANT                     = ls_vari
       it_events                      = i_event[]
      IT_EVENT_EXIT                  =
          i_tabname_header               = 'I_FINAL1'
          i_tabname_item                 = 'I_FINAL2'
      I_STRUCTURE_NAME_HEADER        =
      I_STRUCTURE_NAME_ITEM          =
          is_keyinfo                     = wa_key
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                =
      IR_SALV_HIERSEQ_ADAPTER        =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab_header                = i_final1
          t_outtab_item                  = i_final2
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    i have passed the parameters
    but i am getting same dump again..
    Subhash.M

  • View Hebrew characters via a virtual InfoCube with services?

    Hi there!
    Is it possible to view Hebrew characters via a virtual InfoCube with services from an external database?
    Requirement
    Data which is physically stored in an external database needs to be shown in a SAP BW report to the end users. The movement of data must be avoided.
    Concept
    We use a virtual InfoCube with services in connection with UDC in order to retrieve data from an external database.
    System Architecture
    We use BW 3.5 and Web AS 6.40 J2EE on the SAP side. The external database is a Teradata database. All systems communicate in Unicode UTF-8.
    Problem
    The access of the data using SAP queries in this architecture works fine with “regular” Latin characters and numeric values. When we try to transfer a field into an InfoObject of the virtual InfoCube, which contains Hebrew characters in the external database, we are getting the following error message:
    Messages:
    Value '' (hex. '') of characteristic contains invalid characters
    System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01-
    Can anybody explain this?
    Thank you and best regards
    Klaus-Peter

    Hi Klaus-Peter,
    Execute transaction code <b>RSKC</b>. In the "<b>Permitted Extra Characters</b>" field, input all your Hebrew characters and save your entries by executing the "<b>Execute</b>" icon.
    Then go back and re-run your upload program. You shouldn't have any invalid characters again, provided you have added them all.
    I hope the above helps.
    Do not forget to award the points please.
    Thanks and Regards,
    Jacob

  • Generic Data Source with Function Module data mismatch in BI

    Hi All,
    I'm using Generic Data Source with Function Module, When I execute the Function Module (Which I have Created), I'm getting 16000 records and when run extractor(in RSA3) im getting different no.of records(infact they are more no.).
    when I run the InfoPackage in BI im Getting more no. of records than what i got executing the function module..
    and single record is divided into 2 records in BI side(not all the records), how can it be possible???
    is there anything Im missing to explain you my issue???
    if understood please help me out.
    Thanks n Regards,
    ravi.

    the datasource frame work starts the function module several times.
    1. the initialization
    2. the serval times, until you "raise no_more_data".
    check you coding: have you refreshed necessary internal tables.
    Sven

Maybe you are looking for

  • How to use a mac mini intel with 30" cinema display

    Arg, I just bought an Apple 30" cinema display to go with my new Mac mini intel, but oops the 30" apple cinema display has to use a dual link dvi card. Anyone know how to get out of this horrible situation without buying another new computer. Thanks!

  • Adobe Bridge CS5 quit unexpectedly (OSX 10.7.5)

    Using OS X 10.7.5 and Adobe Bridge CS quit unexpectedly! Help please . thanks.

  • Multiple Batches to be created in Single GR

    Dear All, Please have a look at my problem. I have ordered for 10 Pieces of a Material. The Material is batch managed. Now during GR, the requirement is such that GR should be done in Multiple Batches which is same as Vendor Batches. Like if the vend

  • 5.1 c-media USB sound for W520 mini-review

    The W520 only has stereo out, which is fine if you are in the 1980s or cant afford to spend more than £10 on speakers.  For the rest of us, to hook it up to your desktop, studio or home surround speaker system you only have one option - get an extern

  • Distribution Demand in CTM

    Hi all. The demand for product P is 15000 pieces for week 10 at location C1. F1 - is factory location where P is produced. Stock level for P is zero. Production resource is capacity limited, so only 8000 can be produced for week 10 (08.03.2010). Afte