Condition equivalent for where field in collection?

Hi there,
i have to translate the following sql-condition to a bone-condition:
select * from (OCRD) where 'Value' in ('Value', 'Value1', 'Value2')
Is that possible? If yes... how?
Kind Regards

Hi Thomas,
Yes, it possible.
Here's a sample
Dim oRS As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(BoRecordSet)
oRS.DoQuery("SELECT ItemCode FROM OITM")
If oRS.RecordCount > 0 Then
     oConds = New SAPbouiCOM.Conditions
     While Not oRS.EoF
          oCond = oConds.Add
          oCond.Alias = "Code"
          oCond.Operation = BoConditionOperation.co_EQUAL
          oCond.CondVal = oRS.Fields.Item(0).Value.ToString.Trim
          oRS.MoveNext()
          If Not oRS.EoF Then oCond.Relationship = BoConditionRelationship.cr_OR
     End While
End If
Regards,
Vítor Vieira

Similar Messages

  • Conditional formating for calculated fields

    Hi,
    What i need to do is apply a diferent format for some itens on the reports.
    I have some fields that are calculated in the script logic, so in the excel report it is shown as any other field where you can type the value, but that value gets overiten once the script logic takes place.
    So what i need to do is add a new collum at the dimention for example "CALCULATED" and when it's set to Y the field would be shown in the form with a diferent formula.
    And further on, add automtic comment to that cell, showing how that field is calculated.
    Thanks in advance
    Leandro Brasil

    Hey all,
    the CALC property in BPC refers only to hierarchie nodes. If you wanna highlight calculated nodes, this will be the solution for you. But, if you wanna highlight values in your report, which are calculated by a script logic and which are not necessarily hierarchie nodes, you'll have to add another property different from CALC in your dimension and flag the calculated values.
    If you're done, you can refer to this property in your format range.
    Example:
    Dimension - Property - Value: ACCOUNT - SCRIPTCALC - 1
    Formatrange - Criteria: ACCOUNT.SCRIPTCALC = 1
    Have a nice day!
    Karsten

  • Configuring Kodo default implementation for field of Collection type

    If I am not mistaken default implementation for field of Collection type in
    Kodo is
    LinkedList based proxy. It would be great if it were possible to configure
    Kodo to use a proxy of my choosing
    I did some tests and it seems to me that ArrayList is much more efficient
    than Linked list (see below)
    Is there any specific reason I am not aware of that makes LinkedList better
    than array list
    In my applications all collections a relatively small (or at least most of
    my collections are definitely small)
    and since I use Collection interface there is no inserts into middle of my
    collections - only appends (which ArrayList handles very well)
    So my question is can I make Kodo to use ArrayListProxy for fields of
    Collection type
    (except of course using ArrayList field instead of Collection which I do not
    want to do)
    below is some statistics on collection performance (populating and iterating
    collections)
    the same test against 3 collections implementations (JDK 1.4.1)
    Not only ArrayList by far the fastest and memory friendly it also garbage
    collected much sooner and better -
    I show here max memory consumption and last to would not be garbage
    collected till all memory is in use (old generation GC)
    and ArrayList seems to be collected by young gen GC because it was collected
    very quickly between test cycles why other only when all memory was used
    So please make ArrayList your default collection implementation :-)
    Small collection size (40)
    time(ms) memory(kb)
    ArrayList 5,218 62,154
    LinkedList 14,125 240,066
    HashSet 27,000 311,825
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 8937, 53591
    LinkedList 15047, 240066
    Larger collection size (200)
    ArrayList 4860, 47709
    LinkedList 18468, 290704
    HashSet 34391, 422282
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 11844, 47709
    LinkedList 25766, 290704

    You should be able to accomplish this fairly easily by extending
    SimpleProxyManager:
    http://solarmetric.com/Software/Documentation/2.4.3/docs/javadoc/com/solarmetric/kodo/util/SimpleProxyManager.html
    and overriding the appropriate methods (getCollectionCopy and
    getCollectionProxy).
    On Mon, 12 May 2003 12:26:21 -0400, Alex Roytman wrote:
    If I am not mistaken default implementation for field of Collection type in
    Kodo is
    LinkedList based proxy. It would be great if it were possible to configure
    Kodo to use a proxy of my choosing
    I did some tests and it seems to me that ArrayList is much more efficient
    than Linked list (see below)
    Is there any specific reason I am not aware of that makes LinkedList better
    than array list
    In my applications all collections a relatively small (or at least most of
    my collections are definitely small)
    and since I use Collection interface there is no inserts into middle of my
    collections - only appends (which ArrayList handles very well)
    So my question is can I make Kodo to use ArrayListProxy for fields of
    Collection type
    (except of course using ArrayList field instead of Collection which I do not
    want to do)
    below is some statistics on collection performance (populating and iterating
    collections)
    the same test against 3 collections implementations (JDK 1.4.1)
    Not only ArrayList by far the fastest and memory friendly it also garbage
    collected much sooner and better -
    I show here max memory consumption and last to would not be garbage
    collected till all memory is in use (old generation GC)
    and ArrayList seems to be collected by young gen GC because it was collected
    very quickly between test cycles why other only when all memory was used
    So please make ArrayList your default collection implementation :-)
    Small collection size (40)
    time(ms) memory(kb)
    ArrayList 5,218 62,154
    LinkedList 14,125 240,066
    HashSet 27,000 311,825
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 8937, 53591
    LinkedList 15047, 240066
    Larger collection size (200)
    ArrayList 4860, 47709
    LinkedList 18468, 290704
    HashSet 34391, 422282
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 11844, 47709
    LinkedList 25766, 290704

  • I am looking to order replacement media for a CS6 master collection Install in India; Where can I bu

    I have a User Group Manager looking to order replacement media for a CS6 master collection Install in India; Where can I buy the DVDs to do a local install, in India?
    I cannot find it on the Adobe.com site?
    This page is not update nor is it helpful.
    http://helpx.adobe.com/x-productkb/policy-pricing/obtain-replacement-cds-dvds-manuals.html #main_Replacement_CDs_or_DVDs
    Cordially,
    Aaron Houston
    Adobe Community Mgr
    San Jose Ca

    Tasc_redleader which update exactly are you trying to apply?  Your screen shot indicates an update to Photoshop CS6 but your installation log appears to be for Extension Manager CS6.
    Please see Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to review and interpret your installation log files.

  • SAVE XML FILE Only For cetrain field with  Condition

    Hi Team,
    I have to save my journal entries as XML File.
    I have written this code ...It is working
    oJE.GetByKey(3)
                oJE.SaveXML("C:\Documents and Settings\Firos C\Desktop\MyXML3.xml")
    So this code will save all data from OJDT and JDT1. So I dont want to save JDT1.SysCred Field How we do this
    or how we can delete JDT1.SysCred Field  once we save our XML.
    Also I need to give condition while selecting where OJDT.Ref2 <> Null
    How we can resolve this issue...?
    By
    Firos

    Resolved by using XML node deletion operations

  • I am looking for country field LAND1 but it is 3 char..where as in SAP

    Hi All,
    I am looking for country field LAND1 but it is 3 char..where as in SAP all countries have only 2 Char values. why it is defined as 3 CHAR ??
    Please let me know !!!
    Thank you
    Madhu

    Hi,
    Please check table T005.
    Also check this from online help (F1) regarding Country Key.
    The country key contains information which the system uses to check entries such as the length of the postal code or bank account number.
    The two-character ISO code in accordance with ISO 3166, which is delivered by SAP as a default, is usually used.
    It could also be the vehicle license plate country-code or a typical country key, for example, in Germany the Federal statistics office key.
    The country keys are determined at system installation in the global settings.
    Since the country key does not have to correspond to the ISO code in all installations, programs that differ according to certain values of the country key cannot query the country key T005-LAND1, but have to program based on the ISO code T005 INTCA.
    Regards,
    Ferry Lianto

  • Reg : for Tcode IW32, where the text is maintained for the field FHKTX

    Hi GM to all,
    Can any one teme where the text is maintained for the field "FHKTX" in IW32 Tcode
    Regards
    valluru

    What is the Agent version monitoring the Database for which this alert is raised?
    You need to apply the fix for Bug : 9110313 to the Agent on the database machine.
    Refer to Note 9110313.8: Bug 9110313 - Metric clear alerts reported when warning and critical threshold are crossed

  • Where used for table fields

    I have list of 3600 fields , I need to get info related to these fields are used in which screens. Any easy way ?
    PS : Please donot suggest to use se11--> and make whereused list for field
    a®s
    Edited by: a®s on Jul 31, 2009 12:34 PM

    Hello,
    1. Get the table name in which all the data elements are stored.
    2. Write select for that table to find all the table names using required data elements for table field.
    Check if this helps,
    Thanks,
    Augustin.

  • Addition of a Field in EKKO/Data not getting populated for that field

    Hi All,
    I have added a Z Field in EKKO Table through the Append Structure "CI_EKPODB".
    There are around 2000 records in EKKO and for all the records that Z field is Blank.
    But, when I write a Select Query in Program to Fetch the Records where that Z Field is BLANK, I get only 50 Records.
    The same happens when I Execute SE16 for EKKO by giving condition Z Field = INITIAL. I get only 50 records in the output.
    Please help me understand why I dont get all the Records where that Z Field is INITIAL?
    Is any customization required or is this a Technical Issue?
    Please help.
    Thanks in Advance.

    hi rohan,
    if you are adding a field in a table  by append structure then make that field as ZZ instead of Z to differentiate it from normal fields.
    now when you have created the field in a append structure then if have not checked the initial flag.thats why u are getting this data inconsistency.
    this is because earlier 2000 entries are prestent in the table , now when you add another field in the table then that field will not have value for those 2000 records.
    now when you create the fiels select the init flag field,if you select this then new flag field will  NOT NULL,so initial values will be filled for that field for existing 2000 records.
    Note : NULL and INITIAL are different things, NULL means not defined and initial means which is having its initial value.
    check that init flag and u will get those 2000 records, you are getting inconsistent data now becuse value for that field is null ie not defined.
    hopr this will solve ur post and u wil get the concept of append structure.
    Thanks and regards,
    Tanmaya

  • Apply conditional formatting for a textbox in a matrix that contains an expression

    I have a matrix that contains one row, and one of the columns in this row (a field ) contains an expression. I know this field is "Textbox24" but anyway, I have created a placeholder for this field and in Placeholder Properties I have given the
    label "PD". Note that the Value in this placeholder shows "Expr" because it contains an expression.
    I don't think this is relevant, but just in case, the expression is:
    =Code.GetPercentageDifferenceBetweenCurrentAndPreviousValue()
    where GetPercentageDifferenceBetweenCurrentAndPreviousValue is custom code for the report which returns a decimal value. This works correctly in Preview mode.
    I now want to apply conditional formatting on this field so the colour of the font changes depending on the value of the expression. I clicked on the text box of that field, and in Properties > Color > Expression > I entered
    =IIF(Fields!PD.Value >= 50,"Green","Black")
    When I go to Preview mode I get the error "The Color expression for the text box 'Textbox24' refers to the field 'PD'. Report item expression can only refer to fields within the current dataset scope or, if inside an aggregate, the specified
    data set."
    I have tried a couple of other forms of the sytax for Fields!PD.Value but it doesn't work. Is my problem a syntax problem or a scope problem, and how do I solve it?
    Thank you

    From your description, PD is not a field so you cannot reference it as a field. You can do what you want by referring to the textbox:
    =IIf(ReportItems!Textbox24.Value >= 50."Green","Black")
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Sum for Dynamic Fields in a Dynamic Table with Field Symbol

    Hi All,
    I currently have an report which I am looking to update with some totals.  The information is currently output in an ALV which is fed data from a dynamic table defined with a field symbol.  The modification that needs to be applied is a summation per currency code where each of the fields to be summed is a dynamically named field at runtime.  I am now just looking to see if anyone has any recommendations on how to obtain these totals it would be appreciated.  I have no problem doing the leg work in piecing the solution together but am just stuck on which approach I should be investigating here.  I have looked into several options but do to the fact that the totals are for dynamic fields in a dynamic table and it is a field symbol I am having some difficulties thinking of the easiest approach to obtain these totals.
    Below is a simple sample of what the report currently looks like and what we are looking to add.
    ====================================================================================
    As-Is Report:
    DETAILED DATA ALV
    Company Code  |  Plant  |  2006 Total  |  2007 Total  |  2008 Total |  CURRENCY
    0001          |   ABCD  |    1,500     |    1,200     |    1,700    |    USD
    0001          |   BCDE   |    2,300     |    4,100     |    3,600    |    GBP
    0003          |   DBCA  |    3,200     |    1,600     |    6,200    |    USD
    Addition 1:
    TOTALS PER CURRENCY
    Currency                |  2006 Total  |  2007 Total  |  2008 Total |
    USD              |    4,700     |    2,800     |    7,900    |
    GBP                       |    2,300     |    4,100     |    3,600    |
    Addition 2:
    CONVERSIONS TO USD
                                          |  2006 Curr   |  2006 USD    |  2008 Curr   |  2006 USD   |
    USD                       |  4,700 USD   |  4,700 USD   |  7,900 USD  |  7,900 USD  |
    GBP   (1.5GBP/1 USD)    |  2,300 GBP   |  1,150 USD   |  2,300 GBP  |  1,800 USD  |
    ====================================================================================
    Any recommendations will be appreciated.

    Hi,
    We cannot use the key word SUM in the loop at assigning statement.
    The way i see is
    When  you are creating the first dynamic internal table , create one more with  the structure below:
    Currency | 2006 Total | 2007 Total | 2008 Total |
    Then while populating the data into first itab,also move the contents to the second itab using collect statement.

  • Condition Value in a Field of Service Request

    my problem is this:
    I want to insert a condition Value to a field(Long text) called "Recapito per il ricontatto".
    Condition is this: I have another field called "Canale di Ricontatto" (Picklist) that have 4 choices: Telephone,*E-mail*,*Fax*,*P.E.C*
    Now the condition value of "Recapito per il ricontatto"(Long Text) is this:
    IF "Canale di Ricontatto" (Picklist) IS DIFFERENT Telephone(one choices of Picklist) THEN length least 7 characters
    IF "Canale di Ricontatto" (Picklist) IS Telephone THEN no length least.
    NOW in a FIELD "Recapito per il ricontatto"(Long text)field where I must insert the validation field,I put the Default value 'a' and i check the option Default value back and after i write in a validation field:
    IIf([<plCanale_di_Ricontatto_ITAG>] < > LookupValue("OCC_CUST_LOV_SR_3", "Telefono"),Len([<ltRecapito_per_il_ricontatto_ITAG>])>6,Len([<ltRecapito_per_il_ricontatto_ITAG>])>=1)
    But when i choose Telephone and i don't write nothing in a Long Text field("Recapito per il ricontatto") the allert goes out and when i choose another choice and i put for example 'aaaaaaaaaa'(10 characters) the allert goes out again. The allert goes out always.
    Please HElp Me
    Tank you,
    Vale

    I have resolved in this way:
    Default value field (codice ASCII 255) and Ceck default back
    And condition
    [<plCanale_di_Contatto_ITAG>]<>LookupValue("OCC_CUST_LOV_SR_3", "Telefono")AND Len([<ltRecapito_per_il_ricontatto_ITAG>])>6 OR [<plCanale_di_Contatto_ITAG>]=LookupValue("OCC_CUST_LOV_SR_3", "Telefono")AND Len([<ltRecapito_per_il_ricontatto_ITAG>])>=1

  • ? using multiple approval signatures, each locking the fields with collections

    Having fun with LiveCycle to make a "signoff" sheet that will allow a customer to request a "new product" with a PDF form. Once that information is added to our EDR (Eng Design Request) form, I want the form to be forwarded to multiple departments, where each department manager adds their name, date, comments, and then signs the document and forwards it to the next manager. I have it set up with "locking" a "collection fields" with each signature, and that is cool to lock their comments to thier signature, such that someone else can't change their comments without first "clearing" their signature field... just what I wanted, cool,, taking it a step further, I wanted to have the original product data protected such that once signed by one, or more managers (Eng, Sales, President), that the data was locked unless all signatures were cleared. I tried this first by including the product definition fields in every signature's "collection of fields" (set to lock after signing). Thought that would be the ticket, pretty pumped to try it, but once I clear one signature, example the "Eng manager signature" I can go in and mess with the specs and then re-sign the document, and the other signatures are still there, thought I have to clear them, not good,,, 2nd try, I then tried to lock the preceeding "signature field" itself with the next signature (added "sig0" to "sig1" collection) and that worked once, but fell apart on the third approval, as clear one signature openned things right up, when it shouldn't have. Anyway, has anyone found a way to have an approval signoff sheet where once signed the data fields are locked unless all the signature(s) are cleared. I think the programming is not handing multiple locks on the sme field properly, ie all locks on that field must be removed for that field to become editable,, There may be a better way to tackle this..
    PS, I have really learned to be cautious when saving the form out of LiveCyle, then renaming it and save out or "Pro" with read permisions enabled, then see if "Reader" can open it,,, if U R not carefull you get and error that the "document has changed and reader can't save, contact the author,,," that was scary as I had to surf through lots of old revs to find one that would work again, something salvagable without going back to MSWord,,,
    Thanks for your help...

    I think I found a way to get it to do what I want,,,
    1) Use the first signature collection lock to lock only the fields that that person is signing-off on.
    2) The next manager then signs off and locks only his comments and text boxes, as well as the signature of the preceeding manager. This way text fields are only locked by one signature collection and thus to edit anything you have to clear that manager's signature to edit the related text boxes, then to re-sign that section you must clear the other (higher level) signatures to open up the signature field for resigning,,, I think this is providing the protection I want,,, Yea,,, let's get this form back into our stupid ISO system ;)

  • Search help for a field in ztable

    Good day everyone!
    I want to create a search help for a field. I have a field 'country' in my Ztable. Now I want to create a search help for that field so that they appear in the SM30 transaction while entering the data into the table. How can I do that?
    thanks.

    First of all if the field is country and you want to display all the countries avaiable in SAP in the search help then yuo dont need to create search help for that. For that field put the data element LAND1. The F4 help will automatically appear in SM30 and when you press F4 all the countries will be displayed in the hit list.
    Now suppose there is a case where you want to display selected values only  and not all the countries in your search help then one way is to create a z-table of countries and put all the countries you want in that table then create z-data element and z-domain for that country field and in domain give the table as a value table.
    Another way is to create a view for T005  and T005T table and give the selection conditions as per your requirement and then create the search help with this view and attache the search help to your country field.

  • Dynamically making read only for a field in get_data(CL_EHHSS_INC_BINFA_UI_FRM)

    Hi Experts,
    I am making read only for a field based on condition in get_data method of class CL_EHHSS_INC_BINFA_UI_FRM.
    But it is not working. Pls find the code for the same.
    LOOP AT CT_FIELD_USAGE INTO lw_field WHERE NAME = 'OC_INC_TYPE'.
       lw_field-read_only = ABAP_TRUE.
       MODIFY ct_field_usage FROM lw_field TRANSPORTING read_only.
       ev_field_usage_changed = 'X'.
    ENDLOOP.
    Pls help me what is wrong in this coding.
    Regards,
    Reny Richard

    Hi Richard,
    Please check if   this loop is executing for the correct desired event(say on click or from the start ). & the field name specified is correct or not through debugging. And check by placing the parameter ev_field_usage_changed = 'X'. after the loop statement.
    Below is a sample code for making the field read only.
    field-SYMBOLS: <fs_field> like line of CT_FIELD_USAGE.
       loop at CT_FIELD_USAGE ASSIGNING <FS_FIELD>.
         case <FS_FIELD>-NAME.
         when 'OC_INC_TYPE'. " name of the field
             <FS_FIELD>-READ_ONLY = 'X'.                " ' ' for editable
         ENDCASE.
    CV_FIELD_USAGE_CHANGED = abap_true.
    Regards,
    Harsha

