Using conditions to filter the data of UDO in a user form

Hi every body,
I've created a user form with an UDO, I want to filter the data coming of the user table where the field U_CardCode = CardCode. To acheive this goal, I used the collection Conditions.
I've write this code. It dosn't work. Has someone an idea???
SAPbouiCOM.FormCreationParams _CreationParams = null;
                CreationParams = ((SAPbouiCOM.FormCreationParams)(SboApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)));
                CreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbsFixed;
                _CreationParams.UniqueID = "Act";
                CreationParams.ObjectType = "UDOAct";
_Form = SboApplication.Forms.AddEx(CreationParams);
                //User Data Source
                _DBDataSource1 = Form.DataSources.DBDataSources.Add("@OXIATTN_CSTACT");
                conditions = (Conditions)SboApplication.CreateObject(BoCreatableObjectType.cot_Conditions);
                _condition = _conditions.Add();              
                condition.Alias = "UCardCode";
                condition.Operation = BoConditionOperation.coEQUAL;
                _condition.CondVal = "C20000";
DBDataSource1.Query(conditions);
_Form.Title = "Compte du site";
                _Form.Left = 350;
                _Form.Top = 50;
.....etc
Thank you for your help
Haifa

I use the recordset command and a doquery.
I find it easier to use than the condition object.
if you need to pass the bp code to the new form, read the value from the bp master data record and then pass it to the new form.
If you use xml you can pass it right after you call the form.

