ABAP Query (Transaction KOB1 and KSB1)

Hallo Friends,
I want to generate a query which will consist of some selected columns of the output list of the transactions KOB1 and KSB1 together. Using F1 and F9 to check the Table Fieldname where the contents of the list where selected, has not been so helpful because the contents where from SAP Structures.
Can someone tell me the Tranparent tables (not structure) from where I can generate the query, which will include the contects of the list outputs of the above transactions ??
Please see the select-options of the above transactions too.
Blacky.

Hello Blacky,
Both transaction codes are attached to rpeort RKAEP000.
Report RKAEP000 utlimatly uses FM K_LINE_ITEMS_SELECT_AND_LIST to select the data and display.
So, put a break-point at the this FM in the report RKAEP000 to check what are the inputs being given to the FM in both T-codes.
Regards,
Naimesh Patel

Similar Messages

  • Program RKAEP000 (KOB1 and KSB1)

    Hi,
    i have to copy the program RKAEP000 and create one new transaction. The selection screen of this program will have both KOB1 and KSB1 transaction screens (Order and Cost Centre). the output should be same as KOB1 if order is entered and if cost centre is entered it must be output of KSB1.
    How to do this....
    Regards
    Nikhil

    Have you an answer on this request ?

  • Parallel currencies in KOB1 and KSB1

    KOB1 and KSB1 only display 3 currencies:
    Controlling Area currency
    Transaction currency
    Object currency
    In my client, there are 3 parallel currencies in FI:
    local currency = CAD for company code A, USD for company code B as examples
    group currecny = CAD for company codes A & B
    index currecny = USD for company codes A & B
    and CO Area=group currency=CAD
    Scenario:
    Company code A incurs costs in CAD that are backcharged to company B.
    The user is able to view the equivalent index currency using FBL3N.
    However, for purely CO transaction in CAD, like cost allocation to another cost center or internal order, the user is not able to see the equivalent index currency in USD. 
    Is there a configuration step to be done to allow users to view FI parallel currencies in purely CO transactions like CO allocations?
    pls advise.
    thanks!!!

    Defined target currency=USD in the CO Acctg User Settings

  • ABAP Query Tool - Advantages and Disadvantages

    Hi guys,
    wich are the main advantages and disadvantages of using ABAP Query Tool?
    Regards,

    Moderator message: Previous answers were rejected because they were copy and pasted from other people's work
    Hi Suresh,
    Thanks for your quick answer.
    Beyond  these advantages and disadvantages are there more that could be considered?
    Regards,
    Edited by: Matt on Mar 23, 2009 10:06 AM

  • Transporting an ABAP QUERY

    Hi guys/gals,
    I've created an abap query in testing client.
    May I know how to transport the ABAP query into quality and production server??
    Regards
    Jiku

    Hi Jiku,
    Transaction SQ02 menu "Envrionment/transport" (=Ctrl+F3).
    For transport, select "export" and the objects you want to transport.
    This will generate a request which you'll be able to process normally.
    An other solution is to download your object from the source system and then to upload it from your target system, if this one is open (and if you have the requested rights).
    Reward if useful.
    Regards,
    Aneesh.

  • Abap query ..............i have created infoquery

    Dear Freinds
                 ihave created info-set(abap query) ...and from there when i executed the
    info set ..it has generated me abap repot...........so i have went to se38 and i have
    rename the infoset repot which generated....as per my client naming standards .
    But now the report which has been generated is in ALV GRID ...would i ble able to
    change this report as per the client requirement ...as he dont want the GRID and
    he wanted normal report.........so could any please let me know can i change
    the lay out .
    Regards
    ravikiran.

    Dear OM Prakash,
                 Thank you very for giving me the solution. Please iam in client place
    i have not done any time infoset....... is it possible can you tell me can
    i give the output as general report.........where we give different fields at
    diffent position.........eg.
    the user want
    <u>in first box</u>
    name  :
    staffno :
    category:
    in one box
    <u>Second box</u>
    position
    grade
    rank
    shift
    contract terms
    Date of join
    <u>third box</u>
    Nationality
    Religion
    Please let me know can i arrange the output as requested by the client in the output format as above pleast let me by using abap query .
    Can you please give me your personnel mail id so that i can send you the format
    the user has given me.......presently they r using this format using lotus notes.
    Thanks in Advance
    Regards
    Vamsi ravikiran.
    <u></u>

  • ABAP Query Execution via Custom Transaction Code - Not working

    We have created an ABAP Query in our DEV client and we then created a transaction code to run that query. We have done this because the customer does not want anyone to have access to SQ01, SQ02 in production. This works great in DEV but we can not get it to work in production.
    The ABAP Query was exported to our Prod client successfully.  I say exported because you do not do direct transports with queries.
    We then transported the new transaction code to run the query to production and it was successful.
    However, when we run the transaction is production we get a sys dump stating it can not find the query.
    We believe the problem is the TRDIR table is missing an entry for the program in production (it has an entry in DEV).
    I would have thought that the export on the query would have brought in this entry -but obviously not.
    Any suggestions on how we can get this entry into the production client?  Did we miss a step on the export that would do this?  We want to only bring over this entry - not the entire TRDIR table for obvious reasons (size (1.5 million entries, programs not ready for production, etc.).
    Please help!
    Thanks.
    Scott

    Hi,
    The above solution will work if you assign the transaction in one server, If you want this will not work in quality/production boxes when transported the query..the program name will not be the same in all the servers...
    For this. Do the below:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
         D_SREPOVARI-REPORTTYPE = AQ
         D_SREPOVARI-EXTDREPORT = Name of the Query
         D_SREPOVARI-REPORT = User Group
    Save the transaction..Now if the program is generated with different names in the quality/proudction, this will still work..
    Regards
    Vijay Hebbal

  • Creating t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Dear Farukh,
    As we know,
    Query is created in Production server and a corresponding program is generated by System.
    What we have to do is just to assign the program to the desired transaction code in Development server and transport it.
    If you have any doubts please let me know.
    Kindly assign points if you find this info usefull.
    Regards,
    Lijo Joseph

  • Attach a transaction code to abap query program

    Hi!
    I have developed a report with ABAP query in development server with transaction codes SQ01, SQ02 AND SQ03 respectively.
    program is generated from SQ01 and i also got the program name from SQ01.
    Now how to attach a transaction code with the program that is generated from ABAP query and transport it to production server
    successfully.
    points to be rewarded .
    regards
    Amit

    hiiii
    go to
    sq02 ->
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    (If Query does not exist in Standard Area then You will have to copy that Query From Global Area to Standard Area.)
    For Coping Query From Global To standard first select that query from list.
    Now select Environment-> Transports
    In next screen select Copy Global to standard radio button.
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Fill Infoset and Query with corresponding names.
    Now Press Execute button.Copy Log will be displayed.
    Now Query exist in Global & Standard Area.
    Go to SQ02 .
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    Select Infoset from list.
    Select Download radio button
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Click on Execute button
    same way you can upload sap query..from one system to another
    regards
    twinkal
    Fill Infoset and Query with corresponding names.

  • 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

  • Can we assign Transaction code to created  ABAP Query of  SQ01

    Hi ,
    Friends I want to run the abap query assigning t.code to it .. i will be thankfull if any body give me the steps or remedy .
    thanks

    Hi you there.... you can try this
    1) create an abap report with the following source code
    REPORT ZRUN_QUERY .
                          DECLARACIÓNES                                    *
    DATA:
    REPORTNAME LIKE AQADEF-PGNAME.
    PANTALLA DE SELECCION                                                *
    SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE TEXT-001.
      SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
      PARAMETERS: P_BGNAME LIKE AQADEF-BGNAME OBLIGATORY,
                  P_QUNAME LIKE AQADEF-QUNAME OBLIGATORY.
      SELECTION-SCREEN END   OF BLOCK B1.
    SELECTION-SCREEN END   OF BLOCK B0.
    CUERPO DEL PROGRAMA                                                 *
    CALL FUNCTION 'RSAQ_REPORT_NAME'
         EXPORTING
              WORKSPACE  = SPACE
              USERGROUP  = P_BGNAME
              QUERY      = P_QUNAME
         IMPORTING
             REPORTNAME = REPORTNAME.
    CALL FUNCTION 'RSAQ_SUBMIT_QUERY_REPORT'
         EXPORTING
              QUERYREPORT       = REPORTNAME
              VARIANTE          = SPACE
        EXCEPTIONS
             ONLY_WITH_VARIANT = 1
             VARIANT_NOT_EXIST = 2
             OTHERS            = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2) Create a transaction for this program
    3) Create a parameter transaction and execute this report passing by parameter the usergroup and Query, then, the program will automatically solve the program name and execute it.
    Regards,
    Daniel

  • Bex query for BW abap report/ transaction

    Hi Experts, Here is a scenario: I developed ABAP program in BW using multiple DSOs for complex logic. Since I cannot use abap program directly in BO reports, I need to develop a query in BW for my abap program. Is it possible to develop a bex query for BW abap report / transaction in BW? I have limited knowledge on BW and BO. Please help me. Thanks in advance Raghu

    First of all thanks for your suggestion Matthew..!
    As you said, I created virtual info cube based on function module.
    In the info cube, I defined (4)dimensions and (1)key figure.
    In the fucntion module, appropriate below parameters defined and code written for the data table (e_t_data)
    CALL ZFM_XXXXXXX 
    EXPORTING   
    i_infoprov =                " Name of InfoProvider   
    i_th_sfc =                  " rsdri_th_sfc: List of Characteristics    
    i_th_sfk =                  " rsdri_th_sfk: List of Key Figures
    *   i_t_range =                 " rsdri_t_range: Range List
    *   i_tx_rangetab =             " rsdri_tx_rangetab: Table from Range List
    *   i_first_call =              " rs_bool       First Call
    *   i_packagesize = 100000      " i             Package Size 
    IMPORTING   
    e_t_data =                  " standard table:  Data Table   
    e_end_of_data =             " rs_bool       :End of Data Reached   
    e_t_msg =                   " rs_t_msg      : BW: Table with Messages
    Test:
    Right click the info cube and choose "displayed data", immediately it triggered above function module.
    when I see the import parameters data,
    no characteristcs data in i_th_sfc. But, key figures has data (1 record) in i_th_sfk.
    Not sure, Did I missed anything? Please help me.
    Thanks in advance

  • How do i save abap query as a transaction ?

    hi
    i created an abap query and i want to know how to connect this query to a transaction
    i also want to know <b>what is the difference between standard area</b> ( client specific) <b>and</b> <b>global area</b> ( cross-client ) ? ( i created my query under global area )
    thanks
    ami

    Hi..
    Steps to Create a Tcode for SAP Query:
    1. Goto Tcode SQ01.
    Enter the Query Name
    Select the Menu path: Query -> More Options -> Generate program.
    2. in SE93 Create a tcode for this program .
        Select the Transaction type as Report Transaction.
    <b>reward if helpful. </b>

  • ABAP Query and BW Report

    Need an understanding of how do we judge or make out that for a particular report we can go for ABAP query and for one we can go for BW report.??? Please provide clear answer with example..
    Thanks

    Hi,
    Your question is very broad based.
    ABAP Query is a simple tool in the hands of the Functional consultants to extract information from the tables directly ( u can use complex logic as well ), Example - List all sales orders within a particular period.
    But, BW reports are used not for Transactional analysis but for Strategic reporting. Depends upon the nature of data , users of data, availability of data, you should decide. It needs investment in BW module. Report the total sales by region, product etc with trends and graphs.
    Thanks
    Siva

  • Addition of checkbox and 2 fields in ABap query selection screen

    Hi
    I need to add chack boxes and 2 fields in ABAP query which is using LDB QMI. can u pls let me know how to do that.

    Hi Tarun,
    I am still not clear with the problem..I guess you require plant in your selection screen which you have.
    i guess if you go to sq01tcode there is a option infoset query from where you can give your selection options and value.
    have you selected all the fields in infoset and made a selection screen?
    When you have done with your infoset you just need to diplay the fields and there is a automatic program generated.
    Let me know...
    Regards,
    Nihkil.

Maybe you are looking for