Infoset routine

Is there a possibility that we can write routine in infoset.  Let me tell you the scenario
A query has been build on the cube and with ODS.  . In the cube we have start routine and endroutine for 0material.  In the report we do not want to make use of the routine written in the cube. 
Routine is stock for 0material to be considered only an indicator is set in the infoobject of 0material (additional column for this indicator is set in the infoobject) Please suggest solution

Hi Pooja,
Infoset is not like a cube or ods where you load the data to that.
This is only a structure where you can control or pull data from 2 sources.
So, it is impossible to write routines for the infoset or multiprovider.
With regards,
Ravi Kanth

Similar Messages

  • InfoSet in SAP BI 7.10 and Key figure aggregation

    HI SAP Gurus,
    I am new in SAP BI area. I have my first problem.
    I want to create a report for the profit of goods. 
    The cost of goods(cogs) are constant for each material for one month.
    The formula to calculate the profit of goods = sales turn over u2013 cogs of month *sales amount.
    I have defined in BW time dependent infoObejct with attribute cogs.
    I have 2 info Sources.  InfoCube for transactional sales data from R/3 and material cogs master data loaded from csv file each month to infoObject.
    The info Provider for report is InfoSet (transactional Cube and cogs infoObject) .
    My problems are
    1) When I create an InfoSet, SAP BW create automatically new technical name for all characteristics and key figures and the first technical name should be alias fr each InfoCube and InfoObject in the InfoSet.
    2) The new technical name infoSet erased my aggregation references characteristic (=calmonth)
    3) In the report the key figure cogs was aggregated for each customer sales and customers,    that means the value of cogs is not constant, when it is aggregated according to customer sales order.
    Thanks a lot for your support
    Solomon Kassaye
    Munich Germany

    Solomon find some code below for the start routine, change the fields and edit code to suit your exact structure and requirements but the logic is all there.
    4) Create a Start Routine on the transformation from sales DSO to Profit of Goods InfoCube.
    Use a lookup from the the COG DSO to populate the monthly COG field in the COG DSO.
    **Global Declaration
    TYPES: BEGIN OF I_S_COG,
    /BIC/GOODS_NUMBER TYPE /BIC/A<DSO Table name>-/BIC/GOODS_NUMBER,
    /BIC/GOODS_NAME TYPE /BIC/A<DSO Table name>-/BIC/GOODS_NAME,
    /BIC/COG TYPE /BIC/A<DSO Table name>-/BIC/COG,
    /BIC/PERIOD TYPE /BIC/A<DSO Table name>-/BIC/PERIOD,
    END OF I_S_COG.
    DATA: I_T_COG type standard table of I_S_COG,
    wa_COG like line of i_t_COG.
    *Local Declaration
    data: temp  type _ty_t_SC_1.
    *move SOURCE_PACKAGE[] to temp[].
    temp[] = SOURCE_PACKAGE.
    select /BIC/GOODS_NUMBER /BIC/GOODS_NAME /BIC/COG /BIC/PERIOD  from
    /BIC/A<DSO Table name>
    into corresponding fields of table i_t_COG for all entries in
    temp where /BIC/GOODS_NUMBER = temp-/BIC/GOODS_NUMBER.
    sort i_t_COG by /BIC/GOODS_NUMBER.
    loop at SOURCE_PACKAGE assigning <source_fields>.
    move-corresponding <source_fields> to wa.
    loop at i_t_COG into wa_COG where /BIC/GOODS_NUMBER =
    <source_fields>-/BIC/GOODS_NUMBER and /BIC/PERIOD =
    <source_fields>-/BIC/PERIOD.
    modify SOURCE_PACKAGE from wa transporting /bic/COG.
    endloop.
    endloop.
    5) Create an End Routine which calculates Profit using the formula and updates the result set with the value in the Profit column.
    Given your requirement for the profit calculation
    profit of goods = sales turn over u2013 cogs of month * sales amount
    Write a simple end routine yourself
    *Local Declaration
    loop at RESULT_PACKAGE.
    <result_fields>-profit = <result_fields>-sales turn over - <result_fields>-COG * <result_fields>-sales amount.
    modify RESULT_PACKAGE from <result_fields> transporting profit.
    endloop.
    As the above start and end routines are used to enhance your sales DSO, your fields for customer number and the sales order should already be in your DSO for drilldown.
    Let me know how you get on.

  • Issue while extracting data using Gen DS of Type Infoset Query

    Hi All,
    We have a Generic Data source created using the Infoset query. I get some data discrepency when i am extracting the data with the same DS. The data for the Field Amount in the R3 and the PSA  is different. When i try to check the same using the RSA3 T-Code i am unable to execute the Gen DS in R3 production where as its working fine in R3 Dev, and i am able to execute the other DS in the R3 production using the RSA3 T-code.
    My concerns ::--
    1. if the DS is working fine in R3 Dev in RSA3 the y i am facing the problem in Production.
    2. Y i am getting the different data in R3 and PSA since PSA shuld be the replicate of R3?
    3. How can i resolve this problem.??
    Thanks in Advance
    Regards

    Thanks venkat,
    I am having the authorization to execute the query in R3 production, As  i am able to execute the other DS in RSA3 . But not able to execute this DS i had also checked it is active n working fine when loading the Data.
    There is only one routine ie to transfer rule  from lower to upper of a char value.
    As der r routines in Update Rule but i have to get the same data in PSA which is der in R3.
    The Routine of Update Rules will be executed when loading the data to the Targets right so the data may b vary in Data targets but y i am getting different data in PSA .
    Pls thru some light.
    Regards

  • How to define "leading" random number in Infoset fpr parallel processing

    Hello,
    in Bankanalyzer we use an Infoset which consists of a selection across 4 ODS tables to gather data.
    No matter which PACKNO fields we check or uncheck in the infoset definition screen (TA RSISET), the parallel frameworks always selects the same PACKNO field from one ODS table.
    Unfortunately, the table that is selected by the framework is not suitable, because our
    "leading" ODS table which holds most of our selection criteria is another one.
    How to "convince" the parallel framework to select our leading table for the specification
    of the PACKNO in addition (this would be times 20 faster due to better select options).
    We even tried to assign "alternate characteristics" to the packnos we do not liek to use,
    but it seems that note 999101 just fixes this for non-system-fields.
    But for the random number a diffrent form routine is used in /BA1/LF3_OBJ_INDEX_READF01
    fill_range_random instead of fill_range.
    Has anyone managed to assign the PACKNO of his choice to the infoset selection?
    How?
    Thanks in advance
    Volker

    Well, it is a bit more complicated
    ODS one, that the parallel framework selects for being the one to deliver the PACKNO
    is about equal in size (~120GB each) to ODS two which has two significant field which cuts down the
    amount of data to be retreived.
    Currently we execute the generated SQL in the best possible manner (by faking some stats )
    The problem is, that I'd like to have a Statement that has the PACKNO in the very same table.
    PACKNO is a generated random number esp. to be used for parallel processing.
    The job starts about 100 slaves
    Each slave gets a packet to be processed from the framework, which is internaly represented
    by a BETWEEN clause on this PACKNO. This is joined against ODS2 and then the selective fields
    can be compared resultin in 90% of the already fetched rowes can be discarded.
    Basicly it goes like
    select ...
    from
      ods1 T_00,
      ods2 T_01,
      ods3 T_02,
      ods4 T_03
    where
    ... some key equivalence join-conditions ...
    AND  T_00.PACKNO BETWEEN '000000' and '000050' -- very selective on T_00
    AND  T_01.TYPE = '202'  -- selective Value 10% on second table
    I'd trying to change this to
    AND  T_01.PACKNO BETWEEN '000000' and '000050'
    AND  T_01.TYPE = '202'  -- selective Value 10%
    so I can use a combined Index on T_01 (TYPE;PACKNO)
    This would be times 10 more selective on the driving table and due to the fact,
    that T_00 would be joined for just the rows I need, about a calculated time 20-30 faster.
    It really boosts when I do this in sqlplus
    Hope this clearyfies a bit.
    Problem is, that I can not change the code either for doing the
    build of the packets or the one that executes the application.
    I need to change the Inofset, so that the framework decides to build
    proper SQL with T_01.PACKNO instead of T_00.PACKNO.
    Thanks a lot
    Volker

  • Error with 'At Selection-Screen' in Infoset query (Urgent)

    Hi All,
    I have defined a field as a selection criteria in Selections tab of Infoset & written a few lines of code. The syntax is ok, but when i try to run the query, the system prompts the message as below & terminates:
    'Local SELECT-OPTIONS are not allowed (FORM routine or GET event is active).'
    I would like to know what code should i enter in the GET / GET LATE section. Can someone help me?
    Edited by: Vivek on Dec 31, 2007 10:27 AM

    Mr. Atish,
    Thanks for the reply, but wish to inform you, i have not written any code in GET / GET-LATE section of the infoset. I just read the SAP help files, where it mentions that i need to maintain some check code in GET / GET-LATE section if i have defined selection criteria in selections tab.
    May i know what code should i maintain?
    In selections tab i have defined 2 selection criterias, for one criteria i have maintained the code & for the other in Extras field i have maintained a Default value & entered 'NO-DISPLAY'.
    Await your inputs to resolve this problem.
    Vivek

  • BW Datasource on an Infoset Query based on 2 DSO Active tables

    Hello,
    We have created a Datasource in the BW system over an Infoset query (through SQ02) built on 2 DSO tables.
    In RSA3, this datasource is working fine - it shows us some data (close to 1000 records).
    The issue is when i try and run a infopackage for the datasource.
    The request times out and no records are fetched.
    I have added all the users to the Infoset user group - so, no issue with the authorization.
    IDoc Statuses changes from 53 --> 62 --> 64 --> 50.
    The extraction process does not complete - does not get the no. of records sent.
    Can anybody point to a probable cause here?
    Thank you.

    IDoc logs do not say much.
    Status Record 53: IDoc was successfully transferred
    Status Record 62: IDoc passed to application; Direct call started
    Status Record 64: IDoc ready to be transferred to application; No filter, no conversion
    Status Record 50: IDoc added
    Then, it does not go any further.
    We're using the Datasource on the Infoset query because we could not use the traditional BW infoset.
    Datsource is used to feed a DSO as we directly could not use anything else (we're trying with an expert routine also).
    The issue is that the base DSO tables are huge and querying on them (using SELECT) is taking a very long time.
    So, we thought of using an Infoset to create a view and then populatet he data.
    In an traditional infoset, we could not specify a condition with a range. So, the infoset query through SQ02.
    I have not tried using an APD, but that might be a good option.
    Only thing, we'll have to use a Direct DSO - which i am not sure will satisfy our requirement.
    Thank you.

  • ABAP routine for DTP fiscal year/period filter

    Hi All,
    Delta loads are which not possible for when the transformation source is an InfoSet.  To limit the data in these loads, currently a filter is set in the DTPs on fiscal year/period so only load the current month and 2 prior months are loaded.  This filter has to be updated each month for each of the DTPs manually.  To eliminate this monthly task a dynamic filter (routine) needs should be used rather than a static filter. Can anybody help me in providing the logic
    Regards
    Siri

    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = give field name .
         Data : Year(4) type n,
                   period1(2) type n.
                   period2(2)type n.
    Currper = sy-datum+4(2) .
    period1 = currper-1 .
    period2 = currper-2.
    year = sy-datum+0(4).
    concatenate  year currper to P1.
    concatenate  year period1 to P2. // define P1 , P2 , P3 as 0fiscper .
    concatenate  year period2 to P3.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    l_t_range-low =  P3.
    l_t_range-high=  P1.

  • How to append the records through routine.

    Hi Friends,
           I am using view wirh MARA and MARC extracting the data in to DSO.
        Then iam loading the data in to char of 0MAT_ST_LOC using  the data source of 0MAT_ST_LOC_ATTR. This data is comming from mard.
        hear my problem is when i am loading the data in to DSO(Material Plant data) that time i need to compare master data of 0MAT_ST_LOC . Then DSO of material and plant is equal to 0MAT_ST_LOC of Material and plant i need to populate the storage locations in to DSO object. The problem is one material and one plant having multiple storage locations.i need to insert the same record depending upon storage locations wise in DSO.
      I put it 0STOR_LOC in DSO structure how i need to write the code to populate this field data from 0MAT_ST_LOC. Please give me help on this i don't know ABAP.
    Thanks,
    Guna.
    Edited by: gunasekhar raya on Sep 29, 2008 10:22 AM
    Edited by: gunasekhar raya on Sep 29, 2008 6:12 PM

    I dont have any readymade codes to provide you with.
    But I can help you with the logic.
    Get all your data from master (3 fields) into an internal table.  Also keep a fourth field (say, flag) in your internal table.  Update your internal table with all records from master data in your start routine.
    In your update routine for Storage location, since you have multiple storage locations for a material plant combination, each time you read this internal table, set the flag (to some value), and each time for the same material plant update only those storage locations that donot have the flags set.
    This is an alternative you could have besides using the infoset mechanism.
    But, I wonder how much data your dso would hold considering its a material and plant combination...if the no. of records is huge, infoset would be more appropriate. ABAP has its limitations over performance.
    Please consider this suggestion.
    Regards,
    Aby

  • Question on Infoset

    Hi,
         I have two DSO's with data like eample below
      DSO1 Contains
    Doc No     Doc Date        Customer No
    100001.....01/01/2012.......5000
    100002.....01/02/2012........5001
    100003.....01/03/2012........5002
    DSO2 Contains
    Doc No      Item     Doc Date       Customer No  Quantity
    100001........1........01/01/2012......5000...............1
    100001........2........01/01/2012......5000...............2
    100002........1........01/02/2012......5001...............10
    I want to create the info set so that only the data present in DSO1 that is not present in DSO2 should display like below
    InfoSet:
    Doc No       Doc date     Custmer No
    100003.......01/03/2012......5002
      I tried to create with left outer join, but it is displaying all the data present in DSO1. if we have any solution Can you please let me know.
    Thanks,
    Sneha

    Hi Sneha,
    Both Multi Provider and Info Set works based on joing condition.
    You require data which doesn't have joining(data in DSO1 but not in DSO2). This is not possible with Info Set and Multi Provider.
    You need to go for ABAP routine.
    Create Info Cube based on this DSO1 and while loading loading data from DSO1 to Info Cube, use the look up tp compare Documnets in DSO2 with DSO1.
    If particular documents is not matching with document in DSO2, then it should be upload to Info Cube.
    Regards,
    Venkatesh.

  • Use of ERP Infoset inside ABAP program

    Hello experts,
    I created a quite complex InfoSet which is supposed to extract business relevant information from FI tables (above all BSID and BSAD) and provide them to users as a mean to interpret data. I'd like to use those data in a custom ABAP program with an extended logic, but I'm not sure how to use it inside my code.
    The final result should be to send daily updates on BSAD activities to BI system, and given that BSAD does not have (as far as I know) any mean to completely track creation/modify actions, I came out with the InfoSet solution that make use of an additional field (called update_timestamp) derived from a complex query.
    Any help/suggestion on how to overcome the issue will be greatly appreciated.
    Best regards
    Davide Rizzo

    Hi
    Yes it's true.
    If you put "#ec * at the end of a abap code row, you can suppress the warnining messages of extended program check.
    Every kind of warning has own sign, you find out them while running extended check.
    It's a way to clear the useless messages.
    For example, you have created an include where you have defined several routines you have to use in several programs, but every program don't use all routines of that include, or you dynamically call those routines, so if you run the extend check for a certain program you can get a warning like that:
    FORM PLUTO not called directly
    Now you can't delete the routine from the include, because it can be used by other program, but you can hide that message by "#ec CALLED:
    FORM <MY_FORM>. "#EC CALLED
    ENDFORM.
    Max

  • Virtual KF with Infoset possible ???

    Hi.
    I need to calculate a KF depending of the result of another KF in a query.
    I think that a virtual KF is a solution but the problem is that my infoprovider is a Infoset.
    Can I use virtual KF with Infosets ?
    If not, any idea to solve this problem ?
    Thanks in advance
    Eduardo Silberberg

    Paolo,
    Sorry for the mistake but the error happens in the
    routine ZXRSRZZZ in the command :
    ASSIGN COMPONENT g_pos_ZGIS_I02_ZGIS_I02___F174
    OF STRUCTURE C_S_DATA TO <L_ZNIVELKF>.
    The error is :
    Field "G_POS_ZGIS_I02_ZGIS_I02___F174" is unknown. It is
    neither in the specified tables nor defined by a DATA statement.
    Regards
    Eduardo Silberberg

  • Selection Criteria in Infoset

    Hi All,
    In infosets, in the selections tab, i have defined a selection criteria & i want to restrict the values for this.
    Eg: for MARC-WERKS
    For single values i can use... DEFAULT '1000'
    For a rangle of values i can use ... DEFAULT '1000' TO '1005'
    But i am not sure how to enter the values if it is not in range i.e. i want the default values to be
    1000, 1001, 1004, 1008
    Hope my question is clear, await inputs.
    Anyone to help on this?
    Edited by: Vivek on Dec 22, 2007 5:54 PM

    Mr. Sriram,
    Thanks for the inputs. But when i try to declare a field in Selections tab as 'Selection Criteria' & add a few lines of code to this field & try executing the query, i get the below message from system & the query terminates.
    'Local SELECT-OPTIONS are not allowed (FORM routine or GET event is
    active).'
    I would like to know how to correct this error. I have tried for a few selection options in different query, but get the same error.
    Is it because, if select-options i.e. in 'At Selection-Screen' is defined in infoset the query should not have any selection options & all selections must be handled in the infoset itself?
    Await your inputs.
    Vivek

  • Urgent: How to modfy the Report program Corresponding to a Infoset

    Hi Friends,
    I have done an infoset. I have used TCURR table for Query. I saw the Standard program of that Query having select statement like Select single * from Tcurr where Gdatum = RDD.
    Where RDD is the value having Statndard date where Gdatum is Converted Date format using some conversion routine ...So the select statement is failing in
    the standard program  AQ50MPL=========COS_EE========.
    When i tried to add an conversion routine before the select statement to convert the date to that Specific statement...When i tried to go to Change mode i got an error message like
    "Standard SAP Program Status is not modifiable" can i change the Standard program which is not asking for Access key for change..
    PLease help me how to change the standard program or How to make a copy of standard program into a Z program and how to call that z program instead of that standard program..
    Please help me..

    hi Gokul,
    It's not possible to edit the standard AQ programs that you create using Infosets rather these AQ programs are generated when you generate the Infoset and the Query.
    Secondly there's a point to be taken care of when we work on Queries and Infosets. There are two areas of Queries and Infosets namely, Global Area and Client-specific area. At this point, it's better to rush up with the jargons as you're running out of time. All you need to do is follow the steps below:
    1) Goto SQ02 *infoset* -> *give in your infoset name*change
    2) Goto EXTRAS tab or Press F5.
    3) Goto CODE tab
    4)from the drop-down  CODING SECTION *you can choose from the list wherein you need to place your code or change the existing code by traversing the list*
    5) Generate the code.
    6) Repeat steps 1-5 for Client-specific area as well *choose Environment ->Query Areas -> Client-specific* to change the code there.
    7) Generate the corresponding Query(SQ01) in a similar fashion *Global Area and Client-specific area as mentioned in step 6*
    Reward points if your requirement is met!!
    Thanks,
    Vaishnavi

  • Infoset extractor with an extra field

    Hi
    I've created an extractor with an extra field - it concatenates date and time to get a timestamp. When I use this infoset in my generic datasource, the extra field is not displaying. It's just displaying the table that the infoset is based on.
    Any help with this will be appreciated.

    wxs,
    if you are just concatenating- why not do it on the BW side by way of transfer / start routines instead of customizing your extractor...?
    Arun
    Hope it helps...

  • SAP Query - Infoset Anlegen fu00FCr PNP IT0035 Text fu00FCr Belehrungen

    Hallo,
    ich möchte in einer SAP Query die Texte (RP50M-Text1, RP50M-Text2 und RP50M-Text3) vom IT0035 (Belehrungen) ausgeben. In einem Infoset basierend auf die log. Datenbank PNP stehen diese Felder nicht zur Verfügung. Ich möchte sie als Zusätze definieren, weiss aber nicht wie. Alle meine Versuch sind bisher fehlgeschlagen. Kann mir hier jemand bitte helfen?
    Vielen Dank
    B. Eichhorn
    Moderator message: English only, please...bitte schreiben Sie hier nur auf Englisch, danke.
    Edited by: Thomas Zloch on Dec 1, 2010 5:53 PM

    Hallo, Britta.
    Soweit ich es gesehen habe, es ist nicht möglich, die Texte direkt aus einer transparent Tabelle hearuszufinden, weil diese Texte in einem Cluster PCL1/PCL3 gespeichert sind.
    Eine alternative solution könnte sein: programmieren deine eigene Routine, um diese Texte aus dem cluster zu lesen. Seh bitte das form INIT_TEXT aus Include FP50ME02.
    Ich hoffe, es hilft dir. Grüßen,
    Alvaro
    PS: vielleicht könntest du mehr Antworten bekommen, wenn du deine Fragen auf Englisch in diesem Forum schreiben würdest

Maybe you are looking for

  • Adding a window to container error

    I have this table that I want to add to a my main program. The table works but when I add the table module to the main program I get an error. Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: adding a window to a container T

  • I need a new drive for my G4 Mac mini - where to start??

    Hello all, I have a approximately 4-5 year old 1.5GHz Power PC G4 Mac mini with 1 GB DDR SDRAM memory and an 80 GB hard drive. I was having issues with it running slow, not being able to access different files/applications, etc. so I ran Disk Warrior

  • Formula Problem in BEx

    Dear All, I am using BEx Query Designer to make a query.I view the report using browser. I have 2 keyfigure fields "price" and "forecast quantity". I have to arrive at "forecast Value" = price * forecast quantity using formula in Query designer. Alth

  • Having multiple threads in ios 8.1 with the same people in a group message.

    When I send an imessage out to a group, some of the group responses will come back through a different message with all the same people. This just means I have 3-4 different threads in my messages with all of the same people. It's also difficult to r

  • How do I down load my old ipod to my new ipod?

    How do I down load my old ipod library to my new ipod library on itunes?