F4-Help without using a table search help

Hi,
We´re using CRM 2007 and I have created several F4-Helps for different fields on the webui.
There it was always necessary to use an existing table search help in the GET_V-method:
CREATE OBJECT rv_valuehelp_descriptor
    TYPE
      cl_bsp_wd_valuehelp_f4descr
    EXPORTING
      iv_help_id                  = lv_help_id   "search help name
      iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
      iv_input_mapping            = lt_inmap
      iv_output_mapping           = lt_outmap
      iv_trigger_submit           = abap_true.
But how can I create a f4-help without an existing search help. I have an internal table that I want to be shown like an f4-help (not as dropdown -> a dropdown-field wouldn´t be a problem).
Structure of the internal table: COML_PROD_CAT_REL_F4
Thanx for help.
Greetings,
Sven
Edited by: Sven Keller on Aug 13, 2008 4:26 PM

Hi Sven,
you already pasted the correct call for creating a value help. Now what you have to alter is the variable lv_help_id to reflect a F4-Valuehelp class.
      CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id        = '(CL_CRM_UIU_BP_IDTYPE_2_F4)' "#EC NOTEXT
          iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping  = lt_inmap
          iv_output_mapping = lt_outmap.
As you can see CL_CRM_UIU_BP_IDTYPE_2_F4 is a normal ABAP class implementing interface IF_BSP_WD_CUSTOM_F4_CALLBACK. Please take a look at it.
It should not be very hard to implement the single method
cheers Carsten

