Skip to Content
avatar image
Former Member

ALV - refresh data after value is selected from input help

Hello,

I have input ALV where after I enter material number and press enter, the logic goes ahead and populates description column by utilizing ON_DATA_CHECK event.

Is is possible to trigger some kind of event after the value is selected from search help without hitting enter key?

When the user done with using search help and clicks on material number that he needs, the value is populated in ALV cell, and this is where I need some event trigger to fire the logic to get description without pressing enter.

Thanks,

Alex

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Sep 19, 2008 at 02:21 PM

    Hi Suman,

    Thank you for your input.

    Regards,

    Alex

    Add comment
    10|10000 characters needed characters exceeded

    • Alex, in that case, the alternative you have is to:

      - Create a Z structure where you have all the table fields

      - Bind the Standard DDIC search help to the Material ID (Importing) and the Description (Exporting)

      - Create the whole context node in WD referencing that DDIC structure.

      The important thing here is that the context node as a whole must reference the structure in order for this to work, not just the fields affected. This may not be possible or desirable in certain cases.

      If you do this, the Description will be populated by the SH through its returning parameter, so you wont have to do anything in WD to retrieve it as for the manual input + Enter cases.

      Here you have some help on SHs parameters:

      http://help.sap.com/saphelp_nw70/helpdata/EN/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm

      Hope this helps.

      Edited by: Alejandro Bindi on Sep 19, 2008 12:36 PM

  • avatar image
    Former Member
    Sep 17, 2008 at 10:09 PM

    Hi Alex,

    If you are using OVS functionality then I think you should be able to refresh the data in ALV table at the 3rd phase of the ovs_callback_object->phase_indicator value.

    i.e WHEN ovs_callback_object->phase_indicator = '3'.

    It is because at this value the system transfers the selected value from the value help to the screen field.

    By this time you already have the selected value to look at and hence can change the table output for the ALV...

    This is just a pointer... I don't know if it will work as I have'nt tried it yet...

    Thanks,

    Sanjiv

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2008 at 01:20 PM

    Hi Sanjiv,

    Thanks for a reply. I am not using OVS for input help. I am using SAP standard search helps. We currently have ABAP NNW7 trial version installed, and I had to create search help user exits to pull the data from our ECC 5.0 system, so I need to use search helps.

    Regards,

    Alex

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2008 at 06:27 PM

    Yes.

    Regards,

    Alex

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2008 at 07:44 PM

    Hi Alejandro,

    This is an interesting idea. I have tried it, but it did not work for me. I guess, the reason could be because I utilize search help user exits to get data across from back end SAP system to NW7.

    Regards,

    Alex

    Add comment
    10|10000 characters needed characters exceeded