Function Module to Validate a Partner Assignement to a Customer(XD02)

Hi,
I need a function module to check the validation,
while we assigning a partner to a customer in the customer master.
I need to replicate the SAP functionality in this case.
Thanks,
Sekhar.J

Hi,
Try
BAPI_CUSTOMER_CHECKEXISTENCE
BAPI_BUSPARTNER_CHANGE
BAPI_BUSPARTNER_CREATE
BAPI_BUSPARTNER_GETDETAIL
Edited by: Neenu Jose on Nov 3, 2008 6:04 AM

Similar Messages

  • Function module to validate input value

    Hi all,
    can you please provide me the name of the function module to validate input value.
    I have a case where i have to validate decimal values. sometimes users may enter wrong decimal values by mistake instead of  "0.23" "0..23' and it gives CONVT_NO_NUMBER runtime error so have to come up with some solutions to validate user input.
    Please provide me Function module if anybody knows.
    Thanks,

    Try this one
    data: lv_htype TYPE dd01v-datatype.
        CALL FUNCTION 'NUMERIC_CHECK'
          EXPORTING
            string_in = my_number
          IMPORTING
            htype     = lv_htype.
        IF lv_htype NE 'NUMC'.
           Raise an error here...
        ENDIF.

  • API - BAPI , RFC Function module to validate user id and password

    Hi,
    Can anyone provide me with the function module to validate the username and password of the user of the back end R/3 System.
    Best Regards
    Sid

    Use function module SUSR_CHECK_LOGON_DATA. You need to provide auth_method (P for password check), userid and password.
    Be careful when you execute the function in test mode because it converts the input into upper case hence if you have lower case characters in your password it will return with invalid password. If you pass the lower case into the function in a program everything is fine.
    Regards,
    Michael

  • Function module to validate numeric values

    Hi all.
    Can some one please tell me Is there any Function Module to validate only numeric values?
    Like in year variable, it can never contain alphanumeric values or special symbols?
    Is there any function module to check, wheather the variable contains only numeric values, no alphanumeric value or special symbol?
    If there is no as such function module then what is the alternative approach we can take?
    Plz help me .
    Regards
    Dipankar

    Function Module NUMERIC_CHECK for Editing and checking numeric fields ( i.e. Num validations)
    Check using the Function Module "NUMERIC_CHECK".
    CALL FUNCTION 'NUMERIC_CHECK'
    EXPORTING
    STRING_IN = X
    IMPORTING
    STRING_OUT = X
    HTYPE = H_TYPE.
    if h_type = 'CHAR'.
    WRITE:/ 'Not Numeric'.
    else.
    write:/ 'Numeric'.
    ENDIF.
    REWARDS IF USEFUL
    GAURAV J.
    Edited by: GAURAV on Feb 3, 2008 2:19 PM

  • Function Module to validate date

    Hi,
    Is there a Function module to validate date in transfer rules or update rules. I checked the forum, couldn't find an answer. Any help is appreciated
    Thanks
    Bala

    You should be able to use this FM:
    CALL FUNCTION 'RSAR_DATE_CHECK_PLAUSIBILITY'
      EXPORTING
        i_date                          = yourdate
    EXCEPTIONS
       PLAUSIBILITY_CHECK_FAILED       = 1

  • Function module to find the Credit limit of a Customer based on Credit Area

    hi Experts,
                       Is there any function module to find the Credit limit of a Customer based on Credit Area.
    Regards,
    Dheepak

    hi
    try this:
      select single * from KNKK INTO zzKNKK
          where KUNNR = xkunnr and KKBER = xkkber.
    credit limit: zzKNKK-KLIMK...
    regards,darek

  • Function module to change the partner of partner function of an order

    Hi All,
          I want to change a partner of a particular partner function related to an order if a condition is satisfied. That is if a condition is satisfied then the earlier partner assigned to the partner function should be changed and new partner should be assigned to the partner function of the order. Is there any fucntion module to do this. I got the function module 'CRM_PARTNER_MAINTAIN_SINGLE_OW' but it adds one more partner of the same patner function but what i want is to add the new partner in place of the earlier partner. If anyone has some pointers plz post.
    Thanks in advance,
    Rahul.

    Hi,
    Did you try using functions like 'SD_PARTNER_UPDATE' ?
    Thanks
    Mark points if helpful.

  • Function module to validate posting date

    Hi all,
    i am using function module amfi_period_get_and_check to validate posting date.
    if posting date is not open this module raises error message but when i am using it
    in my code its not showing error message but when i am executing the module
    it is showing the message for the same date
    please reply soon
    thnx

    at selection-screen on pos_dt.
    CALL FUNCTION 'AMFI_PERIOD_GET_AND_CHECK'
      EXPORTING
        i_bukrs                = com_code-low
      I_GJAHR                =
        i_koart                = 's'
      I_KONTO                = ' '
       I_MONAT                = '00'
       I_BUDAT                = pos_dt.
    IMPORTING
      E_MONAT                =
      E_GJAHR                =
    EXCEPTIONS
      ERROR_PERIOD           = 1
      ERROR_PERIOD_ACC       = 2
      OTHERS                 = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Function module to give all partner functions for given customer

    Can anyone tell me function module name which gives all partner functions for a customer. For ex if we give customer number and sales area then it should give the list of all partner functions of this customer.
    I know 'CUSTOMER_PARTNERFS_GET' function module. But I want other than this.

    Hi,
    U can join VBAK and VBPA table and get the parrtners of the customer..
    Regards,
    Nagaraj

  • Re: Function Module to Validate ESS Id and Password

    Hi ,
         Is there is any function module / BAPI to validate the ESS Id and Password .
    Regards,
    Vijay

    Hello Vijay,
    there is a BAPI:
    BAPI_EMPLOYEE_CHECKPASSWORD
    Regards
    Gregor

  • Function module to validate Sales Deal in VA01

    Dear Experts,
                       I have a requirement to validate the sales deal for material/material group and customer/customer group
    discounts. I need to activate/deactivate the condition type based on the sales deal entered in the sold-to-party and ship-to-party
    level. Please let me know if any function module is available for the same.
    Thanks
    Ramesh Manoharan

    Hi,
    Using custom ROUTINES in requirement column of pricing procedure (V/08) we can activate/deactivate any condition type in sales order. For your requirement you have to define the exact logic to write in routine.
    n routine, you need to set the SY-SUBRC value.
    If SY-SUBRC = 0, then the condition type will be triggered in sales order.
    If SY-SUBRC = 4, then the condition type will not be triggered in sales order.
    I hope this will help you.
    If my understanding is wrong, please explain in detail about your requirement.
    Regards,
    Shashwath

  • Function module to validate time

    Hi Gurus,
    I am getting invalid time from source system , I need to validate the time in BW.
    Is there any function module to use to validate the time field ?
    Thanks
    Liza

    Try to write a small routine like this:
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
      DATA: i_time(2) TYPE c.
      i_time = TRAN_STRUCTURE-ZZENTIME.
      If i_time > 24.
           i_time = 0.
      else.
                   i_time = i_time.
      endif.
    RESULT = i_time.
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    Hope it helps..

  • Function module to Delimit the roles assigned to the user

    Hi All,
    I am working on security role automation process abap report.My requirement is to delimit the roles assigned to the user on account of employee termination or retirement. I have used the function module "BAPI_USER_ACTGROUPS_ASSIGN"  to delimit the role assigned to the user.
    Passing the importing parameter "username" and in the Tables parameter"ACTIVITYGROUPS"  passing the respective parameters AGR_NAME(Role), FROM_DAT(Start Date),TO_DAT(termination date - 1). When I passing the parameters as mentioned above,the role assigned to the user is getting deleted,instead of delimitation of the role assigned to the user.
    Is there any other function module we can use to delmit the roles assigned to the user?  Please help.
    Regards,
    Krishnan

    hai,
    please try this.
    /VIRSA/RE_BAPI_CREATE_ROLE- Create Roles
    /VIRSA/ROLE_ASSIGN_CUA_NH
    /VIRSA/RE_BAPI_ROLE_TO_USERS
    ASSIGN_USERS_HIERARCHY - User Assignment to Role - this is a Normal FM
    try this bapis this may work
    BAPI_USER_LOCK
    - BAPI_USER_PROFILES_ASSIGN
    - BAPI_USER_LOCPROFILES_ASSIGN
    - BAPI_USER_LOCACTGROUPS_ASSIGN
    - BAPI_USER_CHANGE
    - BAPI_USER_UNLOCK

  • Function Module to Retrieve License Masters Assigned to Customs Declarations

    Hi,
    Is there a function module in GTS to determine which license masters have been created to release the blocked document?
    My requirement is that I need to determine if there is a license master created to release a blocked document. If there is, I need to retrieve the text entered in the "External License Number" field.
    Thanks.

    Thanks for the responses so far. I don't understand the linkage between maintaining "Default Document for SAP Customs Management" in "Define License Types" configuration activity and having the respective legal regulation / license master appear on the "Documents" tab of the Customs Declaration.
    For instance, if I have a legal regulation / license master that was used to unblock the delivery prior to the invoice / customs declaration being created, it will appear on the "Control" tab of the "Customs Declaration"
    Legal Reg: LEGR1
    License Type: LIC
    License Master: 100000External License Number: EXT123
    ... how can I get the External License Number from the license above to appear on the "Documents" tab of the Customs Declaration.
    I need an entry on the "Documents" tab that contains the following:
    Category: CUII
    Type: X035
    Number: <External License Number>This will be pulled from license master 100000 created above. There will only ever be 1 license master.
    Thanks for your explanations and help so far.

  • Function Module to validate a value against domain fixed values

    Hi,
    Could anybody please let me know if there is a standard Function Module that takes a Value and Domain name as an input and checks if the input value exists in the Fixed Values of the domain.
    Thanks,
    Shalabh

    Hi,
    you can use fm FM_DOMAINVALUE_CHECK. Pass parameter values for I_DOMNAME and I_DOMVALUE.
    If the value is invalid, exception VALUE_NOT_ALLOWED will occur.
    Regards,
    Klaus

