Starting Infoset (Query) in background via submit

Hi all,
I'm facing a problem when executing an infoset (HR) via SUBMIT (report) EXPORTING LIST TO MEMORY AND RETURN. I this way I want to schedule several infosets in a job and capture the output which will be sent through mail.
Via FM. LIST_FROM_MEMORY and FM LIST_TO_ASCI I try to retrieve the selected data (of which I'm sure there is at least ONE record) in an internal table and convert it to ASCI. However, no matter what (for example no restriction on the select-options) the LISTOBJECT parameter from FM LIST_FROM_MEMORY returns me obviously not the correct data and after converting the list to ASCI, the TABLES parameter LISTASCI from FM LIST_TO_ASCI is empty or contains ##(?).
Any suggestion will be highly appreciated and if usefull rewarded appropiately
Regards,
Micky.

Short update.
In the infoset the data is set to be displayed as SAP List viewer. However, it doesn't matter what is says, no data is returned.

Similar Messages

  • 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.

  • Infoset query with KNB1 customer's ADRC information

    Hello,
    An explanation into the problem:
    I'm trying to create an infoset query with KNA1, KNB1 and ADRC which would do the following:
    In KNA1-SORTL we hold customer numbers which can be found from KNB1. This query should:
    Display KNA1-KUNNR and relevant address data for this customer via connection KNA1-ADRNR and ADRC-ADDRNUMBER. Then it should check KNA1-SORTL- field and if it corresponds to KNB1-KUNNR, it should go back to KNA1 with this KUNNR and display all this customer's relevant address data via this customer's KNA1-ADRNR to ADRC-ADDRNUMBER.
    I'm relatively new to infoset coding and ABAP in general, plus I'm self- taught so please bear that in mind.
    I'll give an example as to what I've managed to do so far. In SQ02 I joined tables KNA1(left outer join)KNB1 and KNA1(join)ADRC and created an extra field ZADRNR to see if I could display the ADRNR for the customer number found in KNB1.
    Something along the lines of:
    IF KNB1-KUNNR = KNA1-SORTL.
    SELECT SINGLE ADDRNUMBER FROM ADRC INTO ZADRNR
    WHERE ADDRNUMBER = KNA1-ADRNR.
    ENDIF.
    Obviously this doesn't work. Pseudocode would look like this:
    Check field KNA1-SORTL
    IF KNA1-SORTL = KNB1-KUNNR THEN
    GO BACK TO KNA1 with this KUNNR and display it's ADRC.
    KNB1 sadly doesn't maintain an ADRNR of it's own, or this would be much simpler.
    Any help or advice is much appreciated, so far I've only been coding a few lines in infosets with ABAP so I'm not all that familiar with it. I've managed to create several queries through trial and error, mostly, and this forum and it's articles have helped a great deal.
    Please let me know if I should provide any additional information, and my apologies if I posted this in the wrong forum area.

    Hi Lalit, and thank you very much for your reply.
    Unfortunately excluding space entries in selection screen wouldn't solve the issue, since we have KNA1-ADRNR for each entry, it's just that it would be different for customers found in KNB1.
    I could probably solve this by making two separate queries and working on them in excel and that way we would have the necessary information.
    But in order to do this in SAP seems to mean that I have to write a custom report. For that, it seems I'll be spending New Year's eve learning how to ABAP
    Thank you for your help, at least we don't have to struggle with finding out a way to do this via queries so we'll just find alternative means for this.
    Thanks again and have a happy new year!

  • Infoset query creation

    Hi
    Expert
    I want to know how to create infoset query in SAP CRM i request you to kindly provide some basic steps to initialize this
    thanks in advance
    vinay

    Hello Vinay,
    You have three transactions to accomplish this.
    SQ01 Is to create the query itself
    SQ02 Is to create the infoset that can contain queries.
    SQ03 Is to create the user group
    First things first:
    1. SQ02 Create an infoset and define the master join table (for joined queries) or the master table for queries on a single table. Remember that all the tables you might need in the queries you create in this infoset must be defined here! Once you have assigned the necessairy tables, define the fields you'll need for these tables.
    After this is all done, generate the infoset.
    2. SQ03 Create a user group. Then assign all the necessairy users that are allowed access to the user group and the infosets that are contained in the user group (so assign the infoset you just created in step 1)
    3. SQ01 Enter a query name and press create. Now your infoset should be listed in the input help (if not, make sure your username is assigned to the usergroup you created in step 2)
    Now you can start creating your query!
    Hope this helps you on track!
    Provide points if useful.
    Kind regards,
    Joost

  • Infoset query SQ01 preview output display truncated

    Hello Experts,
    When we are creating an infoset query from SQ01, the preview of output just below the screen is truncated.
    Example when I select personnel area as output with value and text, the value is only displayed as 1 character and the text 8 characters. But when I click start ouput their original output size is displayed.
    I already checked the output length of the fields and they are correct. The lengths are correct when start output is clicked.
    Any ideas on what should I check?
    Thanks in advance!

    Hi Jitesh,
    Please follow the below stepas . (here pseudo code)
    In Data Section
    DATA: str1 TYPE string,
               str2 TYPE string,
               str3 TYPE string.
    str1 = 'MC*'.
    str2 = 'EQP*'.
    str3 = 'WE*'.
    If you have more strings to compare ..declare those like that.
    In 'Record processing Event' you need to use CHECK statement with CP operatoar of String
    CHECK table_name-transaction_field CP str1 OR  table_name-transaction_field CP str2 OR table_name-transaction_field CP str3.
    CHECK SY-SUBRC EQ 0.
    Genrtae the Infoset "Important step
    Go to SQ01(in a new session) , and see if your getting required result.
    Regards,
    Dinesh
    Edited by: Dinesh Tiwari on Oct 1, 2009 7:17 AM
    Edited by: Dinesh Tiwari on Oct 1, 2009 7:18 AM
    Edited by: Dinesh Tiwari on Oct 1, 2009 8:07 AM

  • INFOSET QUERY: Set condition for output display

    Dear Experts,
    I have created a infoset query for display of Material inspection Characteristics using tables QPMK, QPMZ & QPMT.
    now the user wants to display data only of those transaction no.'s starting with 'MC' or 'EQP' or 'WE' so on & so forth.
    I do not know how to incorporate the same in the Infoset. I have tried putting the codes in DATA / START-OF-SELECTION / RECORD PROCESSING etc... but no use.
    There is another option of filtering the transaction no,'s in Layout, but user does not want the same.
    so kindly guide me.
    Thanks.
    Regards,
    Jitesh

    Hi Jitesh,
    Please follow the below stepas . (here pseudo code)
    In Data Section
    DATA: str1 TYPE string,
               str2 TYPE string,
               str3 TYPE string.
    str1 = 'MC*'.
    str2 = 'EQP*'.
    str3 = 'WE*'.
    If you have more strings to compare ..declare those like that.
    In 'Record processing Event' you need to use CHECK statement with CP operatoar of String
    CHECK table_name-transaction_field CP str1 OR  table_name-transaction_field CP str2 OR table_name-transaction_field CP str3.
    CHECK SY-SUBRC EQ 0.
    Genrtae the Infoset "Important step
    Go to SQ01(in a new session) , and see if your getting required result.
    Regards,
    Dinesh
    Edited by: Dinesh Tiwari on Oct 1, 2009 7:17 AM
    Edited by: Dinesh Tiwari on Oct 1, 2009 7:18 AM
    Edited by: Dinesh Tiwari on Oct 1, 2009 8:07 AM

  • Infoset Query based on 0023 IT

    Hi,
    I have created one infoset query for infotype 0023. When I am executing this report for all the employees I can see the records. But if I select just one employee only blank fields are coming.
    Samriddhi

    Hi,
    That employee has four records on 0023 infotype.
    And I have checked with both Reporting periods All and Past(until today).
    But still one record is coming that too blank although employee has four records.
    1st record (01.06.2000 - 21.12.2002)
    2nd record (01.12.1996 - 01.06.2000)
    3rd record (01.04.1991 - 01.08.1996)
    4th record (01.061989 - 01.03.1991)
    Then I created one more record from the date 01.09.2008(start date in the present company) to
    31.12.9999.
    When I am executing the Adhoc Query I am getting only this last record. In selection I have choosen personnel number of that employee.
    But if in the selection field I didn't choose any personnel number it will show all the records of all employee.
    Samriddhi

  • Infoset Query Question

    I created an Infoset Query showing Quantity, Net Value and Exchange Rate. Is it possible to add a field to add a calculation NetValue*ExchangeRate?
    Thanks,
    Dipen.

    This is how you do this. Goto SQ01. Go to the next screen till you come to FIELDS section. Here in the menu <i>EDIT</i> you will get an option of <i>Short names->switchon/off</i>. Click and enter short name for Net value and Exchange rate.
    Then use the option in the menu
    <i>Local fields->Create</i>. Enter the name of the local field, description,heading. Select a suitable attribute for the field.Select <i>Complex calculation</i> and click on the button. Here you can put condition if you want to otherwise enter formaula using short names in the Otherwise section. This local field will now start appearing in the fields section. You need to selct this and use it.
    Hope this helps.

  • Infoset/query : how to fix a selection field value?

    I am writing queries with SQ01 and designing Infosets with SQ02.
    I have to restrict the results of a query to a specific plant.
    This can be done by adding the plant field in the selection screen of the query and by asking the users to fill always the same fixed  plant number when the query is started. Another solution is to filter the output.
    Isnt it possible to simplify this by forcing the plant number in the initialization of the Infoset values without display of this field in the selection screen? This value has to be initialized before the table containing the Plant field is joined to the other tables?

    Open SQ01 transaction,give your query name, click on infoset query button.
    On the right side of the screen you can define default values for those fields.
    If you want to disable the same field in selection creteria then open your infoset in SQ02
    transaction and click change, click on extras buttonin appllication tool bar,on right hand side
    in code tab you can add your logic.

  • Execute Query in Background get notified per email

    Hello together,
    In a project we use BSP's to select variable values in a more comfortable way compared to the SAP Standard variable screen.
    For some long-running queries (e.g. show all line items in the ODS where the item text contains keyword 'XXX') our users want a button to calculate the query in background and to be notified per email containing the corresponding link as soon as the result is available.
    We use BW 3.5, so Information Broadcasting is available, but this does not really solve the problem.
    In the Broadcaster, you can specify the variables using the SAP standard variable screen. But of course we want to use our BSP's. In addition, we first want to specify the variable values before we decide whether to run the query online or in batch. And finally, running the query in the background should be a one-click action. This is not possible with Information Broadcasting.
    Does somebody know a solution for this problem.
    I assume it can be reduced to some magic FB's and methods that have to be called from the BSP to get what we want.
    Thanks for your help.
    Juergen

    HI Alex,
    Could you please help me with the solution. I have a similar requirement where I have to execute the query or workbook in background via a process chain.
    Thanks in advance.
    Rgds,
    Sree.

  • Adding extra Field to a Infoset Query

    Hi Experts,
      I need to add an extra field to a SAP Query(infoset). SInce the code uses a dynamic program call, how do I add my code . Can I have some example code used to add extra field to a SAP Query

    Hi Mithun and gurus,
    My code is working now for these 3 new additional fields. The thing is it works if these fields were selected solo. but if all of these 3 or 2 of it simultaneously, an error occurs.
    Error when generating the report (see long text)
    Message no. AQ_AD_HOC221
    Diagnosis
    The report cannot be generated because the internal description is invalid or incomplete, or because the selection screen is too large.
    Regenerate the assigned InfoSet, and read the log. If the InfoSet is OK, make sure that at least one field is given as output.
    If you used the 'Refresh' icon to start the query, use the 'Output' menu option to execute the query. This gives you a full screen display of the data.
    If an output was generated, the query cannot work with actual data in the construction view. In this case, always use the 'Output' function to execute the query.
    Procedure
    If the selection screen is too large, you need to reduce the number of your selections.
    Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
    Output at least one field. Otherwise you will not be able to save or generate reports.
    If you do not have this problem, execute the query using the 'Output' function.
    Otherwise, there is an error in the InfoSet Query.
    >>>I checked and the code seems fine at least. I think there must be something I need to configure. I tried the SEQUENCE for Codes but nothing happens..
    I hope you could helop me with these..Thanks a lot!!!

  • Starting BeX Query Designer from Crystal opens older version Designer

    Hi,
    When starting the BeX Query Designer from Crystal Reports 2008, the older 3.5 version of the designer is started and hence wanting to edit a query that was designed in 2004s raises the error: "This component was edited with a more recent version of the editor. You also have to use the more recent version to edit further. Further processing is not possible. Update your front-end".
    The latest version is installed, it seems that Crystal by default opens the 3.5 version that was installed with the 710 GUI and Business Explorer etc ... Is this by design and can one set something somewhere to use the 2004s version via Crystal Reports.
    Any insight is welcome.
    Jacques

    Hi Jacques,
    that is a known issue in the toolbar of Crystal Reports.
    You can start the Query Designer 3.5 / 7.0 from the BEx menu item
    Ingo

  • Email Infoset Query Result

    Is anyone aware of a way to email the results of a infoset query run on R/3 . Would like to schedule the query to run then have it emailed out automatically.
    Any help at all will be rewarded with points
    Thanks
    Richard

    You can try this..Write a custom Program that runs the query using SUBMIT <query> to SAP-SPOOL and RETURN. Retrieve the spool using the function module 'RSPO_RETURN_SPOOLJOB' & email it using another function 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    Regards,
    Suresh Datti
    I like Rich's suggestion
    Message was edited by: Suresh Datti

  • Employee search : Infoset query

    Hi All,
    We are trying to configure the employee search in ESS. We have requirement in order to display the Position, date of entry into the position (start date), or when the employee got promoted into that position.
    As default, ESS displays the position for each of the respective employees search results. We have explored the option Who's Who (ESS): Selection and Output in spro and this is an infoset query submitted to Employee search service resulting the appropriate fields in Portal.
    I am finding difficult in order to display the date of entry into respective positions ie what would be the technical name (field) to be passed to this infoset query.
    Thanks in advance.

    Thnx for your valuable inputs pooja.
    As suggested, I have tried to create a query in standard Infoset HR_XX_PA_ESS. However, it doesn't allow me to do it. Even I have tried with ABAP client with all of the developer rights.
    I have created a Z-copy of that standard infoset, then it allowed me to create query field in that Z-infoset. But, how can I refer this customized query from this Z-Infoset to Who's who selection output screen (PZ01C).
    Please share your experiences.
    Regards,
    Anil Kumar

  • Unable to connect: incorrect log on parameters. (CR with InfoSet Query)

    Hi ,
    I have created a crystal report with InfoSet Query in Crystal Report Designer 2011. And it works fine, data extraction also works fine. After that, I have uploaded it into BI Platform 4.0. I can display the CR via clicking View from context menu. But it was still failed once I tried to schedule it in BI launch Pad.
    The error message is : Error in File ~tmp314c6a47c20e892.rpt: Unable to connect: incorrect log on parameters.
    It's so stranger, since i can view it in Designer and viewing it direct in BI lauch Pad. Do you have met this same issue within BI Platform 4.0. Thanks.
    Best Regards,
    Simon Shen

    Not sure if this will help but I finally had success with running a report with a database connection. Here is what I learned from other posts:
    1) Make sure you are using the ODBCAD32.exe located in \windows\syswow64 folder. It's the 32 bit Administrator, the one in the Control Panel is the 64 bit versions and it won't work with a 32 bit app.
    2) Make sure you use System DSN, not User DSN.
    Other tips...
    1) Create a blank report (no parameters, no db connection). Run and get that to work first.
    2) Create a basic db report (no parameters, one table, one field). Run and get that to work second.
    3) If step two fails, try creating a report with different drivers.
    4) If step three fails, try installing the latest service packs and repeat 1-3.
    5) If step four fails, throw out the software or computer or both

Maybe you are looking for