SAP query output modification

Dear all,
Currently in one sap query having tables EKBE and other tables, output is comming. But now I need to add some more data from the table EKBZ to the same columns of the output which are from EKBE. If i use join then i need to use separate column for EKBZ, but i want EKBZ data ( additional records) to the same columns of EKBE in the output  in addition to to the records of EKBE . Please help me how to do this.
Thanks,
Prasad

thanks for your reply dear. Actually its not my requirement.
But I found the answer my self. I have created the separate internal table and selected the data directly from the database table ( like normal report) and inserted my records at the event 'At end of selection after processing' into the auto generated internal table using field symbols.

Similar Messages

  • Transfer SAP Query Output directly to SharePoint

    Hi,
    We are running the SAP Queries in the Background. I have a requirement to transfer the SAP Query output directly to SharePoint site. Could you please share your ideas on this?
    Regards,
    Siva.

    I don't have an answer but have the same issue.  Did you ever resolve?

  • Sap query output to save on application server

    Hi All,
    I have one requirement, want to save the output of sap query on application server as a text file?
    Is there any work around?
    Regards
    Vasumathi
    Edited by: komma vasumathi on Nov 5, 2009 10:32 AM

    Hi Vasumathi,
    Application server path cannot be accessed unless otherwise using OPEN DATASET. More over, Infoset cannot be executed directly. It can be accessed through SAP Query only.
    Writing Logic for 2 or 3 tables with Inner Join will not be a big deal. Writing Abap program will be optimum for you FTP requirement.
    1. create a folder in AL11 as \sap\common\
    2.  create z program and Declare sel-screen parameters : selopt1, selopt2
    3. Query : Select Afield1 Afield2 Bfield1 Bfield2 from table1 as A inner join table2 as  B on Afield1 eq Bfield1 where Afield1 in selopt1 and Afield2 in selopt2  into corresponding fields of table itab.
    4. creating file  at application sever
          w_fileloc = '\sap\common\file.txt'
         OPEN DATASET w_fileloc FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
        . Loop itab into wa_itab.
          Transfer wa_itab to w_fileloc.
         clear w_fileloc.
        endloop.
    5. goto AL11 and check the file file.txt in  folder \sap\common
    Please let me know if you need more information or close this thread by offiering the points( If you are satisfied).
    Regards,
    Sakthivel N

  • SAP Query  output  download to Excel

    Hi  All,
    Once I export/download  Query Output to Excel  the fields are not in the order of  Actul Query output
    <u><i><b>Char fields are treated as Key fields and displayed Left side.</b></i></u>
    As it is a SAP Query where to keep this kind of setting(key columns = 0).?
    Thanks in advance and useful answer will be awarded.
    cheers!!
    Komatsu

    when u download data to excel sheet, u can't handle the data from SAP....The data in excel takes excel properties and accordingly data gets adjusted to the formats of excel.
    If u need formatting u need to use OLE concepts in SAP from which u can set the formats of Excel Sheet.

  • SAP Query  output  download to excel   fields order is different

    Hi All,
    while download Query Output to Excel the fields are not in the order of actual Query output
    Char fields are treated as Key fields and displayed Left side.
    As it is a SAP Query where to keep this kind of setting(key columns = 0).?
    Thanks
    Komatsu

    when u download data to excel sheet, u can't handle the data from SAP....The data in excel takes excel properties and accordingly data gets adjusted to the formats of excel.
    If u need formatting u need to use OLE concepts in SAP from which u can set the formats of Excel Sheet.

  • SAP Query: How to filter records from SAP Query output before display

    Hi Friends,
      Can I delete records from an SAP query basic list before it is displayed?
    For example I want to delte all the orders whose system status is "RELEASED" before the basic list of that SAP query is displayed.
    I have gone through SAP help and found out that we can write some code in <b>END code</b> section which will execute before the basic list of the query is displayed. But I could not figure out how the code this...following is an excerpt form SAP help.
    <b>"The END-OF-SELECTION code consists of two parts (Before list output and After list output). The first part is processed before the list is output and the second part afterwards."</b>
    Can anybody help me?
    Regards,
    Bharat.
    Message was edited by:
            Bharat Reddy V

    Try this simple procedure. <b>Hope</b> this should work for you.
    You do the slection of the status in the List-Processing. say your final field of status flag is GF_STATUS.
    Immediatly after that use this within the List-Processing.
    CHECK GF_STATUS EQ '<RELEASED STATUS>'
    How it works:
    SELECT  <>       "<-------Query processing(system code).
    *< Your code put in the List processing
    CHECK GF_STATUS EQ '<RELEASED STATUS>'   "< --only released records passed.
    *>
    ENDSELECT      "<-----Query endselect(system code).
    Please let me know the result.
    Regards,
    A.Singh
    Message was edited by:
            Amarjit Singh

  • Output Technical Field Names in the SAP query Output

    Hi Experts,
    I am new to SAP Query/ABAP Query or Quick Viewer. Just would like to know if there is a way whereby I can print the technical field names as opposed to the English field headers. For example I want to print BUKRS in the place of CoCode.
    I have a vague feeling this could be possible through custom coding in SQ02 but have no idea which code section to choose.Any inputs greatly appreciated.
    thanks in advance,

    Hi Sreegopalan,
    Open your infoset in SQ02, by default in the left hand side you'll be having the tables that you have selected, double click the field name which you want change the long text, it will open a attributes window below your field group. Change the header data text as you wish.
    Please find the query documentation in the below link.
    [http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf]
    Regards,
    Nandha

  • SAP Query: InfoSet Filter

    Hey experts,
    I have an Infoset that contains the JEST table (status of object) and TJ02T (text of the status).
    In my query result I only want records in 1 language.
    I know I can make a selection criteria on language with a default value.
    But now I want to hide the field in the selection criteria.
    How can I do this?
    I don't find an option to hide selection criteria. And I don't want to make an additional variant.
    Is it possible to delete the records in the infoset with some coding?
    Thanks
    Steven

    I found the solution in post Re: SAP Query: How to filter records from SAP Query output before display

  • Drop down box in SAP QUERY

    Hello Friends,
    I have developed a SAP QUERY using SQ01, SQ02, SQ03. It displays an ALV output.
    Now for some particular fields, I want a drop down box in the output ALV. Since in SAP QUERY output alv and final table runs at runtime I am not able to put any of two options I have i.e. VRM_SET_VALUES or DROP_DOWN_HANDLE.
    Can you suggest me the way with which I can display a drop down in the output ALV.
    Please revert if the questions seems confusing.
    Thanks,
    Harjeet

    Dear Sai,
    The Data provider should be the same which is being used by the table and more over you have an option of Read mode over there to display the values in the report based on the Dimension Table values or Posted values or Master data table values.
    Moreover in the specific properties panel of the Drop down, you need to mention on which characteristic you want the drop down box.
    Post back if your issue doest resolve.
    Cheers
    Gattu

  • Displaying selection criteria as part of query output

    Hi Folks,
    How do you add the selection criteria to the header of an SAP Query output?
    Thanks,
    Roy

    hi,
    for your own reports (beginning with z and y)and queries this should be no problem. Create a program, which makes your demanded heading,  and include it to your reports.
    Andreas

  • Hide columns for ALV list output in SAP Query SQ01/SQ02

    Hi All,
    I have a requirement to hide the columns which are empty in sap query SQ01 alv list output.
    Please let me know this functionality available in Query (SQ01) like normal reports
    Regards,
    Venkat

    Hi,
    We just can't make changes in this case as this are all system generated programs.
    WE have to write our own reports to make things flexible to match our requirements.
    Things you are asking is not possible.
    Regards,
    Suvendu

  • Missing output format radio button in SAP Query

    Hi SAP Gurus
    We have SAP Query which as created in 4,6c. After the upgrade to ECC 6.0 We found that the output format radio button is mising in SAP Query. We are unable to choose teh output format. How can we have the radio button back?
    Appreciate yr help
    Rgds..Sanjay

    Dear Sanjay
    Refer OSS Notes 723577 and 132813, may be this notes helpfull.

  • How to control field length in SAP query's report output

    HI everybody,
    I have one scenario in SAP query in which there are two fields in the report output:
    Milestone descrition and milestone description Long Text.
    In CJ02 (WBS element overview), these two fields are populated with some text.
    If description is exactly same as LOng text, long text is NOT getting displayed in output.
    If long text is having more characters than description then only long text gets displayed in the output.
    Do we need to change infoset or query settings? I haven't handled SAP query programming before.
    PLease give some suggestions how to achieve this or I have to write custom report.
    Any inputs on this will be highly appreciated.
    Regards
    Kaushal

    Hi,
    Refer to this link..Additional field in SAP Query
    [Creating Additional Fields |http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]
    [Code|http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]

  • ABAP Coding Help for Subtotal type output - SAP Query

    I've created a SAP Query to display a stock overview by storage type using the table LQUA.
    The output that I get is:
    Material
    Description
    Plant
    WHN
    SLOC
    Storage Type
    Batch
    GR Date
    Available stock
    2057 
    STRAWBERRIES
    BP01
    100
    0088
    200
    0001081766
    17.06.2014
    225
    2057
    STRAWBERRIES
    BP01
    100
    0088
    200
    0001081766
    17.06.2014
    720
    2061
    VOSTIZZA CURRANTS
    BP01
    100
    0088
    200
    0001081272
    17.06.2014
    1,000
    2061
    VOSTIZZA CURRANTS
    BP01
    100
    0088
    200
    0001081272
    17.06.2014
    1,000
    2061
    VOSTIZZA CURRANTS
    BP01
    100
    0088
    200
    0001081272
    17.06.2014
    1,000
    2061
    VOSTIZZA CURRANTS
    BP01
    100
    0088
    200
    0001081272
    17.06.2014
    1,000
    I can get a subtotal for each Material, batch and GR date combination by using the ALV grid functionality.
    This method adds too much clutter to my query and can't be easily manipulated in Excel afterwards for what I want. I want to condense the results down and just keep a cumulated available stock, e.g:
    Material
    Description
    Plant
    WHN
    SLOC
    Storage Type
    Batch
    GR Date
    Available stock
    2057 
    STRAWBERRIES     
    BP01
    100
    0088
    200
    0001081766
    17.06.2014
    945
    2061
    VOSTIZZA CURRANTS
    BP01
    100
    0088
    200
    0001081272
    17.06.2014
    4,000
    How can this be done?

    Hi,
    Please try to use STATISTICS in your SAP Query. you can sort and add your value based on condiiton then it will be show you collect value in SQ01.
    Please see the below documents for STATISTICS
    https://help.sap.com/saphelp_erp2004/helpdata/en/d2/cb4263455611d189710000e8322d00/content.htm
    Regards,
    Prasenjit Mishra

  • Selection screen modification in case of SAP Query

    Hi All,
    I want to modify the selection screen in a standard progam.
    This program is getting generated through SAP QUERY.
    i want to modify some fields and also delete some fields in the
    selection screen. All these fields which i want to modify or delete
    are the logical database fields.So i can't do it through the t-code SQ01
    and SQ02. Also this is a program generated through the SAP QUERY,
    so i can't modify the generated code. Request if any one of you can suggest me to solve this.
    Waiting for a prompt reply!!
    Thanks,
    Rupesh

    Go to SQ02
    Select your Infoset-->Change
    On next Screen.
    Select GoTo->Code->Initialization.
    Write there code
    LOOP AT SCREEN.
      IF screen-name EQ 'SP$00004'.
           screen-required = 1.
           MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

Maybe you are looking for