cancel
Showing results for 
Search instead for 
Did you mean: 

Input Help for some fields

shiva_suvarna
Participant
0 Kudos

Hi friends , how r u all

By using <b>CL_BSP_SERVICES=>GET_SIMPLE_HELPVALUES2</b> i am getting Help values for some types for example in KNA1 (customer) table i am not getting the help values for <b>kunnr</b> , but i am getting the values for <b>land1</b> field .

How can i solve this problem

Accepted Solutions (1)

Accepted Solutions (1)

shiva_suvarna
Participant
0 Kudos

Yes i have seen i created the extension also, by using that extension also the same problem persisting.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I guess I need some more information on the problem you are having. Which internal help approach within the extension are you using (simple value list, help exit, or the BAPI)? I know that KNA1-KUNNR works for the BAPI method because I am using it:

<zkeg:inputHelpV2 id = "mq_0060_kunnr"
value = "//model/0060.kunnr"
multiple = "false"
rfcDest = "<%= application->rfcdest %>"
objtype = "BUS2032"
objname = "SalesOrder"
method = "GetList"
keyField = "KUNNR"
param = "CustomerNumber" />

Screen Shot:

https://weblogs.sdn.sap.com/weblogs/images/1918/Help_Customers.jpg

thomasalexander_ritter
Active Contributor
0 Kudos

Hi,

from my understanding there are at least two kinds of value helps. One for simple fields like land1 and one for business objects. Regarding your problem when you want an inputhelp for the field kunnr then you have to use the business object <b>customer</b>. Take a look at the layout coding for my inputhelp:

      <ZSART:inputHelp id         = "sold_to_party"
                       alignment  = "LEFT"
                       size       = "10"
                       doValidate = "TRUE"
                       type       = "INTEGER"
                       required   = "TRUE"
                       objtype    = "KNVV"
                       objname    = "Customer"
                       method     = "EXISTENCECHECK"
                       keyfield   = "KUNNR"
                       param      = "Customer"
                       value      = "//salesorder_model/sold_to_party" />

and this should be the bapi you have to use to get the helpvalues for a business object (From Thomas Jung webblog):

****Call the HelpValues BAPI
  CALL FUNCTION 'BAPI_HELPVALUES_GET'
    DESTINATION RFCDEST
    EXPORTING
      objtype                    = me->objtype
      objname                    = me->objname
      method                     = me->method
      parameter                  = me->param
      field                      = me->field
      explicit_shlp              = explicit_shlp
      max_of_rows                = me->max_rows
    IMPORTING
      return                     = bapireturn
    TABLES
      selection_for_helpvalues   = selection_for_helpvalues
      helpvalues                 = helpvalues
      values_for_field           = values_for_field
      description_for_helpvalues = description_for_helpvalues
    EXCEPTIONS
      communication_failure = 1 MESSAGE msg_text
      system_failure = 2 MESSAGE msg_text
      others = 3.

regards

Thomas

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

have you seen this weblog by Thomas Jung

<a href="/people/thomas.jung3/blog/2004/09/17/bsp-150-a-developer146s-journal-part-xii-150-value-input-help-popups – a Developer’s Journal: Part XII – Value Input Help Popups</a>

Regards

Raja