Adding additional contraints on a query.

I have a normal datablock containing a 'description' field. I'd like to run a query on the same block but using an 'in description' parameter. Is it possible to change the default query for the block to something else containing this extra parameter?
Oliver White

It sure is possible to set any kind of where clause.
On a when-button-pressed trigger you may have somthing like this:
declare
strwhere varchar2(1000);
begin
str_where:='descriptor like '| |''''| |
:filter_block.descr_cond| |'%'| |'''';
-- eventually you may add whatever conditions you need
str_where:=str_where| |' and ...'
set_block_property('your_block', default_where, str_where);
go_block('your_block');
execute_query;
end;

Similar Messages

  • Adding additional fields in Sql Query (SQ01)

    Hi..
    please tell me all the steps to use additional fields option in  sap query (transaction code: SQ01)? can i use mandt field as additional field?
    Thanks and Regards
    Sri.

    Hi,
    You can add it in infoset using extra button.
    Here you can add the filed and the respective code for this field and add this in SQ01 in oytput list.
    Thanks
    Ajay

  • Adding additional fields to Existing query

    Hi all,
    There is an existing query in our system and now the requirement is to add and insert few fields to the existing fields of output of that query.
    Please let me know step by step procedure to achieve this.
    Thanks in advance-

    It depends upon the type of Query you have.   Is it a Quick View, an ABAP Query, or are you trying to make changes to an ABAP Report?

  • Additional fields in SAP Query

    Hi ,
    We have a requirement in HR reporting wherein we are providing the late attendance records of the employees. That is the person is scheduled to come at a respective time but he comes in late and this record is created in attendence infotype . Now we need to see the variance in his planned and actual arrival . Majorly all the fields are availabe in the Infosets but the one with the variance is not there . So do we need to create a custom report for the same or it can be handled in the SAP query adding one field for calculation. If it can be handled , how can that be possible .
    Thanks & Regards

    Please check this link:
    Re: query report
    I guess, it can help for your case too...
    Even this:
    Re: sap query infoset and fieldgroup
    Re: Additional field in SAP Query
    Kind Regards
    Eswar

  • Text of additional fields on SAP query show blank

    Hi All,
    I'm encountered a problem when text of additional fields on SAP query is not working and it's show blank after HRSP is implemented.
    SAP_ABA : Rel. 701 Lvl. 3
    SAP_BASIS: Rel. 701 Lvl. 3
    SAP_HR: Rel. 604 Lvl. 8
    Below are the config that we have done before HRSP in table: TEXC_FLD_C and it's work perfectly.
    Table Name: P0000_AF
    Field Name: ZZAPPRATING
    Function Module: ZHRGYYFMPA_PDRATING_TEXT
    Exception Priority: 1
    Object Type Name: CL_HR_TEXT_IDENTIFIER
    During debugging, we found that program (Form: %_GET_PERAS) is retrieve text of additional fields based on structure P0000_AF. At this point, text of fields are successfully take place and filled. However, program try to retrieve the text based on structure P0000 again right after that. Due to additional fields are added on P0000_AF not P0000 and no ZZAPPRATING field found in P0000, hence program has cleared the text which filled in previously. This give the result, text is blank.
    Please advise, how should I get this resolved.
    Thank you very much.
    Best Regards,

    Please check this link:
    Re: query report
    I guess, it can help for your case too...
    Even this:
    Re: sap query infoset and fieldgroup
    Re: Additional field in SAP Query
    Kind Regards
    Eswar

  • Added additional user. How do I configure password for this user?

    Have two different accounts. Second accound added but don't understand how to cinfigure password for this account.

    A bit confused by your query, so can you clarify a few points.
    re: added additional user
    You do not add additional users to Thunderbird, so I presume you mean you have tried to create another mail account for someone else in your own profile.
    You do not configure passwords for other peoples email addresses as that would be a privacy issue and only they should do it.
    Lets start at the begining.
    If more than one person is using a computer, they should have their own User Account which they access via a password they choose. This gives them their own desktop view and access to programs installed on computer, such as Thunderbird.
    Thunderbird will be available for them to use.
    When you run it for the first time in their User Account, it will create a Profile in their User Account.
    Thunderbird will also then ask you to create a mail account in that Profile.
    The details you enter will ask for Name. email address and a password.
    That password is the same password they use to access their email in their webmail account using a browser, so only they should know that password and they should not divulge it to anyone - however in some cases, eg: spouses, they may know each others password.
    You can choose whether Thunderbird remembers the password or not before creating the account, but the password would still be required to configure the mail account.
    This method means that no one can see that persons emails nor access their password details because they do not know the password to the computer User Account.
    If you have only the one admin User Account which several people use, then anyone has access to anything on that computer. This may be fine if eg; spouses share the computer, but it is not a practise that should be used in any other environment.
    If you have mail accounts created in the same Thunderbird profile, then all mail and passwords are freely available for anyone to see and this may not be desired.
    Some people use only the one User Account, but they have their own Profile created in Thunderbird.
    When Thunderbird was initially run, it created a defult Profile, but you can add additional Profiles using the Profile Manager.
    The mail account is created in that Profile and then they can apply a Master Password in Thunderbird.
    This means that anyone can still see anyone's emails as on startup as anyone can select any Profile.
    But, the access to passwords is locked and removal of Master Password will remove all stored paswords to safe guard privacy.
    Some info on Master Passwords:
    * http://kb.mozillazine.org/Master_password
    Some info on creating additional Profiles using Profile Manager:
    * http://kb.mozillazine.org/Profile_Manager

  • Hi Guys,  I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out

    Hi Guys,
    I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
    Alex

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Populating Additional Field in InfoSet Query

    Hello,
    My team and I are working on generating a relatively simple report from the VBAK (Sales Header), VBAP (Sales Items) and VEDA (Date data) tables.  We would prefer to be able to build an InfoSet (SQ02) and Query (SQ01) instead of writing a custom report.
    The problem is the VEDA table contains data that may link to the VBAK and sometimes the VBAP table.  The usage is that the header has begin and end dates for a contract, which is denoted by a blank value in POSNR field in the VEDA table.  If a particular line on a contract has different dates than the header, there will be an additional record in the VEDA table where the POSNR value matches the POSNR value from the VBAP (Item) record.
    The link to the VBAP table is straight forward being keyed off of the VBELN (doc number) and the POSNR (item number) fields in both tables.  However, there's isn't a POSNR field in the VBAK (header) table and the VEDA table shows this as a blank value in the POSNR field.
    The simplest thing I can think of doing is link the VEDA table to the VBAP and let it retrieve all the exact matches on Sales Doc & Item Number but add two "Additional Fields" to the Query that would represent the Sales Header begin and end dates.
    I know how to add an additional field but how would you "re-query" the VEDA table and under which option under the Code tab.
    Thanks

    Hi Alex
    Please see if below example helps you to understand:
    Supposing, we are displaying material description within our query.
    1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
    2. We create feild groups to identify the fiels we use for selection and display.
    3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
    4. To make it applicable for different languages we can code in INITIALIZATION Event.
    5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
    i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
    ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
    6. Save & Generate.
    Now when we execute the query, we are defaulting the language as System Language.
    Hope the above info helps you for better understanding.
    Kind Regards
    Eswar

  • Multiple Value in additional fields using SAP Query

    HI All,
    I have a question related additional field in SAP Query. I tried to create report about PR and PO using SAP Query. Since one PR can be converted to multiple PO, I decided to create additional field
    po_1
    to display the value of PO that related to the PR. But I meet problem when I want to show several PO number in additional field
    po_1
    , I couldn't look the way to solve this problem. Can anybody help me? Just for info, I assign value to additional field
    po_1
    in record processing part.
    Thanks....

    HI,
    IN SQ02, IF table is already in JOIN, just click on the PLUS sign to expand the strcture.
    All the field showing Plus sign in the strcture are selected in your query and with MINUS sing are no selected.
    So you have to just click on the MINUS sign for the field you want to use through table field.
    Generate the query and execute thriugh SQ01.
    If you want to add some other field which is not a part of JOIN,
    then click on EXTRAS Button shown in the MENU option.
    Click on Create button and system will ask abt the additional field.
    Regds,
    Anil

  • Adding additional j2ee node

    Hello,
    we are running BI 7 - abap+java stacks with 16 GB ram (recently added)
    i would like to know what is the thumb rule for adding additional j2ee node?
    when is it neccassary to add additional j2ee node?
    Regards,
    Moshe

    Hi,
    The JLaunch starts a Java program. It loads the JVM into its own address space and then represents the required cluster element. The program can receive notification from the JControl process via named pipes to stop the cluster element, and terminates, if the JControl stops running (fork emulation under Windows).
    So Jlaunch consuming high CPU time means that server, dispatcher or bootstrap process consume it. If there are not enough system or application threads avaliable means that the engine must buffering requests for web application or system processes. Things to check in this case are:
    SAP NOTE 1016241 - J2EE Engine hangs because of unsufficient system threads
    SAP note: 716604  and upgrade JDK.
    SAP note: 723909 -> set correct VM parameters
    and if issue persists, then you will need to analyse the application causing teh leak...
    SAP note: 1259465: Memory analyser.
    Regards,
    Hemanth

  • How to write Additional Logic IN SAP Query

    Hi All,
    I need to Add 1 more field in Query.
    How to Write a Logic in Infoset?
    For Ex : Need to add age field in the output.
    Thanks
    Partha.

    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]

  • Adding Additional Columns in LOV,That column capturing values from function

    My requirement:
    Adding Additional Columns in LOV,That column values capturing values returned by function.....
    Give me the ides to achieve this...

    Hi Subramaniam,
    If your requirement is to call a Database function then please make use of the below code ,
    import java.sql.CallableStatement;
    import java.sql.SQLException;
    import oracle.apps.fnd.framework.server.OADBTransactionImpl;
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    OADBTransactionImpl txn = (OADBTransactionImpl)oaapplicationmodule.getOADBTransaction();
    CallableStatement cs = txn.createCallableStatement ("begin :1 := xxpackageName.xxfunctionname(:2,:3); end;",-1);//Replace your function Name
    try
    cs.registerOutParameter(1, Types.VARCHAR);
    cs.setString(2,InputParam1); // InputParam1 is the name of variable captured from the OAF page and passed into function as input parameter
    cs.setString(3,InputParam2); //InputParam2 is the name of variable captured from the OAF page and passed into function as input parameter
    String outParamValue = null; // outParamValue will capture the value returned by function .
    cs.execute();
    outParamValue = cs.getString(1);
    catch(SQLException sqle)
    throw new RuntimeException(sqle);
    finally
    cs.close();
    Let me know if its not clear .
    Keerthi
    Edited by: keerthioaf on Nov 23, 2012 5:17 AM

  • FBL5N : Adding additional field PERNR  to layout

    Hi experts,
    I had added additional field PERNR - personnel number in FBL5N layout for displaying in output.
    I had added pernr- personnel number by following the path
    SPRO -> Financial accounting ( new ) -> accounts receivable and accounts payable-> customer accounts ->line items -> display line items -> define additional fields for line item dispaly
    here i added bseg - pernr
    after adding , in FBL5N layout the field is appearing , but it is displaying blank in output  .
    Is there any thing needs to be done to display additional field in output of FBL5N.
    kindly give me any suggestions.
    thanks & tregards,
    Raghul
    Edited by: Raghul Gandhi on Mar 23, 2010 9:30 AM

    Hi,
    FBL5N: customer line item display.
    BSEG-PERNR: personnel number.
    Under which circumstances should BSEG-PERNR contain a value if you create customer related postings?
    If there is no personnel number given during posting (why should it?)  the field added to the FBL5N-layout will be empty.
    Best regards, Christian

  • Adding additional tables to the extractor configuration

    Hi Experts,
    Can you please help me adding additional tables to the SAP extractor and to configure the field data in the orgstructure to show a flag against the position.
    Luke - I have tried using the option said by you from Application-wide Settings-->Data Centre --> Read SAP Table, it has properly save the added table, but not able to see it from SAP extractor configruation and not able to extract any data. Also, can you please guide me how to use the fields from this table (HRP1010) to write a small piece of logic to show a flag for a particualr position based on data.
    Thanks in advance,
    Purandhar

    Hi Purandhar,
    I have tried using the option said by you from Application-wide Settings-->Data Centre
    --> Read SAP Table, it has properly save the added table, but not able to see it from
    SAP extractor configruation and not able to extract any data.
    This has probably added a data element - I would check in the dataelementconfiguration folder in your build's .delta folder. IF so then you have the first step completed. Now you need to add the necessary configurations to use the data that comes through this data element.
    Go to your orgchart/hierarchy and navigate to Views. Here select your view (or your first view if this needs to be done for more than one view - if so you'll need to repeate these steps but not the step you already did in the Data Centre), and then click the + icon next to Design Details. Here you can add a new linked detail to your view detail. Simply give it a name, select the detail to link it to (usually the top level detail which is in blue), select a link field and then select your data element that was created in the Data Centre.
    Now if you try to add a section to your view inside the Design Details view designer you will see your new detail added. You can then select it and add fields from this detail.
    Also, can you please guide me how to use the fields from this table (HRP1010) to write
    a small piece of logic to show a flag for a particualr position based on data.
    Once you have been able to add the data in the views designer you will probably need to do some XML and XSL editing because you cannot edit XSL files in the AdminConsole and you will need to do this to get your icon/flag to show.
    First of all you need to create a new XSL file and put it into a folder in your .delta\root folder. For example, My_XSL_files. Here you need to write the code to render your flag based on your variable. You can find plenty of examples in all of the pre-existing XSL files. Then you need to copy PresentationResources.xml to .delta\root\XML and add the reference to your new XSL file.
    Go to your build's .delta folder and go to detailconfiguration. Find the detail you just created and open it. You'll find a section in their that you just added with a reference to an XSL file (e.g. if you added a Simple Caption section it will probably be something like SimpleCaptionXSL). Change this to the reference in the PresentationResources.xml.
    Load your build in the AdminConsole and hit Publish. Once done you should see your icon. Sometimes if your XSL is invalid or the code doesn't work you won't see anything. This is not unusual as the whole process can be quite tricky - even for us with lots of experience!
    Good luck!
    Luke

  • Adding additional sld

    Hello,
    we have 1 sld  - configured on the portal dev -
    i would like to add additional sld - configure it on the portal production - all the production systems will be added to this sld, and all the qa and dev systems will remain on the sld opn the portal dev
    what are the specific pahses in adding additional sld , updating it if neccasary, and moving the relevent systems
    Regards,
    Moshe

    Hi
    The task could be done like this:
    1) Activate the SLD in the EP prod and configure post-processing accord. to SLD guide
    2) Ensure that the DEV-SLD and new PRD-SLD has the same CIM model version and SAP_CR version
    3) Export the content from DEV-SLD (export line ALL)
    4) Import this export into PRD-SLD
    5) Configure all production systems "SLD data provider" to send technical data to PRD-SLD
    6) Configure all production systems "SLD client role" to work with PRD-SLD
    ...now the DEV-SLD will only get technical data from the non-productions systems. If you want both SLD's to have a full view of alle systems then ALL systems could use PRD-SLD as target for their data suppliers and a sync from PRD-SLD to DEV-SLD can be set up... You maybe also need to supplement this strategy with manuel export/import of SLD content.
    BR
    Tom Bo

