BAPI_HELPVALUES_GET

Hi all!
I'm developing a webdypro application that implements the functionalities of the transaction CAT2, for display, delete, change and insert working times i'm using the following bapis:
BAPI_CATIMESHEETMGR_INSERT
BAPI_CATIMESHEETMGR_DELETE
BAPI_CATIMESHEETMGR_CHANGE
BAPI_CATIMESHEETRECORD_GETLIST
And i want to use the BAPI_HELPVALUES_GET to gives all the matchcodes/valuehelps that the user have in the CAT2 transaction.
My question is: how should i use this bapi?
Which values should i set for the following input parameters:
OBJTYPE       
OBJNAME       
METHOD        
PARAMETER     
FIELD         
EXPLICIT_SHLP 
MAX_OF_ROWS   
DESCRIPTIONONLY
I hope somebody can helps me.
Thx
Rgds
Gregory.

I found a call to this BAPI.  Looks like it is strongly dependent on the BOR.
        CALL FUNCTION 'BAPI_HELPVALUES_GET'
             DESTINATION RFC_DEST
             EXPORTING
*                 OBJTYPE                    = ' '
                  OBJNAME                    = 'EmployeeAbsence'
                  METHOD                     = 'CREATE'
                  PARAMETER                  = 'Absencetype'
                  FIELD                      = 'AWART'
*                 max_of_rows                = 0
*                 descriptiononly            = ' '
             IMPORTING
                  RETURN                     = I_RETURN
             TABLES
                  SELECTION_FOR_HELPVALUES   = I_SEL_FOR_HELPVALUES
                  HELPVALUES                 = I_HELPVALUES
                  VALUES_FOR_FIELD           = I_VAL_FOR_FIELD
                  DESCRIPTION_FOR_HELPVALUES = I_DSC_FOR_HELPVALUES.
Does this help you any?
Regards,
Rich Heilman

