Set order block for new business partner

Hi experts,
I have the requirement to set the order block for a business partner (based on some attributes) at the moment when it will be created or changed.
I tried to use the BAdI BUPA_GENERAL_UPDATE where I am using the FM CRM_BUPA_FRG0050_READ/ CRM_BUPA_FRG0050_GET_DETAIL to retrieve the already existing status data and the FM CRM_BUPA_FRG0050_CREATE/ CRM_BUPA_FRG0050_CHANGE to add or change this data.
In the SAPGUI at least the update scenario (CRM_BUPA_FRG0050_CHANGE) is working.
In the WebUI application none of the both is working: In the create scenario the application is even dumping (SAPSQL_ARRAY_INSERT_DUPREC) but this dump happens in an other implementation of this BAdI!
In the BP update scenario nothing happens though the UI will be refreshed by some coding like
lr_bol_core = cl_crm_bol_core=>get_instance( ).
lr_bol_core->modify( ).
Is there something wrong or missing or is there a better BAdI to achieve this requirement?
Thanks for any help!
Regards,
Wolfhard
PS: I found another post which covers exactly my requirements but unfortunately without a solution...
[Re: Update of BP General Data during creation of BP]

Hi Bruce,
I propose to select the right value programmatically and then hide the original combo box (use the FromPane / ToPane properties - better don't disable it or make it invisble) and display a disabled EditText item which displays the pricelist which should be applied to new customers when the Form is switched to - or launched in "Add" mode.
When the form is switched to other modes than "Add" reactivate the original ComboBox...
HTH,
Frank

Similar Messages

  • How to Create Approval for  New Business Partner Master Data

    Hello Experts,
    Is it possible for creation of an approval query such that while creation of New Business Partner:
    if
      a user forgets to add data in a field say TIN No. which is present in Tax Information,
    then
      the Business Partner Creation is withheld and sent for approval .
    Can someone please help me with creation of such an approval procedure ?
    Thanks and Regards,
    Manish Saluja

    Hello Manish...
    Sorry to say there is no way to create an approval template on master data (BP, item, etc).  However, we once had a similar problem and used the Alert Management to catch critical information that was missing during the creation process.  Everyone had to enter a credit limit with no exceptions.  I do not have the exact SQL in front of me, but it went something like this...
    Very simple...
    SELECT
    T0.CardCode,
    T0.CardName,
    T0.CreditLine
    FROM OCRD T0
    WHERE
    T0.CreditLine IS NULL
    Then we set an Alert Message to go off every minute and sent it to the Accounting Department.  Although it did not STOP them from adding the Business Partner, it sure did give someone the heads up to call the person who created it after looking at the Change Log.  Sort of a compromise...maybe that helps you???
    Take care - Zal

  • Send email after setting Order block for customer

    Hello experts,
    is it possible to send an email to the sales manager when the flag Order block  ist set
    to a cusotmer ?
    Our sales representative want to know when there is set a customer to Order block  or
    Deliver block, and therefor a mail should be sent automatically to the sales represenative.
    Is there an event/user exit for doing this ?
    Thanks Gerd

    No need for user exits.  Use output determination with medium = 5. You may want to create new output condition table with order block as part of its key ( you may need to extend output field catalog) along with whatever else you need.  Do the usual output determination configuration.
    The other thing you will need to deal with is you will have different sales managers responsible for different customers.  This will likely mean that you will also have to do some partner determination configuration so that the sales manager responsible is available to the sales order.
    Create output condition record for the new output type.  Also get Basis to setup SAPCONNECT to send email out via SMTP.
    That should do it
    Frank

  • Alert for new business partner

    I am a novice at programming, what would the code be for an alert that would trigger when a new client is added? I have one but but it keeps on picking up all of the clients created each day when I only want those that have not been sent before (in other words between the alert intervals)
    thx,
    Richard.

    The easiest solution is to run the query/alert based on date - for example show me all the customers that were added yesterday. If you do this you would get an alert every day of ones for the previous day.
    New Customers entered:
    SELECT T0.CreateDate AS 'Creation Date', T0.CardName AS 'BP Name', T0.CardCode AS 'BP Code', T0.Phone1 AS 'Phone', T0.CntctPrsn AS 'Contact Person', T0.CardType AS 'BP Type' FROM  [dbo].[OCRD] T0 with (NOLOCK)  WHERE   CONVERT(DATETIME,T0.CreateDate, 101) > CONVERT(DATETIME, getdate() -1, 101)   and (T0.CardType = 'C' or T0.CardType = 'L')  ORDER BY T0.CreateDate,T0.CardName

  • To Get the list of sales orders for a Business partner in CRM.

    Hi all
    Is there any Function module or BAPI to get the Sales orders for a Business partner in CRM. I know there is a BAPI to get the list of sales orders for a customer in ECC, but I donu2019t know how to get the list of sales orders for a Business Partner in CRM.
    Can anybody tell me if there is an inbuilt function module or BAPI available?
    If not how can I pick the sales orders of a business partner in CRM? Between which tables should I apply a join and write SELECT statement to get list of sales orders for a business partner in CRM.

    Hi Jessica,
    Try CRM function module CRM_BUPA_READ_ORDER_OBJECTS.
    You'll get a table with the documents associated to that partner, where you can work on.
    Kind regards.

  • How to create a new business partner for notification with function module?

    Hello,
    I got a problem when I want to create a new Notification with its businiss partner (BAPI_ALM_NOTIF_CREATE). I can't find the proper way to create the new business partner. Anyone offer some help?
    Thanks a lot!
    Morgan

    when I look at the function you can transfer the partner in NOTIFPARTNR table.
    You must already have defined the appropiate partnerroll in customizing for you're businesspartner
    or do you have another problem with this function ?

  • Setting defaults in dropdowns on Business Partner Master Data

    Hi all,
    Can someone tell me how I can set dropdown defaults in BP Master Data?
    When I create a new Business Partner, "Group" automatically defaults to the first choice.  Can I change it to a different choice?
    Also, by default, Shipping Type is blank.  I would like to default it to one of the choices I have defined in the List of Shipping Types.  Is there a place I can do this?
    Thanks in advance for your help.
    Edited by: Lin Mike on Jun 27, 2008 3:17 PM

    Lin,
    To do that formatted search on the BP Group, you'd want to have it fire automatically on BP Code.
    The query will be:  SELECT '105'
    replace 105 with the BP Group # for "End User"
    To find the Group Number, you can run this query:
    SELECT T0.[CardCode], T0.[CardName], T0.[GroupCode], T1.[GroupName] FROM OCRD T0 INNER JOIN OCRG T1 ON T0.GroupCode = T1.GroupCode
    It gives a list of all BPs with their Group Number and Group Name
    Use this to find the Group Number for "End User" and then replace the 105 in my query with that number.
    Then use the query in the formatted search on the BP Group field and set it to Auto Refresh when BP Code changes.
    Keep "Display Saved User-Defined Values checked.
    That should do it.
    Hope that helps,
    Brad Windecker

  • Count of number of campaigns executed for a business partner?

    Hi all
    I'm hoping someone can advise me on how to fulfil this requirement. Basically I need to find a way of ensuring that customers are only included in a maximum of five campaigns per month.
    My current idea centres around
    1) Creating an interaction object for each business partner every time they are included in an executed campaign
    2) To execute a custom-developed program (or a BW query?) that will count the number of interaction objects created per business partner in the past month and write the count value to a marketing attribute called "campaign count" assigned to each business partner
    3) Exclude any business partners with "campaign count" >=5 from the target group of future campaigns
    I'm sure there's a cleaner and better way of doing this. Can anyone point me in the right direction?
    Thanks
    Mike

    Greetings from ABAP General.
    Please do not leave meaningless comments when closing age old threads only to make room for new ones.
    The comment box can be left empty. Only fill it when you have something to say about the solution that might help the community.
    Thanks
    Thomas

  • 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

  • Designate multiple languages for a Business Partner

    In the province of Quebec (Canada), contacts for a Business Partner can either be French or English. When creating a Marketing Document, I would like to be able to use the Language setting found under the Logistics Tab to select either a French or English version of a PLD template that is marked as default for that client.
    This means that a BP can be associated to multiple language versions of the same PLD.

    Thanks for your reply.
    I need the have each LOS ( Location of sale or location of delivery) of Business Partner because we will deliver items for the LOS and not for BP.
    As we also need to control (serial numbers) items & services ( field management) I also need to have the LOS as BP.
    As example:
    BP name AAA have 30 LOS.
    BP AAA bought 2000 items.
    BP AAA ask us to old theses items in warehouse.
    BP AAA request to delivery a x quantity in LOS 1, 2,3,4,...
    The invoice went to BP AAA, but the deliveries will be to each LOS of BP AAA.
    As I said we need to have the field services working side-by-side with serials numbers and services for each LOS of our BP AAA.
    So, we have subcustomers from big customer BP AAA.
    Do we have any way of having all subcustomers(LOS) as BP, along with the real customer AAA?
    Thanks in advance,

  • BP: How to hide "Validity Period" on screen Create a new Business Partner

    Hi,
    On screen Create a new Business Partner, I want to hide field Validity Period
    -> Please tell me how to do in Customizing
    Thanks and Best regards
    Ms.Minh

    Hi,
    For each BP role, you can control the field status in configuration under BP-Role Settings. Please check whether validity period is available for field configuration or not.
    Regards
    Prasad AV

  • Problem in adding a new business partner

    hi all
               iam getting an error like "Bank account is missing",when i add a new business partner..i think iam missing any mandatory field..can anybody help me..i have posted my add BP coding in the last...
    <?xml version="1.0" encoding="utf-8" ?>
    - <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    - <env:Body>
    - <env:Fault>
    - <env:Code>
      <env:Value>env:Receiver</env:Value>
    - <env:Subcode>
      <env:Value>-5002</env:Value>
      </env:Subcode>
      </env:Code>
    - <env:Reason>
      <env:Text xml:lang="en">Bank account is missing</env:Text>
      </env:Reason>
    - <env:Detail>
      <Object>2</Object>
      <ObjectIndex>1</ObjectIndex>
      <Command>AddObject</Command>
      <SessionID>EE10Cu91-F252-CB47-58A6-9929L682316F</SessionID>
      </env:Detail>
      </env:Fault>
      </env:Body>
      </env:Envelope>
    the coding for adding a new business partner is,,
    <WebMethod()> Public Function QueryBP(ByVal SessionID As String, ByVal CardCode As String, ByVal CardName As String) As Xml.XmlDocument
            Dim DISnode As SBODI_Server.Node
            Dim strSOAPans, scmd As String
            Dim xmlDoc As Xml.XmlDocument
            xmlDoc = New Xml.XmlDocument
            DISnode = New SBODI_Server.Node
            sCmd = "<?xml version=""1.0"" encoding=""UTF-16""?> "
            sCmd += "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/""> "
            sCmd += " <env:Header> "
            sCmd += "<SessionID>" & CStr(SessionID) & "</SessionID>"
            sCmd += " </env:Header> "
            sCmd += " <env:Body> "
            sCmd += "<dis:AddObject xmlns:dis=""http://www.sap.com/SBO/DIS"" > "
            sCmd += "<BOM>"
            sCmd += "<BO>"
            sCmd += "<AdmInfo>"
            scmd += "<Object>oBusinessPartners</Object> "
            scmd += "</AdmInfo> "
            scmd += "<QueryParams>"
            scmd += "<CardCode>" & CStr(CardCode) & "</CardCode>"
            scmd += "</QueryParams>"
            scmd += "<BusinessPartners>"
            scmd += "<row>"
            scmd += "<CardCode>" & CStr(CardCode) & "</CardCode>"
            scmd += "<CardName>" & CStr(CardName) & "</CardName>"
            scmd += "</row>"
            scmd += "</BusinessPartners>"
            sCmd += "</BO> "
            sCmd += "</BOM> "
            sCmd += "</dis:AddObject> "
            sCmd += " </env:Body> "
            sCmd += "</env:Envelope> "
            strSOAPans = DISnode.Interact(scmd)
            xmlDoc.LoadXml(strSOAPans)
            Return (RemoveEnv(xmlDoc))
        End Function

    Hi michael,
                       Even if i declare like below it's showing the bank account is missing..
    scmd += "<BusinessPartners>"
            scmd += "<row>"
            scmd += "<CardCode>" & CStr(CardCode) & "</CardCode>"
            scmd += "<CardName>" & CStr(CardName) & "</CardName>"
            scmd += "<BankCountry> </BankCountry>"
            scmd += "</row>"
            scmd += "</BusinessPartners>"

  • Change default CardType on adding a new business partner

    Hi everyone,
    I have a simple question, but I can't find the answer on the internet.
    I would like to change the default selected type on the form when I create a new business Partner.
    At the moment when I am in "add mode" the comboBox type ( corresponding to CartType in DB) has the value "Customer" selected by default. I want to change that default value by "Lead".  See attached image.
    Is it possible to do that?
    Thank you for your help!

    Hi,
    Not possible to change default value.Please refer below:
    Thanks & Regards,
    Nagarajan

  • Business transaction type parking permit is blocked for further business transactions

    I have a testing for web request demo-parking permit. When I finished the web table and sent it. System show "business transaction type parking permit is blocked for further business transactions". Could you help check it?

    Hi  Hamendra:
          Thanks for your hint. I have created the web request successful. Next , I have new issue. If I create a web request that be approved. How to send the web request message to inbox which is belong to approver by configuration? Thanks.

  • Release Orders Blocked for Delivery

    Hello Experts!!
    We have V.23, release orders blocked for billing.. is there a similar transaction where we can release orders blocked for delivery??
    Help is greatly appreciated.

    Hello Carla,
    Yes in the T-code "V.23", you can release the billing block for SALES ORDER in one single click. While releasing the delivery block for the Sales order the following T-code are useful:
    1. VDBLOCK
    2. V.14
    3. VA14L
    When you are using these T-codes, you get the list of all the Sales order which are blocked for Delivery. Then you can select the document for which you want to remove the delivery block and do the required updation.
    Regards,
    SARTHAK

Maybe you are looking for

  • How can i trace just 1 point on a graph from my instrument??

    i'm developping an software to get S parameters data with their graph.I'd like to dosplay the markers from my instrument too.How can i do it? thanks

  • Error message while trying to run red alert 1 in xp

    I have just bought command and conquer: the first decade for windows xp. All of the games other than the first two (c&c 1 and red alert 1) run fine. (I am running XP through boot camp). When starting up these two games, I get this error message: "Err

  • Workflow stops just after event is created

    Hi, My workflow terminates just at the start (in process) in the test system.    The event is activated and workflow log shows a log of  executed action (Sub)workflow created                    16.04.2009 17:16:44  Workflow started                   

  • SNC/SSL related queries

    Hello Experts, We are planning for SNC and SSL enablement on our SAP systems (ECC and portal) running on Soalris 9 and Oracle 9.2 paltform. As per my initial analysis: 1. SSL can be implemented with SAP provided cryptographic files (free for customer

  • Missing pdfs in ibooks after update to IOS 7.01 ipad 2

    Updated ipad2 to IOS 7.01. Backed up first. Had some difficulty and had to restore. All apps, photos,music, docs have migrated but pdfs that I had in ibooks were present when it first rebooted but then disappeared. Are these hiding somewhere or gone