Similar Messages

  • How to filter the data in different sections (e.g. Report Footers)?

    Hi,
    I am using Crystal Reports 11 to generate cross-tables.
    I plan to generate 3 cross-tabs, and each cross-table will be put in a section. For example, cross-tab1 in Report Footer a; cross-tab2 in Report Footer b; cross-tab3 in Report Footer c.
    I know use "Select Expert" to filter data. But, it seems that "Select Expert" filters data for the whole report.
    I want to filter the data for each cross-table separately. For example, filter cross-tab1 based on condition1; filter cross-tab2 based on condition2; filter cross-tab3 based on condition3.
    How to filter the data in different sections (e.g. Report Footers)?
    Thank you in advance.

    Hi,
    Now that you've inserted the subreport just right-click the sub-report and click Edit. The Design page for sub-report should open up.
    You can now insert the cross-tab on the Report Header and insert a record selection formula of your choice.
    Also, suppress all the other sections of the subreport so the Main report only shows the crosstab without any spaces.
    Do the same for all the subreports.
    -Abhilash

  • How to filter the data in dropdown?

    Hello,
    How to filter the data
    I got all the project name in dropdown when you select the project name in other textbox the project id will come automatically.
    so I want to get only those project name that is assigned to that particular user.
    I have
    ProjectName(dropdown),
    ProjectId(Textbox),
    Employee code(Unique value),
    employee Id (Unique for particular employee means if User A works on 5 projects so for all 5 projects the employee Id will be same),
    Project Id( 5 projects 5 different id)
    I didnt get the exact formula or I have to use any javascript code.Any help...
    Thanks,

    If I am understanding correctly, you want to populate a drop down with values from a list.
    Using InfoPath:
    right click on the drop down to be populated, and choose drop down list box properties.
    add the list with the values as a data source.
    click the filter box next to entries.
    select the field you want from the other list.
    click filter data.
    set the filter (click AND if you need more lines).
    click OK on any dialogs you need to to get back to the editor.
    Test your form.

  • How to filter the data on Reports from collected from differnet Agents

    1) I have to write a Plug-in which would fetch the same type of data from 7 Agents. I need to generate the report for each Agent separately,This plug-in will be deployed in various different environment. So I will not know the host name as it will be deployed different environment. Can anyone suggest how to filter the data for each agent from the table. I see one solution of using Bind variable for the Target GUID in PL/SQL file. Can you please suggest if there is any other better way of doing this.????
    Also Can you please suggest what are the best ways to debug the OEM Plug-in?
    Thanks Anyway.....

    What I mean filtering data means displaying data for each Agent Seperatly. Assume I have collected Filesystem data from 5 Agents (5 different server). Now I want do display file system data for Agent1 (server 1). How would I fetch it from MGMT$Metric_Current. Currently I use a bind variable
    ??EMIP_BIND_TARGET_GUID?? to filter the data for a Agent from MGMT$Metric_Current view. I compare Target Name entered while deploying Plug-in with the Target_Name column of specified view.Is there any other way of fetching data from this table for a Agent?
    I hope I am prety clear now. My Problem is IO dont want to force user to enter exact Server name while deploying Plug-in.
    Thanks......

  • Can we use impdp to import the data from an normal exp dump?

    Hi All,
    I have a export dump taken from a 9i database. Can i use impdp to import the data into 10g database from that 9i exp dump?
    Please suggest
    thanks and Regards
    Arun

    Hi,
    I have a export dump taken from a 9i database. Can i use impdp to import the data into 10g database from that 9i exp dump?Yes, it can be.
    Refer:
    http://wiki.oracle.com/thread/3734722/can+a+9i+dump+file+be+imported+into+10%3F
    thanks,
    X A H E E R

  • Use LINQ to extract the data from a file...

    Hi,
    I have created a Subprocedure CreateEventList
    which populates an EventsComboBox
    with a current day's events (if any).
    I need to store the events in a generic List communityEvents
    which is a collection of
    communityEvent
    objects. This List needs to be created and assigned to the instance variable
    communityEvents.
    This method should call helper method ExtractData
    which will use LINQ to extract the data from my file.
    The specified day is the date selected on the calendar control. This method will be called from the CreateEventList.
    This method should clear all data from List communityEvents.  
    A LINQ
    query that creates CommunityEvent
    objects should select the events scheduled for selected
    day from the file. The selected events should be added to List
    communityEvents.
    See code below.
    Thanks,
    public class CommunityEvent
    private int day;
    public int Day
    get
    return day;
    set
    day = value;
    private string time;
    public string Time
    get
    return time;
    set
    time = value;
    private decimal price;
    public decimal Price
    get
    return price;
    set
    price = value;
    private string name;
    public string Name
    get
    return name;
    set
    name = value;
    private string description;
    public string Description
    get
    return description;
    set
    description = value;
    private void eventComboBox_SelectedIndexChanged(object sender, EventArgs e)
    if (eventComboBox.SelectedIndex == 0)
    descriptionTextBox.Text = "2.30PM. Price 12.50. Take part in creating various types of Arts & Crafts at this fair.";
    if (eventComboBox.SelectedIndex == 1)
    descriptionTextBox.Text = "4.30PM. Price 00.00. Take part in cleaning the local Park.";
    if (eventComboBox.SelectedIndex == 2)
    descriptionTextBox.Text = "1.30PM. Price 10.00. Take part in selling goods.";
    if (eventComboBox.SelectedIndex == 3)
    descriptionTextBox.Text = "12.30PM. Price 10.00. Take part in a game of rounders in the local Park.";
    if (eventComboBox.SelectedIndex == 4)
    descriptionTextBox.Text = "11.30PM. Price 15.00. Take part in an Egg & Spoon Race in the local Park";
    if (eventComboBox.SelectedIndex == 5)
    descriptionTextBox.Text = "No Events today.";

    Any help here would be great.
    Look, you have to make the file a XML file type -- Somefilename.xml.
    http://www.xmlfiles.com/xml/xml_intro.asp
    You can use NotePad XML to make the XML and save the text file.
    http://support.microsoft.com/kb/296560
    Or you can just use Notepad (standard), if you know the basics of how to create XML, which is just text data that can created and saved in a text file, which, represents data.
    http://www.codeproject.com/Tips/522456/Reading-XML-using-LINQ
    You can do a (select new CommunityEvent) just like the example is doing a
    select new FileToWatch and load the XML data into the CommunityEvent properties.
    So you need to learn how to make a manual XML textfile with XML data in it, and you need to learn how to use LINQ to read the XML. Linq is not going to work against some  flat text file you created. There are plenty of examples out on Bing and Google
    on how to use Linq-2-XML.
    http://en.wikipedia.org/wiki/Language_Integrated_Query
    <copied>
    LINQ extends the language by the addition of query
    expressions, which are akin to
    SQL statements, and can be used to conveniently extract and process data from
    arrays, enumerable
    classes, XML documents,
    relational databases, and third-party data sources. Other uses, which utilize query expressions as a general framework for readably composing arbitrary computations, include the construction of event handlers<sup class="reference" id="cite_ref-reactive_2-0">[2]</sup>
    or
    monadic parsers.<sup class="reference" id="cite_ref-parscomb_3-0">[3]</sup>
    <end>
    <sup class="reference" id="cite_ref-parscomb_3-0"></sup>

  • I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication

    I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication.
    I use LabVIEW to read the data from serial communication then, i open the example (.vi) from Serial Communication - Advanced Serial Write and Read  from LabVIEW Example. BUT it have some error message that : Error - 1073807202 occured  at property node in visa configure serial port (instr).vi -> advance serial write and read .vi
    this error code is undefined. no one has provide a description for this code, or you might have wired a number that is not an error code to the error code input.
    I don't know why? please help me. thank you.

    When I copy that code into "Explain Error" I get: "VISA:  (Hex 0xBFFF009E) A code library required by VISA could not be located or loaded."
    You may have a bad install of VISA or the wrong version of VISA loaded. Try re-installing VISA. You can get the latest version from the NI support site: http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C0E91?opendocument&node=1....
    Also ensure that you are not pointing the example towards a serial port that does not exist.
    Please let us know what you find and what gets this working for you.
         Rob

  • Can we create TDMS file using C# and retrieve the data using a diadem

    I want to write a tdms file from a dot net application and to use the diadem to retrieve the data and to create a user defined report

    Hello,
    If you want this kind of output, you can use Java Mapping e.g
    1. Create your data type like this:
    CHARSET 0..1
    LOADMODE 0..1
    CODEFORMAT 0..1
    CURRENCY 0..1
    SUPPLIERID_DOMAIN 0..1
    ITEMCOUNT 0..1
    TIMESTAMP 0..1
    UNUOM 0..1
    COMMENTS 0..1
    FIELDNAMES 0..1
    DATA 0..unbounded
    ENDOFDATA
    2.In your message mapping assign all the constants. You might want to concat all the values of the FIELDNAMES and output them to DATA
    3.In your Java Mapping, replace all the XML fields including ,, with ,''',
    4.In ID, do not use FCC.
    Hope this helps,
    Mark

  • How to control the data to display for every users?

    Hello Experts,
    Im creating a module in ORACLE forms6i and I want to control all the data to display for every USERs. I have 1 Table and it has 5 columns.
    My module has 5 columns and 5 rows of records to display.
    Problems:
    For USER1, I want to display all DATA in column3 and column4 only and all remaining columns shoud be null.
    For USER2 , I want to dislplay all data in Column1 only and all remaining columns should be null.
    How can i control all the data to display for each columns? Can you help me please. Im using the Clear_Items but its not working only the first row are null but the remaining
    rows has its records.
    Thanks.
    Lala

    I understand that you want certain columns not to show at all on the canvas when a certain user opens the form. Then, in the when-new-form-instance trigger, you should set_item_property(x_item, visible, property_false) for each item you do not want to be dislayed, depending on the user.

  • Is it possible to filter the data in a rule group ?

    Hi !
    I'm using 3 rule groups in a sales transformation to differentiate commands, bills, and deliveries.
    I would like to know if it is possible to filter for each rule group the data by BWVORG for example ?
    Thx in advance .
    Guillaume

    As per my understanding filter at rule group is not possible.
    You can use the same at the start routine.

  • Unable to filter the data for multiple time selections by dimensions

    Hi to all,
    I am new in MDX, i have a problem with my MDX query.
    Calculated Member Logic:
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember),[Measures].[Paid Amt])
    Mdx Logic EX:
    With Member [MEASURES].[Received_Amount]
    AS
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
    ,[Measures].[Paid Amt])
    SELECT {[MEASURES].[Received_Amount]} On Columns
    ,[Date].[YQMD].[Year].members On Rows
    From [Financial]
    If i select multiple time periods in Rows, the query working fine.
    but if select multiple periods in where clause it is not responding.
    With Member [MEASURES].[Received_Amount]
    AS
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
    ,[Measures].[Paid Amt])
    SELECT {[MEASURES].[Received_Amount]} On Columns
    ,[Speciality].[Specialty Name].[Specialty Name].members On Rows
    From [Financial]
    Where {[Date].[YQMD].[Year].&[2012-01-01T00:00:00],[Date].[YQMD].[Year].&[2013-01-01T00:00:00]}
    Note:
    Each of them is considered from the minimum date in the database to the selected time.
    And also the data has to be filtered with respect to each drill down dimension.
    If select multiple time periods the same formula has to be applied with respect to the dimensions.
    Kindly help me to get out of this problem
    Best Regards,
    Nagendra

    Hi David,
    Thanks for your response.
    I have a measure, i have to get received_amount in the database from the database starting period to my selection period. Later i have to check by dimensions using same measure. if i select any one period by dimension it's coming, but if i select multiple
    periods in filter level by dimensions it's showing no records.
    For Ex: 
    I have four years data in my database (2010-2013).
    In 2010
    Bill_Amt
    Bill_Date  
    Specialty received_amount
    1000
    10/01/2010 4
    600
    2000
    04/08/2010 2
    1000
    In 2013
    Bill_Amt
    Bill_Date Specialty
    received_amount
    1500
    22/02/2013 2
    1200
    2000
    14/03/2013 1
    800
    In the above scenario,
    By Period:
    if i go by period i should get,  
    Jan'13  ---> 1600
    Feb'13  ---> 2800
    Mar'13  ---> 3600
    Specialty By Single Period:
    If i select Jan'13 by specialty
    Specialty
     received_amount
    2 1000
    4 600
    If i select Feb'13 by specialty
    Specialty
     received_amount
    2 2200
    4 600
    If i select Mar'13 by specialty
    Specialty
     received_amount
    1 800
    2 2200
    4 600
    Specialty By Multiple selection Periods:
    The result should be sum of the individual selection periods by specialty as follows,
    If i select Jan'13 & Feb'13 by specialty
    Specialty
     received_amount
    2 3200
    4 1200
    If i select Jan'13 , Feb'13 & Mar'13 by specialty
    Specialty
     received_amount
    1 800
    2 5400
    4 1800
    Regards,
    Nagendra

  • How to filter the data displayed in a datatable

    Is there a way to populate a datatable so that the data displays in a column only when it is different than the previous rows. For example if I have a List of InventoryItems that have properties State, WHouse, Widget, Count.
    And I want to display them something like this:
        GA    WH1    Widg1      255
                     Widg2      566
                     Widg3      999
              WH2    Widg1      100
                     Widg4       55
        FL    WH5    Widg1      687
              WH6    Widg5      566I hope the formatting comes out correct. The GA & FL should be in the first column. WHX in the second, WidgX in the third, and the count in the fourth.
    I hope someone has an idea how I can achieve this effect.
    Thanks

    Yes, binding to the rendered property the way you suggested should do the trick.
    FYI, here's an example that illustrates how the <if> component in JSFTemplating works:
    <foreach key="key" list={"A" "B" "C"}>
        <!if !(#{key} = B)>
            <staticText value="Not B, it's '<b>#{key}</b>'</br>" />
        </if>
    </foreach>If you cut / paste that code into a file called test.jsf and run it in a JSFTemplating enabled application (follow the directions on the www site to run the demo app, drop it in that app), it will show values not equal to 'B" (A and C). FYI (#2): the <staticText> component above has a short cut syntax, so it could also be written:
    <foreach key="key" list={"A" "B" "C"}>
        <!if !(#{key} = B)>
            "Not B, it's '<b>#{key}</b>'</br>
        </if>
    </foreach>FYI (#3): You can use any #{} you want in the <if> condition and can form complex boolean equations.
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • How to filter the data

    Hi
    this is my code in which vkorg is compulsory.
    DATA: ITAB_VBAK TYPE TABLE OF VBAK,
          WA_VBAK TYPE VBAK.
    DATA: ITAB_VBAP TYPE TABLE OF VBAP,
          WA_VBAP TYPE VBAP.
    DATA: P_VKORG TYPE VBAK-VKORG,
          P_KUNNR TYPE VBAK-KUNNR,
          P_VBELN TYPE VBAK-VBELN,
          P_MATNR TYPE VBAP-MATNR,
          P_AUDAT TYPE VBAK-AUDAT,
          P_VDATU TYPE VBAK-VDATU,
          P_ERNAM TYPE VBAK-ERNAM,
          P_VKAUS TYPE VBAP-VKAUS.
    SELECT-OPTIONS: s_VKORG FOR P_VKORG OBLIGATORY,         " Sales Organization
                    s_KUNNR FOR P_KUNNR,         " Sold-to party.
                    s_VBELN FOR P_VBELN,         " Sales Document.
                    s_MATNR FOR P_MATNR,         " Material number.
                    s_AUDAT FOR P_AUDAT,         " Document Date (Date Received/Sent).
                    s_VDATU FOR P_VDATU,         " Requested delivery date.
                    s_ERNAM FOR P_ERNAM,         " Name of Person who Created the Object.
                    s_VKAUS FOR P_VKAUS.         " Usage indicator.
    wa_vbak_key-vbeln = s_vbeln-low.
    append wa_vbak_key to it_vbak_key.
    CALL FUNCTION 'SD_VBAK_ARRAY_READ'
    EXPORTING
      I_BYPASSING_BUFFER          = ' '
      I_REFRESH_BUFFER            =
      TABLES
        IT_VBAK_KEY                 = IT_VBAK_KEY
        ET_VBAK                      = ITAB_VBAK
    EXCEPTIONS
      RECORDS_NOT_FOUND           = 1
      RECORDS_NOT_REQUESTED       = 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.
    The records are coming in the internal table itab_vbak.
    But i want to filter the values coming in the internal table by the value whatever the user enters in select option.
    The first field ie. VKORG is manadatory and rest is optional.
    Please help me out to filter the table.

    hi Darshana,
    You can not directly vaidated records for all those fields which are not mendetory.
    So after getting values in internal table check each record for given selection screen value if not match for any of selection screen value then delete that record fron internal table.
    Reward if useful..

  • Filter the data loads by material type = FERT or UNBW

    Hi All,
    I have to load the data from DSO to Cube in which I have to filter by material type = FERT or UNBW, actually this material type is the nav attribute of 0material. But I dont have this 0material or 0matl_type in the source i.e. DSO. How can I achieve this filteration during the loads? Is there a way I can achieve this in startroutine? Or is it a must to include this 0material or 0matl_type in the source i.e. DSO
    Thanks In advance,
    Shreesh.

    I see that there is no Material also in your lower level DSO. So now you need to findout atleast one key to compare with the look up object so that the corresponding entries can be tracked.
    If atlease Material is there there then you can make a lookup on the Material type Master data and use the selections for the respective Material types for selections and extract the corresponding Marerial relavant documents from lower level DSO.
    As its not there you need to find the other key and the respective Master data present for the key lookup if not then the lower level DSO needs to be enhanced.
    So check for the details..

  • Bug? Using __attribute__((annotate())) pollutes the data segment

    I recently noticed that using __attribute__((annotate())) eg. __attribute__ ((cdecl, used, annotate("as3sig:public function render(event:Event = null):void"))) doesn't just modify the output for the function but also preserves (leaves behind?) a superfluous copy of the string literals supplied to annotate in the data segment, even when using the strip argument and not compiling a debug build.
    While it's not preventing me from doing anything, I would prefer not to have this information stored redundantly in the Crossbridge data segment of any SWFs I produce.
    I've been looking at LLVMAMV2Codegen as used by llc but as yet haven't figured out how to stop this information being in the data segment nor alternatively how to filter it out of it during output (well beyond searching the table for specific strings like "as3sig" and hacking them out because that seems extremely ugly and would I imagine be rather fragile).
    I thus thought I might ask around here to:
    Confirm my suspicions that this undocumented behaviour is not to be expected and is a bug
    Ask for any ideas as to workarounds, or solutions (I wouldn't mind further customising the CrossBridge llc tool to fix this)

    [215]      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1527)
    [216]      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1693)
    [217]      at bc4jtest.DomainBug.testAsOwner(DomainBug.java:53)
    [218]      at bc4jtest.DomainBug.main(DomainBug.java:32)
    [219] OracleSQLBuilderImpl.doEntityDML failed...
    [220] X/Open SQL State is: null
    [221] java.sql.SQLException: invalid name pattern: GRANTJ.ACL_DOMAIN
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:229)
         at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:495)
         at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:405)
         at oracle.sql.StructDescriptor.initPickler(StructDescriptor.java:176)
         at oracle.sql.StructDescriptor.<init>(StructDescriptor.java:154)
         at oracle.sql.StructDescriptor.createDescriptor(StructDescriptor.java:122)
         at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:89)
         at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:99)
         at oracle.jbo.domain.Struct.toDatum(Struct.java:456)
         at oracle.jbo.domain.Struct.toDatum(Struct.java:422)
         at oracle.jdbc.driver.OraclePreparedStatement.setCustomDatum(Oracl[i]Long postings are being truncated to ~1 kB at this time.

Maybe you are looking for

  • How to find the list of existing tables in a schema using DB link?

    Hi I know how to find the list of existing tables in a schema using the following query SQL> select * from tab; but, how to list the tables using a DB link? For Example SQL> select * from tab@dblink_name; why this doesn't work? Pl advice me Thanks Re

  • Importing trouble from 7.1.5 to 9.1.5

    I am having a really hard time getting iPhoto library from G4 power mac to new Mini. I tried the portable HD to copy and import but on the mini I cannot select the library. I also tried to move it over on the network (wireless). The library is about

  • ITunes will not install - System not modified?

    Hello, I keep having problems downloading iTunes on my computer. Once the installer starts running, it ends with the following message: "iTunes Installer Completed The installer encountered errors before iTunes could be configured. Errors occured dur

  • Message variable initialization

    Hello, We had this ridiculous situation a while ago where out service instances create their variables with multiple nodes. For example if we have xsd looking like this: <element name="Response"> <complexType> <sequence> <element name="Result"> <simp

  • Indesign : how to move a rectangle object with his content ?

    hi i develop an indesign extension with flash builder and cs extension builder 2. when I move a rectangle object containing an image with the geometricBounds property the image does not move and is not visible anymore ... how to move a rectangle obje