CHOOSEFROMLIST FOR UDO

Hello,
please i wants to develop my own CFL for UDO,any suggestion or sample code to get it done.
Thanks

hi Ankit ,
i have tried the choosefromlist sample but it gives me "Internal Error" when is mapped to my UDO ObjectType.
sample code below
Dim oCFLs As SAPbouiCOM.ChooseFromListCollectio
oCFLs = oForm.ChooseFromLists
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
            oCFLCreationParams.MultiSelection = False
            oCFLCreationParams.ObjectType = "ER_DED"
            oCFLCreationParams.UniqueID = "CFL1"
            oCFL = oCFLs.Add(oCFLCreationParams)
binding it to my UserDefinedField below
oEdit.ChooseFromListAlias = "U_szCode"

Similar Messages

  • Problem with ChooseFromList on UDO

    Hi, I have a UDO form that works well except for one small issue.  I have an EditText that is tied to a field in the UDO table for the B1 Item Code.  This field saves, loads and navigates fine, but when adding a new UDO record, I need to have the user pop up a ChooseFromList to see a list of the B1 items.  The only problem is that this edit text is already bound to the UDO table/field and therefore the Choosefrom list isn't able to automatically populate the edit text like it normally would when the field is bound to a user datasource. 
    What is the preferred way to have a UDO field bound to an edit text box on the UDO to also work with a ChoosefromList?
    I just wanted to ask before I spend time programming a work-around to code the choosefromlist value into the edit text myself.
    Thanks!

    Hi Curtis,
    Have you tried to create a CFL and asign it to your edit text (linked to a DB Datasource)? I have tried it and it works fine, it works for UDS and also for DBDS.
        'Add EditText to the form for User Object
        oItem = oForm.Items.Add("EdTxtUO", SAPbouiCOM.BoFormItemTypes.it_EDIT)
        oItem.Left = 105
        oItem.Top = 50
        oItem.Width = 100
        oEdit = oItem.Specific
        'Link DBDS to EditText
        'oEdit.DataBind.SetBound(True, "", "ET_UDS_UO")
        Dim etDDSuo As SAPbouiCOM.DBDataSource
        etDDSuo = oForm.DataSources.DBDataSources.Add("@T_MD")
        oEdit.DataBind.SetBound(True, "@T_MD", "Code")
        ' Add ChooseFromList for EditText to the form
         oCFLCPuo = SB1_App.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
        oCFLCPuo.ObjectType = "TT_MD"
        oCFLCPuo.UniqueID = "UserObjectCFL"
        oCFLuo = oForm.ChooseFromLists.Add(oCFLCPuo)
        'Link CFL to EditText
        oEdit.ChooseFromListUID = "UserObjectCFL"
        oEdit.ChooseFromListAlias = "Code"
    Regards
    Trinidad.

  • Print Layout Designer for UDO

    Hi,
    Can we design report with print layout designer for UDO forms?
    If yes, how do we accomplish this?
    If not, is there any other alternative?
    I am using 2004B. Thanks.

    I use the iTextSharp project to create PDF's (http://itextsharp.sourceforge.net/)... its free and it works (A little hard to use, but it works). A more simple PDF-project are SharpPDF (http://sharppdf.sourceforge.net/). This is also free and very easy to use, but not that many features.

  • Error in layout for UDO

    Hello everyone,
    I have a problem with the launch of the report from a user Form.
    I created a layout for my UDO, I created a Form for UDO and I connected the layout to the mask.
    The report parameter is a standard SAP token (DocKey@).
    When I launch the preview is returned the error "Format of the input string is incorrect." if I insert the parameter in Crystal Report mask that appears after, the printing is working properly.
    In the attachment post is said that taking away the value of the ObjectType defined for the form,the report should work; unfortunately this is not a solution because doing it SAP can not handle events, and the mask is no longer possible to navigate between documents.
    [View Crystal Report Layout for my UDO Form]
    I'm doing something wrong or is it a bug? Do you know any case where there is a workaround?
    I work with SAP 8.81 PL04
    Thanks,Enrico.

    hi,
    check the JSP file name "Sample.jsp", "s" caps or small. 
    In portlapp.xml file give same name for <component name="<b>Sample</b>"> and
    <property name="com.sap.portal.reserved.layout.TemplateFile" value="<b>sample</b>.jsp"/>. Component name & jsp file name should be same...
    Regards,
    Senthil K.

  • Stored Procedure for UDO

    Hi All!!! )
    May my question be silly to u...But kindly share ur ideas in the following concept to throw light in my perspective...
    We dont go with SDK (Not at all using it). We being in mid of a R&D.
    We hav created a UDO. the table contains some fields in default as an ordinary table like std table holds.
    We write SP Transaction Notification with them using the object type. Can it be able to write SP Transaction Notification for UDO which does'nt hold any Object Type?
    Thanks
    ZEN.M

    Petr!! U r Just very Superb, simply So Great, Thks for ur very valuable info...
    sad off course cant giv u more than 10 :0(
    Hats off to ur talents (hav watched many of ur accurate solns)
    Wish u very great successes in ur life. God Bless u! .

  • Save As Draft  for UDO

    Hai ...
       I have using SAP Business One 2005 . PL-39.  I Need to Create the Document Draft for UDO Screen. Is it able to Create ???
    How to Use the     Save As Draft Menu( File->Save as Draft)  for our UDO Screen. ???
    Thanks & Regards
          Madhu ..

    You can not save a draft of a UDO document using the standard SBO "Save as Draft"mechanism.
    I'f you want to achieve this - you'll have to create "Draft Tables" for your UDO, save it to the "Draft Tables" and reload it using your own search mechanism. It will be a lot of work, but it's the only way you will be able to create draft UDO documents...
    Hai ,
           How to create Draft Table for UDO Screen.?
    How to Reload from Draft Table to UDO Table. ? Our SAP Given any Option? Give the Sample Code for that.
    Thanks & Regards
    Madhu..

  • Form Generator for UDO

    Hello,
    I want to know about form generators for UDO.
    The default forms generated when we create our UDO contains only a grid, this forms are very simple and not very useful for big applications.
    My question is there is any form generator that allow us to generate complex forms with textfields, lablels and tabs from an UDO and his childs.
    i hear about a file "XmlFormGenerator.cs", i don't know if it's that i'm searching for, but i cant find it in sdn.
    Thanks.

    I found the tool i'm searching for, it's in the Development Environment Tools v1.4 for Business One 2007, and it's work perfectly, you have just to specify the UDO and it's creates an XML Form for the UDO and his childs, in the Form all operations are supportes : Add, Update and delete.
    There is the link to download it : https://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/109ce044-6fbc-2a10-f59e-e92f3c775781

  • ChooseFromList for Customers by Screen Painter

    Hi,
    I don't know how to start on just adding a ChooseFromList for customers on my Screen Painter form.
    Any tutorials, videos anything out there to show me how to compelte this task ?

    aruntb wrote:
    ...Make sure that your edittext control must be binded with either DBDatasource or user data source of alphanumeric type.
    >
    > hope this helps
    >
    > Regards
    > Arun
    I already did all this and once run it wasn't working at all so I don't know if your last sentence above is made in Screen Painter also but if not, this was probably the missing piece for the whole thing to work.  Never read this anywhere not even in Screen painter documentation which is so poor actually.
    Well after all, I did everything by code and it seems to work ok.  I will make myself a favor ad add a nice single method that do it all and save it in my library.  I will even come here and give to everyone this method so it's easier for other people having a hard time with that.
    Thank you for the information

  • DTW for UDO's

    Hi All,
    Can I import data for UDO using DTW. i had created template and try to import data but its showing error unknown error - 1005
    what may be the reason ?
    Thanks
    Kamlesh

    Hi,
    Check /people/lisa.mulchinock/blog/2009/07/27/how-to-use-macros-to-importupdate-data-for-di-objects-not-yet-exposed-via-the-dtw-eg-udo-tables
    or
    Re: Importing UDO with DTW ...
    thanks,
    Neetu

  • Adding CFL for UDO generated form

    Hi I have created a form through Udo Form generator. i.e. UDO1(with Master Table=Users and master data rows table=OPDS)
    On other form made through screen painter, I want to add cfl for udo generated form(UDO1).
    Can anyone help me?

    You can set the CFL alias like this :
    oEditText.ChooseFromListAlias= "COLUMN_ID"
    I think this is how it's suppose to be - you set the CFL alias as the column id of the master data table ( whose values you want to be placed in the EditText) . The only problem is that it doesn't work - it  won't place the value automatically in the EditText.
    To make it work , you have to catch the CFL Event and put the value in the EditText manually. ( this is also covered in the CFL example in the sample files).

  • Export to Word  for UDO's

    Hello Everyone
    Primary Question:
    Is it possible to activate Export-to-WORD for UDO Screens and can we achieve the same functionality as Exporting Invoices and ToDoLetters for our User Screens. Can we design a template and push data into the word document.I want to know if this has been done before and if so how.Can anyone share the code and methodology of pushing line items into a dynamically growing table in Word. I'm sure that this can be achieved easily by Crystal Reports but the client doesn't want CR so i have to achieve this one way or another through MS Word.
    Secondary Question:
    Does printing through SAP utilise the fast printing of Dot-Matrix printers as printed by dos?
    Thanks and Regards
    Raghu
    Edited by: Raghu Ram on Mar 13, 2009 6:24 AM

    Hi .
    fast printinting is there, you have to change the printer settings and select low pixcels per inch.
    rgds,
    Premraj

  • MenuID for UDO

    Ls,
    When I create and udo the udo appears in my menu, The Menuid is different in each database.
    If I want to add an udo to my own menus I need to make a parameter  in my own parameter table and set the menuid in it.
    Where does SBO save the menuid's for udo's, or how can I retrieve the menuid base on the udo name
    Kind regards,
    Ad

    Hi Ad,
    Basically run the following query:
    select * from oudo where CanDefForm='Y'
    Add the row number to 47616, so 1st row menu id will be 47617, 2nd will be 47618, etc.
    The best way is use the 46161 submenus, and find the menuID by a code:
      private string FindMenuItem(string p)
                foreach (SAPbouiCOM.MenuItem oMnuItem in SBO_Application.Menus.Item("47616").SubMenus)
                    string s = oMnuItem.String;
                    if (s.Length < p.Length)
                        continue;
                    s = s.Substring(s.Length - p.Length);
                    if (s == p)
                        return oMnuItem.UID;
                return "0";
    regards,
    J.
    Edited by: Janos  Nagy on Jun 24, 2009 1:36 PM

  • How to create Token for UDO

    HI ,
    I am writing a  report with selection criteria token.
    I would like  to filter a UDO  by using a token.
    I have trouble to use just parameter@ in the selection formula.
    it doesn't give me "choose from list" from the UDO table
    i am using store procedure.
    any idea ?
    Idan

    Hi Idan,
    You may check this: UDT in the Token Selection Criteria - CR 2008 for SB1
    Thanks,
    Gordon

  • Link button for udo in the xml

    Hi all ,
    I know how to link a system object like this.
    <column AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" editable="1" font_size="12" forecolor="-1" right_just="0" text_style="0" title="Code" type="116" uid="202" visible="1" width="80">
                                                           <databind alias="U_ItemCode" databound="1" table="@APS1"/>
                                                           <ExtendedObject linkedObject="4"/>
                                                      </column>
    but how can I link a UDO ? if My UDO' name is MUDO ,I  write the XML like this,
    <ExtendedObject linkedObject="MUDO"/>
    and I always got error . who know ?
    thanks

    Hi Wei,
    That's because you can't link to UDO's. There is no object type for an UDO. You should use onject type NONE and make the logic behind it yourself. (Capture the linked button press event and handle all actions)
    Hope this helps,
    Rowdy

  • CFL for UDO problem

    Hi all,
    I have made one form for operation master.
    I try to use this UDO as a CFL in another form call router.
    I am trying to add CFL on the Matrix field in the Router form.
    CFL is added perfectly. But when I try to press the tab on the Field. I got the following error.
    Internal Error(-1003) occured Message [131-183]
    I have checked the User define table and UDO length is less than eight character.
    Kindly give me the solutions for the same.
    Regards,
    Gunjan Shukla.

    Hi,
    There are a couple of reason why you're getting that error, but the most probable is that the CFL conditions are not correctly defined OR the ChooseFromListAlias is pointing to a field that does not exist. (example: You have ChooseFromListAlias = "U_Code" when it should be ChooseFromListAlias = "Code", or vice-versa).
    Regards,
    Vítor Vieira

Maybe you are looking for

  • CST to load on material  through G/L account : Miro

    Hi Expert I am trying to load CST on material through  G/L account, but system not allowing to do that with Miro regard Nabil

  • Insert Highcharts into .folio

    Hy. I created a test html page that opens locally hightcharts (HTML5). This test works perfectly in safari but when insert index.html into Web Content and test in ipad i view a white page. There is some limitation in code hmtl5. The structure of fold

  • Tables not getting reversed in ODI

    Hi John, I tried reversing a Schema(Oracle), But when i clicked on Rverse, the tables are not getting, reversed. Please suggest. I tried executing the script in Oracle and it fetched 0 rows. Thanks, Sravan

  • Where's JDeveloper11g file browsing feature for codes?

    In JDeveloper 11g, whenever I type img src, followed by an equation sign, I expect to see the File Browse link being popped up along with all the files within the directory so I can easily pick the ones I need. Unfortunately, this function does not w

  • Messed up Lion

    I've had Lion DP4 installed, then I wiped my HDD, installed Snow Leopard, bought Lion from Mac App Store and installed it. Today, though, I realised I can't update to 10.7.2 in order to get iCould working. When I looked in About This Mac, I noticed I