Similar Messages

  • Alv field with f4 help without using class

    Hi,
    Can any one give me a program of "Alv field with f4 help without using class".
    Thanking you in advance.

    hi
    <b>Linking F4 Help to Fields</b>
    For the last section, we will deal with linking F4 help to fields. It is easy. As usual, define, implement and register the event “onf4” at proper places in your code. For F4 help, you must register the fields whose F4 request will trigger the “onf4” event. For this you must prepare a table of type “LVC_T_F4” and register this table using the method “register_f4_for_fields”. While preparing table you must include a line for each field which will trigger F4 event. For each field in the structure;
    &#1048766; Pass the fieldname to ‘FIELDNAME’
    &#1048766; Set ‘REGISTER’ to make the field registered,
    &#1048766; Set ‘GETBEFORE’ to provide field content transport before F4 in editable mode
    &#1048766; Set ‘CHNGEAFTER’ to make the data changed after F4 in editable mode.
    DATA: lt_f4 TYPE lvc_t_f4 WITH HEADER LINE .
    lt_f4-fieldname = 'PRICE'.
    lt_f4-register = 'X' .
    lt_f4-getbefore = 'X' .
    APPEND lt_f4 .
    CALL METHOD gr_alvgrid->register_f4_for_fields
    EXPORTING
    it_f4 = lt_f4[] .
    Preparing table for the fields to be registered to trigger F4 event
    METHOD handle_on_f4 .
    PERFORM f4_help USING e_fieldname es_row_no .
    er_event_data->m_event_handled = 'X' .
    ENDMETHOD .
    A sample “onf4” method implementation
    Again, we set the attribute “er_event_data->m_event_handled” to prevent further processing of standard F4 help.
    regards
    Ravish
    <b>
    reward if useful</b>

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • Pass username and password ADFS without using query string, Please help.

    pass username and password ADFS without using query string, Please help.
    I used query string , but it is unsecured to pass credentials over url, with simple tool like httpwatch , anyone can easily get the password and decrypt it.

    Hi,
    According to your post, my understanding is that you had an issue about the ADFS.
    As this issue is related to ADFS, I recommend you post your issue to the forum for ADFS.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding and support.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How to display ICONS in normal report without using icons table

    Hi Friends,
    I have to display icons(traffic lights) in a normal report.
    Can we do that without using icons table?
    If yes, please let me know how?
    Thanks,

    Hi Pagidala,
    Go to txcode - ABAPDOCU and in that expand BC-ABAP Programming->ABAP User Dialog->Screens->complex screen elements->status icons on Screens.
    In this you can see sample code which may help you.
    Cheers!!

  • Adding elementry search help to SAP standard Collective Search help

    Hi,
    I had copied standard elementary search help to MAT0M to ZZ_MAT0M and added some more fields and activated to it.
    it got activated sucessfully.
    Now i have to attached the ZZ_MAT0M elementry search help to standard collective search help MAT1_A.
    How can i do that?
    can i add it directly to MAT1_A (sell --->search help <MAT1_A> changes --> in included search helpss tab using + (insert icon) )
    Thanks & regards

    I solved my problem :
    I had copied standard elementary search help to MAT0M to ZZ_MAT0M and added some more fields and copied Database View M_MAT1M to ZZ_M_MAT1M and addedd same fields and  activated both.
    both got activated sucessfully.
    Now i have to attached the ZZ_MAT0M elementry search help to standard collective search help MAT1_A and this Z-search help shd appear on the first tab.
    so I just went to collective search help MAT1_A in change mode --> click on "+" icon addedd my ZZ__ search help, save and activated it.
    If you dont really care in which tab your search help shd appear, then the best option is to use Append Search help.
    Note : if you are directly adding your search help in collective standard search help, then its better to remove hotkey form your custom elementry search help, as, if not remove will lead to warnings or make sure that you have unique hotkey in that collective search help.

  • Table Search Help to Remove Duplicate Entry

    Hi All Tha ABAP GURUS,
    I have created 2 tables say A with fields main description and sub decription and another table B in which there are these 2 fields with other fields. I want to display search help for Table B for fields main description and sub decription separately and I have done the same by creating Elementary Search Help (ZDS and ZDM resp.) . For sub description it is working fine and for main description it is displaying value but duplicate. How to remove these duplicate values.
    For Eg Values are
    Main Desc   Sub Desc
    1                   A
    1                   B
    1                   C
    2                   D
    2                   E
    In my case it is showing
    1
    1
    1
    2
    2
    but I want
    1
    2
    I want to achieve this without creating any ZProg. Can I use search help exit.Kindly guide me in this matter how to use it.
    Thanks & Regards,
    Bharti Jain

    Yes you can delete duplicates in a search help exit, but not without "without creating any ZProg" as you will create a Function Module (and Group)
    Duplicate the sample FM F4IF_SHLP_EXIT_EXAMPLE in a customer function group, and delete duplicate records of RECORD_TAB in the step 'DISP' (executed before display).
    You could also perform the select yourself adding a DISTINCT option to the statement in the 'SELECT' step but this will take more time to develop, as you must read the other parameters to use selections provided by user or program.
    Regards
    Raymond,

  • How to use the created search helps in the program?

    Hi Everyone,
    I know how to create Search help elementary / collective search help through SE 11. I have a question, how can I make use of the created search help in the program.
    How to use the Search help in the programs, which is created through SE11
    Subbu.

    Hi,
    In case if you want to use in parameters statement, then we can use the suffix MATCHCODE OBJECT syntax.
    Eg.
    report abc.
    parameters : a(10) type c matchcode object ZBELNR.
    Hope this helps.
    regards,
    amit m.

  • HT1222 how i update my ipad 2 without using i tunes anyone help????

    currently i am on 4.3.1 .i want to update my ipad 2 on 5.0.1 without using i tunes can anyone help from where i can download ios5.0.1 firmware..thx

    Have you tried syncing once and then try transferring purchase again? Syncing should trnafer them during the sync process.
    Also make sure that you don't have content that you bought with another Apple ID that needs to be transfered as well.

  • Creating context-sensitive HTML Help without using Map #s

    I am uisng RH 8 and am producing a compiled HTML Help file.
    I am wondering if there is another way to call a topic from our application without using the MAP numbers in RH.
    The developer would like to use the MAP ID (string) instead.
    Is there a way to do this?
    Please let me know.
    Thanks.

    Your points are valid but there are also situations when urls are an excellent method.
    For some projects our developers name fields and we have a method of identifying the name applied. We use that as our filename. By that means they know what the help file will be and can create the call before the topic exists and we don't have to maintain map ids for those projects. If we should fail to create the topic, the call has the logic to go to a higher level.
    I wouldn't advise using map ids or urls, I would say understand how both work, their pros and cons, and then decide what works for the project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Table - search help - restrict user entries .

    I have created table with
    Field         Data element.
    WERKS     WERKS_D
    MTART     MTART
    MATKL     MATKL
    created_by  SYUNAME
    Changed_by SYUNAME
    1).I am getting search help for WERKS and MATKL
    However I am not getting search help for MTART field.
    Can you tell me how to get search help for MTART also
    2).  In WERKS and MTART fields wild cards (*) should not be permitted.
    How/where to code this.
    3). I need to make created_by and changed_by fields not editable.
    when user create the entry, then user name can appeared in created_by and Changed_by fields.
    And wherever another user changes the same record ...his user id should come under changed_by field.
    how /where can I do this.
    i know there are three questions.  but I also suggest me how to give more points...because there are three questions.
    YOUR HELP IS APPRECIATED.
    Thanks in ADVANCE.

    Total Posts:  585 
    Total Questions:  321 (170 unresolved) 
    Please clean up your old posts....
    3) Search!!
    Rob

  • Conditional Help without using build tags?

    I am not a real technical person, so if I mess up on my
    explanation - Sorry!. We have a one software package that can be
    used 2 different ways depending on a system configuration. I
    suggested using conditional build tags in order to have the correct
    help files populate for the 2 different configurations. Howver,
    they do not want 2 different help files. They want one help file,
    but want it to pull different help topics depending on they system
    configuration - kind of dynamically. So, for software 1a, only pull
    10 topics, and software 1b, pull those 10 topics, plus an
    additional 2...but all out of the same help file. Is that even
    possible?

    Welcome to the community.
    Which output are you producing? If CHM, someone else will
    have to address that. But for WebHelp, the system developers are
    going to have to do some work here either way. For the scenario
    where you have only one set of help files, you could put the 10 in
    one subfolder within the help folder and the other 2 in a separate
    subfolder. The developers (or web admin) could restrict permission
    to the subfolder containing the 2 files based on the user's
    configuration.
    The problem with not using conditional tags is that if you
    want those 2 topics in your TOC or index, they'll show up whether
    the user has rights to see them or not. You'd have to be careful
    not to link between the 10 files and the other 2; otherwise, the
    user who has rights to just the 10 will get permission errors if
    trying to follow a link to the 2. And I imagine that results for
    the 2 will show up in search results no matter who is doing the
    searching.
    If you've got only 12 topics in your project, the cost
    doesn't seem very high to use conditional tags and have two sets of
    help output, but that's just my opinion.
    Hope this helps,
    Ben

  • Help needed in Joining tables for  Help view

    Hi All ,
    My requirement is create a search help , using a view which will join four table ,
    I was able to do using a databaser view and joining below tables
    KNA1     MANDT     =     KNVV     MANDT
    KNA1     KUNNR     =     KNVV     KUNNR
    TVV5     MANDT     =     KNVV     MANDT
    TVV5     KVGR5     =     KNVV     KVGR5
    TVV5     MANDT     =     TVV5T     MANDT
    TVV5     KVGR5     =     TVV5T     KVGR5
    But thes is doing a inner join and help is not providing valuse where tghere are no entries for KNVV-KVGR5
    for outer join i came to know we use hep view s instead of database viow ,
    But i have problem joining these table s while creating Help View .
    Any Help will be appricaited
    Thanks
    Vinay Kolla

    Hi Vinay,
    Use the tabls in below given order to get the right view.
    KNVV
    KNA1
    TVV5
    TVV5T
    KNA1-MANDT  = KNVV-MANDT
    KNA1-KUNNR = KNVV-KUNNR
    TVV5-MANDT = KNVV-MANDT
    TVV5-KVGR5 = KNVV-KNVV
    TVV5-MANDT = TVV5T-MANDT
    TVV5-KVGR5 = TVV5T-KVGR5
    Regard
    Anees

  • Search Help - Restricting entries in standard search helps

    Hi, is there any way to restrict entries in an SAP supplied search help?  The search help in question is 'SSH_T007A', this search help also has a user exit 'F4_TAXCODE_USER_EXIT'.  I'm not sure if the user exit is of any use or how to use it.  Ideally what I need to do is to restrict the list of applicable tax codes to only those that we want our users to select.  Does anyone have an idea of how to do this with a minimum of customization?
    Thanks in advance,
    Kevin May

    Hi Seshatal,
         Thanks for the input, but this field does NOT  have any ON VALUE REQUEST event associated with it ....
       as soon as F4 is hit, it goes to Function help_start ,so I don't think we can make any changes here as it is standard .
       I think including a standard search help will help....how to achieve this ?
    Thanks,

  • F4 help in selection fields of search help

    Hi all,
    I've created a elementary search help for sold to party and appended it to collective search help.
    Now my problem is i need F4 help in one of the selection fields of search help.
    How can i get it.
    I m using selection method where ive created a view which fetches all data..
    Thanks in advance
    Palak

    Hi,
    1)Double click on the dataelement of your field on which you want f4 help then in the first tab itself you will find two option one for attaching the search help you have created(Elementry/ Collective) and second option is the parameter ID.
    You have to look for the first option to attach the search help.
    2) You can create f4 help for your Parameter or Selection screen by using the event.
    AT SELECTION-SCREEN ON VALUE-REQUEST for PARA/Selection screen.
    Further you can use the FM mentioned above F4_INT.....
    Hope it is clear now.
    Vikas Badhan

Maybe you are looking for

  • Best way to use Apple TV/iPad/Smart board

    Not sure I can explain this well as when it comes to wi-fi or home sharing, I'm completely lost.  But here is what I am doing now and what I need to improve. I have a smart board at school - no HDMI.  So, I connect my Apple TV (3rd gen) to VGA adapto

  • Creating a web service - editing xml

    does anyone know how to alter the values returned by a web service before the xml is returned to the caller? What I mean by this is, I have a web service that returns data. If the data field has not been populated it simply passes back the field with

  • Stuttering slow motion

    Everytime I do a slow motion effect is stutters. Any ideas on how to smooth it out?

  • FSCM Biller Direct - Cannot change Payment amount under open Bills

    All, We have configured the Biller Direct in Dev and QA. IN dev, if we go to open bills and change the payment amount for an invoice, it does allow to change. Whereas in QA, if i select the invoice, it doesn't allow to change. XCM, other configuratio

  • Latest Instance using BO enterprise SDK

    Post Author: sureshpolishetty CA Forum: Integrated Solutions How to get the lastest instance of a report stored in crystal enterprise server (XIR2) using BO Enterprise sdk?. Can anybody help me with the query(using CI_INFOOBJECTS table)? Thanks