Coding in Infoset

Hi All,
I am new to Infosets.I need a lil help.I have learnt that we can code in infosets in the "Extras" section.I have an additional field Compa-Ratio and PIR in infoset. But I need to code a constraint in that.Since this infoset is already being used, I suppose there would already be a code to calculate PIR and Compa-Ratio.
Can anyone help me where possibly I can find this code. I can't find it in the Code tab in Extras ???
Thanks,
Kajal

Hi Kajal
Goto SQ02 then click on Application specific enhancements Button (Silver Sphere).
Then go to EXTRAS Tab.
Create Ur fields (Additional).
Select the field for which U want to write codes.
Click on Coding For Addition Button(Blue Note type Button).
Then Put a BREAK_POINT and execute the query and U can get the idea for how the codes to be written.
If U want to see the codes for additinoal fields.Then Choose the field and right click and choose Field Code.
Hope this helps U
~ BiSu
Message was edited by:
        Biswajit Das

Similar Messages

  • Delete double records by coding in Infoset

    Hello,
    I join 7 tables in a infoset and get later in my datasource double records. My question:
    Is it possible to delete these double records( I need only 1 record) by coding in the infoset? And if so how I can do this? I´m a ABAP novice.
    Thanks.
    Michael

    Thanks, for the fast answers. The example is very good, but I still have two questions to it.
    1. I have also characteristic values, can I use here MIN and MAX?
    2. Only the same records with the same key of "KUNNR" and "BUKRS" should be aggregated, how I can do this? (A small example would be helpful).
    Many Thanks.
    Michael

  • Error while generating the Infoset

    Dear SD Experts,
    I get the Error While Generating the Infoset.
    I am actually trying to write a Query.
    the tables i have inserted are VBAK, VBAP, VBEP, LIKP, LIPS
    below is the List.
    1)Differences in field TEXT_VBAP_CHARG
    2)Differences in field TEXT_VBEP_ETENR
    3)Differences in field TEXT_VBEP_ETENE
    4)Differences in field TEXT_VBEP_PLNUM
    5)Differences in field TEXT_LIPS_CHARG
    6)Differences in field TEXT_LIPS_LGPLA
    Thanks in Advance.
    Regards,
    Santa Khattri.

    Hi ,
    From what you are saying, i am guessing there could be difference in field types used and in dictionary.
    Try this.
    1.Go to SQ02
    2.Change query area (Standard / Global) in Environment --> Query areas depending on where your infoset is.
    3. Select your Infoset.
    4. Goto --> More functions --> Check and generate / consistency check --> Adjust.
    or Try this.
    1. Select your infoset.
    2. Change
    3. Goto --> Global properties --> see if "no automatic text recognition" is checked in options tab.
    If you still having problems, give me more detail on how have you joined tables, have you used any extra fields, or have you done any coding in Infoset, I may be able to help you.
    Thank you.
    Regards,
    Subin John.

  • Dynamic current date variant with static date

    I have a report that I want to execute with a variant that defaults dynamically to today's current date, but I also want to select based on if that date field is initial too.  In one execution.  So select record if date is either today's date (dynamically calculated) or date is initial.
    Anyone know how I can do that?
    Thanks so much
    Cathy

    hi
    Did you try to force value in the variant in the multiple value with a value equal to space? So it will be like default date as today's date and fixed values as space.
    Force value in the sense we use fixed values in the selection screen.
    If this is not working then do coding in infoset
    Br
    Vijay V

  • Coding in an infoset created by transaction SQ02

    Hello Folks,
    I have an adhoc query created using SQ01 and SQ02 based on feild ATINN between tables AUSP and CABN.
    The user now requires to display 'Characteristic Description' too.
    I have added CAWN and CAWNT required for this change (feild ATWTB is required to be added on display ) to the infoset and  
    also added the proper field group.
    The key links that can be made in the JOIN are:
      AUSP-ATINN <->  CABN-ATINN
      CABN-ATINN <-> CAWN-ATINN
      CAWN-ATINN <-> CAWNT-ATINN
      My problem:
      I have to link
      cawn-atwrt <-> ausp-atwrt
      cawnt-atzhl <-> cawn-atzhl        ( I tried using the CODING option on the EVENT Records Processing to filter based on the 
      aforementioned  conditions but it does not seem to work )
      I would appreciate any help on this matter.
    Regards,
    Subodh S.Rao

    Hi Sandra,
    Thank you.
    I was naive and thought that only key relations which are formed when we try to create a join between
    two tables is the only way and thought that the other relationships are done in coding.
    Regards,
    Subodh S.Rao

  • Infoset (coding in additional field added )

    Hi
    I need some help regarding coding for the additional fields added to the infoset.
    As a data source I have selected a direct read from table MARA. I need to display the description in all languages for the material chosen on the selection screen when the Query is executed in sq01.
    I could have used a join between MARA and MAKT, but instead I have chosen to add an additional field
    with the head 'material description' and coded the select for the material description as per matnr in the coding section.
    The basic list display, only dislays one description, the last one and not all the possible descriptions in all languages.
    What should be the probable code and where should i place that code for such an implementation.
    Please suggest.
    Smriti

    You can do loading of master data text for achieving the material descriptions.
    Regards

  • Coding extra fields in infosets

    Hi group,
    We have coded several extra fields in our infoset.  This works fine for the most part when users query on a reference date. The challenge is when they query a period. I have yet not found a way to write my code so it outputs the correct values for the records that exsist in the period of the query. 
    I have tried different date-handling in my where-clause, but they all seem to give some unexpected surprises.
    So I am looking for best practice here - preferrably with examples.
    Do you guys know of any documentation on how to write code to handle record splits like this?
    I have searched documentation, forums and blogs without finding a good answer.
    Best regards
    Kirsten

    Hello Ricky Sh ,
                              The reason for those additional fields is in the SE11 is by defalut after you go inside the SE11 and enter the table name and go inside by pressing "F7" . There if you see the menu Go-> Text table  there the link is assigned internally. That is the reason you are able to see the texts in the SE11 result screen.
    To create a tabel with text table field shown up you need to create a table as mentioned below:-
    Procedure
    To use the functions offered by a text table, create a table(ZCustom Text Table) in the ABAP Dictionary with the same key as table <ZCustom Table> and an extra field with type SPRAS. Define the text fields as non-key fields in this table. Then define a text foreign key from this text table to table <ZCustom Table>.
    Hope this answers your questions.
    Thanks,
    Greetson.

  • Infoset Coding (SAP Query)

    Hi, I need a field in a Query that required programming.  I hope someone can help me.
    I need to get the first character that is in the header note of the purchasing requisition (ME53N).  So I am trying to create a Local field in the infoset with some coding that help me to pull that information for any purchasing requisition.
    If any of you guys have and example, please help me.
    Regards,
    Francisco

    Hi Aryat,
    Yes it is possible to include code in infoset and fetch data from database tables.
    Go to tcode- SQ02, and change query area from global->standard and click change.
    Now click on Extras,it will enable all the custom fields on right hand side.
    Now select the field from the row and click coding for addition symbol as mentioned in below screen shot, it will take you to the program line screen and you can code here.
    After completing coding save and generate the infoset and adjust the query again otherwise new changes will not reflect.
    Hope it will solve your issue.

  • SQ02 - Issue on a infoset which doesn't order the results

    Hello to everyone,
    I'm experiencing some issues when creating a Infoset and implementing the relative query, as the results aren't ordered by the first field which is the Primary Key of the first table of the join which composes the Infoset. Here are the details:
    I've created a query on the following JOIN:
    DFKKKO >> ERDB >> ERCHC
    Plus, i've implemented some code to mess the query so that it returns some additional field with custom values.
    One of the target of this query is to have the output sorted by DFKKKO-OPBEL, which is the key of DFKKKO, but it seems that when I ask for a big amount of data, the output isn't sorted at all.
    Is there a way to ask the infoset via SQ02 or the query via SQ01 or some coding within the additional fields, etc.. to sort the output by certain fields? In this particular case, I'd like to order for the first output field which is the key of the first table of the join.
    Thank you very much in advance.
    Best regards,
    Claudio

    Hello Arbind,
    thanks for your quick reply, i'll be start testing it immediately, but I've seen that apparently this method sorts the extraction after it is done. Even though it could appear strange, I should keep a progressive number while elaborating each row of the selection, so for example I'll count in this way:
    record 1 - counter 1
    record 2 - counter 2
    record n - counter n.
    Actually, my problem with sort was that record 1 has the key 1, record 2 has the key 2018, record 3 has the key 58, so the counter 2 points to a wrong record.
    Your solution is really helpful, but do you know actually if I can put a sort or order by directly in the main selection by indicating something somewhere?
    If it isn't possible, i'll start thinking of an alternative solution for the counter problem (which is a counter of the billing rows in a document, instead of a simple counter).
    Thanks also to Christian for the answer!
    Thank you very much.
    Kind regards,
    Claudio
    Edited by: Claudio CPU on Feb 22, 2011 12:14 PM

  • Error while uploading ABAP Infoset

    Hi friends,
    I try uploading ABAP Infoset from my desktop to the Production system. I am doing this by executing program RSAQR3TR, select upload, check the Transport Infoset radiobutton. After this when I execute the program I get 2 error messages which says
    1.  "The Infoset ZLETR017C contains coding lines (coding for additional fields/structures or free coding)"
    2.  "The Infoset cannot be imported since you do not have authorization for coding maintenance"
    Please help.
    Regards,
    Dikshitha

    Hi,
    You are getting this error becuase you are not having autorization for maintaining the code in infoset in production system .
    Kindly check out with your authorizations in production system
    Regards,
    Priya Bhat

  • Modifying SQL in an infoset query

    Dear SDN experts,
    Can you please tell me if there is a way to modify the sql statement for an InfoSet query that was generated from a quickviewer?
    Preferably this should be done without copying the generated code and then directly editing the ABAP, because I am just a poor application consultant without those kinds of programming priviliges.
    Thank you very much in advance.
    /Ulrik

    Thank you Sameer (and also thank you to Alvaro).
    As an example of a specific requirement I need to show only the most recent purchase order created for specific vendor(s), and I figure I could accomplish this by tweaking the SQL statement. Or maybe I could load the resultset into an internal table an manipulate this.
    I have a feeling I need to go to coding section under extras on the InfoSet. But I think I just need a couple of nudges to get to that moment of revelation

  • Using infoset based on logical database gives lots of selection parameters

    Hi
    I'm trying to assist a new Crystal user in getting up on running on Crystal using infosets from SAP. Presently a simple infoset based on logical database PNPCE has been built using fields from just three infotypes (to keep things simple).
    When the user logs onto crystal and selects either this infoset, or a query based on the infoset, the very next step requires the user to set 80+ parameters to be null before running the report, and unfortunately those values cannot be saved to if in order to re-run the user has to manually set all the vallues to null again. Clearly this makes it pretty frustrating to use!
    This initial screen does not appear if using an infoset based on table joins, but unfortunately the logical database needs to be used to fulfill certain reporting requirements.
    I've tried saving a selection variant against a query and forcing it's use but these setting don't seem to be picked up by Crystal.
    Are there any Crystal/Query experts out there that can help with this?
    Regards
    Phil

    Hi,
    Is there anyone out there that can help with this? Seems to me like an issue that there 'should' be a soluton to...but I haven't found it yet!
    As a bit of additional info - the use of table join based infosets is not an option primarily because there are a lot of reports required that pull in the OM 'additional fields' that come through automatically when using an LDB. However, for table joins, it requires custom coding to be required to the infoset, which clearly restricts the user base from the ability to build their own reports.
    Regards
    Phil

  • ABAP Query - addition of logic in infoset

    Hi Friends,
    I have generated a query and there is a problem. There is a field 'Cycle count date'. Each material can have more than 1 count date. So my report displays repeated lines with same material and other details remaining same except that there are different count dates. Hence the users think there is a repetition of entries.
    The requirement is to have only the most recent count date displayed and all the other lines should be removed.
    I tried coding for the internal table %G00 (the table in the system generated code) but the infoset is throwing an error that the table is not declared. And if I declare, the system says same internal table declared twice (since it is already declared in the system generated code).
    How do I code for this in the infoset.
    Appreciate your quick response.
    Regards,
    Dikshitha

    Hi
    Here is what you should do:
    1. In the infoset, go to event END-OF-SELECTION(After list).
        Here you'll find table %G00 with final data to be displayed.
    2. You should enter the following ABAP code:
        data: str type string.
       field-symbols: <GOO> type table.
       field-symbols: <GOO_WA> type any.
       str = '%g00[]'.
       ASSIGN (str) TO <GOO>.
       loop at <GOO> assigning <GOO_WA>.
       ...do whatever you like here....
       endloop.
    3. Of course, you don't need to do a loop here, you can do whatever you want.
    This solution was created with the brilihant developer Hayit Yuzis.
    Good luck
    Yasmin Yezerski.

  • How to do coding in abap-query

    Hi friends,
      Please help me how to write the coding in abap-query.
    Regards,
    Bhavani

    hI
    There are certain exit points available in the query, these can be accessed in SQ02 - Infoset editor. Click 'Extras', then the 'Coding' tab. There is a drop down to access different coding sections, e.g. DATA, GET, etc.
    It is not always clear where and when they execute so you may need to experiment with some 'break-point' statements to start with, run the query to find out where the breaks are then go back to SQ02 to enter some code at that section.
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_FunctionalAreas_LogicalDB.asp

  • SAP Query (InfoSet) - table %DTAB

    We have just upgraded to ERP2004 (from 4.6C) and, in addition to direct ABAP coding, I use the Query tool a lot.
    From the code generated by the query application generator, it appears that the output table is now %DTAB.
    I could be extremely usefull to be able to modify the content of this table before output (ex. at END-OF-SELECTION).
    However, reference to this table (ex. in a LOOP) causes a syntax error, as the declaration of %DTAB is not "visible".
    Do anyone know how to overcome this problem?

    http://stackoverflow.com/questions/3765373/how-do-i-do-a-select-distinct-using-a-sap-infoset-query

Maybe you are looking for