Defining Query with SAP Query

HI All,
1..While creating an SAP Query, I have selected the field groups, then fields, selected basic list, entered the sequence, etc and then also enetered alternate text for control level. When i execute the report, the error message displayed is 'no data selected'. How can i rectify this issue?
2. I would also like to add the field 'Deductions' under field group 'Payroll Results'.
Thanks and Regards,
AM_BLR

Using the messaging service in the b1 i achieve this
SAPbobsCOM.CompanyService oCmpSrv;
MessagesService oMessageService;
Message oMessage;
MessageDataColumns pMessageDataColumns;
MessageDataColumn pMessageDataColumn;
MessageDataLines oLines;
MessageDataLine oLine;
RecipientCollection oRecipientCollection;
oCmpSrv = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService();
oMessageService = (MessagesService)oCmpSrv.GetBusinessService(ServiceTypes.MessagesService);
oMessage = (Message)oMessageService.GetDataInterface(MessagesServiceDataInterfaces.msdiMessage);
oMessage.Subject = "My Subject";
oMessage.Text = "My Text";
oRecipientCollection = oMessage.RecipientCollection;
oRecipientCollection.Add();
oRecipientCollection.Item(0).SendInternal = BoYesNoEnum.tYES;
oRecipientCollection.Item(0).UserCode = "test";
pMessageDataColumns = oMessage.MessageDataColumns;
pMessageDataColumn = pMessageDataColumns.Add();
pMessageDataColumn.ColumnName = "My Column Name";
oLines = pMessageDataColumn.MessageDataLines;
oLine = oLines.Add();
oLine.Value = "My Value";
oMessageService.SendMessage(oMessage);

