Cash Discount Days (ZBD1T) gets an automatic value, not wanted

Hi,
When i use LSMW to post an open customer item the ZBD1T field will sometimes have an automatic entry, probably based on the HKONT (Reconcilliation account) that is used. This is unwanted because i need the ZBD1T field to be empty (it is skipped in the input file).
Is there a transaction which defines any automatic entries in this field based on values like the reconciliation account used?

Hi Casper,
The field ZBD1T is usually populated based on Payment Terms ZTERM. The ZTERM is defaulted in the line item during the posting for a customer based on the Payment Term ZTERM given in customer master data KNA1/KNB1. You have an option to change the payment terms during posting or it is defaulted.
Hope this clarifies.
Rgds.

Similar Messages

  • Lockbox Issue with payment on exact day as Cash Discount Days 1 Due Date

    Dear Gurus
    We are running into an issue in as much as when we receive a payment against our Lockbox on the exact day as the Cash Discount Days 1 due date the system posts this as an on account posting as opposed to applying the cash against the open receivable and posting the difference to the Cash Discount Account.
    E.g. Invoice 10000 Payment term 34 days 2% Net 35. I created the AR invoice today with invoice date and posting date of Oct 9, 2009 and posted the same. Received payment $ 9800 on Lockbox file today Nov 12 using the BAI2 format Lockbox file and found that the system did not even show the invoice # on the Lockbox reports but it recognized the customer based on the MICR # and posted an on account payment. It gave the error" F5 263 Difference too large for Clearing"
    The users have prior complained that this situation arises in F-28 as well where they would have to force the discount instead of the system recognizing the same if cash was being applied on the same date as the Cash discount Days 1 due date.
    Any help in this regards will be geratly appreciated and points awarded.
    Regards
    Satpal Narang

    Hi Satpal,
    Please check the net due date of the document which you are trying to do the payment. As it is critical information to calculate the cash discount.
    I hope this helps.
    Regards
    Ravinagh Boni

  • Get an enumeration value (not a description) of Simple type

    Hi,all
    How can I get an enumeration value (not a description) of Simple type that I have created?
    Regards,
    Michael

    Michael-
    Here is how you do it:
    1. Create an attribute of the Simple Type you have created in your controller context.
    2. Insert a DropDownByKey in your view.
    3. Create a data binding between the attribute and the selectedKey property of the drop down list.
    4. To get the key of the selected value use the following code in your controller:
    String key = wdContext.currentContextElement().get_AttributeName_();
    Where AttributeName is the name of the attribute you have created in step 1.
    Cheers-
    Atul

  • Cash Discount Calculated for One Line Item and not for Other

    Hi All,
    We have devloped a Z program which is used to Write of InterCompany AR and AP recon Account to another GL Account. In this program to clear line item we have created a BDC which calls t-code FB05. Thsi program is running perfectly fine for all company codes.
    There is new company code SG20 for which it is not clearing the line items. It has created a Session in SM35, when we analysed the seesin we found that for some line items system is calculating Cash Discount and for some other line items it is not but the payment Term is same for all the douments with 3% 14days.
    I need your help in understanding that why for some line items system calculates the Cash Discout where as for others it is not calculation..also the Posting Date is same for all the documents.
    Please advise what could be the reson for this.
    Thanks!
    Regards,
    VIvek Srivastava

    Hi
    Cash discount is calculated based on the combination of baseline date and payment term conditions.
    Hence please check the baseline date for all the documents, in which the cash discount is not appearing.
    In your case, the possible reasons could be that 1) baseline date is different between these documents or 2) payment terms cash % is manually modified in the line item of the documents.
    Regards

  • Calendar Adding Alerts Automatically - Do Not Want!

    Hello all,
    For some reason, Calendar has been adding alerts automatically and I do not want this to be happening. In my Calendar preferences on my Macbook Pro, I have all alerts set to "none." This only happens on newly created calendars for some reason.
    The problem goes a bit futher, though, and my iPhone 4 (running 6.1) and iPad 2 (running 6.1) are also adding alerts automatically. I scrupulously deleted all the alerts that Calendar created (from my Macbook), updated my devices, only to find that there were still alerts on them. I have all alerts from Mail, Contacts, Calendars > Default Alert Times set to "none" on both devices.
    I do not use iCloud or Google Calendars.
    What on earth is going on and how do I fix it?

    I understand how IMAP works. Thanks.
    The problem is that the iPhone is automatically, without user input, deleting everything from the InBox. This is determined by the log on the server. I traced the IP of the device that is deleting the email back to the iPhone.

  • Email Deleting Automatically --- Do not Want This To Happen - - Help

    I have a 3GS iPhone that is somehow automatically deleting emails, actually moving them to the trash. I do not want this to happen. I've shut off any reference to deleting emails in the iPhone, but this happens intermittently.
    Any ideas?

    I understand how IMAP works. Thanks.
    The problem is that the iPhone is automatically, without user input, deleting everything from the InBox. This is determined by the log on the server. I traced the IP of the device that is deleting the email back to the iPhone.

  • F-28 cash discount error

    For making payment to the billing document from SD in f-28 t-code, we are getting the cash discount percentage but the cash discount amount is not displying even we specified the payment terms in Sales order creation. Even, if we specify manually the cash discount amount in f-28, its giving an warning message 
    ERROR : Cash discount-relevant amount is zero; check entry at the bottom left corner of the screen. When I click this warning, I get a pop-up screen with the same message and message no. F5073.
    We have maintained the field status as given below:
    Also check that in transaction OB41, Payment term is maintained as optional field in field status group Payment Transactions for posting key 31.
    Also go to FS00 for the reconciliation account assigned to your vendor, the go to tab 'Create/bank/interest" and double click on the field status gorup.Check that in group Payment Transactions, the field Payment term is marked as optional field.)
    And SD pricing for the material is also defined.
    condition type : SKTO for the cash discount.
    After doing all the abouve configurations, we are still getting the error,.
    From FI side, we have no issues as it is giving the cash discount percentage and cash discount amount in f-28 correctly. and we are able to process the cash discount document, which gets generated automatically.
    Only the problem From SD flow.
    Regards,
    Ketan

    hi
    check out this SAP Note
    185223  Posting of cash discount paid without tax code

  • Cash Discount on procument value

    Hi All,
    We have a scenario in commission basis sale for cash discount as below.
    Procurement.
    Vendor procurement value- 100
    Cash discount to vendor if within 5 days - Rs.2
    The same procured material will sold to customer.
    ( In this while receiving the payment from customer cash discount needs to calculate on procurement value)
    Sales.
    Customer Billing value (procurement value + company Commission)= 100+5 = 105
    Customer cash discount on procurement value (means 100/-) if customer pays within 5 days = Rs.2/-
    The Idea of doing this is cash discount received and paid should be matched,
    In FB70 we can maintain cash discount base amount manually or while receiving the payment we manually modify the cash discount amount. But it should be automatically since transactions are in huge valume.
    Kinldy help in this.
    Thanks in Advance
    Sahil

    Hi,
    Maintain Cash Discount GL in T.Code: OBXU, then system pick gl automatically
    Regards
    Viswa

  • Cash Discount if F110 being considered even after expiry of due date

    Hello SAP Consultants,
    I have setup a payment term for client which is 1% disc if paid within 10 days of invoice date. On running automatic payment program F110, irrespective of no. of days, the payment program generates discount of 1%. (I am using standard payment method C-cheque)
    My doubt is why SAP is applying cash discount in F110 even when the payment is being made after 10 days say after a month.
    I have cheched the setting in FBZP in All company Codesfor Maximum Cash Discount. The tick is not there means it is not activated. Still we are getting the above error in F110.
    Regards,
    Abhishek

    Hi Abhishek,
    The problem you're experiencing is caused by your payment term configuration, which probably has 1% 5 days but does not include how to handle cash discount after that date e.g. 0% 6 days. You can test this quite simply (presuming you have access to a test system) by changing the payment term configuration to include 0% for 6 days then post a vendor invoice with the same details provided in your message and process for payment. Alternatively find an existing vendor invoice with payment term you mention and double click into the vendor line item and add 6 days to the Cash discount days 2 field but leave the Cash discount percentage 2 field blank (see example below) then process for payment. I have also pasted the text from OSS note 48384 below which refers to this issue.
    Vendor line item - Additional details tab
    Payt terms   XXXX                    Days/percent 5   1.000  % 6          %    
    Expected results (based on details mentioned in your message):
    Payment run posting date: 15/03/10  -  Posting date of next payment run: 16/03/10
    cash discount still valid and should be deducted
    Payment run posting date: 16/03/10 -  Posting date of next payment run: 17/03/10
    cash discount not valid and should not be deducted
    SAP Note 48384 - Cash discount is taken although item overdue
    Note Language: English Version: 4 Validity: Valid Since 20.02.1997
    Summary
    Symptom
    Vendor invoice is paid with cash discount by the payment program
    although the cash discount period has expired, the "Always max. cash
    discount" flag in configuration Payment program is not set and no cash
    discount agreement is noted in the document either.
    Additional key words
    F110, payment run
    Cause and prerequisites
    If in the terms of payment only, for example, 10 days 3 % and nothing else has been defined (further fields are not filled at all), the payment program has no instructions as to how the payment is to be made if the first cash discount period has expired. Nevertheless, the payment is made with cash discount terms 1 under these circumstances.
    Solution
    Choose other terms of payment.
    Header Data
    Release Status: Released for Customer
    Released on: 19.02.1997 23:00:00
    Master Language: German
    Priority: Correction with medium priority
    Category: Consulting
    Primary Component FI-AP Accounts Payable
    The Note is release-independent

  • Clearing issue Incoming payment due to Cash discount ( customers)

    Hello,
    During processing automatic incoming payments the system don't clear the customer open item in case the customer has taken a cash discount.
    The clearing should be done automatically in the posting area 2 but now the the user needs to do manual interventions in the FEBAN in order to clear the customer
    We checked the payment terms and verified the discount taken by the customer and they are ok
    After investigation we guess that the original SD invoice don't send the Discount amount and Discount base amount to FI, because  we saw that those fields are empty in the FI document (RV),
    Also in Billing the Cash discount base field in empty...
    When i tried to create a manual customer invoice those fields are well filled in and the system clears the customer open item perfectly !
    Any one an idea how to fix it ?

    Hello,
    Thanks for your feedback but the issue is not solved.
    Is there difference in clearing behaviour in case the open item posting is orginated from  a SD invoice ( Billing) because as stated before, when I make a FI sales invoice (FB60) the system perfectly accepts the cash discount and post and clears in postingarea 2
    Also when I consult the open item position (FBL5N) the cash discount amount field is empty which is not the case when I post an FB60 invoice
    Summarized
    We are usiing the automatic bank statement program ( FEBC), during posting the system post perfectly posting area 1 (FEBP) but fails the post postingarea 2 ( the system makes a payment advice) the message the system generates ' Difference to large for clearing F5263'
    Many thanks for help

  • Cash discount payment not transferred from SD to CO-PA

    Dear Gurus,
    We have notice that since a couple of months ago, the cash discount payment amount introduced in the SD bill through a condition type is not transferred to the profitab. analysis document (that is, is not carried to CO-PA module).
    While we fulfilled the condition type with the amount correctly in SD, field "Cash discount payment" in CO-PA (screen "value fields") is empty, with any amount.
    We really don´t know why.
    This was working ok 2 months ago, so that is the strange thing.
    Can anybody in SD module give me a hint of what can be happenning, please? Or what to check....
    Many thanks in advance

    Hi,
    Please check the pricing procedure and your condition type of cash discount type whether statistical is ticked or Account key is there
    Thanks
    Krushna

  • Payment Terms- Cash Discount based on Unit

    Dear Friends,
    I am Rajesh Parmar, I have problem in defining the payment terms for Sales and distribution in SPRO,
    In the Standard SAP System, Payment terms has been define with percentage base cash discount for days ( e.g Within 14 days 2 % Cash Discount).
    As per my business requirement, I want to have  payment terms like " Payment within 4 days INR 3 per Unit Cash Discount ", and INR 3 per Unit should shows during incoming payment from the customer, if customer is making payment within 4 days
    Kindly provide the solution for the above problem
    Thanks & Regards,
    Rajesh Parmar

    Hi,
    The documents which are already posted can not be changed. Alternatively reverse the posted document by using mass reversal then you post the new documents with new rules for this old transactions.
    Prasad

  • How can I prevent a negative cash discount?

    The logic being used to determine a cash discount for an invoice billing document is:  Total Cost of Materials u2013 Total Freight Cost - Base Value.  Base Value x Cash Discount % = Calculated Cash Discount.  Base Value u2013 Calculated Cash Discount = Total Due if Paid w/ in cash discount period.  We have invoices where the Total Freight Cost is > Total Cost of Materials.  When this occurs the Base Value and Calculated Cash Discount become a negative number.  When the final calculation is executed to determine the Total Due if Paid w/ in cash discount period, rather than being subtracted from the Base Value, the Calculated Cash Discount amount is added.
    I'm looking to find out if there is a non-customized way to set the Calculated Cash Discount to zero if the Base Value is a negative number.

    Look into Condition Exclusion.
    CDST (Cash discount) and ZDST (Zero Discount)
    ZDST will always be 0, Create an exclusion such that if CDST is < ZDST to ignore CDST and take ZDST instead.
    That's one way through straight IMG config

  • How to get the selected values from a selectmanylistbox?

    Hi ADF Experts,
    <af:selectManyListbox label="Label 1" id="sml1" partialTriggers="cb2"
                            value="#{viewScope.TestBean.lovValue}"
                      autoSubmit="true"      valuePassThru="true">
        <f:selectItems value="#{viewScope.TestBean.actualList}" id="si1"
                       binding="#{viewScope.TestBean.selectedItems}"/>
      </af:selectManyListbox>
      <af:commandButton text="get selected values" id="cb3"
                        actionListener="#{viewScope.TestBean.getSelectedValues}"
                        partialSubmit="true"/>
      private List<String> lovValue;
      private List<SelectItem> actualList;
    //getters and setters
      public void getSelectedValues(ActionEvent actionEvent) {
        // Add event code here...
        for (String selectedItem : lovValue) {
            System.out.println("Selected item: " +selectedItem.); // this is giving 1 and 3 like this. how to get the checked values as I'm getting only the indexes. In this scenario I am populating the list programmatically.Just I wanted to know how can we get the selected values(not indexes). Please suggest.
    Thanks-
    Abhijit

    Hi Timo,
    As I am sharing the page fragment and the Java class. So its my usecase I have mentioned below
    I am sharing the jsff page fragment and java class. So that it wud be of help to others.
    jsff page fragment
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
            <af:panelGroupLayout id="pgl1">
              <af:commandButton text="Search"  id="cb1"
                                actionListener="#{viewScope.TestBean.searchSupplier}"/>
    </af:panelGroupLayout>
        <af:popup id="p1" binding="#{viewScope.TestBean.searchSupplierPopup}">
              <af:dialog id="d2"
                         type="none">
               <af:table value="#{bindings.Contacts.collectionModel}" var="row"
                      rows="#{bindings.Contacts.rangeSize}"
                      emptyText="#{bindings.Contacts.viewable ? 'No data to display.' : 'Access Denied.'}"
                      fetchSize="#{bindings.Contacts.rangeSize}"
                      rowBandingInterval="0"
                      binding="#{viewScope.TestBean.tsupportIssues}"
                      filterModel="#{bindings.ContactsQuery.queryDescriptor}"
                      queryListener="#{bindings.ContactsQuery.processQuery}"
                      filterVisible="true" varStatus="vs"
                      selectionListener="#{bindings.Contacts.collectionModel.makeCurrent}"
                      rowSelection="multiple" id="t1">
              <af:column sortProperty="name" filterable="true" sortable="true"
                         headerText="#{bindings.Contacts.hints.name.label}" id="c2">
                <af:outputText value="#{row.name}" id="ot1"/>
              </af:column>
              <af:column sortProperty="email" filterable="true" sortable="true"
                         headerText="#{bindings.Contacts.hints.email.label}"
                         id="c1">
                <af:outputText value="#{row.email}" id="ot2"/>
              </af:column>
            </af:table>
          <af:commandButton text="OK" id="cb5" partialSubmit="true"       actionListener="#{viewScope.TestBean.testMethod}"/>
          <af:commandButton text="Cancel" id="cb6"
                            actionListener="#{viewScope.TestBean.cancelPopupSearch}"/>
        </af:dialog>
            </af:popup>
      <af:selectManyListbox label="Label 1" id="sml1" partialTriggers="cb5"
                            value="#{viewScope.TestBean.lovValue}"
                      autoSubmit="true"      valuePassThru="true"
                            binding="#{viewScope.TestBean.prp1}">
        <f:selectItems value="#{viewScope.TestBean.actualList}" id="si1"
                       binding="#{viewScope.TestBean.selectedItems}"/>
      </af:selectManyListbox>
      <af:commandButton text="get selected values" id="cb3"
                        actionListener="#{viewScope.TestBean.getSelectedValues}"
                        partialSubmit="true"/>
      <af:commandButton text="remove selected" id="cb4"
             partialSubmit="true"           actionListener="#{viewScope.TestBean.removeSelectedValues}"/>
    </jsp:root>
    TestBean.java
    package com.demo.view;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import javax.faces.component.UISelectItems;
    import javax.faces.event.ActionEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import oracle.adf.view.rich.component.rich.input.RichSelectManyListbox;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import oracle.adf.view.rich.event.DialogEvent;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowSetIterator;
    import org.apache.myfaces.trinidad.model.RowKeySet;
    public class TestBean {
      private RichTable tsupportIssues;
      private List<SelectItem> lovValue;
      private List<SelectItem> actualList;
      private RichSelectManyListbox prp1;
      private List valuesChoosed = new ArrayList();
      private UISelectItems selectedItems;
      private RichPopup searchSupplierPopup;
        public TestBean() {
        super();
      public void setTsupportIssues(RichTable tsupportIssues) {
        this.tsupportIssues = tsupportIssues;
      public RichTable getTsupportIssues() {
        return tsupportIssues;
      public void testMethod(ActionEvent actionEvent) {
        // Add event code here...
        // For learning purposes - show Select Many Button clicked 
         System.out.println("Select Many Button has been Clicked");
        // // RowKeySet Object can hold the selected rows from a user as follows    
        RowKeySet rksSelectedRows =         this.getTsupportIssues().getSelectedRowKeys();
        // Iterator object provides the ability to use hasNext(), next() and remove() against the selected rows 
        Iterator itrSelectedRows = rksSelectedRows.iterator();  
        // Get the data control that is bound to the table - e.g.
        // OpenSupportItemsIterator    
        DCBindingContainer bindings =         (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); 
        DCIteratorBinding dcIteratorBindings =         bindings.findIteratorBinding("findAllContactsIterator"); 
        // Information from binding that is specific to the rows  
        RowSetIterator rsiSelectedRows =         dcIteratorBindings.getRowSetIterator();   
        // Loop through selected rows  
        int i=1;
        while (itrSelectedRows.hasNext()) {        
          // Get key for selected row    
          Key key = (Key)((List)itrSelectedRows.next()).get(0);  
          // Use the key to get the data from the above binding that is related to the row      
          Row myRow = rsiSelectedRows.getRow(key);         
          // Display attribute of row in console output - would generally be bound to a UI component like a Label and or used to call another proces       
          System.out.println(myRow.getAttribute("name"));
          valuesChoosed.add(myRow.getAttribute("name"));
    //        actualList = new ArrayList<SelectItem>();
    //        String j = Integer.toString(i);
    //        actualList.add(new SelectItem(j, (String)myRow.getAttribute("name")));
    //      i++;
           searchSupplierPopup.hide();
          AdfFacesContext.getCurrentInstance().addPartialTarget(prp1);
      public void setLovValue(List<SelectItem> lovValue) {
        this.lovValue = lovValue;
      public List<SelectItem> getLovValue() {
        return lovValue;
      public void setActualList(List<SelectItem> actualList) {
        this.actualList = actualList;
      public List<SelectItem> getActualList() {
        actualList = new ArrayList<SelectItem>();
        if(valuesChoosed.size()!=0){
        for(int i=0;i<valuesChoosed.size();i++){
          actualList.add(new SelectItem(valuesChoosed.get(i), (String)valuesChoosed.get(i)));
        else{
          actualList.add(new SelectItem("1","Select One"));
        return actualList;
      public void setPrp1(RichSelectManyListbox prp1) {
        this.prp1 = prp1;
      public RichSelectManyListbox getPrp1() {
        return prp1;
      public void setValuesChoosed(List valuesChoosed) {
        this.valuesChoosed = valuesChoosed;
      public List getValuesChoosed() {
        return valuesChoosed;
      public void getValues(ActionEvent actionEvent) {
        // Add event code here...
        for(int i=0;i<valuesChoosed.size();i++){
          System.out.println(valuesChoosed.get(i));
      public void getSelectedValues(ActionEvent actionEvent) {
        // Add event code here...
         for(int i=0;i<this.getLovValue().size();i++){
             System.out.println("Selected Value:"+this.getLovValue().get(i));
      public void removeSelectedValues(ActionEvent actionEvent) {
        // Add event code here...
      public void setSelectedItems(UISelectItems selectedItems) {
        this.selectedItems = selectedItems;
      public UISelectItems getSelectedItems() {
        return selectedItems;
        public void setSearchSupplierPopup(RichPopup searchSupplierPopup) {
            this.searchSupplierPopup = searchSupplierPopup;
        public RichPopup getSearchSupplierPopup() {
            return searchSupplierPopup;
        public void cancelPopupSearch(ActionEvent actionEvent) {
            // Add event code here...
            searchSupplierPopup.hide();
        public void searchSupplier(ActionEvent actionEvent) {
            // Add event code here...
            RichPopup.PopupHints hints = new RichPopup.PopupHints();
            searchSupplierPopup.show(hints);
    package com.demo.view;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import javax.faces.component.UISelectItems;
    import javax.faces.event.ActionEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import oracle.adf.view.rich.component.rich.input.RichSelectManyListbox;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import oracle.adf.view.rich.event.DialogEvent;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowSetIterator;
    import org.apache.myfaces.trinidad.model.RowKeySet;
    public class TestBean {
      private RichTable tsupportIssues;
      private List<SelectItem> lovValue;
      private List<SelectItem> actualList;
      private RichSelectManyListbox prp1;
      private List valuesChoosed = new ArrayList();
      private UISelectItems selectedItems;
      private RichPopup searchSupplierPopup;
        public TestBean() {
        super();
      public void setTsupportIssues(RichTable tsupportIssues) {
        this.tsupportIssues = tsupportIssues;
      public RichTable getTsupportIssues() {
        return tsupportIssues;
      public void testMethod(ActionEvent actionEvent) {
        // Add event code here...
        // For learning purposes - show Select Many Button clicked 
         System.out.println("Select Many Button has been Clicked");
        // // RowKeySet Object can hold the selected rows from a user as follows    
        RowKeySet rksSelectedRows =         this.getTsupportIssues().getSelectedRowKeys();
        // Iterator object provides the ability to use hasNext(), next() and remove() against the selected rows 
        Iterator itrSelectedRows = rksSelectedRows.iterator();  
        // Get the data control that is bound to the table - e.g.
        // OpenSupportItemsIterator    
        DCBindingContainer bindings =         (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); 
        DCIteratorBinding dcIteratorBindings =         bindings.findIteratorBinding("findAllContactsIterator"); 
        // Information from binding that is specific to the rows  
        RowSetIterator rsiSelectedRows =         dcIteratorBindings.getRowSetIterator();   
        // Loop through selected rows  
        int i=1;
        while (itrSelectedRows.hasNext()) {        
          // Get key for selected row    
          Key key = (Key)((List)itrSelectedRows.next()).get(0);  
          // Use the key to get the data from the above binding that is related to the row      
          Row myRow = rsiSelectedRows.getRow(key);         
          // Display attribute of row in console output - would generally be bound to a UI component like a Label and or used to call another proces       
          System.out.println(myRow.getAttribute("name"));
          valuesChoosed.add(myRow.getAttribute("name"));
    //        actualList = new ArrayList<SelectItem>();
    //        String j = Integer.toString(i);
    //        actualList.add(new SelectItem(j, (String)myRow.getAttribute("name")));
    //      i++;
           searchSupplierPopup.hide();
          AdfFacesContext.getCurrentInstance().addPartialTarget(prp1);
      public void setLovValue(List<SelectItem> lovValue) {
        this.lovValue = lovValue;
      public List<SelectItem> getLovValue() {
        return lovValue;
      public void setActualList(List<SelectItem> actualList) {
        this.actualList = actualList;
      public List<SelectItem> getActualList() {
        actualList = new ArrayList<SelectItem>();
        if(valuesChoosed.size()!=0){
        for(int i=0;i<valuesChoosed.size();i++){
          actualList.add(new SelectItem(valuesChoosed.get(i), (String)valuesChoosed.get(i)));
        else{
          actualList.add(new SelectItem("1","Select One"));
        return actualList;
      public void setPrp1(RichSelectManyListbox prp1) {
        this.prp1 = prp1;
      public RichSelectManyListbox getPrp1() {
        return prp1;
      public void setValuesChoosed(List valuesChoosed) {
        this.valuesChoosed = valuesChoosed;
      public List getValuesChoosed() {
        return valuesChoosed;
      public void getValues(ActionEvent actionEvent) {
        // Add event code here...
        for(int i=0;i<valuesChoosed.size();i++){
          System.out.println(valuesChoosed.get(i));
      public void getSelectedValues(ActionEvent actionEvent) {
        // Add event code here...
         for(int i=0;i<this.getLovValue().size();i++){
             System.out.println("Selected Value:"+this.getLovValue().get(i));
      public void removeSelectedValues(ActionEvent actionEvent) {
        // Add event code here...
        for(int i=0;i<this.getLovValue().size();i++){
            System.out.println("Selected Value:"+this.getLovValue().get(i));
            System.out.println(this.getLovValue().remove(i));
          AdfFacesContext.getCurrentInstance().addPartialTarget(prp1);
      public void setSelectedItems(UISelectItems selectedItems) {
        this.selectedItems = selectedItems;
      public UISelectItems getSelectedItems() {
        return selectedItems;
        public void setSearchSupplierPopup(RichPopup searchSupplierPopup) {
            this.searchSupplierPopup = searchSupplierPopup;
        public RichPopup getSearchSupplierPopup() {
            return searchSupplierPopup;
        public void cancelPopupSearch(ActionEvent actionEvent) {
            // Add event code here...
            searchSupplierPopup.hide();
        public void searchSupplier(ActionEvent actionEvent) {
            // Add event code here...
            RichPopup.PopupHints hints = new RichPopup.PopupHints();
            searchSupplierPopup.show(hints);
    Thanks,
    A. Abhijit

  • Purpose of Cash Discount field in Material Master

    what is the purpose of Cash Discount field in Material Master. what does it control. do it link to SKTO anywhere?
    please explain

    Hi,
    Cash discount is applicable for this material or not..
    This is for Sales only..
    Pricing Procedure (RVAA01) and if you activate SKTV and SKTO Condition types
    Cash Discount can calculate before tax or after tax
    Condition Type- SKTV(Statistical Condition Type)---If you check requirement is "14" which says Discount before Tax( This will calculate from the Filed Material master "Cash Discount Indicator" ie "SKTOF"
    Condition Type-SKTO-(Statistical Condition Type)--
    >Requirement "9" Discount After tax - here also it will consider filed "SKTOF" ie "Cash discount indicator in material master.
    SAM

Maybe you are looking for