Similar Messages

  • How to use BAPI_HELPVALUES_GET with functional location

    I try to create an RFC connection searchhelp for my ECC system to the functional location table.
    I thought of using the bapi_helpvalues_get but I get stuck in determing the right input data
    I have found the right objectype in SWOI
    BUS0010
    now I found out thanks to see where the function was used and how it was filled in with which values
    OBJTYPE                         BUS0010                 
    OBJNAME                         FUNCTIONALLOCATION      
    METHOD                          GETLIST                 
    PARAMETER                       FUNCLOC_LIST            
    FIELD                           FUNCTLOCATION           
    but still I get an error
    ES&003Parameter FUNCLOC_LIST voor objectmethode BUS0010.GETLIST not available
    what do I miss here ??
    and If abnybody nows how I can build a searchhelp with just a searchhelp exit without a view to search for values it will also solve my problem in creating a searchhelp with data from another system which I have to retrieve by RFC
    kind regards
    arthur

    BAPI_PTIMEOVERVIEW_GET
    Just pass in the a From date and To date, and then in tables, pass in a employee no, in EMPLOYEES field.thats all, execute. Any prompts you get to enter a value for anything just click save without entering any values. You will get data returned in Result table of TIMEOVERVIEW.
    You can find the Documentation of this, when you go into display mode of this Bapi, you will find function module documentation on top right hand side of the screen. in any case i am pasting it below.
    Functionality
        This method defines a time data overview for employees.
        The time data determined can be used as a value guide for recording in
        another system (such as in a time sheet or an external system).
    Notes
        An "asynchronous access" to R/3 Time Management data determined by the
        method PTimeOverview.Replicate specifies the employees for whom a time
        data overview is to be created.
        A "sysnchronous access" to R/3 Time Management data determined by the
        time period entered and the external application specifies the employees
        for whom a time data overview is to be created.
        The employees selected are returned in the EMPLOYEES parameter. A list
        of the time types for these employees also to be included in the
        overview is returned in the TIMETYPES parameter.
        The time data overviews are returned in the TIMEOVERVIEW parameter.
        The selected time types and the applicable number of hours are returned
        in the TIMETYPEVALUES parameter.
        The overviews are transferred to the other systems by the method
        PTimeOverview.SaveReplica.
    Parameters
        FROMDATE
        TODATE
        EXTAPPLICATION
        EMPLOYEES
        TIMETYPES
        TIMEOVERVIEW
        TIMETYPEVALUES
        RETURN
    Exceptions

  • HR module issue

    hi
    i am using BAPI_HELPVALUES_GET function module, through this i get employee group and employee subgroups separately,
    therefore my issue is how to find employee subgroup is of which employee group in bapi function module itself????
    i am executing bapi from se37 and giving input.
    thanx in adv
    manoj

    close the issue

  • BAPI to search for customer

    dear all
    Iam search for a BAPI  to be used in search for particular customer using one of its attribute wich is stored  in kna1 table
    and also search in its details stored in ADRC taple if possible.       
    and also  BAPI for search for  equipment  using one of its attribute like serial number or sold to party .
    thank you

    Hi lamey,
    the function module BAPI_HELPVALUES_GET has exceptionally good documentation.
    Please read it an makle use of the IMPORTING and TABLES parameters to get what you want:
    *"  IMPORTING
    *"     VALUE(OBJTYPE) LIKE  BAPIF4A-OBJTYPE DEFAULT SPACE
    *"     VALUE(OBJNAME) LIKE  BAPIF4A-OBJNAME DEFAULT SPACE
    *"     VALUE(METHOD) LIKE  BAPIF4A-METHOD
    *"     VALUE(PARAMETER) LIKE  BAPIF4A-PARAM
    *"     VALUE(FIELD) LIKE  BAPIF4A-FIELD OPTIONAL
    *"     VALUE(EXPLICIT_SHLP) LIKE  BAPISHLP STRUCTURE  BAPISHLP OPTIONAL
    *"     VALUE(MAX_OF_ROWS) LIKE  BAPIF4A-MAX_ROWS DEFAULT 0
    *"     VALUE(DESCRIPTIONONLY) LIKE  BAPIF4A-DESCRIP DEFAULT SPACE
    *"  EXPORTING
    *"     VALUE(RETURN) LIKE  BAPIRETURN STRUCTURE  BAPIRETURN
    *"  TABLES
    *"      SELECTION_FOR_HELPVALUES STRUCTURE  BAPIF4B OPTIONAL
    *"      HELPVALUES STRUCTURE  BAPIF4C
    *"      VALUES_FOR_FIELD STRUCTURE  BAPIF4D
    *"      DESCRIPTION_FOR_HELPVALUES STRUCTURE  BAPIF4E
    EXPLICIT_SHLP can be used to specify the search help
    SELECTION_FOR_HELPVALUES can be used to specify complex selection criteria.
    Read the genreal documentaion and the parameter documentation, it has many hints for you.
    Let us know if successful, Thank you.
    Regards,
    Clemens

  • Calling RFC problem...

    Hi everyone,
    I have a real strange problem trying to call custom RFC via WebDynPro.
    If I call for example the BAPI_HELPVALUES_GET passing table and structure...everything works.
    But if I call a simple custom RFC, it seems that the RFC gets emty tables...
    Can someone help with this issue....
    Thanks in adavnce for any help.

    Hi Vijith,
    I did write the wdContext.nodeOutput.invalidate();
    after the execution.
    Here is the description of this simple RFC :
    - <b>import</b> : 2 parameters ->
                    sname1 type char6 (pass by value checked)
                    sname2 type char10 (pass by value checked)
    - <b>export</b> : 1 parameter ->
                    ex_msg type text100 (pass by value checked)
    - <b>tables</b> : 1 parameter ->
                    mytable like mytype
    where mytype is a type that I created which is composed of 2 fields : fname type char6 and lname type char10.
    I repeat that any other standard BAPI, I success calling them.
    Do you see something wrong with that ?
    Thanks for the help.

  • How to Search Help ?

    I have a java webdynpro screen with a few input fields that need a search help. There are a lot of threads regarding to this topic and everyone has different information and links to many other threads.
    Could anyone please tell me what is the best/fastest/easiest way to do it?
    I am not talking about "Simple Value Selector" neither Extended Value Selector". I need a implement/use a search help like the ones in R/3 when you run transaction SE16 and enter values in the input fields using F4.
    One time I had one running where I did not need any coding at all, everything was done on the attributes of the field, but I do not recall how to do it anymore. The problem with it was that it just displayed one column and I needed it two, the column with the value itself and a second column with the text. What I need this time is the two columns.
    Thanks in advance,
    Diego.

    Diego,
    1. You can try OVS over content nodes. Create your context (most probably dynamically) according to metadata available with BAPI_HELPVALUES_GET_SEARCHHELP. Then attach OVS extension with custom IWDOVSNotificationListener that performs search for help values using BAPI_HELPVALUES_GET.
    2. You may proceed with the very same BAPI_HELPVALUES_GET_SEARCHHELP / BAPI_HELPVALUES_GET pair but inside your custom component. Next instead of OVS you may add Button / Link2Action near every field and invoke your custom component in pop-over window (read about IWDWindowManager API in NWDS help)
    3. You may use existing BAPIs (for example, BAPI_COMPANYCODE_GETLIST) or create own RFMs to provide value help. Then just use OVS with BAPI as described in WebDynpro tutorial on SDN.
    Actually, I tried (or 'am trying' first approach. However besides search help challenges I've faced a lot of limitations from OVS component. Btw, here is blog post by <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=5%2bhlk9c3p0q%3d">thomas Jung</a> that I find very useful for this task: <a href="/people/thomas.jung3/blog/2004/11/01/bsp-value-input-help-popups-version-20-part-2">BSP Value Input Help Popups Version 2.0</a>. Also he is talking about BSP, number of techniques is applicable to WD Java. Sure, certain "translation" is required. And you are even in worse position: BSP is "inside" R/3 and may utilize all the ABAP power while WD Java has only narrow Adaptive RFC / JCo window
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • PROCESS ON VALUE-REQUEST question..

    Hi, can anyone make a suggestion:
    I have an input field (on screen 200) which can be prompted with F4. When this happens the PROCESS ON VALUE-REQUEST calls a module to bring up a choice window (screen 300). Once the choice is made, a selection statement in screen 300 populates the description field on screen 200. However, while screen 200 shows the new <i>value</i> chosen, the <i>description</i> field still holds the old description. This is only refreshed when the user hits ENTER. I would like the description field to be showing the correct description immediately after the choice was made in the F4 prompt. Hope this make sense.
    (I notice even standard SAP programs have this too - just hit F4 on a choice field in say VD02, the description doesn't change until the next ENTER or button click).

    Hi,
    Providing Input Help (F4 Help)
    Use
    Users of an SAP System can use the F4 key to obtain information about the possible input values for a certain field on the screen.
    Information about the possible values for a field should also be available to those users who are working with the data in the SAP System from an external program, via BAPI calls. For example, the user of a Visual Basic program, which incorporates a BAPI to display or modify data in an SAP System, should have transparent access to the functions of the F4 input help.
    Features
    In order to provide input help, a calling program can use the BAPI HelpValues.GetList(). This method is based on the RFC-enabled function module BAPI_HELPVALUES_GET, which obtains the possible input values for a field that is passed in a BAPI call. For detailed information about the structure and use of the HelpValues.GetList() BAPI, see the documentation on the function module BAPI_HELPVALUES_GET, which implements the Helpvalues.GetList method.
    To determine the possible input values for a field in the check table, the BAPI HelpValues.GetList() uses the elementary search help or the domain fixed values linked to the field in the ABAP Dictionary.
    For this reason, you have to create or specify relevant check tables, elementary search helps (matchcodes) or domain fixed values. Only then can the calling program access the relevant input values for your BAPI fields using the BAPI HelpValues.GetList().
    As of Release 4.5A, you have to specify a foreign key, if a check table has been defined in the domain. Otherwise F4 input help cannot be displayed.
    Authorization Check
    In some cases you will only want to allow only those persons with a specific user profile to access information in F4 input help. To do this you can carry out authorization checks within the BAPI using table BAPIF4T.
    Table BAPIF4T is provided for this purpose. This table comprises the following fields, which you have to fill with the values for your BAPI.
    OBJTYPE (object type)
    The technical name of the SAP business object type, for example, BUS1065.
    METHOD (verb)
    The name of a BAPI for the business object type named above, for example, GetList.
    DTEL (data element)
    The name of a data element for which a possible entry is specified. For example, an elementary input help could be specified for the data element PERNR_D and be protected from unauthorized access.
    FNAM (name of the function module)
    The name of the function module that you have to create and that checks authorizations for the data element. This function module must have the following predefined interface:
    ""Local interface:
    *" IMPORTING
    *" VALUE(OBJTYPE) LIKE BAPIF4F-OBJTYPE
    *" VALUE(METHOD) LIKE BAPIF4F-METHOD
    *" VALUE(DTEL) LIKE BAPIF4F-DTEL
    *" VALUE(SHLPNAME) LIKE BAPIF4F-SHLPNAME
    *" VALUE(TABNAME) LIKE BAPIF4F-TABNAME
    *" EXPORTING
    *" VALUE(RETURN) LIKE BAPIF4F-RETURN
    As the template for your function module you can use the function module BF_BAPI_F4_AUTHORITY which provides exactly this interface. Copy this function module and follow the documentation provided with it.
    The additional parameter SHLPNAME contained in the function module interface provides the name of the active input help for the table or for the data element. The parameter TABNAME contains the name of the value table.
    The return code of the parameter RETURN is:
    'X' if the user of the BAPI is not authorized to call up the valid input values for a field.
    ' ' (no value), if the user of the BAPI is authorized to display the input values for a field.
    During runtime the function module is called dynamically by the BAPI HelpValues.GetList().
    An authorization check can be carried out at business object type, method or data element level:
    To check authorizations at this level…
    ... ......the following fields in table BAPIF4T must be filled.
    Business object type
    OBJTYPE, FNAM
    BAPI
    OBJTYPE, METHOD, FNAM
    Data Element
    OBJTYPE, METHOD, DTEL, FNAM
    Thanks,
    Shankar

  • Value-Request/Drop-Down like ABAP - F4

    Hello all,
    I want to implement some transactions within WAS Java. Many of my input-fields should only allow input of certain values. Of course I can define these input values within Java Dictionary. But for almost all of them there exists a customizing table within an SAP R/3 ABAP System. Is there now way to link these customizing tables for a value request function (in the Java Application) to the Java Dictionary fields?
    Thanks for Help!
    Wolfgang Ritter

    Hi Wolfgang,
    I suggest you take a look at the OVS (Object Value Selector) example/tutorial available for web dynpro...you can do similar things with it that you can do in F4...combine OVS with the BAPI: BAPI_HELPVALUES_GET and you should be able to get very similar behavior.
    Cheers,
    Jeff

  • Error message when searching for an object link within EasyDMS

    Hello,
    I have a problem with the easydms system. Everything works fine except searching in the object links. When I want to define an object link and I don't know the name of the object I try to find it with the help of the search function within easydms (within the object links).
    But the search always delivers an error message:
    "Missing authorization check to display master data"
    Does anybody now what to do?
    Thank you for your help.
    Best regards,
    Markus Sigl

    Hi Markus,
    When you try to do this the  BAPI 'BAPI_HELPVALUES_GET' is used. There are some authorization checks that are being performed for the object. These authorizations are maintained in the table BAPIF4T.
    For the above said test data, you are trying to get the help values for
    the relevant field (e.g. EBELN: po_number).However,in table BAPIF4T the corresponding authorization for the data element ebeln is not maintained. And so you are getting this error.
    So, when you maintain the below record in the table BAPIF4T,you will
    have the corresponding authorization and you will not get the error
    anymore.
    sample entry:
    Object type - ' '
    Object type component - ' '
    BAPIF4T-DTEL - 'EBELN'
    BAPIF4T-FNAM - 'PLM_HELPVALUES_AUTHCHECK'
    Best regards,
    Christoph

  • Bapi-urgent

    hi all,
    how do we check standard bapi BAPI_HELPVALUES_GET whether it retrieves all Parameter ids or not? Based on our test results.
    this is i given after execution of bapi.
    objtype =user,
    method=getdetail,
    parameter=parameter,
    field=parid.
    regards,
    msrinu.

    Dear Srinivas,
    Check out the following execution. Hope this will be helpful.
    FUNCTION zbapi_lifecycle_get_list.
    ""Local Interface:
    *"  TABLES
    *"      STRUC_GETLIST STRUCTURE  ZSTRUC_LIFECYCLE
    *"      RETURN STRUCTURE  BAPIRET2
    Internal table structure declaration.
      TYPES : BEGIN OF itab_lifecycle,
                dlcode    TYPE zse_devlifecycle-dlcode,
                dldesc    TYPE zse_devlifecycle-dldesc,
                dllevel   TYPE zse_devlifecycle-dllevel,
               END OF itab_lifecycle .
    DECLATIONS OF RETURN VARIABLES.
      DATA : wa_return TYPE bapiret2,
             gt_return TYPE TABLE OF bapiret2.
    Internal table declaration.
      DATA : tab_dlcycle TYPE TABLE OF itab_lifecycle WITH HEADER LINE.
    Getting values from data base table into internal table.
      SELECT dlcode dldesc dllevel FROM zse_devlifecycle INTO TABLE tab_dlcycle where loekz ne 'X'.
    *Transferring data (FOR DROPDOWNLIST).
      struc_getlist[] = tab_dlcycle[].
      CALL FUNCTION 'BALW_BAPIRETURN_GET2'
          EXPORTING
            type   = 'I'
            cl     = 'ZSU'
            number = '047'
          IMPORTING
            return = wa_return.
        APPEND wa_return TO gt_return.
        MOVE gt_return[] TO return[].
        CLEAR wa_return.
    ENDFUNCTION.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • How to get Help Values (F4 Values) for HR Infotype 22 and Infotype 337?

    Hi,
    Currently I am retrieving help values (F4 values) for different HR Infotypes using BAPI_HELPVALUES_GET bapi.
    I am able to provide parameters for HR infotype 0002(Personal Data), 0006(Address).
    The problem I am facing is, I don't know what to provide in OBJECT TYPE or in OBJECTNAME for HR infotype 22 (Education) and Infotype 337(Professional classification).
    I know, in which database help values are stored, but don't know what to provide in OBJECTTYPE, OBJECTNAME, METHOD and PARAMETER.
    Thanks for your help.
    Thanks,
    Ketan

    Does anyone have answer of this question?

  • BAPI FOR SOURCE OF SUPPLY(BWSCL)

    Hi Frnds,
    I need std BAPI / RFC FM for source of supply input help(F4 help). When I execute that BAPI , I shd get list of all existing supply sources along with their description.
    Please provide helpful data.
    Regards,
    Kiran.

    Hi Krishna,
    Check these function modules:
    BAPI_HELPVALUES_GET
    CALL FUNCTION 'BAPI_HELPVALUES_GET'
      EXPORTING
    "   OBJTYPE                          = ' '
    "   OBJNAME                          = ' '
        METHOD                           =
        PARAMETER                        =
    "   FIELD                            =
    "   EXPLICIT_SHLP                    =
    "   MAX_OF_ROWS                      = 0
    "   DESCRIPTIONONLY                  = ' '
    " IMPORTING
    "   RETURN                           =
      TABLES
    "   SELECTION_FOR_HELPVALUES         =
        HELPVALUES                       =
        VALUES_FOR_FIELD                 =
        DESCRIPTION_FOR_HELPVALUES       =
    BAPI_HELPVALUES_GET_SEARCHHELP
    CALL FUNCTION 'BAPI_HELPVALUES_GET_SEARCHHELP'
    " EXPORTING
    "   OBJTYPE                          =
    "   OBJNAME                          =
    "   METHOD                           =
    "   PARAMETER                        =
    "   FIELD                            =
    " IMPORTING
    "   RETURN                           =
      TABLES
        SHLP_FOR_HELPVALUES_GET          =
    "   DESCRIPTION_FOR_HELPVALUES       =
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Please advise correct solution for Search help

    Hi ,
    i want to develop a webdynpro application( in ECC 6) which takes data from 4.6C . So i have to provide my own search helps to certain fields ( like material number) .
    As i am very new to webdynpro i planed to make search helps in ECC and using search help exit and RFC ( fetching data from 4.6c) fill data to these search helps and assign this to webdynpro fields. Is it make a -ve effect on perfomance? is there any alternative way to do this ? please advise.
    Regards,
    Ratheesh BS

    >
    Ratheesh Bhaskaran wrote:
    > Hi ,
    > Can you please explain this 'There is a BAPI that doesn't remote search helps generically' .
    > Regards,
    > Ratheesh BS
    Well that should have read - 'There is a BAPI that does remote search helps generically'.  That makes more sense.  The BAPI name is BAPI_HELPVALUES_GET.

  • HELPVALUES + GETLIST

    Hello Friends,
    I am trying to call the BAPI 'BAPI_HELPVALUES_GET' for the Business partner, actually I wana see the list of all aviable Business partner avaiable in the system.
    Here is my code:
    data: des_Table type standard table of BAPIF4E with default key,
          wa_myTab like line of des_Table.
    data: val_Table type standard table of BAPIF4C with default key,
          wa_myTab1 like line of val_Table.
    data: help_Table type standard table of BAPIF4D with default key,
          wa_myTab2 like line of help_Table.
    CALL FUNCTION 'BAPI_HELPVALUES_GET'
      EXPORTING
        OBJTYPE                          = 'BUS1006'
        OBJNAME                          = 'BusinessPartner'
        METHOD                           =  'GetDetail'
        PARAMETER                        =
        FIELD                            =
      EXPLICIT_SHLP                    =
      MAX_OF_ROWS                      = 0
      DESCRIPTIONONLY                  = ' '
    IMPORTING
      RETURN                           =
      TABLES
      SELECTION_FOR_HELPVALUES         =
        HELPVALUES                       = help_Table
        VALUES_FOR_FIELD                 = val_Table
        DESCRIPTION_FOR_HELPVALUES       = des_Table
    But when i execute the above code, it gives me the following error !
    "Field "TABLES" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."
    I have no idea why this error is comming, though I have specified all mandatory tables,
    and also can any one help me in identifying what should i have to send in parameter and field, in export parameter.
    Many thanks
    Marek

    Hi Marek,
    Read documentation for Business Object "Helpvalues" which helps u to understand the functionality .It has got examples also.I am pasting it here.
    Method
    Helpvalues.GetSearchhelp "BAPI_HELPVALUES_GET_SEARCHHELP"
    Determine Search Help for F4 Process
    Functionality
    This function enables you to determine search helps for finding values (F4 help) for BAPI parameters.
    You must specify either the object name (parameter ObjName) or the object type of the object (parameter ObjType), the name of the method for the object (parameter Method), and the name of the parameter for the method (parameter Parameter). If the parameter is structured, you must also specify the name of the field in the Field parameter.
    If the function runs successfully, the name of a search help with type and short text appears in the table parameter ShlpForHelpvalues. If a collective search help is defined for the parameter or for the field of a structured parameter, then the return table contains the names of all its elementary search helps with their types and short texts.
    A entry of this type in a BAPISHLP table can be specified for the BAPI Helpvalues.GetList (BAPI_HELPVALUES_GET) to determine F4 value helps.
    The table parameter DescriptionForHelpvalues specifies meta data for restricting the data selected by the BAPI Helpvalues.GetList.
    Notes
    Example
    You want to define a search help for the VENDOR field of the BAPI parameter ReservationItems for the method MaterialReservation.GetDetail. To enable this, the BAPI Helpvalues.GetSearchhelp requires the following parameters:
    Parameter: Value:
    OBJTYPE
    OBJNAME 'MaterialReservation'
    METHOD 'GetDetail'
    PARAMETER 'ReservationItems'
    FIELD 'VENDOR'
    If successful, the table parameter ShlpForHelpvalues contains the following entries:
    SHLPNAME SHLPTYP REPTITLE:
    KR EDI SH Vendors by Country/Company Code
    KREDK SH Vendors by Company Code
    KREDL SH Vendors by Country
    KREDP SH Vendors by Personnel Number
    One of these entries can be specified for the BAPI Helpvalues.GetList (BAPI_HELPVALUES_GET) in the parameter ExplicitShlp, and used to determine a value help.
    Method 
    Helpvalues.GetList          "BAPI_HELPVALUES_GET"
    Determine Allowed Input Values (F4) for Fields in BAPI Parameters
    Functionality
    This method determines the valid help values (F4) for a parameter or field of a structured BAPI parameter.
    Notes
    The help values are based on check tables, fixed domain values, or value helps defined in a data element. If no search help of this type is defined, no help values can be specified.
    This method can only be used for BAPI parameters. A check is made to see whether the field exists in the named parameter, in the method, and in the business object.
    You must send the name or object type name of the business object, the method, and the parameter with the name defined in the BOR, to the Helpvalues.GetList method. If you have a field from a structured parameter, you also need to specify its name. You cannot obtain the total value help for all fields of a structure by not explicitly specifying a field when calling the method.
    As an alternative, you can use details in the parameter ExplicitShlp to send specific search helps. The parameters ObjType, ObjName, Method, Parameter and Field must still be filled, so that the BAPI authorization checks can be made.
    Note that this method only takes elementary search helps into account. For collective search helps, read the documentation on the method Helpvalues.GetSearchHelp.
    The help values - together with other useful information - are returned in the parameter Helpvalues.
    The Description4HV parameter contains meta information that describes the column contents sent in the Helpvalues parameter. Note that SAP does not guarantee the stability of search helps. You must use the Description4HV parameter to correctly interpret the values sent in the Helpvalues parameter.
    The Values4Field parameter only contains help values without short texts.
    You can assign an authorization check to value helps. For data protection reasons, tables of type A (master data and transaction data) and tables of type L (temporary data) cannot be read.
    Exceptions for master data can be defined with explicit authorization checks on the data element of the parameter or the parameter field. The values are only returned if the caller has the correct authorizations. Otherwise, an error message is triggered (see the Return parameter). The authorization required is documented in each individual BAPI.
    Example
    You want to determine the valid help values for the National field (country code). The field is in the BAPI Employee.GetList in the PersonalData parameter.
    If you call the method with the following parameters:
    ObjType
    ObjName 'Employee'
    Method 'GetList'
    Parameter 'PersonalData'
    Field 'National'
    MaxOfRows '0'
    DescriptionOnly 'X'
    the Description4HV parameter contains:
    TABNAME (Table) FIELDNAME (Field) ... FIELDTEXT (Description)
    H_T005 LAND1 Country code
    H_T005 LANDX Country
    H_T005 NATIO Nationality
    Note: If you use the test environment of the Function Builder for testing, you must select case-sensitive.
    The help values are sent in the Helpvalues parameter. This parameter also usually contains other useful information, such as texts. This texts are in the logon language. The following values are in the Helpvalues parameter:
    AT Austria Austrian
    AU Australia Australian
    The Values4Field parameter only contains the input values for the National field:
    AT
    AU
    The information from the Helpvalues parameter can be offered by the application in a dialog. A line of the Helpvalues parameter can be selected to access the correct help value in the Values4Field parameter.
    If you only want to select the countries that start with 'A', the following data must be in the Selection4Helpvalues parameter:
    SELECT_FLD SIGN OPTION LOW HIGH
    LANDX I CP A*
    Messages are returned in the Return parameter. The documentation for this parameter contains the return codes and their meanings.
    Further Information
    For more information, see the BAPI Programming Guide in the SAP Library under CA-BFA.
    Regards
    Venkat

  • R3 Sales Organizations in CRM

    Hi,
    I have a requirement to validate the given Sales organizaion against the R3 Sales organization.
    Is there any table in CRM , which has the list of r3 sales orgs?.
    Regards
    Elini.P

    Well BAPI_HELPVALUES_GET is the RFC I was talking about. But you should use class CL_CRM_ORGMAN_SERVICES for doing the validation. Try following sample code for validating Sales Org -
    REPORT  ZTEST_SORG                              .
    parameters : p_sorg type CRMT_R3_SALES_ORG.
    CALL METHOD CL_CRM_ORGMAN_SERVICES=>CHECK_R3_SALES_ORG
      EXPORTING
        R3_SALES_ORG      = p_sorg
      EXCEPTIONS
        INVALID_SALES_ORG = 1
        others            = 2
    IF SY-SUBRC <> 0.
       write : / 'invalid sales org'.
    else.
       write : / 'valid sales org'.
    ENDIF.

Maybe you are looking for

  • Command not found error in Linux

    Hi all, While login into Linux server using terminal i am getting following error. -bash: /usr/bin/id: No such file or directory -bash: [: =: unary operator expected While execute these commands getting following errors # clear -bash: clear: command

  • Values are not flow to COPA

    Can you please clear some point.- 1.According to my understanding, From SD data will flow through condition type,which is assign with value field and condition types are assign with Pricing Procedure. In my problem, Condition type-YREC(Packing tax) i

  • P&L reports from the cumullated signed data

    Hi All,     I am developing the Evdre reports. where i got  a requirement for PL reports. But the place i got strucked up is. While importing the data to BPC from BW am taking the value from the GL12 modeling which gives me the cummulative balance of

  • Daily interest calculation on GL account 5

    Hello I see in transaction OBAA that interest calculation frequency starts only from one month (id 01, 1 month) and more. I have the requirement to calculate and post interest on a GL account each day. Any suggestion? Instead of FI-GL I should use Tr

  • Aplle TV Sync Keeps DIsconnecting from iTunes

    I have my ATV set to sync mode connected wirelessly to my iTuneslibrary stored on my Time Capsule. The sync stays connected for 1 session but is consistently dropping when not in use. How do I keep the ATV connected to Itunes? Tired of re-enetering p