Validation on Business Partner

Hi all,
     I have to Validate on concession card number and concession card type. so i created one function module zisuc_bupa_event_dchck and called ISUC_BUPA_ECONCARD_GET
function that time screen field data has came to zisuc_bupa_event_dchck and i have validated . now my problem is how to pass this validated data into the screen.pls  help me....
Thanks Inadvance,
Siva Kumar

Dear Taruna
Thank you for your query
but it requires a little change, when i am adding my number as alpha numeric then system is allowing to add the business partner
I need that it should be Numeric Only
i edited query as :
if @object_type = '2' and @transaction_type in ('A','U')
begin
Declare @Length as Numeric
Select @Length=  (SELECT Len(Phone1) FROM OCRD T1
    where T1.CardCode=@list_of_cols_val_tab_del)
If @Length !=10
    Begin
        SET @error = 1002
        SET @error_message = N'Mobile Number is not valid'
    End
End
By putting the condition as "!= 10"system is not allowing to enter either lesser number than 10 neither more than 10
and by editing at Declare @Length as Numeric, system is still allowing to add the BP
Please suggest me with the changes.
Regards,
Bhushan Verma

Similar Messages

  • Validation error : Business Partner  currently being processed

    Hi,
    Can anyone suggest a solution for the following error.
    Business Partner is created thru transaction BP in CRM.
    The newly created Business partner is saved and after coming out of
    transaction ,When we checked BDOC status in SMWO1 for BUPA_MAIN
    Object , it gives following errors:
    1) business partner xxxx is being processed by xxxx ( user )
    2) validation error occurred :Moodule CRM_BUPA_MAIN_VAL ,BDoc type
    BUPA_MAIN
    We found BP gets created successfully in R/3 side even though above
    error occurred.
    When we reprocessed the error message in SMWO1 , it is processed
    successfully ( status "green" )
    Pl. suggest a solution.
    Thanks in anticipation !
    regards,
    Prashant

    Hi Jashwanth,
    Tried the mentioned note but still problem persists.
    Pl. suggest !!
    regards ,

  • Business partner creation error

    Hi Gurus,
    1) We don't have pre-configured standard settings for FICAx (for ex standard contract categories, document types, number ranges, main and sub-transactions) in our system. Can anyone tell me how to load the pre-configured settings in SAP.
    2) In BP creation after entering all the BP fields, if I try to save the data it says the BP has been created but gives a dump. We were not able to find that BP when we try to look up. I am not sure if it is a configuration issue or is it due to improper loading of FI-CA.
    3) We have the same issue with contract account creation CAA1, CAA2, or CAA3. When we try to access transaction it gives dump.
    The current ABAP program "SAPLBUSS" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "SAPLFSP35 " in include
    "LFSP35TOP " in
    line 36:
    "Missing length check at runtime"
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    The current ABAP program "SAPLBUSS" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    Please advise and points will be awarded for all useful solutions.
    Thanks
    Santosh
    Edited by: Santosh Kolleti on Dec 15, 2008 6:39 PM

    Hi Mahesh,
    Thanks for the info, i did check the validity in the Business Partner and it is coming correctly for the one which are created.
    Issue i am facing is while creation of business partner, is the any field in customer master which govern the validity of Business Partner while creation.
    Thanks & Regards,
    Ravi

  • Validity Period of Business Partner in ECC 6.0

    Dear Expert,
    How will change the validity period of Business Partner in ISU (ECC 6.0)
    At present date(Validity period) is ( from 01.01.0001 to 31.12.9999).
    But I want to change the date (Validity period) is ( from 01.01.2004 to 31.12.9999).
    Kindly suggest me.
    Thanks & Regards,
    Deepak

    Dear Exprt,
    Thanks for your help & co-opertaion.
    Actuaaly my problem is standard address of BP
    Please suggest me,  how will set the flag of standard address in Table
    BUT021_FS for all BP's.
    Thnaks
    Deepak

  • How to "PREPONE" Business partner Valid from date (Role: TR0600)

    Hi Experts,
    I created BP on 4/03/2011 and using this BP I created one Commercial Lease in Contract but while activating the contract system showing Warning message as mentioned below.
    Role Obsolete: Master Tenant with Customer Account is only valid in period From 01.03.2011
    Message no. REBPBP035
    Diagnosis
    The validity of role Obsolete: Master Tenant with Customer Account is restricted for this business partner to the period From 01.03.2011. However, the object to which the business partner is to be assigned is valid for a longer period (validity period of object: 25.05.2010-24.05.2013).
    Procedure
    Extend the validity period of the role to cover period 25.05.2010-24.05.2013 in business partner processing or assign a different partner to the object for the period in which role Obsolete: Master Tenant with Customer Account is not assigned to the partner.
    Please provide me the solution  to overcome this issue.
    Thanks in advance.
    Br,
    CM

    HI CM,
    you have to change the date of assignment of the BP role accordingly (as
    mentioned in the warning message) if you do not want the message to   
    appear any more. Normally, the assignment of a BP to a contract should 
    cover the whole validity period and if this is not given, the message 
    arises.                                                                
    Please check the validity data of the role of the assigned business  
    partner. Therefore you have to go to the business partner maintenance
    screen and there check the validity data of the BP role.                                                                               
    As the validity data of the role aren't easy to find I have attached a
    screen shot for your information.    
    Hope this helps.
    Regards, Franz

  • 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

  • There is no valid business partner assigned to your user

    Hello,
    I have trouble managing change requests and would greatly appreciate some help.
    I am able to create an urgent correction to later authorize it and set the automatically created request to "In Development" status, but after this I get the following message and can not continue to the Created status.
    Type: Stop sign
    Reference object: Header Data
    Message text: There is no valid business partner assigned to your user
    I would also like to know where (transaction) and how to eliminate change requests.
    My user was assigned to me with the following roles:
    SAP_CM_REQUESTER
    SAP_CM_CHANGE_MANAGER
    SAP_CM_DEVELOPER_COMP
    SAP_CM_TESTER_COMP
    SAP_CM_OPERATOR_COMP
    SAP_CM_ADMINISTRATOR_COMP
    Do I need any additional roles? Must I assign a BP to my user? If so, where (transaction) and how (will I need aditional priveleges)?
    Regards,
    Henry

    Thank you Arun,
    Yes, I am referring to SOLMAN. Where must I do this, what transaction? I tried BP transaction but it only permits me to establish relations between BP's and not with users. I am sorry, but I am fairly new to SOLMAN and need a little more direction. Maybe if you have a good SOLMAN guide for beginners, I would deeply appreciate you sharing it with me.
    email:[email protected]
    Thank you again Arun.
    regards,
    Henry

  • Error while validating business partner

    I needed to make some fields mandatory in business partner.I coded as,
    Dim objForm As SAPbouiCOM.Form
    objForm = SBO_Application.Forms.GetFormByTypeAndCount(134, 1)
    If objForm.Visible = True Then
                    btnSave = objForm.Items.Item("1").Specific
                    If btnSave.Caption = "Update" Or btnSave.Caption = "Add" Then
                                      txtEmail = objForm.Items.Item("60").Specific
                        If txtEmail.Value = "" Then
                            strMessage = "Please enter Email"
                        Else
                            intIndex = txtEmail.Value.IndexOf("@")
                            If intIndex = -1 Then
                                strMessage = "Please enter valid Email address"
                            Else
                                intIndex = txtEmail.Value.IndexOf(".")
                                If intIndex = -1 Then
                                    strMessage = "Please enter valid Email address"
                                End If
                            End If
                        End If
                    End If
    If strMessage.Length > 0 Then
                            SBO_Application.MessageBox(strMessage)
                        End If
    End If
    The email fields is geeting validated correctly.The screen gets locked after certain time.After re-login this fields creates problem.Sometimes it fires even though email is entered.I can not track at what instance this problem occurs.

    Dilip,
    for this you may easy use transaction notification withour coding. Add to your procedure code
    if @object_type = '2'
         begin
              if 0 = (select count(cardcocde) from ocrd where cardcode = @list_of_cols_val_tab_del  and coalesce(E_mail,'') <> '' and charindex('@', E_mail) > 0 and charindex('.', E_mail) > 0 )
                   begin
                        select @error =1
                        select @error_message = N'Bad email.'
                   end
         end

  • Business Partner - Error for validity periods of addresses R11244

    We are using ECC transaction BP, and we are facing the error "Error for validity periods of addresses" when we tried to change a business Partner.
    Error for validity periods of addresses
    Message no. R11244

    Check the following notes:-
    1)  Note 882726 - SAP BP: Error message R11 244 (BP Transaction + BAPIs)
    2)  Note 1380576 - ECC BP to CRM BP address repln fails due to validity periods
    thanks
    G. Lakshmipathi

  • Business partner change Valid From Date field

    How can I change the Valid From Date field in tables:
    BUT000
    BUT020
    BUT0BK
    BUT100
    Currently the of date of creation of the business partner is in this tables' Valid From field.
    In transaction BP the Address of the Business Partner is  valid from 01.01.1990 but still I get a warning that the business partner is not valid for date 01.11.2011.

    Sounds like the problem is the valid to date.  What is that date set to?

  • Check if Valid Business Partner is Selected in OrderForm

    Hello,
    I'm writing an (UI) addon for the order input screen. For this addon I place a button on the form. This button should only be clickable when a valid Business Partner is selected.
    It should work the same as Combo with contactpersons and the Matrix with items. This is only editable when a valid bp is selected. Can anyone tell me how to do this?
    I tried to look already to check if the contactpersons combo or the item matrix is enabled. This is always true, even if it's not posible to select it.
    Thanks,
    Erik

    try this
    private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST)
                    if (pVal.BeforeAction == false)
                        SAPbouiCOM.Item mybutton = (SAPbouiCOM.Item)oForm.Items.Item("MyButton");
                        if ((pVal.ItemUID == "4")) // 4 should be vendor/customer textedit
                            mybutton.Enabled = true;
    hope it helps...

  • Business Partner: Valid Acct Groups per Partner Function

    Hi,
    Where can we assign this:
    Business Partner: Valid Acct Groups per Partner Function
    Regards,
    Ajit

    Hi,
    IMG>Sales and Distribution>Basic Functions>Partner Determination>Set Up Partner Determination>Set Up Partner Determination for Customer Master.
    Select the partner determination procedure 'AG'. double click on Account Groups - Function Assignment.
    Here  we assign account groups to partner functions.
    Regards,
    Chandra

  • Validation of bank details in a business partner

    Hi,
    We have a requirement where we need to validate the bank details of a business partner. If the details are incomplete then we should not allow the BP to be saved.
    For this purpose we have used two approaches, namely using the BADI BUPA_BANK_EXPORT, getting the data and throwing the error message if necessary. Also we have tried to use a custom function module in events in BUPT ( DCHEK event).
    The issue here is that the error message is being displayed, but the control is not going to change mode. So i cannot change the value. If i try to press enter the same BADI or function module is getting triggered again.
    Is there any way we can use an error message and gain control so that we can make modifications to the data.
    The last option would be using a ABORT mesage instead of error, but i dont think this is a really good solution.
    Please help.
    Regards,
    Chaitanya

    Hi Chaitanya,
    The BADI BUPA_BANK_EXPORT would not be the right place to implement the check.
    You could use 2 solutions, both of which will definitely work -
    1. In trsnasaction BUS7 (Events), Choose event DCHCK, and register your custom module - e.g. Z_BANK_CHECK. In this, first make a call to a memory module to get the bank details from memory, check them, and if incorrect, raise the error message using module BUS_MESSAGE_STORE.
    2. A better solution - go to transaction BUPT-->Business Partner ->Control ->Screen Layout ->Views .
      Select view BUP500(bank details) and then click on option Further checks(in the left pane).
    Here, you can register a custom function module that will get called whenever you enter bank data on the screen in txn BP and press Enter. Register this module using 'appl' = BUP.
    In this module too, do the check and raise the error message using module BUS_MESSAGE_STORE.
    Either of these solutions will surely work.
    Cheers,
    Rishu.

  • Business Partner not valid error ib FM BUP_MEMORY_BUT000_GET

    Hi Everyone,
    we are getting an error while we are doing punch out in srm ,
    the error comes at the FM BUP_MEMORY_BUT000_GET,
    here it loads data from memory and compare the business partner xxxxx with zero entries populated from memory...
    I check table but000 where we have maintained the business partner but , how and where the memory data is getting populated I have no idea about that..
    Please let me know how we can track the data from memory..
    and what could be wrong...
    Regards,
    Raj

    v

  • No valid business partner assigned to my user?

    I have this error when trying to activate my task list or trying to create any change requests.  Can anyone explain where this can be configured?
    Thank you!
    Margo

    Tx: BP
    - Create Business Partner (Person / General)
    - Assign New Role (Employee)
    - Employee, Identification tab: add your user name
    Hope this helps.

Maybe you are looking for