What is meant by return tables?

what is meant by return table?
with one example

hi
Return tables are used in cases where one record from the transaction translates into multiple records - something like cost allocations - you book an expense to the company for $1000 and that $1000 has to be translated into
$200 for your cost center
$500 for the general cost center
$300 to the project
this data ofcourse need not come from the transaction where you will have one line saying $1000 - you could have these weights maintained in a separate table in BW and do the cost allocation while receiving the data.
You can find a lot of information about the same in the FI related extractors / Update rules - or even more specific - the CO area..
hope it helps..
cheers.

Similar Messages

  • WHAT IS THE USE OF RETURN TABLE IN BW

    Hi Gurus,
    I would like to know what is the use of return table in bw.. can any one give me the perfect answer....
    Ramesh

    Hii
    Imagine a situation where 1 record coming into a cube needs to be split into multiple records. Lets say you get values total values for sector in the PSA. Now you may want to partition that value based on the various sectors existing. In that case you can use a return table and split a single record into multiple records.
    return table option is available in update rules
    go thru these links
    Return table
    Return table
    Message was edited by:
            Sheeba Bhaskaran

  • What is meant by a dynamic table

    hi
    what is meant by a dynamic table

    Check the link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
    Also check the blog
    /people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap

  • What is meant by estimated costs and estimated rows in SQL explain (ST05)?

    Hi
    I was just wondering if someone could explain/clarify exactly what is meant by estimated costs and estimated rows in the 'explain' / execution path functionality of ST05.
    For example, we could see a SQL statement was very inefficient accessing a table:
    Estimated Costs = 6.006.615 , Estimated #Rows = 0
    Does this literally mean that for 6 million costs / reads / effort, 0 results were returned??
    Is this a ratio of efficiency?
    We built an appropriate index and now we have:
    Estimated Costs = 2 , Estimated #Rows = 1
    A lot better! The job was taking 40+ hours and being cancelled; now it takes 5 minutes. So a 3 million times improvement sounds realistic...
    However, we had another instance where the explain showed:
    ( Estim. Costs = 195.077 , Estim. #Rows = 538.660 )
    and we built an index, and now the explain is:
    ( Estimated Costs = 41.867 , Estimated #Rows = 538.660 )
    What exactly does this mean - as the costs has been reduced, but the rows is the same?
    Thanks
    Ross

    Hi Ross,
    >I was just wondering if someone could explain/clarify exactly what is meant by estimated costs and estimated rows in the >'explain' / execution path functionality of ST05
    Take a look at note 766349, point 20.
    >An EXPLAIN displays "Estimated Costs" and "Estimated Rows", which
    >are simply the CBO's calculation results (refer to Note 7550631).
    >Since these results are based upon a number of assumptions (column
    >values are distributed equally, statistics), and depend upon the
    >database parameter settings, the calculated costs and rows are
    >useful only within a margin for error. High "Estimated Costs" and
    >"Estimated Rows" are therefore neither a satisfactory nor a
    >necessary indication of an expensive SQL statement. Also, the
    >calculated costs have no actual effect upon the performance - the
    >deciding costs are always the actual ones, in the form of BUFFER
    >GETs, DISK READs, or processed rows.
    So the costs and rows are values conjured up by the cost optimizer when calculating the access path that is most likely to be efficient. THEY ARE ESTIMATES!!!
    >Does this literally mean that for 6 million costs / reads / effort, 0 results were returned??
    As per the above, no. The costs and rows are estimated before the rows are fetched so there are no actual results yet.
    >What exactly does this mean - as the costs has been reduced, but the rows is the same?
    An efficient database access is exactly that; reads only the blocks that contain the rows it needs and nothing else. If the access is inefficient it will spend time accessing blocks that contain no data that is eventually contained in the result set.
    This question would be better placed in the Oracle forum...
    Regards,
    Peter

  • What is meant by costing key?

    Dear Experts ,
                          while releasing the billing document to accounts , i am getting  error like
                Valuation with material cost estimate: error, The system looked for the material cost estimate using costing key "002", as defined in the Customizing settings for CO-PA,  incomplete due to FI/CO interface
    what is meant by costing key?
    regards
    rajakarthik

    Hi,
    In Costing based Profitability analysis you define costing keys. A costing key is a set of access parameters which are used in valuation to determine which data in Product cost planning should be read. In the costing key you attach the costing variant.
    In the costing key you specify whether the system should read the current standard cost estimate, the previous standard cost estimate or the future standard cost estimate or a saved cost estimate.
    The configuration settings to determine this costing key is as follows:
    Assign costing keys to the products u2013 Three costing keys can be attached to a single product for a specific point of valuation, record type, plan version.
    Assign costing keys to Material types
    Assign costing keys to any characteristics u2013 You can use your own strategy to determine the costing keys. This is through user defined assignment tables.
    regards,
    Santosh kumar

  • Problem with return table(adding extra record)

    Hi,gurus,
      I am facing a probelm with return table, i.e it is adding body record and workarea record also to the data target. so, it is adding the actual record to data target including the workarea record to with the key figure and year values as zeros and spaces. It's quite strange.
    Please help me out, thanks a lot.

    Hi,
       I have an ODS with the keys fields(ZPS_TXMID,ZPS_NODE,ZPS_NODE) and data fields(ZAU_C108,ZAU_C109,0PROJECT). I have to split one record from datasource to 6 records into my ODS. I'm updating ZAU_C109 with a routine with return table. Here is the code, please check it for me:
    <i> data: prj like /BIC/PZPS_TXMID-PROJECT.
    data: ls_icube_value like ICUBE_VALUES.
    clear ls_icube_value.
    select single PROJECT into prj from /BIC/PZPS_TXMID
            where /BIC/ZPS_TXMID = COMM_STRUCTURE-/BIC/ZPS_TXMID.
    ls_icube_value-/BIC/ZPS_TXMID = COMM_STRUCTURE-/BIC/ZPS_TXMID.
    ls_icube_value-/BIC/ZAU_C108 = COMM_STRUCTURE-/BIC/ZAU_C108.
    ls_icube_value-/BIC/ZPS_NODE = '1'.
    ls_icube_value-/BIC/ZPS_SNODE = '0'.
    ls_icube_value-PROJECT = prj.
    ls_icube_value-/BIC/ZAU_C109 = COMM_STRUCTURE-/BIC/ZPS_HJHSJ.
    APPEND ls_icube_value TO RESULT_TABLE.
    ls_icube_value-/BIC/ZPS_NODE = '1'.
    ls_icube_value-/BIC/ZPS_SNODE = '1'.
    ls_icube_value-PROJECT = prj.
    ls_icube_value-/BIC/ZAU_C109 = COMM_STRUCTURE-/BIC/ZPS_HPSJ.
    APPEND ls_icube_value TO RESULT_TABLE.
    ls_icube_value-/BIC/ZPS_NODE = '1'.
    ls_icube_value-/BIC/ZPS_SNODE = '2'.
    ls_icube_value-PROJECT = prj.
    ls_icube_value-/BIC/ZAU_C109 = COMM_STRUCTURE-/BIC/ZAU_C101.
    APPEND ls_icube_value TO RESULT_TABLE.
    ls_icube_value-/BIC/ZPS_NODE = '2'.
    ls_icube_value-/BIC/ZPS_SNODE = '0'.
    ls_icube_value-PROJECT = prj.
    ls_icube_value-/BIC/ZAU_C109 = COMM_STRUCTURE-/BIC/ZPS_TJHSJ.
    APPEND ls_icube_value TO RESULT_TABLE.
    ls_icube_value-/BIC/ZPS_NODE = '2'.
    ls_icube_value-/BIC/ZPS_SNODE = '1'.
    ls_icube_value-PROJECT = prj.
    ls_icube_value-/BIC/ZAU_C109 = COMM_STRUCTURE-/BIC/ZPS_TDSJ.
    APPEND ls_icube_value TO RESULT_TABLE.
    ls_icube_value-/BIC/ZPS_NODE = '2'.
    ls_icube_value-/BIC/ZPS_SNODE = '2'.
    ls_icube_value-PROJECT = prj.
    ls_icube_value-/BIC/ZAU_C109 = COMM_STRUCTURE-/BIC/ZAU_C102.
    APPEND ls_icube_value TO RESULT_TABLE.
    ABORT = 0.</i>
       After loading, I checked the contents of ODS, there are 6 records(0project, ZAU_C108 are blank, other fields are correct) + 1 more record(ZPS_TXMID,0project, ZAU_C108 are correct, other fields are blank), what I expect is only 6 records with all fields being filled properly, no blanks, no extra records. Is it strange? or am I doing sth. wrong?
      Your help is appreciated.

  • JCo issue - return table is null

    Hi,
    I am trying to read the return table from a function module using
    JCoParameterList jplExport = function.getTableParameterList();
    This works fine in the development environment, however in QA I am getting jplExport as null.
    I have debugged it in QA using an external debugger and the return table has rows.
    We have also ruled out the possibility of it being a authorization issue after checking with the security team.
    I have debugged the FM using the JCo user and it has the return table, also if I run it from within SAP GUI it returns values in the return table.
    To re-iterate the same code works fine in Dev.
    In QA the import is good as I can see the values in the return table.
    I am unable to understand what the issue is here. Why will it return null inspite of having values ?
    Please suggest.
    Thanks,
    Veena.

    Hi Veena,
    -> Check if you can call any other function modules in the QA environment. If not, something is wrong with JCo configuration.
    ->Do you see any differences in function modules signatures from Dev and QA?
    Cheers,
    ~kranthi

  • What is meant by criteria of Updateability in MDM Import manager

    Hi,
    What is meant by criteria of Updateability in MDM Import manager? i read some information, but i could understand, it says original data source be  updateble. what is meant by Original data source.?
    what is the use of option "Read-only"  in Import manager logon screen.
    Thanks

    Hello Ankam,
    You can check the Read-only option to prevent MDM from updating your data source.
    Kindly see the below information on "DATA SOURCE UPDATES"
    DATA SOURCE UPDATES
    Some MDM Import Manager operations require that the original data source be updateable, thereby allowing new fields and/or entire new tables u2013 and the corresponding data values for each record u2013 to be automatically added to the data source before further processing.
    Other operations simply create virtual fields in the MDM Import Manageru2019s workspace, although if the data source happens to be updateable, some of these operations instead add the new fields to the original data source as well.
    NOTE ►► Updating the data source when possible allows you to
    perform additional operations on the new fields as if they were part of
    the original source data, and also use them as record matching fields.
    NOTE ►► Fields that are added only if the data source is updateable
    can be deleted automatically by the MDM Import Manager when you
    exit or switch data sources based on the setting of the Delete Created
    Fields on Exit configuration option.
    Updateable Data Sources
    Whether or not a data source is updateable depends upon the following:
    u2022 Source type. The source Type must permit the MDM Import Manager to update its schema and insert the additional fields of data; some supported types are updateable and some are not.
    u2022 Media. The media on which the data source resides must itself be updateable. If the media on which the data source resides is readonly, such as a CD-ROM, the data source cannot be updated.
    u2022 Permissions. You must have the proper file system permissions to update the file, or the proper DBMS permissions to update the schema of the database.
    u2022 Read-only option. You cannot have checked the Read-Only option, which prevents MDM from updating the data source even if the other conditions would otherwise permit it.
    NOTE ►► The Read-Only option is: (1) enabled for source types that
    can be updated (Access, Oracle, SQL Server, and XML); (2) disabled
    and unchecked for those that use Access as an updateable staging
    area (Delimited Text and Fixed Text); and (3) disabled and checked for
    those that cannot be updated (Excel and ODBC).
    NOTE ►► When the data source is SQL Server, the table names in
    the database must not contain spaces; otherwise any operation that
    would update the data source will fail.
    Hope this helps.
    Regards,
    Vikas

  • Return Tables

    Hi fellow SAPians,
    what is the significance of Return tables in SAP BW. I wonder can it be used for distribution purposes similar to SEM -BPS ? Cld anybody clarify me these concepts ?
    thanking you in Advance,

    Have a look at these posts in the help: they explain pretty well what it's all about.
    " Update routines generally only have one return value. However, in the Key Figure Calculation tabstrip, you can create a routine by choosing the Return table option. The corresponding key figure routine now has a return table instead of a return value. You can now generate as many key figure values as you like from one data record."
    http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm (2nd part)
    http://help.sap.com/saphelp_nw04/helpdata/en/7f/61fc37f456491ee10000009b38f8cf/frameset.htm

  • Can I use return table in non-cumulative cubes upd rules?

    hi,
    Is it possible to use return table in non-cumulative cubes upd rules?
    What I mean is:
    In non-cumulative cubes I need to use Automatic Time Conversion for time chars and when I use return table I have to map fields from comm structure to return table.
    I am designing stock cube (with granularity on storage bin and quant level) where material movement data is took from Transfer Order docs. Data for source and target storage bin are in one document item, so I have to split each record.
    Regadrs,
    Andrzej
    ps. Maybe somebody has some technical documentation on Automatic Time Conversion?

    Hello Andrez,
      May be this code will be useful for you.
    *data decleration
    data: num type i,
          num1(2) type c,
    *variable for fiscper
          lv_fiscper type RSFISCPER,
    *variable for the calendar month
          lv_calmonth type RSCALMONTH,
    *variable for the period
          lv_period type T009B-POPER,
    *variable for the fiscal year
          lv_year type T009B-BDATJ,
    *variable to find out the calendar quarter
          lv_month TYPE RSCALMONTH,
          lv_calquarter type RSFO_CALQUARTER.
    *ICUBE_VALUES contain data for cube.Put these value into RESULT_TABLE
    RESULT_TABLE = ICUBE_VALUES.
    *add 12 times entry into result_table for 12 months
    do 12 times.
    append RESULT_TABLE.
    enddo.
    *processing for the split the value into 12 periods
    loop at RESULT_TABLE.
    num = num + 1.
    num1 = num.
    *divide the value by 12 for each month
      RESULT_TABLE-/BIC/ISMPLNRV = COMM_STRUCTURE-/BIC/ISMPLNRV / 12.
      RESULT_TABLE-CRM_CURREN = COMM_STRUCTURE-CRM_CURREN.
    case strlen( num1 ).
    WHEN 1.
    concatenate  RESULT_TABLE-fiscyear '00' num1 into lv_fiscper.
    RESULT_TABLE-fiscper = lv_fiscper.
    WHEN 2.
    concatenate  RESULT_TABLE-fiscyear '0' num1 into lv_fiscper.
    RESULT_TABLE-fiscper = lv_fiscper.
    endcase.
    lv_period = lv_fiscper+4(3).
    lv_year = lv_fiscper(4).
    *find out the calendar month from the period and year
    CALL METHOD CL_RSAR_FUNCTION=>FISCPER_CALMONTH
      EXPORTING
        I_FISCPER  = lv_PERIOD
        I_FISCVRNT = 'Z9'
        I_YEAR     = LV_YEAR
       I_CASE     = 0
      IMPORTING
        E_CALMONTH = lv_calmonth
    RESULT_TABLE-CALMONTH = lv_calmonth.
    *find out the calendar quarter from the fiscper
    concatenate lv_fiscper0(4) lv_fiscper5(2) into lv_month.
    *find out the calendar quarter
      if not lv_month is initial.
        CALL METHOD CL_RSAR_FUNCTION=>MONTH_QUARTER
          EXPORTING
            I_MONTH   = lv_month
          IMPORTING
            E_QUARTER = lv_calquarter.
        if sy-subrc <> 0.
          lv_calquarter = '00000'.
        endif.
      else.
        lv_calquarter = '00000'.
      endif.
      RESULT_TABLE-CALQUARTER = lv_calquarter.
      modify RESULT_TABLE.
    endloop.
    Regards
    Gopal

  • RFC Lookup - Best Approach To Parse Returned Tables

    Hi Everyone,
    We are doing some RFC Lookups at a header node that are returning tables for all of the items (for performance reasons).  I am trying to figure out what the best way to extract the values from the table, which is most of time has more than 1 key column.  At the moment I am doing this through DOM, but I have also heard about using arrays, and have even seen an example of using a hashtables with all of the values concatenated together to later parse out using substrings.  I'm looking for the best approach to:
    1) Store this data as some kind of global object to lookup during the header
    2) Search and Parse from the global object during linte items.
    As an example, I have the following lines in my table:
    Key1,Key2,Value1,Value2,Value3
    A,A,1,2,3
    A,B,1,2,4
    A,C,3,4,2
    B,A,2,4,6
    And during line item processing I may want to find the value for Key1=A, Key2=C.
    Thanks
    Peter

    Hi Peter,
    Please take a look at these...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • Lookup and a return table

    1.0 what's a lookup and a return table,  are they same thing?
    2.0 how do you create it?
    thanks

    Hi,
    a lookup table to enhance your data while loading. For instance you load sales in a cube and your source is providing the site and you require to post the Sale Organization.
    In a start routine (Ttransfer or Update rules) you fill via ABAP a lookup table having the relation site to Sales Org.
    In the sales org routine you read this lookup table with the key site and post the corresponding sales org in your IObj.
    The return table functionality in update rules:
    Imagine you are loading sales in a KF in a cube. Your requirement is have a year to date key figure stored as well in your cube.
    So you load sales for January, posted to period JAN.
    You would need to post this record for next 11 months as well in order to able to see YTD sales correctly when you select period FEB.
    The return table enables you to post many records from 1 loaded records.
    The lookup tables are created as internal table via ABAP in start routines
    The return table is located in an update routine for a particular key figure and you use ABAP as well
    Hoping this will answer your enquiries
    Olivier.

  • What is meant by locking the audit statistics?

    Hi all,
    I am getting this error in the inbound IDoc ALEAUD "The Audit statistics for sending system E1Q100, receiver system QS1310 and message type ORDERS could not be locked." Status 51, What is meant by locking the Audit statistics?
    Thanks,
    Charles.

    It is basically trying to get a get a database lock on the table BDAUDSTATE to make your status updates but it was not able to.
    See if a lock exists on this table and remove it, or it may also be a case of stepping on the toes that two simultaneous updates are going for the same IDoc.
    It is basically a database lock error.

  • No entries in Return table for BAPI_GOODSMVT_CREATE

    Hi All,
    I am using BAPI_GOODSMVT_CREATE to issue matrerial.
    The records are being created in the table MSEG & MKPF but I am not getting any entries in the RETURN table.
    I get the document number in 'goodsmvt_headret' .
    What could be the the reason behind that, please suggest.
    Thanks,
    Salman Zahir.

    Hi salman,
    Return will give success records also.
    but where you are displaying the records?  Can you give the code, so that i can help you?
    Thanks,
    Vamshi.

  • Hi Iam new to hana I would like to learn the BW powered by HANA can any provide the documents.and I have gone through transports in hana what is meant by delivery unit?

    Hi Iam new to hana I would like to learn the BW powered by HANA can any provide the documents.and I have gone through transports in hana what is meant by delivery unit?

    Hi Sravan,
    Views do not store any data in HANA
    All data resides in tables
    To know how to join tables in Views, watch videos on SAP HANA Academy | SAP HANA
    For BW on HANA check:
    Blog: BW 7.4 on HANA in a Nutshell | SAP HANA
    SAP BW 7.4 SP5 on SAP HANA Overview and Roadmap
    Also follow BW on HANA Space on SCN SAP BW Powered by SAP HANA
    If you want to learn about HANA , check my blog:
    Want to learn SAP HANA?Where to Start?Certification?
    To know more about BW on HANA,check below blog for links to BW on HANA Materials:
    HANA Reference for Developers - Links and SAP Notes(Part-2) Updated 04.12.2013
    Regards,
    Vivek

Maybe you are looking for

  • Is Lync 2013 and Office 2010 Home and business compatible?

    hi, Is Lync 2013 and Office 2010 Home and business compatible? tnx

  • How to deploy EUS  using OVD with existing active directory ?

    Hi, I am new in Oracle FMW and want to explore more into it, I have existing MS active directory with users and group policies defined there  and I need to implement the solution for  all users  to authenticate in oracle Database (11gR2) via AD. and

  • Creating function in a loop

    hello -- my problem is that i am dynamically creating a bunch of buttons in a loop, and want to include a different "onRollOver" function for each button. However, the variables I am setting in the functions are all being overwritten with the value f

  • IGS Stacked bars chart

    Hi, I am trying to create a Stacked Bar chart using IGS(Internet Graphics service) Chart Interpreter.  By default it display 5 intervals  with the ranges (0 - 20 - 40- 60 -80-100). I want to display 10 intervals with the ranges ( 0 - 10- 20-30-40-50-

  • Unauthorized Error during Processing Outbound Message in XI

    I have configured a scenario that whenever there is a file of certain filename it will trigger one of the out bound message. But the following error occured during processing of the out bound message: Error Msg: Failed to transmit message due to  Una