Maybe you are looking for

  • Canopus and FCP and dark captures

    I searched the forum and quite a few people are using or familiar with the Canopus DV converter. I have the 110 model and capture TV programs for further editing. I find the clips in FCP are very dark. I haven't gotten a filter to get it back to what

  • Hp officejet 4680 is not recognized by either wireless or usb connection. Windows 7 OS.

    This printer used to work wirelessly to my Windows Vista Laptop, then I bought a new HP tower computer and now the printer is not recognized by anything, new or old. New computer is an HP Pavilion Elite HPE running Win 7, old computer is a Sony lapto

  • Help to undo a sync'd iphone and ipad for imessages

    I recently went on vaction in ohio, i left my ipad back at home, and my father snyc'd the number to my iphone and my ipad. is there anyway to remotely remove my snyc'd number from the ipad? i already tried changing my apple id picture, also ive been

  • Lion Server Java Control Panel and Java applications empty?

    I have installed FileMaker Server 12 on a Lion Server (10.7.5). The server is pretty clean, only a few users have been set up for CalDAV and CardDAV use in a small company. While installing the FileMaker software shouted for Java, which I installed f

  • Logical Aggregate Column (count(distinct)) Does Not Group for SQL Server DB

    When utilizing the count(distinct column_name) aggregate function within a Logical Fact source in the Business Model and Mapping layer in the RPD file the output in BI Answers is not grouping correctly for SQL Server 2008 database sources only. All O