Maybe you are looking for

  • Ichat video not working..  Need network genius

    Hello all, I've spent numerous hours trying to get my ichat video to work. but nothing does. I just bought a new imac a couple weeks ago and everything is updated- I have DSL my ISP is internet america - and i'm using a zoom x6 modem. I have a 1483 b

  • Relationship between condition type and payment term

    Hi, I created a purchase order (only 1 item) with with payment term "Within 14 days 2 % cash discount" So a condition type SKTO auto added for the item with discount is 2%. can anybody show me the relationship between payment term with the condition

  • Burning CD-R

    I have Iphoto 4.0.3. I am having a big problem with burning cd-r. The last cd I tried to burn was only 81 photos which is 201 mb on a 700 mb cd. The first burn worked ok. Wanted another copy and could not burn it. This has also been a problem in the

  • Can not find BIOS update for Satellite A30

    Hi friends. I'am not found Toshiba A30-203 a new BIOS update. I want install the windows vista but this error sccren. Error message: "A computer has been detected and windows has been shut down to prevent damage to your computer. If this is first tim

  • Centering vertically

    Dumb quesdtion, I'm sure, but I'm just trying out Dreamweaver 8 Having problems with vertical centering. I have a Flash movie (SWF). I put it in a table (100%) with one cell that I set to vAlign = Middle, Align = Center It centers horizontally fine.