Similar Messages

  • One more Problem with SAP query

    Hi All,
    I am having a problem with SAP query
    Execution of SAP query transaction is leading to Dump
    the dump says Field 'R01' contains no fields, syntax check on the program shows same error.
    When I tried regenerating the Query in SQ01
    " Query Specification cannot be use to generate list
    Ranked list contains only numeric fields
    Please help me

    Gianpiero Bucchieri wrote:
    > So its important to listening the following tables too: Faktura (invoice), Partner Role, Partnernumber and the requierements number. The table are EKKO EKPO AND VRKPA OR vbkd, but if I join this table the query doesn't listining any results. If I cancel this 3 or 4 table and I start the query, the listening are ok. 
    >
    I am not sure what business process you are describing here - is it some kind of third-party sales order? If so, your join is wrong.
    From VB E P, firled BANFN and BNFPO you can go to table EBAN, where in field EBELN you will find the number of the purchase order (if somebody already had an MRP+Me58 run over the PR) which will lead you to table EKKO, and EKPO.
    So what we have here (essentially is):
    VBAK -> VBAP -> VBEP -> EBAN -> EKKO -> EKPO
    But that only solves one of your problems - you still have a long way to go to get invoices, partner and partner roles into there and I am beginning to ask myself what exactly it is you want to evaluate.
    Care to explain?
    Edited by: Mylène Dorias on Apr 1, 2010 2:10 PM

  • Adhoc Query Vs SAP query

    Hi friends,
    Is there any difference between Adhoc query and SAP query.

    ADHOC QUERY:-
    Web item that enables you to create and change ad hoc queries in a Web application. You can use the Web item Ad-hoc Query Designer in the Web Application Designer to design Web applications in which you can create or change queries.
    SAP QUERY:-
    A tool that allows users who have no knowledge of the ABAP programming language to define and execute their own reports.
    To determine the structure of reports in SAP Query, you just have to enter texts, and select fields and options. If necessary, you can edit lists using Drag&Drop and the functions in the available toolbars.
    bye
    Naveen

  • Is it possible to update a query with another query?

    I'm trying to update a query with another query (see attached
    code). Here's my setup: I've got a table in an Access database in
    which I enter a string into a form and update. This string
    corresponds to a single record in another table of the same
    datasource. The first table has only one record to provide the
    second, which has many and will have more. Basically what I'm
    wondering is: Is this a valid thing to do in coldfusion? If not
    please help with an alterate method. I'm still a novice at
    coldfusion.
    The overall effect I'm going for is to display the one record
    as a featured truck profile on the web site:
    www.truckerstoystore.net.
    I currently get an error when I try to display the page with the
    current query setup.
    Check this page to see the error:
    www.truckerstoystore.net/currentTOW2.cfm
    Help on this issue is very much appreciated.
    ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------

    I think this is what you are after
    <!--- this query will get all the records from the DB
    --->
    <cfquery name="cTOW" datasource="tow">
    SELECT *
    FROM currentTOW
    <!--- Do you need to find a particular record in the
    database --->
    <!--- If so, then you need a 'where' clause in here
    --->
    </cfquery>
    <!-- Loop the cTOW query for each record returned -->
    <cfloop query="cTOW">
    <!--- For the record returned from the cTOW query you now
    need to update the table --->
    <!-- Update the table -->
    <cfquery name="currentTOW" datasource="tow">
    UPDATE Your tblName
    SET
    Dataname = cTOW.DataValue
    </cfquery>
    </cfloop>
    thats it
    PS: I think your original query needs modifying. To return
    the exact records that you want to update from the original table.
    ie: Primary and foreign key relationship

  • Ad hoc query and Sap query

    Hi all
    What are Ad hod query and sap query? Why we use these two?
    thanks and regards
    Seenu

    in order to get the reports as per the client requiremnt
    we use the queries
    and the the data from these queries will be taken form PNP logical data based tables
    EX: in the standrad report for Absences
    the client may ask for
    PERNR   NAME    position   Department  Absence type start date Endate
    in the standrad report u can get the PERNR and Absence type and start date and end date
    but u cannot get position and department
    so we use  Queries we select the feidls from various reports and get a farmot as per the client reqiremnt
    Check SQ01  02  03 tcoeds
    u can alsoc check SQVI

  • Autorization issue with SAP Query and RPTQTA10

    Dear all,
    I am having some difficulties with autorisations in SAP Query and Report RPTQTA10.
    in IT2006 I have a subtype 03 which should not be accessible for a group of users.
    Also I have created a test employee with a sybtype of IT2006 which is allowd and one which is not allowed.
    When I run some reports with that user I get a nice result with PT50. Only the allowed subtypes are being displayed.
    When I try to run A SAP Query or report PRTQTA10, the employee is not visible and seems to end op in an error list.
    Can someone shed some light on this issue?
    Kind regards,
    Patrick

    Hallo,
    Follow like this...
    Role 1:-
    authorization level: R, W  (You should not give W, R. You should give either W or M, R, Any way it will not create any problem)
    Infotype: 2006 -Ok
    Pers area: * -Ok
    Emp group: * -Ok
    Emp sub group: * -Ok
    profile: ALL*, ZBHR_OS etc etc -Ok
    Subtype: 01, 02 - Keep only sub type 01, 02
    fuction group: * -Ok
    Role 2:-
    authorization level: R, W  (You should not give W, R. You should give either W or M, R, Any way it will not create any problem)
    Infotype: 2006 -Ok
    Pers area: * -Ok
    Emp group: * -Ok
    Emp sub group: * -Ok
    profile: ALL*, ZBHR_OS etc etc -Ok
    Subtype: 03 - Keep only sub type 03
    fuction group: * -Ok
    Then user who want only sub type 01 & 02 then assign role 1 and he will not have access to sub type 03
    User who want only sub type 03 access, then assign role 2 only so that he will not have access to sub type 01 & 01
    User who want sub type 01, 02 & 03 access, gibe Role 1 & Role 2
    Hope it clarifies.
    Regards,
    Purnima

  • Join SAP BW Query with SAP BW Table

    Hello guys,
    we would´need to join a SAP BW Query with information of an SAP BW Table like it is explained in the following example:
    The result of the query is:
    ID         Quantity    Revenue
    4711    10              20
    4713    20              40
    4714    30              30
    The table will look like this:
    ID         Category
    4711    A
    4712    B
    4713    C
    4714    A
    The result should be:
    ID        Category    Quantity    Revenue
    4711    A               10              20
    4713    C               20              40
    4714    A               30              30
    We would like to use the current SAP Business Objects 4.0 or 3.1 environment.
    Is it possible to join these data sources in the universe Designer or in Crystal reports?
    Regards,
    Markus

    Hello Markus,
    the Information Design Tool is able to create a relational Universe on top of InfoProvider which will show the tables from the cube, but the Information Design Tool in the current release is not able to show the tables from the ERP system.
    regards
    Ingo Hilgefort

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

  • Filter query with sub query using Dropdown box

    Dear Community,
    I have 2 queries
    1. Main Query with 2 fields:  Project | Project value
    2. Sub Query with 2 fields:  Project group | Project
    Project group can be belonging to number of projects and project can be belong to number of project group (Many to Many).
    My customer wants the main query will open without any filtering.
    When I choose project group from WAD dropdown box, the main query will filtering all the projects that belong to the project group.
    I create WAD; define dropdown box as sub query, and Analysis as main query.
    In the dropdown box I choose "data binding" char and create command "set selection state by binding" (project to project) but it doesnu2019t work. 
    I also try to do this by Replacement Path in the main query, but the variable requires the attribute will be ready for input.
    Thanks a lot
    Yaniv

    I am not sure about your comments on replacement path variable. Without having tried it, here is what I would have attempted:
    The main query needs to use a replacement path variable for Project that is replaced by the results of the sub-query. Sub-query would have a regular input variable for project group. (as a quick test, if you had one analysis item for main query with variable input enabled, it should prompt you to enter Project group).
    Now the drop-down needs to be associated with a javascript function. The javascript function needs to implement command "Set variable state" for the main query data provider to selected value of the drop-down.
    The drop-down should be associated with the sub-query data provider, just used to populate the list of values in drop-down.

  • What is Abap Query and SAP query

    hi
    i don;t know about ABAP and SAP query . what is the different between ABAP and SAP query.. if any example is there please tell me
    thanks
    pauldharma

    Hi Dharma,
    chk these links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
    http://jelajahsap.wordpress.com/2008/01/07/an-example-of-abap-query/
    Thanks,
    Keerthi

  • RSBBS: Jump From BW Query to SAP Query

    Hi
    I have a cost center analysis report in BW which has an option to jump to R/3. When I type the transaction RSBBS and give the name of the query, the Receiver application is 'QU' (Sap Query) and the receiver object is 'GZ_BW_INTGRTYZISQ_CCA_Q01' which I am presuming is the query to which the Cost Center analysis report in BW is jumping to.
    How do I view this SAP query and if necessary change it. I have tried tcodes SQ01, SQ02, SQ03 and none of these recognise the above mentioned receiver object
    Kindly advise.
    Regards
    Sheily

    the best way to figure out is to ask ur functional guy the Tcode to get there. it could be anything.

  • Issue with SAP query

    Hi experts,
    I not able to download the user group , infoset and query through standard program RSAQR3TR, even though the user group, infoset and query exists.
    i. e with download option in RSAQR3TR prgram.
    so, can u please guide what exactly might be the problem .
    or is there any other way to download the user group, infoset and query.

    Did you create transaction for query or did you create transaction for the program generated by the query?
    For queries the programs are dynamically generated in every system/client when they are transported. So the program name would be different in each system even though the query infosets etc are same.
    What you have to do is create a parameter transaction (for query).
    In the screen of SE93 give the following informations
    Transaction will be -  START_REPORT                                  
    Down at the bottom define the following parameters as per your Query/infoset
    D_SREPOVARI-REPORTTYPE     AQ (for abap query)
    D_SREPOVARI-REPORT     Z_abap_qryname
    D_SREPOVARI-VARIANT     a_any_variable_for_report
    Hope this helps.
    <removed_by_moderator>
    FY
    Edited by: Julius Bussche on Aug 26, 2008 11:41 AM

  • Problem with SAP Query

    Hi,
    In my Query The Outputs are <b>user ame, role and role discription</b>
    for one language we are having 10 lines of role discriptions .but i need only one role discription to my output for this what i need to do?

    Dear Ferdinando,
    Visit the following link for information on Transport of Queries:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4699455611d189710000e8322d00/content.htm
    http://www.sap-img.com/basis/transport-of-abap-query.htm
    Reward points if this is helpful.
    Regards,
    Naveen.

  • Help with query with sub query

    hi
    I am trying to run the following query and it returns an error as follows:
    ORA 00904: ST_ENROLLMENT.absence_reason_code: invalid SQL identfiier.
    the code is as follows:
    SELECT
            ST_ENROLLMENT.student_id,
            last_name,
            first_name,
            date_of_birth,
            grade_level AS grade,
            gender AS GnDr,
            home_phone_number,
            absence_reason_code
            FROM ST_ENROLLMENT,CE_FAMILY_MEMBER, CE_FAMILY, AT_HOURLY_ATTENDANCE_RECORDS,
           (SELECT
                        COUNT(attendance_status) AS "ConsecutiveDaysAbsent"
                        FROM AT_HOURLY_ATTENDANCE_RECORDS, ST_ENROLLMENT
                     WHERE AT_HOURLY_ATTENDANCE_RECORDS.student_id = ST_ENROLLMENT.student_id
           AND  AT_HOURLY_ATTENDANCE_RECORDS.school_id = ST_ENROLLMENT.school_id
           AND AT_HOURLY_ATTENDANCE_RECORDS.school_year = ST_ENROLLMENT.school_year
           AND ST_ENROLLMENT.district_number = AT_HOURLY_ATTENDANCE_RECORDS.district_number
           AND AT_HOURLY_ATTENDANCE_RECORDS.track_number = ST_ENROLLMENT.track_number
           AND AT_HOURLY_ATTENDANCE_RECORDS.absence_reason_code = ST_ENROLLMENT.absence_reason_code
           AND AT_HOURLY_ATTENDANCE_RECORDS.student_id = ST_ENROLLMENT.student_id); thanks in advance. I appreciate everybody for their help

    To avoid a cartesian product, you need to join the tables which are into the from clause. For this, you need to know the column which must be joined.
    If I take, for example, some tables from the very know basic schema scott, and I would like the name of emp and the name of dept for each emp, I will join emp table dept table on a common column.
    SCOTT@demo102> desc emp
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO NUMBER(2)
    SCOTT@demo102> desc dept
    Name                                      Null?    Type
    DEPTNO NOT NULL NUMBER(2)
    DNAME                                              VARCHAR2(14)
    LOC                                                VARCHAR2(13)
    SCOTT@demo102> select emp.ename, dept.dname
      2  from emp, dept
      3  where emp.deptno=dept.deptno;
    ENAME      DNAME
    CLARK      ACCOUNTING
    KING       ACCOUNTING
    MILLER     ACCOUNTING
    JONES      RESEARCH
    FORD       RESEARCH
    ADAMS      RESEARCH
    SMITH      RESEARCH
    SCOTT      RESEARCH
    WARD       SALES
    TURNER     SALES
    ALLEN      SALES
    ENAME      DNAME
    JAMES      SALES
    BLAKE      SALES
    MARTIN     SALES
    14 rows selected.
    SCOTT@demo102> HTH,
    Nicolas.

  • Sap Query sq01: how to combine substrings in complex calculations

    I made a query with sap query. I made 1 local field: name1. I have 2 fields firstname and lastname and a field named class.
    In the complex calculations screen I made the following calculation for that field:
    Condition: CLASS='1'
    Formula: firstname' 'lastname
    When I try to run this query I get an Abap error saying "unable to interpret [firstname] as a number". It looks like the + expression can only be used here for numeric calculations.
    Does anyone know how to solve this?
    Edited by: J S on Jan 27, 2009 11:52 AM

    Hi,
    i think its better to concatenate in the infoset code section.... you create a local filed in infoset of type char and then write the concatenate statement of abap and keep first name and last name in the local field .... write this code in the record processing section and take this local filed and display it in the  query i think this clears you ..
    by the way if you still want any information let me know

