Choose from list for purchase  Item

Dear Experts,
i have created Choose from list in matrix using Screen Painter. its working properly but i want to display only Purchase Items in CFL.
For Customer we are using
oCons = oCFL.GetConditions()
            oCon = oCons.Add()
            oCon.Alias = "CardType"
            oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
            oCon.CondVal = "C"
            oCFL.SetConditions(oCons)
Like this, How to set condition for Purchase items thru coding or Screen painter
Mathi

Hi Mathi,
Try this and tell me if it worked.
oCons = oCFL.GetConditions()
oCon = oCons.Add()
oCon.Alias = "PrchseItem"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "Y"
oCFL.SetConditions(oCons)
If this works dont forget to reward points..
Regards,
Vasu Natari.
Edited by: vasu natari on Jul 29, 2008 12:37 PM

Similar Messages

  • Choose from List for UDT

    I have made a UDT
    and I want to create a choose From List  of that table
    I know how to create choose frm list  for system tables
    like making Business partner  choose from list
    but I'm not able to make choose frm list for UDT
    please someone answer my question

    HI Riya,
    You can link a CFL to a User Defined Object but not a plain User Defined Table. A full list of options can be found in the UI help under BoLinkedObject Enumeration.
    Thanks,
    Lisa
    SAP Business One Forums

  • How i  create choose from list for profit center

    Hello ALL ,
    Can any body suggest me how we  create the CFL for profit Center  .
    I am creating  add -on using sdk and create a screen form using screen Painter .
    In my form there is  matrix that contain the profit center column  just like in sale order screen .
    In this field (Profit Center )  I want to attach the CFL of profit center just like in sales Order screen .
    but  I am unable to find out the object type ID for profit center so please give me any idea

    Hi,
    Please post is on the SDK forum and close this thread.  This is an SDK question.
    Thanks,
    Gordon

  • Can anyone explain how we create Choose from list for profit center in sap b1

    Hello ALL ,
    Can any body suggest me how we create the CFL for profit Center .
    I am creating add -on using sdk and create a screen form using screen Painter .
    In my form there is matrix that contain the profit center column just like in sale order screen .
    In this field (Profit Center ) I want to attach the CFL of profit center just like in sales Order screen .
    but I am unable to find out the object type ID for profit center so please give me any idea

    Hi Arvind,
    Object type for the Profit Center is
    <ChooseFromList UniqueID="CFL_1" ObjectType="61" MultiSelection="0" IsSystem="0"/>
    and for the Distribution Rule
    <ChooseFromList UniqueID="CFL_2" ObjectType="62" MultiSelection="0" IsSystem="0"/>
    Hope it helps.
    D.

  • Choose from List in A matrix for choosing two or more rows at same time

    Hi Friends,
    Actually I m using choose from list to select Items in a row, i can select Two or more rows from the List but while clicking choose it is taking only one value.
    The no of rows are not activated tat i m choosing from list.
    Thanks in advance
    Vivek

    Hi.
    Here is a [link|https://forums.sdn.sap.com/click.jspa?searchID=12829558&messageID=5584893] where are you can find on of my example on CFL on matrix column.
    I think, you need to made some changes in code from these lines...
        Dim oDataTable As SAPbouiCOM.DataTable
        oDataTable = oCFLEvento.SelectedObjects
        for ...
        end for
    Reply if this guideline was usefull for you.
    Bye

  • Error clicking Choose from list

    Hi,Experts
    1) Im added two fields on BOM also added choose from list for that.
    2)I have written code for event type choose from list
    3)But it is showing error exception while clicking on raw choose from list(Already existing raw choose from list)
    4) But created choose from list working perfectly
    I have written code like this
    Try
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
                    sboForm = SBO_Application.Forms.Item(FormUID)
                    Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
                    oCFLEvento = pVal
                    Dim sCFL_ID As String
                    sCFL_ID = oCFLEvento.ChooseFromListUID
                    Dim oCFL As SAPbouiCOM.ChooseFromList
                    oCFL = sboForm.ChooseFromLists.Item(sCFL_ID)
                    If oCFLEvento.BeforeAction = False Then
                        Dim oDataTable As SAPbouiCOM.DataTable
                        oDataTable = oCFLEvento.SelectedObjects
                        Dim val As String
                        Try
                            val = oDataTable.GetValue(0, 0)
                        Catch ex As Exception
                        End Try
                        If (pVal.ItemUID = "slsText") Then
                            sboForm.DataSources.UserDataSources.Item("UDCFL").ValueEx = val
                        ElseIf (pVal.ItemUID = "slsText1") Then
                            sboForm.DataSources.UserDataSources.Item("UDCFL1").ValueEx = val
                        End If
                    End If
                End If
                If (FormUID = "CFL1") Or (FormUID = "CFL2") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) Then
                    Windows.Forms.Application.Exit()
                End If
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_PICKER_CLICKED Then
                    sboForm = SBO_Application.Forms.Item(FormUID)
                    oItem = sboForm.Items.Item(pVal.ItemUID)
                    oEdit = oItem.Specific
                    SBO_Application.StatusBar.SetText("Picker Clicked of type " & oEdit.PickerType.ToString, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                End If
            Catch ex As Exception   ///Error is shows this exception
                MessageBox.Show(ex.Message)
            End Try

    hi

  • Choose from list in AR invoice

    Hi all!
    Can i create function choose from list in AR invoice. I have UDF on INV1, now i want choose from list for this UDF.
    Please give me ideas
    Thank you very much

    Hi,
    Y dont u try the FMS functionality?
    Vasu Natari.

  • Choose From list in Matrix UDF

    i create a UDF in Sales Order Row, I want to assign choose From list in the Matrix for the UDF once user click on tab button.
    How can i assign the Choose from list for the UDF column?

    Hi,
    Try this code for adding CFL.             
                   SAPbouiCOM.ChooseFromListCollection oCFLs = null;
                    SAPbouiCOM.Conditions oCons = null;
                    SAPbouiCOM.Condition oCon = null;
                    oCFLs = oForm.ChooseFromLists;
                    SAPbouiCOM.ChooseFromList oCFL = null;
                    SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;
                    oCFLCreationParams = ( ( SAPbouiCOM.ChooseFromListCreationParams )( SBO_Application.CreateObject( SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams ) ) );
                    oCFLCreationParams.MultiSelection = false;
                    oCFLCreationParams.ObjectType = "object id ";
                    oCFLCreationParams.UniqueID = "CFL1";
                    oCFL = oCFLs.Add( oCFLCreationParams );
                   oColumn.ChooseFromListUID = "CFL1";
                  //where oColumn is the instance of that column.
    Hope u will get help....
    Thanks and Regards,
    Lalit

  • FMS for Instock for a particular Warhouse in Item Choose From List

    Dear Experts,
    I have an requirement as such that there are e.g 5 warehouses in Item Master Data as A,B,C,D,E. Now while doing any marketing document when the user press tab in the Item No in the choose from list the Instock Column shows the Total Stock in all the warehouses. Means if Item No 123 has stock in Warehouse A - 2, Warehouse B - 3, Warehouse C - 0 so in the Instock Column it would show as the total of all the Warehouse which is 5 but if I want to show only for a particular Warehouse e.g A which is 2 how can I show it in the choose from list.
    I have tried to create a UDF also in the Item Master Data and applied a formatted search as :
    SELECT T0.OnHand FROM [dbo].[OITW] T0 WHERE T0.WhsCode = 'A' AND T0.ItemCode = $[$5.0.0]
    and the udf seems to be working only in the Item Master Window and showing the A warehouse Stock as 2.
    I also brought the Udf column in the choose from List of Items but here its not showing any value for the items as desired.
    Can anyone please help and let me know what can be done to sort this issue.
    Awaiting for a positive response.
    Regards,
    Depika

    Hello ..
    Depending on the desired goal, another alternative would be to create a user field in marketing documents to detail.
    Later in this field formatted user applies a search that brings the stock in the warehouse of the line detail.
    This in Toerien argues that if the document you selected Store A, and in that store there is a stock of 10 units, this amount is what brings the document.
    This considering that you can not see it in the select list of items
    I hope it will help
    Best regards,

  • I have a problem with my itunes. I cannot transfer apps from the itunes to my iphone 4s. Any time I try to snyc itunes tells me "The iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone. HELP

    I have a problem with my itunes. I cannot transfer apps from the itunes to my iphone 4s. Any time I try to snyc itunes tells me "The iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone. To authorize this computer for items purchased from the itunes store, choose, Store > Authorize This Computer. But anytime I authorize it tells me you have authorized including this computer 2 out 5 computers. And if I try again the same story over and over again. But I have many apps on my itunes which I want to transfer. Please someone help me.

    Well Authorize the Computer...........

  • Multiple Values For one Condition in Choose From List

    I have used one Business Partner Choose From List in my form but i want to give condition in that choose from list on GroupCode .But the condition will have multiple values like 100,102,104 then how i will write the code to incorporate multiple values for one single condition.

    Hi,
    Check this thread
    How to set a Multiple condition in a single CFL
    Hope that helps,
    Vasu Natari.

  • The iPod could not be synced because this computer is no longer authorized for purchased items that are on this iPod.

    Full message that pops up
    "The iPod could not be synced because this computer is no longer authorized for purchased items that are on this iPod.
    To authorize this computer for items purchased from iTunes Store, choose Store > Authorize This Computer."
    I am unable to sync my music, applications, movies, etc. to my iPod touch. The only way I am able to bypass the message that pops out when I try to sync (the one in the title) is by clicking "Apply" instead of "Sync". To do this, I make changes to Apps, Music, or Movies (...) and the buttons "Revert" and "Apply" will replace the button "Sync".
    My problem is most likely not due to using many accounts because I only have one and it is the only one that I use. I do not share accounts with my family members. Still, I have tried everything here, nothing has worked for me. Since I don't often listen to Podcasts, I have deleted them from my iPod. I have no idea why I am unable to sync and no one seems to have the same problem as me.
    Thank you for your help in advance.
    Details
    iPod touch, 5th generation
    iOS 8.1.2
    iTunes 12.0.1.26
    Windows 8
    Purchases
    Pre-ordered album "Froot" purchased from the account that is authorized to my computer
    Podcast "Not Too Deep with Grace Helbig" also purchased from the account that is authorized to my computer

    Try backing up to iTunes and restoring from that backup

  • Error in syncing - the iphone couldnt be synced because this computer is not longer authorized for purchased items on this iphone

    the iphone couldnt be synced because this computer is not longer authorized for purchased items on this iphone... to authorize this computer choose store and authorized................ this message coming again and again as i already authorized my computer with my apple id. but i dont understand why this message appear...... before it was working.. i did format my pc and install windows and software again.. even i check different computers with install itunes.. but same message..
    please help me

    If there is content on the device from multiple Apple IDs, the computer must be authorized for each of those Apple IDs.

  • Choose from List-CFL button is not visible

    Hi Experts,
    I am using SAP B1 8.8 PL 05 in ramp up. I have observed that in some of the clients PCs in Sales Order window I am not able to see the Choose from list button / CFL button for selecting Customer Or say Item.
    This happens only in some Client PCs, where as in other clients PCs it works fine.
    BR
    Samir Gandhi

    Hi Rashid,
    I did that. Now the indicator is displayed, but still I am not able to see the customer / item  list.
    BR
    Samir Gandhi

  • Removing Duplicates from a choose from list

    Hi All,
    I have a choose from list of obj 73 )Catalog Numbers (Table OSCN)
    I also added conditions in the CFL that it only shows the Substitute for the CardType = 'S' (Supllier) Business Partners.
    But I want to remove all the duplicate Substitutes from the CFL so that only distinct Catalog Numbers shows in the CFL.
            //  Adding 2 CFL, one for the button and one for the edit text.
                    oCFLCreationParams.MultiSelection = false;
                    oCFLCreationParams.ObjectType = "73";
                    oCFLCreationParams.UniqueID = "CFL1";
                    oCFL = oCFLs.Add(oCFLCreationParams);
                    //Adding Conditions to CFL1
                    oCons = oCFL.GetConditions();
                    oCon = oCons.Add();
                    oCon.Alias = "Substitute";
                    SAPbobsCOM.Recordset oSuppliers = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                    oSuppliers.DoQuery("Select Distinct t1.Substitute From OSCN t1 Join OCRD t2 on t1.CardCode = t2.CardCode Where t2.CardType = 'S' Group By t1.Substitute");
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                    while (!oSuppliers.EoF)
                        oCon.CondVal = oSuppliers.Fields.Item(0).Value.ToString();
                        oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;
                        oCon = oCons.Add();
                        oCon.Alias = "Substitute";
                        oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                        oSuppliers.MoveNext();
                    oCFL.SetConditions(oCons);
    Please advise....
    Kind Regards,
    Brenden Draper

    Hi Brenden,
    what you are trying to archieve won't work. Simply because CFL is getting all row data from  OSCN and ItemCode or CardCode can differ for a specific substitute.
    For example.
    ItemCode,CardCode,Substitute
    ItemA,BP1,sub1
    ItemA,BP2,sub1
    Would be 2 resultlines both with sub1 as substitute.
    SQL equivalent :
    Select Distinct t0.* from oscn t0 inner join OCRD t1 on t0.CardCode = t1.CardCode where t1.CardType = 'S'
    My advise would be to open a simple form with a grid and datatable bound.
    Some lines of coding and you get all you need.
    regards,
    Maik

Maybe you are looking for