SAP Query PNPCE LDB with additional table.

Hi ABAP Gurus,
I am developing a SAP Query.
I have created an infoset with the custom infotype 9050 and added the table ZPA9050 into the Infoset.
The fields of ZPA9050 is not available as selection fields when I try to Query through SQ01.
(How do I input values to the ZPA9050 fields? A checkbox for making a Selection field is not available in the Query (SQ01).
For every pa9050 entry there exist multiple records of ZPA9050. I need to display the pa9050 fields in the 1st row and the corresponding zpa9050 fields in the subsequent rows.
What needs to be done in order to get them as Selection fields (Input Fields)
A quick reply is highly appreciated.
Useful answers will be rewarded.
Thanks
Pradeep

Hello,
at the time of cretaing INFOSET using transaction SQ02. You can click on the Extra button nad than on the selection tab to add some fields on the selection screen.
Reward if useful
Mohit

Similar Messages

  • Creation of SAP Query in SQ02 with Single Table With Condition

    Hi All,
    I want to Create SAP Query in SQ02 using single Table MCHA.
    ii) I dont want all entries of MCHA Table I mean , I have to apply some Condition on this Table.
    i.e  Suppose I am having actual data in MCHA table is like this for Material M1.
    Plant    Material   Batch   BatchCreationdate
    P1          M1         B1       20.06.2007
    P2          M1         B1       04.05.2009
    P3          M1         B1       04.05.2009
    But I want the Output of SAP Query is like this:
       Material   Batch   BatchCreationdate
          M1         B1       20.06.2007
    That is irrespective of Plant if Material & Batch are equal ---> 1st record with Lowest date shoud get at the output.
    Please help me How write the code on single table in the SAP Query.
    Thanks,
    Kiran Manyam

    Hi,
    Your query should be like this:
    Select MATNR CHARG HSDAT
    from MCHA
    into table t_mcha
    where matnr = Materlal number from selection screen.
    The structure of t_mcha should contain the fields that you select.
    Then sort the table by date ascending
    Sort t_mcha by HSDAT.
    Hope this solves your problem.
    Thanks,
    Sowmya

  • SAP QUERY using ASSHR and ASSOB tables

    We currently have SAP query that reports on additional payments (Info type 0015).  The user wants to report the cost center held on the cost assignment (Tables ASSOB and ASSHR).
    The existing query uses infoset created using PNP logical database. 
    How do I add or join the ASSOB and ASSHR tables to Info type 0015 to report the cost center?
    Thanks in advance
    Shamshudin

    Hi Sham
    You may need to create custom fields in the infoset and create some code to pull out and display details from ASSHR and ASSOB corresponding to the ifnotype record.

  • SAP Query - Need to join 3 Tables via outer join

    Hi,
    I need to join 3 Tables using SAP Query. I wish an OUTER JOIN to be performed for the table join.
    For Example:
    Table 1 has 1000 Entries           Field A             Field B          
    Table 2 has 300 Entries             Field A            Field C
    Table 3 has 100 Entries             Field A           Field D
    The normal Join (INNER JOIN) gives me only the records that exists in all the 3 Tables.
    But what i need is:
    In the above example, If one entry in Table 1 has no matching records in Table 2 / Table 3, there should be an output entry in the SAP Query like
    Field A            Field B              Field C            Field  D
    xxxx              yyyy                  Blank             Blank
    If there is a common record that exists in the tables, that record should appear in the same entry in the Query output.
    Field A            Field B              Field C            Field  D
    xxxx              yyyy                  zzzz              aaaa
    In this way, there should be a minimum of 1000 entries (Largest no of records in the Tables joined). More than 1000 records in the Query output depends on the number of common records.
    Kindly help if you have come across such a scenario.
    thanks & regds
    sriram

    Hi
    Please join the outer join as below
    Table1 with Field A  to Table 2 Field A-----outer join
    Table1 with Field A  to Table 3 Field A------outer join
    then you get the out put as per your requirement
    Regards
    Damu

  • SAP Query: Duplicte records after joining table CSKT

    Guru's,
    We have created a query in SQ02 for Z table which has fields with KOKRS and KOSTL as well.
    Ztable fields:
    PLAN_TYPE
    PLAN_PROCESS
    KOKRS
    KOSTL
    We want to display cost center description. SO joining this Z table with CSKT(KOKRS,KOSTL). We are getting duplicate records in output because CSKT has duplicate KOSTL.To solve this, we want fetch Latest KOSTL comparing DATBI  GE SY-DATUM.
    Can anybody help us how to code this logic in Query. I have gone thru most of the SDN threads but could not find the answer.
    Please help us.
    Thanks in Advace.
    Shreyansh

    Moderator message - Duplicate post locked

  • SAP Query format issue (with ABAP list)

    Hi All,
    I had a requirement to remove all unecessary formatting and text from a SAP query report which can be read by a third party software system. We need only Header line and  report data (spaced by Tab).
    I have removed all formatting from the report and changed the output format from "SAP list viewer" to "ABAP list" .
    The issue is that the report shows material number with 12 digits in output but when we download to file then it adds extra six "0" and makes the Material Number field as 18 digit.
    we have already maintained new length as 12 againts the standard length 18 for material number(under field output option)
    Please suggest how to get rid of extra digits generated during downloading.
    Please help,
    Thanks,
    Rohit

    Hi Brad,
    Currently we execute query with SQ01 and from the output screen the user direclty saves the file as "local file..."
    The output format is "abap list". We are able to get the exact format but the only problem is with material number. I cant make changes in the program. Is there a way to download it without changing the 12 character ( as displayed on the report output)
    Thanks for help.
    Rohit

  • SAP Query Custom Field with ABAP Code

    Hi All,
    I have a custom field in my SAP query which has some ABAP code under it. The code finally writes some value to a variable. My question is do i need to explicitly link the variable in the ABAP code to the custom field OR it's done automatically. For some reason i don't see any value for this custom field. Thanks.

    Thanks Sandra

  • Reg : SAP Query  in LDB

    Hello ,
    I would like to know more about how infosets are used in LDB's.
    I was recently testing a LDB of Hedge Mgmt. i selected seveal param's  and found that the order of fields in the query really makes a  diff. LDB's are very senstive to ordering ?? Can any one give me more info on how Infosets and SAP queries work ?
    Regards,
    Sri

    Hi,
    look here:
    http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb4138455611d189710000e8322d00/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb43b2455611d189710000e8322d00/frameset.htm
    A.
    Message was edited by:
            Andreas Mann

  • Query results varying with unused table in from clause

    Hi all,
    I have table (processing_table2) specified in the FROM clause of SQL query but I havent used any of its value in the SQL statement but it still affects the results of the query. Please help me here as i am clueless.
    Below is the query provided
    SELECT SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)
    FROM revenue_lines crev,
    sales_split cssp,
    processing_table2
    WHERE crev.order_num='7631090072'
    Results of the above query : 344028065018.359
    SELECT
    SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)
    FROM revenue_lines crev,
    sales_split cssp
    WHERE crev.order_num='7631090072'
    Results of the above query :26463697309.1046
    Some one suggest me here pls !!!!

    924804 wrote:
    Hi all,
    I have table (processing_table2) specified in the FROM clause of SQL query but I havent used any of its value in the SQL statement but it still affects the results of the query. Please help me here as i am clueless.
    Below is the query provided
    SELECT SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)
    FROM revenue_lines crev,
    sales_split cssp,
    processing_table2
    WHERE crev.order_num='7631090072'
    Results of the above query : 344028065018.359
    SELECT
    SUM((CREV.sadc_extd*CSSP.redit_pcnt)/100)
    FROM revenue_lines crev,
    sales_split cssp
    WHERE crev.order_num='7631090072'
    Results of the above query :26463697309.1046
    Some one suggest me here pls !!!!CARTESIAN PRODUCT changes result set

  • SAP query. Subtotals with information.

    Goodmorning,
    I hope this is the right forum to post this thread.
    I made a query that shows sales information. When I fill in a customer number and a period, I get a list with all the articles they bought.
    Some articles are more then one time sold in a period. I want the sum of the articles in one row. I made subtotals and then used the option to only show the subtotals. The problem is now that information like specification, brand and type is not visible in the list. How can i include this information?
    Thanks in advance!
    Greetings,
    Thomas

    If you use the Group by clause in your select, the static data (inside the group) can be displayed if you use a grouping function, the most plausible way the min() function.
    Like this:
    SELECT T0.[ItemCode], min(T0.[Dscription]), sum(T0.[Quantity])
    FROM RDR1 T0 GROUP BY T0.[ItemCode]

  • Errors when querying against universe with DBlink tables

    Running XI 3.1
    DB1: MS SQL Server
    DB2: Oracle 11g
    Universe created on DB2 has linked tables from DB1.
    I created a view as Select * from table@DB1
    Using Webi Rich Client: successful query results
    Using Webi Lite: ORA-12154 error: TNS:could not resolve the connect identifier specified
    Using Deski: ORA-01002: fetch out of sequence. ORA-02063: preceding line from DBlink_name
    I've tried numerous array fetch size parameters but Deski still has that error message. Is there a different way to fetch data from a DBLink table? Why no errors when using Webi Rich? when creating universe against DBlink tables
    Thanks

    In our environemnt, we have encountered ORA-4030 and ORA-4031 in the past in one particular windows server. What i remember from that is , a single process in windows will be limited to use 2Gb of memory(irrespective of how much you allocate and how much RAM the server has). All the oracle user and server processes in windows has to get their share from this 2Gb allocated to a single process called oracle.exe. There is some way to extend this 2Gb limit to 3Gb or 4Gb by enabling a switch on some windows config file. You can easily get that by google.
    Check the memory used by oracle.exe in 10g server's task manager.
    Next, you may need to reduce SGA size... to give more room for user processes. You may investigate on these lines.

  • Infoset with sap query

    Hello.
    I would like to ask about using sap query to extract data from table in infoset. Is it possible to write an abap code and get data from certain table? I ask because I do not have any experience in that. Tried to find any examles, but nothing find.
    My question is simple- how to extract data using simple abap program, then creatу an infoset with this query and then how to create attribute list based on infoset?
    Thanks a lot.

    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 SAP Query

    I'm using version 4.7 for a query using SQ02 with 3 table joins. The data is extracted correctly and displayed correctly.
    In the extras --> Code area of this infoset transaction I've added in a FM into END-OF-SELECTION (before list) coding area (along with code in DATA declaration and RECORD PROCESSING) to download the data automatically.
    The code for E-O-S does not get generated. There doesn't seem to be any notes. Does anyone have any suggestions?

    Hi Mark,
    i think code for end-of-selection is only generated, when you use a logical database (<b>ldb</b>) in your infoset
    Andreas

  • 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

  • ABAP Reports and SAP Query

    Hi Experts,
    I have question regarding ABAP Reports, SAP Query, and Transaction with variant.  How are we securing one the above reports that we assign them through pfcg.  We can secure custom program by custom transaction or define the auth group in S_PROGRAM auth object but in this case we have to assign SA38 in production. is that correct?
    Please help me understand difference between the ABAP reports and SAP query. Is the ABAP reports same as Program or they are different.
    Thanks in advance
    Faisal
    Edited by: Faisal on Jun 30, 2009 11:06 PM

    Hi,
    1) End user security (role matrix coordinate with process team)
    This role Matrix design is most important where we can put restrictions and use SoD.
    2) Secure Table (by auth group)
    Table TDDAT and use of transaction se54 for security tables to right auth Groups. Secure s_tabu_dis, s_tabu_cli.
    3) Secure program (as you said ABAP reports are referred to Program)
    Use of table TPGP and program RSCSAUTH for assignment of groups to Program. SA38 Running of SA38 requires a minimum SUBMIT in user Action. A user having SA38 is dangerous as he/she is now enabled to run any report. Hence protection in Auth Group is needed. Verify each and every program is having authority check statement and Auth Group or not before assigning sa38. As you mentioned its best to avoid SA38 and create CUSTOM TXN for each report.
    (We should also SECURE S_DEVELOP in Production properly along with ur points. Please Note).
    4) Secure some batch jobs roles for batch job
    Secure by s_btch* objects and less access to se36.
    5) Create support roles for cutover activity during Go-live
    That is always needed. Go ahead.
    6) Emergency roles & IT roles for support
    This is very much needed as a role of Mitigation and Fire Fighting for Temporary access. Ensure to enable ur audit parameters in RZ10 (rsau* sm20,RSLG* for sm21). Give emergency access but enable audit via sm19 and get audit reports from sm20 and sm21 immediately after the use of emergency access.
    There are also other auth objects we need to be care ful which is a long list and hope every body ensures that (s_cts,a_admi,s_trans, tables ssm_cust, prgn,t000) etc and a host of others. Besh wishes. Let us know if any issue.
    Regards
    Aveek.

Maybe you are looking for

  • Documentation or Blog on using java classes in idm

    Hi all, I am new to this environment. And i would like to know how to use the java methods in rules, and how write java classes for customised purpose. i.e writing the ones using the IDM provided package such as getting users from session cache, and

  • Slow database

    Hi, Suppose if the user reports slowness in the database in a production environment what are all the things which we have to look over and check.please explain me .what are all the dynamic performance views which we have to check .please give me a n

  • Merge address book

    Hi, I have gym member cards in a business card format and I want to merge my address book names to my cards which I have found in Edit >Merge Address Cards, but when I do that it merges one name to the 8 cards on one page, so for 8 names it makes 8 p

  • Programmat​ically fire an event in a subvi

    I have a subvi with an event structure in a while loop. The event I'm interested in is controlled by a boolean. I want to have a boolean in my top level vi fire the event in the subvi. Can this be done? I have attached an example. Attachments: exampl

  • Having trouble with xml package in "Building Oracle Xml Applications"

    I have modified the xml package found in Building Oracle XML Applications chapter 5 to exclude everything but the CLOB function, see Package below. When compiling the package body I am getting the following error. SQL> @xml_body 35 / Warning: Package