Skip to Content

Introduction

This weblog provides source code for creating value help enabled input fields and select-option ranges. The value help is automatically determined based on the data type passed to it unless a custom value help table is passed. The value help supports all field types and even works for InfoObjects.

Screen Shots

image

image

!https://weblogs.sdn.sap.com/weblogs/images/251696637/popup.gif|height=381|alt=image|width=547|src=https://weblogs.sdn.sap.com/weblogs/images/251696637/popup.gif|border=0!

Source Code

!https://weblogs.sdn.sap.com/weblogs/images/10131/saplink_logo_small.JPG|height=46|width=93|src=https://weblogs.sdn.sap.com/weblogs/images/10131/saplink_logo_small.JPG!

Rather than provide an exhausting set of screenshots and source code to sort through, I have created a couple of SAPLink nuggets for installing the extension. Everything you will need is available on my Google Code repository. If at this point you are wondering what I’m talking about, you should start by reading about and installing SAPLink.

The source code is split into three nuggets. Here is the breakdown of what each contains.

+    DDic Types+

        • NUGG_PTY_VALUEHELP_TYPES.XML

            • +

Structures

+                • ZHELPTABCOMPONENT

                • ZHELPTABCONTROL

            • <b>Table Types </b>

                • ZHELPTABCOMPONENTTAB

                • ZHELPTABCONTROLTAB

+    Core objects of value help extension +

        • NUGG_PTY_VALUEHELP_CORE.XML

            • <b>Classes</b>

                • ZCL_PTY_VALUE_HELP

                • ZCLG_ZPTY_BSPEX_F4INPUTFIELD

                • ZCL_ZPTY_BSPEX_F4INPUT

                • ZCLG_ZPTY_BSPEX_F4INPUTRANGE

                • ZCL_ZPTY_BSPEX_F4RANGE

            • 

+BSP Applications +

                • ZPTY_VALUEHELP

            • 

+BSP Extensions +

                • zpty_bspEx

+    Example BSP using value help extension +

        • NUGG_PTY_VALUEHELP_EXAMPLE.XML

            • BSP Applications

The automatic value help method GET_HELPVALUES_AUTO is based on the wonderful weblog by Thomas Jung : BSP Value Input Help Popups Version 3.0

To report this post you need to login first.

11 Comments

You must be Logged on to comment or reply to a post.

    1. Anonymous
      The parameter customHelpValues is looking for an internal table. If you want to do it based on a database table, you should probably create a custom search help in se11 that points to your database table, then assign it as search help for a custom ddic data element you create. Once you have done that, just pass a variable of the new ddic type you have created and it will read the search help automatically.

      Hope that helps.

      Regards,
      -Phil

      (0) 
  1. Igelsboeck Markus
    Hi Phil,

    do you know a way to get your F4-Help working in stateful BSPs. In stateless mode it’s working fine. But in stateful mode there is no reaction in the genereted help window. The help window appears, but after clicking on a line – nothing happens.

    Thanks again for your support

    regards,
    Markus

    (0) 
    1. Anonymous
      Markus,

      Make sure that the “supports portal integration” checkbox on the properties page of the bsp application is checked. I have seen that error happen when it is not due to restrictions browsers place on what a popup window can do to its parent.

      (0) 
    2. Marcus Raath
      Hi Markus
      Did you ever work out why your pop does not respond to cliet events?
      I have a showmodal dialog, which is use to provide value help.
      However when the value is selected the associated javascript function does not get executed.

      Any ideas?
      Thanks
      Marcus Raath
      Cape Town
      raathmd@gmail.com

      (0) 
  2. hadi widjaja
    Hi Phil,

    does SAPLink work with SAP R/3 4.7 (WebAS 6.20)? Currently I’m developing BSP apps on R/3 4.7 and have got a lot of shortdumps when trying to install your nuggets.

    Can you please advise?

    Many thanks
    HW
    HW

    (0) 
    1. hadi widjaja
      Hi Phil,

      I have made a progress and could successfully install all nuggets from your code site. 😉

      However the type UPC_YTO_CHASEL is not defined in R/3 4.7. Can anyone tell me the definition of UPC_YTO_CHASEL so I’ll be able to create its twin e.g. Z_UPC_YTO_CHASEL?

      Many thanks in advance.


      hw

      (0) 
      1. Phil Young
        The more serious difficulty you are going to run into is that runtime type services works differently in 620 than it does in 640 and this solution relies heavily on RTTS. If you would like to get involved with backporting the solution, drop me a line on the google code page. (just post as an issue and leave your email address)
        (0) 
  3. Marcus Raath
    Hi
    I get the value helps displaying, but no data is being presented.I have tried both using the search elp and the internal table variants.

    Is there a limit on the amount of data being displayed?

    Thanks

    (0) 

Leave a Reply