Set Conditions to CFL in Copy From

I didn't find any ways to set conditions on this CFL, that shows when f.i. in AR Invoices deliveries is chosen as basedocument. What i found are only modifications to the BP CFL in Marketing Documents. That's not what i need. I simply need hints or code provided for my solution. Thanks in advance.

I found the correct ItemUID via a MsgBox showing it when the event is cought.
I can set the conditions without problems. The problem now is that setting the condition has no effect on the CFL i want to filter.
Here is my code:
If pVal.FormTypeEx = 133 Then
            oOrderForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST And pVal.BeforeAction = True Then
                If pVal.ItemUID = "35" Then
                    BubbleEvent = False
                    Try
                        Dim oCons As SAPbouiCOM.Conditions
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        Dim oCon As SAPbouiCOM.Condition
                        oCFL = oOrderForm.ChooseFromLists.Item("15")
                        oCons = oCFL.GetConditions
                        If 0 = oCons.Count Then
                            oCon = oCons.Add()
                            oCon.Alias = "U_WP_STAT"
                            oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                            oCon.CondVal = "J"
                            oCFL.SetConditions(oCons)
                        End If
                        BubbleEvent = True
                    Catch ex As Exception
                        SBO_Application.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                    End Try
                End If
            End If
        End If

Similar Messages

  • Condition Type is not copying from contract to sales order

    Dear All,
    The value the i am giving in the sales contract is not copying into sales order. Sytem again asking to enter the value.Is there any setting to be done forthat.
    Regards,
    Suresh Yadav.

    Hi,
    If the *CONDITION VALUES* are *manually* entered then the values will not be copied from the *SOURCE TO TARGET* document
    Please check in the  Contract whether the vales derived from Condition records are entered manually.
    If you want the prices to be copied automatically then they have to maintained through CONDITION RECORDS in *VK11*.
    Please maintain the CONDITION RECORDS and check whether they have copied or not
    Please also cehck the COPY CONTROLS from CONTRACT to SALES ORDER in VTAA transaction -- at item--->pricing type. and set it a s  D
    Please check the above settings and let forum know the feedback.
    regards,
    santosh

  • How to set condition in CFL which are alredy assign in EditText

    Hi
      All
    I create a Screen Printer Form where i assign a edit text to ChooseFromList as follow-
    1)1st create a CFL using Collection Tab in screen printer and set the Object type=2 and Unique Id=CFL_2
    2)Then assign CFL_2 to EditText in Item Tab window.
    In that case CFL show All the Business partners. so my question is how i set the Condition in CFL_2 according to CardType.
    thanks
    Subhas

    Hi,
    Give a new Unique Id and assign that to edittext
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                oCons = New SAPbouiCOM.Conditions
                oCon = oCons.Add()
                 oCon.Alias = "U_CLEARED"
           'oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = val        
                Dim oCFL As SAPbouiCOM.ChooseFromList
                Dim oEdit As SAPbouiCOM.EditText
                Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                oCFLs = oForm.ChooseFromLists
                oitem = oForm.Items.Item(ItemUID)
                oEdit = oitem.Specific
                Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                oCFLCreationParams.MultiSelection = False
                oCFLCreationParams.ObjectType = "AUCTIONS"
                Try
                    oCFLCreationParams.UniqueID = "CFL1_ACV" & val
                Catch ex As Exception
                End Try
                Try
                    oCFL = oCFLs.Add(oCFLCreationParams)
                Catch ex As Exception
                End Try
                Try
                    oCFL.SetConditions(oCons)
                Catch ex As Exception
                End Try
                oEdit.ChooseFromListUID = "CFL1_ACV" & val
                oEdit.ChooseFromListAlias = "Code"

  • Copy from PO

    Hi All,
    Is it possible to filter records from choose from list form according to some condition when I click  Copy from PO Button in Good receipt PO from? I am using 2004 version
    thanks in advance
    tony

    Hi Tony,
    Alas, in 2004 this is not possible. In 2005 this is possible with user form and I think also with system forms.
    Regards,
    Ad

  • PO prices and condition pricing date copied from previous PO using ME21N

    We have defined a default for buyers with the TAB Price Adoption - "copying of conditions from last purchase order" set to Do Not Copy. We have assigned this default via parameter EVO to all of our buyers. When creating a purchase order using transaction ME21N and creating based upon previous purchase order all of the previous purchase order pricing and the condition pricing date is copied over. Isn't this what the parameter is supposed to prevent?
    Any suggestions are appreciated.
    Brian

    No, copiing a complete PO is something different than creating a new PO where the price is usually taken from last PO if no price conditions are maintained in an info record.
    You prevent only the second case with EVO parameter.

  • How to set condition for my Choose From List

    hi ..plz check my code...i want to set a condition on my CFL which opens GL Accounts..it has to show only Active Accounts...but when i run the program iam able to see all accounts..what might me the proble..
    my code is as follows
    '''''''''' load form
    private sub loadform()
    '' here iam loading form which is designed in Screen painter where i have a textbox (uid = 19) and CFL_2 as its choosefromlist and object type = 1 alias name = ActCode
    conditionCFL()
    oform.visble = true
    end sub
    '''''''''' end of load form
    '''''''''setting condition
    private sub ConditionCFL()
    Try
                Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                oCFLs = oForm.ChooseFromLists
                Dim oCFL As SAPbouiCOM.ChooseFromList
                Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                ' Adding 2 CFL, one for the button and one for the edit text.
                oCFLCreationParams.MultiSelection = False
                oCFLCreationParams.ObjectType = "1"
                oCFLCreationParams.UniqueID = "CFL1"
                oCFL = oCFLs.Add(oCFLCreationParams)
                ' Adding Conditions to CFL1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add()
                oCon.Alias = "Postable"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "Y"
                oCFL.SetConditions(oCons)
                oCFLCreationParams.UniqueID = "CFL2"
                oCFL = oCFLs.Add(oCFLCreationParams)
            Catch
                MsgBox(Err.Description)
            End Try
    end sub
    '''''''''end of setting condition
    i have still more code...plz follow the next code which is posted below.....

    continuation from above code...plz foloow complete code
    '''''''''''item event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            Dim EventEnum As SAPbouiCOM.BoEventTypes
            EventEnum = pVal.EventType
            Try
                Select Case pVal.EventType
                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                        If pVal.BeforeAction = True Then
                          Dim oCFLEvent As SAPbouiCOM.IChooseFromListEvent = DirectCast(pVal, SAPbouiCOM.IChooseFromListEvent)
                            Dim oDataTable As SAPbouiCOM.DataTable = oCFLEvent.SelectedObjects
                            Dim val As String
                            Try
                                If pVal.ItemUID = "19" Then
                                   Me.oDBDataSource.SetValue("U_BalenceSheet_Acct", 0, oCFLEvent.SelectedObjects.GetValue(0, 0))
                                End If
                             Catch ex As Exception
                                MsgBox(ex.ToString)
                            End Try
                        End If
                        Exit Select
                End Select
                           Catch ex As Exception
                                MsgBox(ex.ToString)
                            End Try
    end sub
    ''''''''''end of item event
    Edited by: Shenaz Sultana on Nov 13, 2009 2:18 PM

  • Character set mismatch in copying from oracle to oracle

    I have a set of ODI scripts that are copying from a source JD Edwards ERP database (Oracle 10g) to a BI datamart (Oracle 10g) and all the original scripts work OK.
    However I have mapped on to some additional tables in the ERP source database and some new BI tables in the target datamart database (oracle - to - oracle) but get an error when I try ro execute these.
    The operator log shows that the error is in the 'INSERT FLOW INTO I$ TABLE' and the error is ORA-12704 character set mismatch.
    The character set for both Oracle databases are the same (and have not changed) the main NLS_CHARACTERSET is AL332UTF8 and the national NLS_NCHAR_CHARACTERSET is AL16UTF16.
    But this works for tables containing NCHAR and NUMBER in previous scripts but not for anything I write now.
    The only other difference is that there was a recent upgrade of ODI to 10.1.3.5 - the repositories are also upgraded.
    Any ideas ?

    Hi Ravi,
    yes, a gateway would help. In 11.2 Oracle offers 2 kind of gateways to a SQL Server - a gateway for free which is based on 3rd party ODBC drivers (you need to get them from a 3rd party vendor, they are not included in the package) and called Database Gateway for ODBC (=DG4ODBC) and a very powerful Database Gateway for MS SQL Server (=DG4MSQL) which allows you also to execute distributed transactions and call remote SQL Server stored procdures. Please keep in mind that DG4MSQL requires a separate license.
    As you didn't post which platform you're going to use, please check out On "My Oracle Support" (=MOS) where you'll find notes how to configure each gateway for all supported platforms - just look for DG4MSQL or DG4ODBC
    On OTN you'll find the also the manuals.
    DG4ODBC: http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12070.pdf
    DG4MSQL: http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12069.pdf
    The generic gateway installation for Unix: http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12013.pdf
    and for Windows: http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12061.pdf

  • Condition records not copied from order to invoice

    Hi,
    I created an order and it has contion types for Frieght cost and packing cost...for both condition rocrds were found and triggered in order but whn cheked in invoice...records are not copied to invocie level..and when checked in analysis it says "access not made" for both the conditions...
    Fields combination for these are shipping point and material frieght group for both condition types...
    i checked the validity dates for both conditions and are still in validity dats.
    Can anyone advice me is there some thing else i need to check and why condition records are not copied to invoice.
    Thanks in advance
    Balu

    Hi Sumanth,
    Copy controls are fine...it is actually delivery related billing scenarios..and in delivery to billing copy contrls in header in determine export dat feild it is set to "B :Redetermine the export data" and at tiem level the pricing type is set to "C:Copy manual pricing elements and redetermine the others"
    Kindly let me know if the settings are fine or the problem is woth these settings
    Regards
    Balaji

  • I want to automatically have my pictures copied from my iphone to my computer into "my pictures" into a dated folder.  My phone did this at first and now it doesn't.  How do I set this up?

    I want to automatically have my pictures copied from my iphone to my computer into "my pictures" into a dated folder.  My phone did this at first and now it doesn't.  How do I set this up?  Thank you.

    What does the family WiFi have to do with iCloud? iCloud is on Apple's servers.
    If it is a shared computer what you can do is create a new user ID on the computer. Log in with the new ID. This will give you a "clean" iTunes library that you can use for backing up the the old phone and syncing the new phone.

  • CRM Exchange order - shipping condition not copied from Sales order

    In CRM Web client when we create an exchange order with reference to the sales order the shipping condition is copied from the BP sales area data instead from the original order.

    Hi
    Check this link
    http://learnsaptips.blogspot.com/2010/09/text-type-configuration-in-sap.html
    regards
    Prashanth

  • How to set conditions as a query in cfl?

    i have a combo box and a matrix. i have a cfl in the matrix column, once i select the particular value in the combobox the corresponding values must appear in the cfl. how can this be done?

    Hi Metilda,
    You can try this, i'use this code to set conditions in a CFL for item list. I put this code in the et_CHOOSE_FROM_LIST event in beforeaction=True :
                                            SAPbouiCOM.EditText oEdit;
                                            oEdit = (SAPbouiCOM.EditText)oForm.Items.Item("7").Specific;
                                            string typeMag = oEdit.Value.ToString().Trim();
                                            oCons = oCFL.GetConditions();
                                            if (oCons.Count == 0)
                                                if (typeMag.Substring(0, 1) == "C")
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = typeMag;
                                                    oCon.BracketCloseNum = 2;
                                                    oCFL.SetConditions(oCons);
                                                else
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_IS_NULL;
                                                    //oCon.CondVal = null;
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "";
                                                    oCon.BracketCloseNum = 3;
                                                    oCFL.SetConditions(oCons);
                                            else
                                                oCons = null;
                                                oCFL.SetConditions(oCons);
                                                oCons = oCFL.GetConditions();
                                                if (typeMag.Substring(0, 1) == "C")
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = typeMag;
                                                    oCon.BracketCloseNum = 2;
                                                    oCFL.SetConditions(oCons);
                                                else
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "SellItem";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "Y";
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 2;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_IS_NULL;
                                                    //oCon.CondVal = null;
                                                    oCon.BracketCloseNum = 1;
                                                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;
                                                    oCon = oCons.Add();
                                                    oCon.BracketOpenNum = 1;
                                                    oCon.Alias = "U_IFC_CAT";
                                                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                                                    oCon.CondVal = "";
                                                    oCon.BracketCloseNum = 3;
                                                    oCFL.SetConditions(oCons);
    It's work fine for me.

  • EA1/EA2/RC1/2.1.1 - copy from result set does not work as expected

    When I highlight a field in the result set and press "command+c" (I am on Mac) or use "Copy" from the menu, then content of the field is not copied to clipboard. You have to go to edit mode, mark the whole content of the field and then use "Copy".
    By the way, should I describe all the bugs that I have found so far in this forum or is there any other "official" bug reporting?
    Regards,
    Sven

    We have picked up keyboard mapping issues with the Mac, so I'll check on this one.
    For all early adopter bugs and queries, yes please used this forum. If you can mark you query with EA1 and you have done, then that's great.
    Sue

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • How can I set iTunes to prevent selected podcasts from being copied to iPod

    Hi,
    I have searched and could not find the answer to this problem.
    Anyway, I have a 5th gen iPod and am running it on a Mac with the latest iTunes. On the iPod options pane, I have selected to update only the selected Podcasts. I am leaving the podcasts that I do not want on my iPod (but want to keep on my Mac) unselected.
    Now although it is true that the unselcted Podcasts to not appear in the Podcast section of my iPod, the files are still there and can be found by artist, album, etc.
    How can I get around this? Basically, I have a few gigs of Video Podcasts that I do not want to carry on the iPod but do want o keep on my Mac in iTunes.
    Any help would be appreciated.
    Bruno

    This was a change in iTunes beginning with iTunes 6. In 5, podcasts were their own category. In 6, you can actually see podcasts in the regular library so they are likely being copied over by some other playlist. You have a few options for handling this.
    • Set the iPod only to copy checked items & uncheck the undesired podcasts.
    • Sync only selected playlists & make sure each smart playlist has is Podcast set to false.
    The first option gives you more control over the specific ones you don't want to include while the second applies to all podcasts, not just video.
    Also under 6.0.3 there is an iPod Preferences button in the Podcasts section of Preferences. You might be able to limit them there. I'm at work, so I don't have my iPod hooked up to this machine to verify that functionality now.

  • Price for 2nd material to be copied from 1st material

    Hi Experts,
          We have some unique requirement. My client is into service business. Most of our sales documents will be with one material for which price is determined from the condition records.
      In few scenarios the cusotmer will also go for additional serive, so the customer service team will key in an additional material in the sales order manually. For the second material the business wants the price to be copied from the first material. Is there any Standard way to configure this? I know we can do this by writing an alternative calcluation type routine, but would like to know is there any standard way to do this?
    Thanks,
    Srini

    Hi,
    You can try convincing your users with any of the following approach based on their comfort level:-
    1> If you have set PR00 (or base price of your pric proc) as condition type in the pricing procedure determination, you can maintain the value of the same in initial screen itself (on the same row where they enter material) instead of going to conditions tab.
    2> Save your sales order with first line item.  Then come to VA02 and keep the cursor in second line item.  Goto Edit ->Additional function >Propose items or simply Ctrl+F11.  On the dialog box, give the current sales order number and click default with quantity option.  Then go to the condition amount column by scrolling horizontally and maintain PR00 value.
    Regards,
    P Gomatheeswaran

Maybe you are looking for