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

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.

  • Is there any RFC function module to read domain fixed value

    Hi,
    Is there any RFC function module to read domain fixed value from remote system in basis layer?
    As we cannot simply wrap DD_DOMVALUES_GET with a new RFC module,because remote system will not install our component, our wrap function module is not there.
    We may need a RFC fm from basis layer.

    HI,
    Try using Function Module:
    DD_DOMA_GET , If it is RFC enabled it can be used for reading the domain,
    Kindlly go through this link below:
    How to get "Fixed Domain Values" from other system by RFC-Call?
    Hope it helps,
    Regards
    Mansi

  • 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 Lock a Variant or see variant values in Disabled mode?

    Hi,
    I have a requirement in which I create some jobs which takes some variant as one of the input.
    My Problem is once i have executed the job successfully in SM37, I need to see the variant values. I know there is a function Module RS_VARIANT_CHANGE with which we can see the values of variant.
    But i dont want the user to modify those values since the job has already been executed. I just want to see them.
    Can anyone tell me is there any FM to see just the variant values in disabled mode or the the variant is locked so that the user cant modify it?

    Hi,
    I'm not sure if you really want to create a program to see the variant values?
    Because you can see the values by simply going to SM37, select the job, display list of steps, position cursor and use menu Goto -> Variant
    Moreover, (I don't know if it may answer your requirement) when you schedule a job with a report which outputs an ABAP list, you may define in the print parameters the option "Selection cover sheet" to print the values of selection screen parameters/select-options.
    Sandra

  • 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 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

  • Checking domain fixed values

    I have a screen field in a dynpro where the domain has a fixed value range. The values shows up in the F4 help, but I can't figure out the best way to validate it in the PAI short of hardcoding, which I'd like to avoid.
    Take for example a domain with possible values 'A', 'B', 'C', '1', '2' or '3'. These values pull through to the search help but I also need to validate manual user input against this list.
    I understand the DDIC attribute for a screen element can do this, but that's not an option in this case as the name of the field does not match the name of a dictionary field. Any other suggestions?
    Thanks

    >
    Chris wrote:
    > I have a screen field in a dynpro where the domain has a fixed value range. The values shows up in the F4 help, but I can't figure out the best way to validate it in the PAI short of hardcoding, which I'd like to avoid.
    >
    > Take for example a domain with possible values 'A', 'B', 'C', '1', '2' or '3'. These values pull through to the search help but I also need to validate manual user input against this list.
    >
    > I understand the DDIC attribute for a screen element can do this, but that's not an option in this case as the name of the field does not match the name of a dictionary field. Any other suggestions?
    >
    > Thanks
    If this field should only contain values from the domain fixed value range, why don't you make it into a drop down listbox field?  This would make manual input impossible and all they can do is select values from the drop down list.

  • Hide domain fixed values for future use

    We have  a custom domain with 7 fixed values.These Fix values will display if we click on f4 help in the screen.I dont want 4th value and 5th value in the f4 search help button.whether it is possible to hide those values for future use. if we delete the fix values from the domain fixed value list..then it is effecting the past data.Please help me on this.

    Hi Prashanth,
    Use FM : DDIF_DOMA_GET  to get the fixed values for that domain in an internal table, then you can process that internal table according to your requirement and display only those values, in AT SELECTION_SCREEN ON VALUE_REQUEST event in the report.
    I hope it resolves your problem.
    Thanks,
    Avinash

  • Need of value mapping  and fixed values in (conversions)under graphical map

    hi.
    helo all.
    i just want to know what  is the need of value mapping  and fixed values in (conversions)under graphical mappping.
    can any body explain me with real time example .
    waiting for your response.
    bye.
    regards.
    seeta ram.

    Hi Seetha Ram,
       Value mapping:  Where we maintain a table of values which are mapped.
    based on the incoming value we can send the respective resultant value.
        for Eg: for language SAP maintains as EN  --> English  etc
    can u refer these
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    Re: Value mapping table
    Thanks and Regards
    Harsha Vardhan.P
    **Reward points if found useful**

  • Validate a value against table validation value set within PL/SQL

    Hi,
    I am trying to import price list lines along with Pricing attribute values.
    I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
    Value set defined is of type table validation.
    I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
    Also please point me to documentation that lists various public PL/SQL APIs
    Regards,
    Mrutyunjay

    You can find functions and procedure for Value sets in packages FND_FLEX_VAL_API or FND_FLEX_VAL_UTIL.
    Example : get_table_vset_select gives you the select statement of your value set. Executing this statement will allow you to validate your values.

  • 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

  • Need of a function module to give a pop up of certain values

    Hi Experts,
    I am need of an function module to give a pop up of values present in an internal table, just like an F4 help. Please advise.
    Thanks in advance,
    Vivenchandar R

    hi Viven,
    check the program <b>BALV_POPUP_TO_SELECT</b> to see how the function module <b>REUSE_ALV_POPUP_TO_SELECT</b> can be used for your requirement.
    Hope this helps,
    Sajan Joseph.

  • 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.

  • 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

Maybe you are looking for

  • How to print a pdf email attachment in android system

    How to print a PDF email attachment

  • Touch in the

    I know I should not jog or run with my Zen Touch, but what about using it in my car, or bus? You think I can use my Touch safely while riding in a car or bus without the fear of damaging the hard dri've?

  • Page sizes

    I am new to Mac and pages. I use MS word 2007 to create my sermon notes. I set the paper orientation to landscape and select 2 pages per sheet. This works much better than creating 2 columns in landscape orientation. Is there a feature like this in P

  • Firefox ferezes after opening a new tab

    This is difficult to reproduce on command but happens regularly enough that I have found myself shying away from FireFox 4... I have FireFox 4.01 on Windows 7 Pro 32-bit (SP1). 4 GB ram, 66 GB free on the HD. On a regular basis, after opening a new t

  • E51 - problem sync log with parrot carkit

    Hello, I just bought a Nokia E51 and I have a problem. It does not sync the dialled, answered, missed calls with my parrot carkit. I did not have this problem on the 6267. Why? What can I do? P.S. : BT SIM at distance is on and still having problem.