Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using Search Help from another client?

Former Member
0 Likes
1,230

HI guys,

I have a requirement where I have to use a search help available in another client in one of my input parameters on a selection screen.

My report is in SRD system but the search help is in ECC.

The search help is actually PRPM <== Matchcode for WBS elements

...Is it possible to do so?

I hope you guys can guide me . Thanks guys!

5 REPLIES 5
Read only

matt
Active Contributor
0 Likes
1,043

It's not in another client - it's in another instance. It's important to get terminology right, since search helps are client independent objects.

I think you'd need to write a search help on your SRD system, that calls an RFC enabled function module on your ECC system, that gets the data from the search help there.

Read only

Former Member
0 Likes
1,043

Thanks guys

Well, the reason being...they want to use PRPM because they would like to allow users to search for the WBS element as well as filter by Person Responsible.

Currently, I'm doing it like this

CALL FUNCTION 'BBP_GET_BACKEND_SYSTEMS'
    TABLES
      et_logical_systems = lt_logical_sys
      et_messages        = lt_logical_msg.

  IF lt_logical_msg IS INITIAL.
    READ TABLE lt_logical_sys INTO ls_logical_sys INDEX 1.
    IF sy-subrc = 0.
      MOVE ls_logical_sys-logsys TO lw_logical_sys.
    ENDIF.
  ENDIF.

  CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
    DESTINATION lw_logical_sys
    EXPORTING
      table_name = 'PRPS'
    TABLES
      entries    = lt_entries.

  IF lt_entries[] IS NOT INITIAL.

    LOOP AT lt_entries INTO ls_entries.
      ls_wbs-posid = ls_entries+11(24).
      ls_wbs-post1 = ls_entries+35(40).
      APPEND ls_wbs TO lt_wbs.
    ENDLOOP.

*       F4 for WBS pop up.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        retfield     = 'POSID'
        window_title = text-012 "WBS Element
        value_org    = 'S'
      TABLES
        value_tab    = lt_wbs
        return_tab   = lt_return_tab.

Read only

Former Member
0 Likes
1,043

Any example guys?

Is it possible to use a search help from another instance?

I'm trying to access a search help in ECC while my report is in SRD.

Thanks alot

Read only

Former Member
0 Likes
1,043

Hi,

tables and data are client independent.

so if you find no data is present in your system and want to get data from another system.

try to use FM --RFC_READ_TABLE using RFC destination and put in one internal table.

and write manual F4 help for that field.

Regards,

Prabhudas

Read only

Former Member
0 Likes
1,043

Manage to solved it on my own