Maybe you are looking for

  • Messaging tracking logs filename format changed in Exchange Server 2013 sp1

    Hi, I have noticed that the file name format is changed for exchange server 2013 sp1. Now it will have hh attached to it like MSGTRKMSyyyymmddhh-n.log; MSGTRKMDyyyymmddhh-n.log: MSGTRKyyyymmddhh-n.log. So the "hh" will goes from 00 to 23 for single d

  • Iphone randomly clicks on stuff for no reason

    My iphone goes randomly clicking on stuff for no reason, it only stops if you turn it off then back on then starts doing it again the phone is only 1 week old went to Telstra store in Gawler SA and they said i needed a virus protection on it.  Since

  • Problems when network drive is not available

    Hi everyone, I have a laptop (MacBook Pro OSX10.9.5), which shares a network drive in my office. The drive is with a different computer. When I take the laptop out of the office network (to a meeting or home), InDesign will not open, it gives me the

  • "Test-CsPstnOutboundCall " giving 500 internal server error

    Hi , we are facing issue with audio calls, i tried to test the outbound calls by running Test-CsPstnOutboundCall command but it is also giving the same error like in the monitoring report. Error messageP: 500, Internal server error Diagnosis: Error C

  • XML-Driven GUI Generation

    Dear experts, I need to write a generic GUI generation (either use swing or AWT) application. The GUI will be defined in a XML file, e.g. button text and position, textbox length, etc. Before jumping in and start coding, I am just checking to see if