Set Credit Limit on Business Partner

HI all,
I am trying to set the credit limit on the Business Partner object using VB. From what I have learned its a Double value. I read in the value from a file which means its a String so i try to convert it to a Double like this:
oBP.CreditLimit = Convert.ToDouble(creditString)
but i am still getting the error "Conversion from string "" to type 'Integer' is not valid" when I try add the Business Partner.
Can someone please help me to set the value of the credit limit byt converting a string to double??
Thanks a mill!
Greeshma

Hello Vitor& Gordon,
Thanks for you responses.
Gordon, if i try your way i still get the same error.
Vitor, if I try your way i get  :-
"Input string was not in a correct format"
I'm printing out the string and I can see it looks like 20000 for example but for some reason when i use Convert it says conversion from String to Integer is not valid. I further do not understand this funciton as I am expecting a Double as a return value and not an Integer.
What am i missing??

Similar Messages

  • Changing Credit limit of Business Partner

    Hello Guys,
    I have a requirement in which I need to calculate the credit limit of a particular business partner and display it in 'Limit' field under the Credit Segment data. problem is I am not able to find any badi which will allow me to change the limit field.
    Please provide me the badi in which I can do this.
    Thank you.
    Regards,
    Saurabh

    Hi,
    pls. refer this:
    Enhancements required in MIGO
    Regds,
    Rakesh

  • Can v set credit limit for a vendor? if so, how?

    can v set credit limit for a vendor? if so, how?

    Hello
    the two replies are correct that the redit limit is always used for customers. but i can give you the scenario as per the request and Amrita please correct me if i am making something wrong.
    as per vendors there are three to four vendors are available for buying a material. we are not using quota arrangement but we just distribute the order based on the situations. the order is given to a vendor who is quoting low price, giving the required quality and quantity and supplying as per our need. there is one more criteria for choosing this vendor. the outstanding balance for this vendor should not cross some limit.
    the limit may be based on negotiations and the some contracts' terms and conditions.
    the solution for this may be that there should be one report where you can see how much we owe to each vendor. this could be possible only when we know the Vendor g/l account and the corresponding balances.
    i think i have cleared the credit idea as well as given the solution. please reward if found it helpful.

  • How to set credit limit on Agent

    Hi All
    In My scenario  Liability is generated on Customer but i want to consider agent as well for credit limit.
    As i know credit limit is set on the payer partner function but here i have created Agent as a partner function who is not the payer.
    How to set credit management settings on agent.
    Do i need to take help of an Abaper for this.
    regards
    Prabhakar

    hi,
    this is to inform you that,
    what is the business logic on the same. please let me know.
    1. if your customer as well as Agent is one and the same that means customer then you can have credit limit on the same as per your requriment.
    2. if your AGENT is not playing a role of a customer but a partner then speak to your ABAPER by giving PARTNER INDEX NUMBER which will generate on including the AGENT in the sales order.
    3. please ask your whether it is not possible or not:
    3.1. create a Z table with maintaince views with the list of partner's to consider for credit limit.
    3.2. assign or link this Z table to the credit limit creation program or include.
    please check and confirm
    balajia

  • Any opinions on setting default values on Business Partner level?

    Hi All,
    I do not have a question, but would like to have a good discussion on how you should preferably be setting default values on a business partner and it's assignment blocks.
    In my opinion you have two main alternatives:
    1. The "old fashioned" way by using the get_<attribute_name> method and doing some checks for the perticular attribute in the context node.
    2. Using the Badi BADI_CRM_BP_UIU_DEFAULTS to fill fields with a default value. With some enhancements on the assignment blocks (making typed_context attribute public and, when not called yet, calling the badi) you can use the badi for all assignment blocks.
    Because I discovered via debugging that in the, by many forums suggested, badi code a programm error/exception is used so that the default values are only set during creation mode, I started doubting to use the badi. Because once I had set my data declarations to the right references and the exception did not occur anymore, suddenly it always fills the values even when there are already values filled. So additional checks are needed to assure that I am in creation mode.
    Although I like the use of the badi, because all my default values on the whole business partner object can be found in the same place, it is getting a bit strange to: first still enhance the view and context node class, adjust the visibility of the typed_context, call the badi and do all kind of checks to assure that you are in the right view/context node, where this all is faster and more lean and mean when done directly in the get_<attribute_name> method on a context node.
    Anyone who wants to give there opinion on this?
    Regards,
    Martijn.

    Cameron,
    Unfortunately you cannot pass the Account and Contact name before saving the record. Post default tries to capture the name just before the record gets saved, but as the record is yet to be created, the relationship wont exist and only the respective id fields will have values. If you try using account id/ contact id it will work else just pass the time stamp in the name field which will make sure there is some value when the record is saved. later in the back end you might need WS to update the field values.

  • Setting required to create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system

    Dear Experts,
    Can you please suggest me list of activities require to automatically  create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system .
    i.e If I create the customer master record and transfer the same CMR to SAP GTS , what are the setting requires to maintain in SAP GTS sytem to automatically create the Business partner .
    Ram

    Hi Raghu,
    Below are the main settings required to enable you to transfer Customer Master Data to SAP GTS. Please note that their is a difference between, Customer Master Record and Customer Master Data in terms of data and for GTS, we transfer Customer Master Data. Hence, below are the settings required:-
    In SAP ECC system:-
    Activate the change pointers for Customer Master Data apart from enabling basic connection settings.
    Schedule a job to run at regular intervals to transfer all the customer master data for the available change pointers to the SAP GTS system
      2.  In SAP GTS system:-
    Maintain the Mapping for ECC Customers to SAP GTS Business Partners in the General settings area of the SPRO in SAP GTS system
    Ensure that the Number range is maintained for those GTS  Business Partners.
    Also, some time you may be required to maintain the organisational structure to ensure full working.
    I hope this will be helpful to you.
    Regards,
    Aman

  • How to set credit limit to customer?

    the credit limit for  customer- X is  200000/-
    if more than 2lacs dont allow sales to that customer ..how to set these rules?
    thanks in advance

    The forum [FPM - General|Enterprise Performance Management (SAP EPM); in which you originally posted your question deals mainly with the financial performance applications otherwise known as Enterprise Performance Management (EPM) carrying the BusinessObjects brand.   Your question pertains to SAP [ERP Financials|SAP ERP Financials; which is covered by another forum.  Therefore your message has been moved.  Please adjust any bookmarks you might have and post to the appropriate area in the future, that way you are assured you will have the right audience reading your posts.
    Thanks and best regards,
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP Labs, LLC
    BusinessObjects Division
    Americas Customer Solutions Adoption (CSA) team

  • How to set limit on sum of totals of all sales orders of a business partner in SAP B1

    Hi,
    I would like to set a limit on a business partner so that the sum of totals of all orders placed for that business partner do not exceed a certain amount. How can I do that?
    Regards,
    Victor

    Hi,
    Yes can set limit for Business partners. Follow the steps to achieve:
    1. Choose "Credit limit" check box under Administration--->System Initialization--->General settings--->BP sub tab and choose  sales order check box
    2. Set credit limit for BP under Business partner master data--->Payments terms.
    For complete information, you can  refer SAP help file.
    Thanks & Regards,
    Nagarajan

  • Prevent Credit Limit Change

    How can i restrict some users from editing/changing credit/commitment limit (feild)value in BP Masterdata and still allow them to create new BP or edit other feild?
    The reason for this is because some users are responsible for creation of BP Customer i.e. Sales and Marketing,but they're not supposed to be permited to change or set Credit limit for BP. Since they can change the Credit Limit to allow Documents with Credit Limit check restriction to be saved and return it back. OR is there is any other way i can handle this?

    Hi Adegoke,
    As suggested by Gordon you can achieve it through SDK.  Alternatively you can use Transaction Notification stored procedure to restrict the update. 
    Define a user table where you have to list the users who are authorized to update the business partner fields.  Or as an alternative to this you can use hard coded user names in stored procedures.  SAP Business One maintains the change log for few of the entities.  So here you can query the change log table for Business Partner; to identify if the value for Credit Limit field is updated.  Once you find a change here you can verify if the user who is updating the record is authorized user and accordingly bypass the update.  
    I hope the above solution works for you!
    Regards
    Nitin
    Manager, SAP Business One
    Greytrix
    It's time to think outside the box.
    Email: sap at greytrix.com | Web: www.greytrix.com
    u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Development Partners for SAP B1

  • Expiraition date for credit limit

    Hi all,
    can I set an expiration date for customers credit limit?
    Business requirement is as follows:
    In my company we grant the customers their credit limit every quarter. I want to be sure that only a deliberate action could renew the customers credit.

    hi , if every quarter you revise credit limit of the customer, You can define effective dates for credit limit in CREDIT USAGE RULES for a customer, so that when Effective Date To is expired credit limit usage cannot be perfomed for that customer. Hope this could solve your query. please let me know if wrong or right.
    thanks.
    RAM.....

  • Credit Limit based on Open Items only.

    Dear Friends,
    Is it possible to set credit limit based on Open Items only ( Document Type RV)
    If the credit limit is crossed for accounting documents not yet cleared, then system should allow creating sales order, but block any deliveries further.
    Just to add this, we are using Oldest Open Item, to make sure system blocks deliveries if even one Billing document is overdue for payment.
    << Moderator message - Please do not promise points >>
    << Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
    Regards
    Trupti Deulkar
    Edited by: Rob Burbank on Dec 16, 2010 4:02 PM

    Hi,
    AT FD32,
    For respective customers Credit Limit should be made 99999999....(i.e maximum)
    Goto OVA8. Select the respective Credit Control area, Risk category & Customer Group.
    tick-> OpenItems
    Max.Open items 100% and Nodays Open here you can maintain the grace days (after the payment term limit expires) is allowed to do the transaction for respective customer.
    if grace days are '0', then as soon as payment term limit is expires system will block the transactions selected.
    Thank You,
    RB.
    Edited by: RB@007 on Dec 16, 2010 3:12 PM

  • Productwise credit limit for a customer

    Hi All,
    Is it possible to maintain credit limit productwise (Divisionwise )for a customer.
    we sell different products like Washing machine,Air conditioner ,Refrigrator etc which we classify as division in SD Module . we want to maintain credit limit for a customer productwise.ie seperate limit for Washing Machine, Air Cond and ref etc .
    same should be checked at the time of creating sales order (VA01).
    If some one have any solution for the above scenario please let me know.
    Thanks & Regards
    Meenakshi

    Hi,
    There is no standard functionality available to have the credit limits at product level, but try to build the logics and process through the three exits available in credit Management.
    Also,
    You  can do is set credit limit, Credit control area wise.
    You can use multiple credit control area, and assign the CCA to separate sales areas ( That will represent the different Region / Products, as per your requirement).
    The assignment can be done in the below path:
    IMG> Enterprise Structure>Assignment>Sales and Distribution>Assign sales area to credit control area
    Here for combination of Sales Organisation , Distribution channel and Division you can assign separate credit control areas.
    While the Distribution channels can be defined Region wise, the Divisions can be defined Product wise.
    Now in FD32, Set the Credit limit of the customer , Credit control area wise.
    regards,
    Siddharth.
    Edited by: Siddharth Dabhowale on Jan 9, 2008 12:40 PM

  • Marketing attributes for a business partner

    Hi,
    how can I input marketing attributes for a business partner with a BAPI?
    Or can I use BATCH-INPUT (the transactions is "BP")?
    Thanks and best regards.

    Hi JoJo,
    I don't know about LSMW. But I have done something similar in a program by calling the following function module in a loop for each of the business partner:
    CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
          EXPORTING
            IV_PROFILE_TEMPLATE_ID = lv_attribute
            IV_PARTNER             = lv_partner
          TABLES
            IT_IMP_SELTAB          = lt_attr
            ET_RETURN              = et_return.
    Here you can provide the attribute set in lv_attribute
    and business partner in lv_partner. lt_attr contains all the attributes (name and value).
    Example:
        ls_attr-atname = 'Z_CUST_TEAM_ASSGN'.
        ls_attr-atwrt = 'Test Team'.
        APPEND ls_attr to lt_attr.
    Hope this helps.
    Regards,
    Chandrika

  • Restricting Business Partner, Customer, and Vendor access

    Hi,
    We have the synchronization set up for the business partner and customer for REFX.  The requirement is to allow access to change the Business Partner record in tcode BP, when as a General Business Partner, but only allow view access to the Customer information.  I have tried limiting the following objects to 03 but to no avail.  Any help would be appreciated:
    B_BUPA_FDG
    B_BUPA_GRP
    B_BUPA_RLT
    F_KNA1_BED
    F_KNA1_GRP
    V_KNA1_BRG
    I would rather have the users have access to the following so that the Business Partner can be updated:
    B_BUPA_ATT
    B_BUPR_BZT
    B_BUPA_FDG
    B_BUPA_GRP
    B_BUPA_RLT
    Is there a combination that I am missing?
    TIA

    Hello Rao
    I am also looking for solution. could you give some details on this, How did you solve your problem.
    Thanks,
    Ram

  • Load business partner (supplier ) from XML

    Hi ,
    I have two similar sap companies demo1 and demo2  I need to copy supplier object ( business partner object with  cardType = supplier  )   from demo1 company to demo2 company. To perform this action i am using code below
    ''''' code to save bp object as xml
    Dim oBP As SAPbobsCOM.BusinessPartners = clsGlobals.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
    clsGlobals.SBOCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
    oBP.GetByKey("bp1")
    oBP.SaveXML("c:\bp1.xml")
    '''' code to load bp object from xml (after connenct to demo2 company)
    Dim oBP As SAPbobsCOM.BusinessPartners = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
    oBP = m_diCompany.GetBusinessObjectFromXML("c:\bp1.xml", 0)
    If oBP.Add() <> 0 Then
          Throw New Exception(oCompany.GetLastErrorDescription)
    i got exception " You cannot set the field if business partner is a vendor "
    Very important note : with bp object with cardType = customer this code working fine
    If any one can help us with this problem?
    Thanks.

    Thanks for all answers ,
    I resolved this issue by adding new bp as supplier , after that i updated the bp from xml .
    source code:
    m_diCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
                        Dim oBP As SAPbobsCOM.BusinessPartners = m_diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
                        oBP.CardCode = m_newCardCode
                        oBP.CardType = SAPbobsCOM.BoCardTypes.cSupplier
                        If oBP.Add() <> 0 Then
                            GlobalDll.log.writeToLog("add bp err with cod:" & m_newCardCode & " to db with name:" & check.Caption)
                            errFlag = True
                            sapErr = m_diCompany.GetLastErrorDescription
                            Throw New Exception(sapErr)
                        End If
                        If oBP.UpdateFromXML(xmlFilePath) <> 0 Then
                            GlobalDll.log.writeToLog("update from xml bp err with cod:" & m_newCardCode & " to db with name:" & check.Caption)
                            errFlag = True
                            sapErr = m_diCompany.GetLastErrorDescription
                            Throw New Exception(sapErr)
                        End If
                        If oBP.Update() <> 0 Then
                            GlobalDll.log.writeToLog("update  bp err with cod:" & m_newCardCode & " to db with name:" & check.Caption)
                            errFlag = True
                            sapErr = m_diCompany.GetLastErrorDescription
                            Throw New Exception(sapErr)
                        Else
                            File.Delete(xmlFilePath)
                            GlobalDll.log.writeToLog("bp with cod:" & m_newCardCode & " was added to db with name:" & check.Caption)
                        End If

Maybe you are looking for

  • Can bridge include USB drives in its search

    I have connected several USB drives to my computer.  I would like Bridge to cataloge them in addition to my regular drice

  • 1487 error after moving ws object

    Hello, I'm recieving the 1487 error when trying to remote control a WS after moving the WS object to a different container. I've search through many posts with the same problem but nobody seems to post a solution. Here is what I'm doing... 1. login a

  • ASCS on SAP HANA Appliance

    Hi All, I am planning to install the ASCS of SAP BW 7.4 in the same  Sap HANA Database Appliance . I read some notes, including the central note and found nothing related to the Central Services on the appliance. This scenario is supported by SAP? Re

  • Problem with Online Gaming

    I play a game called Command and Conquer Genrals Zero Hour it will play perfectly fine with 11 ping, then it will suddenly lag out. The Interent does go off or anything it just says disconnected form the game. Any ideas? I have UpNp enabled.

  • Lightweight APs seeing neighbors several floors above and below each other

    Hello All, I noticed in our PI 2.1 that our access points are seeing neighbors several floors above and below each other.  For example.  I have an AP thats at least 2 floors below ground that's seeing an AP on the 6th floor.  The controller TPC is se