Maybe you are looking for

  • Hp officejet pro 8610 prints solid black on scanned pdf and word doc pictures

    -HP Officejet Pro 8610 -problem printing scanned pdf document and word doc. photos -My new HP Officejet Pro 8610 printed a newly scanned pdf document as an all black picture. I then printed a saved word documtent from my iMac which included a small p

  • Problem with creation of Order template

    Hi Experts, We are facing an issue with ISA 4.0. B2B application. The extension data is not getting updated in CRM 4.0 while creating Order template. The same extension data is getting updated for Order template change process. Also same extension da

  • Connecting to multiple Airport Express base stations at the same time?

    I want to be able to use wireless internet and stream music to my stereo at the same time, but I only have a single internet connection behind my stereo and it's connected to the Pay TV. My options seem to be getting a new line installed behind the s

  • Has anyone tried running Logic Pro X with a RAM disk?

    I Have been reading about the possible benefits of using a Ramdisk (created in terminal, or as a startup AppleScript). Would I see any benefits running LPX straight from RAM? I realize that I would have to save periodically to alternate locations on

  • Highlight tool, typewriter tool, etc. disappeared + gone from menu

    I installed Acrobat 9.5.5 Pro as part of the CS4 Suite several years ago.  I'm a casual user of Acrobat 9 Pro.  I have used the Highlight tool and Typewriter tool on many documents over the years.  Many that I have saved on my computer.  They have re