ABAP Query Need to Convert ABAP Report

Dear All,
We have 3 queries which are linked to service management, now, user wants to consolidated one ABAP report with feilds of 3 queries, which consist of total 100 feilds. he want provision of downloading each single query (in ABAP report).
Is ther anyway whee we can pass all the 3 quries values in internal tables and pass to ABAP report?? is there any better way so that we will reduce the writing of big logic for 100 feilds??
Thanks in advance.
Regards
Ramki

Hi ,
you can do this way..
for every query there is a
*     Validating Variant name for Query Name
      CONCATENATE '%' <query group> '%' <Query name > '%' INTO w_rname.
      SELECT SINGLE * FROM varid WHERE report LIKE w_rname
                                 AND   variant EQ p_variant.
      IF sy-subrc NE 0.
     ENDIF.
*   Submit report in background and creating spool
  SUBMIT (w_rname) USING SELECTION-SET p_variant
      TO SAP-SPOOL WITHOUT SPOOL DYNPRO
      SPOOL PARAMETERS wa_pri_params AND RETURN.
  COMMIT WORK AND WAIT.
"create spool like above for three query and and capture in Spool and format the three spools
"into one internal table and form one report.
Prabhudas

Similar Messages

  • ABAP Query: Access variables in ABAP Program through InfoSet Query.

    Hi,
    While generating a report using ABAP Query Tool, how can we access the variables in the ABAP Program in the InfoSet Query?
    Thanks in Advance!!!

    HI,
    Dear, it seems that you have changed the query in SQ02 and then just save it and not generated.
    or may be after generation again clicked on SAVE button.
    So untill unless you will not generate the query, it won't work.
    Secondly, by chanegs in the query, i don't think it changes the name of the main program.
    Regds,
    Anil

  • APO ABAP - Query reg. /SAPAPO/BOP_WORKLIST report output

    Hi,
    I have a query in ABAP APO in /SAPAPO/BOP_WORKLIST report. My requirement is to add the fields KNA1-NAME1 & KNA1-MCOD3 to the report output only, but not to the filter as in Note 376773 or 377186. Please let me know if you have any inputs to offer. Thanks in advance.
    Regards
    Murthy

    Hi ,
    The req is not completely clear.
    still , with some assumptions,
    you can use ws_download FM to download the final internal table content to flat file on PC.
    regards.
    santosh.

  • ABAP code needed to convert from 0calmonth2 & 0calyear to 0calmonth

    Hi SAP GURUS,
    Can anybody give me the ABAP code to convert from 0calmonth2 and 0calyear to 0calmonth.and please suggest me whether i have to write start routine or end routine in transformations.
    Thanks ALL.

    hi,
    in the transformation map 0calmonth2 and 0calyear to the 0calmonth field, and from drop down choose routine.
    there will be an area where it will be mentioned write your piece of code below this line.
    paste the below code:
    Concatenate source_fields-0calmonth2 source_fields-0calyear into result.
    also delete the line result = .
    save the routine and execute the package.
    regards,
    Arvind.

  • I am designing ABAP query in SQ01 i have not get one field MATNR

    Dear All,
    I am designing ABAP query in SQ01for MEK2 for Report.
    I  have not get one field MATNR
    I have two table konp and konh i have design in SQ1 i am not get field regarding this table .
    Please Help me.
    Thanks in Advance.
    Regards
    Kumar

    Dear Clemens
    I want MATNR FIELD related to these table.
    I am using KONP AND KONH TABLE .
    Regards
    Kumar

  • How to add the fields to the transaction 'Z10SD25' using ABAP Query

    Hello,
    I want to add the new fields like 'From' and 'To' depending on some conditiions. But i have to do this using ABAP Query.
    Can any one help me with this as I am not much aware of ABAP Query .
    Regards,
    Darshana

    Hi,
    ABAP/4 query can be designed in four steps
    1.     Creation of a user group
    2.     Creation of Infoset
    3.     Assignment of user group to Infoset
    4.     Creation of the query based on Infoset
    By executing the transaction codes mentioned below
    u2022     SQ01   ABAP/4 Query
    u2022     SQ02   Infosets
    u2022     SQ03   User group
    Step 1: To create an Infoset without a logical database
    One of the following can be selected
    u2022     Based on a single table
    u2022     Using an ABAP/4 program
    u2022     Using Table Joins
    u2022     Using Sequential Dataset
    NOTE: The tables to be used in the join should have at least one field in common i.e. it should have the same name, domain or data element.
    Step 2: Here you specify the users who should be authorized to run the query. A user group is always associated with a Infoset.
    Step 3: In Query Definition you can define the Selections Screen. Here you can check against the fields(fields from the tables specified in the infoset above) that you require to be shown on the selection screen.
    Now we Finally need to specify the output type for the query as Basic List, Statistics or Ranked List. Choose the option Basic List and also select the fields to be displayed in the output list(in your case from and to fields...)
    After providing all the above options you can save the query and execute it by clicking the Execute button twice.
    Hope this helps
    Regards
    Shiva
    Edited by: Shiva Kumar Tirumalasetty on Sep 15, 2009 12:44 PM

  • ABAP Query and Translation

    Hi Experts,
    I have a Tcode and it looks like it is generated through ABAP Query. I know the Report name also, so how i can find the Query and Infoset Name. Please suggest me some ideas.
    I have another doubt when i am Trying to Translate the text elements, After giving the target language it shows 'Empty object list'. What it exactly means.
    Thanks,
    Mohanraj.N

    If it a ABAP query then u will get a name like:
    AQZZZ_SLO=======Z_SLO_AUDIT_IM
    Here Z_SLO is ur user group and Z_SLO_AUDIT_IM is ur query name.
    If u display the query from SQ01 then in the initial screen u will get an ALV report where it will show the infoset name of that query.
    Regards,
    Joy.

  • ABAP Query Transport

    Dear All,
    we want transport ABAP Queries from one SAP instance to another..these ABAP Queries  under Global area (cross client).
    please suggest me how to create a transport request to transport these old queries , one more thing is all standard area (client specific) queries are copied .
    Regards,
    Gopala.S

    Check this link:
    ABAP Query Transport request related
    ABAP Query transport problem
    Creating t.code for ABAP query and Transport  it TO Production and run it .
    Edited by: Afshad Irani on Jul 20, 2010 12:30 PM

  • I need Functional Specification in Reports and Scripts to Practice

    hi
    i am practicing ABAP,
    I need Functional Specification in Reports and Scripts to Practice
    please any one give me.
    thanks in advance.
    bye

    I am not sure what you are requesting will be of any help for you, as functional/technical specifications are specific for each implementation and might be dependent on the configuration on that system. 
    If you are on IDES try to look through the sample programs provided by SAP and see if you can implement your own version of the those.
    hith
    Sunil Achyut

  • Converting Crystal reports to Oracle D2K reports or BI Publisher

    Hi I have one requirement
    I need to convert crystal reports to oracle D2k reports is there any tool which will make my work easier
    any body who has work on it please suggest.
    Thanks in advance
    Edited by: Qwerty on Jul 9, 2010 12:44 PM

    check this it may help
    http://www.oracle.com/technetwork/middleware/bi-publisher/convert-to-bi-publisher-11g-1611815.pdf ( page 25 - 45 )
    http://download.oracle.com/otndocs/xmlp/CrystaltoBIP.pdf

  • How to convert deski reports to webi reports.

    i need to convert deski reports to webi.could you plese explan me what type of errors is coming and give me suggestions to how can it resolve.

    Hi,
    What is the version of BO you are using at your end?
    Please check the below links
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_report_conversion_tool_guide_en.pdf
    Conversion from Desktop Intelligence to Web Intelligence - Business Intelligence (BusinessObjects) - SCN Wiki
    Thanks,
    Kirthi

  • How to convert an ABAP Query into a report?

    Hi ..
    My requirement is that I need to replace an existing query with a new  ABAP report.Is there any formal way to do the same?
    I am looking for all  pointers in this regard.
    Thanks,
    Kranti

    Use Tcode SQ01.
    Give the query name press Enter.
    The query will be listed in the table below.
    Select the Query => From the Main menu select QUERY => More Functions => Display Report Name.
    You will get the program name, now go to Se38 and display the program...

  • Gross Salary Report Need to develop in ABAP Query -sap-hr

    Dear Experts,
    i need to create salary report through ABAP-query.
    i have following below stops.
    1)Create user group thorugh SQ03.
    2) Having problem in creating Infosets,as i need to use PNPCE as ldb and p9001,p9002,p9008,p9000,p90402.but when i am created infoset it is showing in order p9000,p9001,p9002,p9008,p90402.and i am not finding any where join condition,how will i join these.
    Didnt find any tutorials..for HR abap-query
    please advice.
    Thanks & Regards
    Anwar

    Dear Experts,
    i need to create salary report through ABAP-query.
    i have following below stops.
    1)Create user group thorugh SQ03.
    2) Having problem in creating Infosets,as i need to use PNPCE as ldb and p9001,p9002,p9008,p9000,p90402.but when i am created infoset it is showing in order p9000,p9001,p9002,p9008,p90402.and i am not finding any where join condition,how will i join these.
    Didnt find any tutorials..for HR abap-query
    please advice.
    Thanks & Regards
    Anwar

  • Excess Inventory/Scheduled Receipts Report using ABAP Query.

    Hi All,
    I want to create a ABAP query for Excess inventory & Scheduled receipts in a single report. I have identified tables, fields and some extra calculated fields in the report. Here are the following tables and fields.
    EKPO-MATNR      ( Material number)
    EKPO-WERKS     ( Plant)
    MAKT-MAKTX       (Material Discription)
    MARC-MAABC      ( ABC indicator)
    LFA1-NAME1        ( Supplier name)
    MBEW-STPRS      (Total value)
    EKET-EINDT         ( Item delivery date)
    RIBOF-AMOUNT
    S939-SPWOC or S032-SPWOC
    Calculation fields : Value execess this week.extend value, over or under this week, onhand inventory for last week and this week.
    Here my question is, when i was creating a infoset, how do i maintain relationship or joins from one table to another table...Is there any sequence for the above tables? Pl suggest. When i was adding all the tables in a infoset and try join the tables...it says illegal join...
    Pl suggest me.
    Thanks for your help
    PRadeep
    Edited by: Venkata Pr Papulugari on Jul 18, 2008 1:37 AM

    Hi Gordon,
    What i need to display is the remainder of the transaction that was received... if it is zero (0), i don't want to display it.
    i.e.
    transact # 100 inqty = 5
    transact # 200 outqty =1
    I'd like to display
    transact # 100     qty on hand = 4
    right know the transaction # that i am displaying is transact # 200.
    And also, it needs to be warehouse oriented. because i can have multiple warehose transactions.... and i am getting that wrong too.
    Regards,
    Manuel Roman

  • ABAP Query to Report

    Hi All,
    There is a ABAP Query in production. I need to replicate the same as a report. How do I do it ? I am not aware of abap objects . Please help me .
    Thanks,
    Amit

    Hello Amit,
    The best option is go to SQ01 in production. In this Query->Display report name. Pick up the name and goto SE38. enter the name and open the program. Then goto menu UTILITIES->More Utilities->Download. This will download the program. Go to your development system and follow the second step but now do an upload into a new Z program. This will generate a report fro the same query which you can take to production using transport request.

Maybe you are looking for