Application Development 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: 

SAPEVENT - Action to my own Serch Help

Former Member
0 Kudos

Hello,

i have a problem with my search help folder in the CIC.

I want to start the customer search help with my own criteria.

My own criteria i can code in a Search help exit ( i create - no Problem ).

But i have to have two kinds of Views ( normal and my own )

In order to do this, i create a new Button.

What i have done till now was:

- Create a Button in the HTML- Template ( CRM_CIC_SEARCH_DISPLAY )

- The text of the my own Button i create in the FB CCMCS_GET_TEXTS_FOR_HTML.

- I Create my own SAPEVENT in HTML:

SAPEVENT:FIND - Search

!!! my own: SAPEVENT:FIND2 - Search

...

later in the HTML-Code -- my own Find- button

...

TR

TD BUTTON on-click=FIND()

TR

TD BUTTON on-click=FIND2()

If i have a look to the HTML- Coding in the Template Search (CIC), i see that Coding (find and my own

find2) :

SAPEVENT:UNDO - Reset() + Delete SAPEVENT:FIND - Search SAPEVENT:FIND2 - Search SAPEVENT:OKAY - Confirm

SAPEVENT:LEAN_SAVE -

...

and later

...

function FIND()

{ document.FORM1.action = "SAPEVENT:FIND"; document.FORM1.submit(); function FIND2() {

document.FORM1.action = "SAPEVENT:FIND"; document.FORM1.submit(); }

- In the Functiongroup CRM_CIC_BP_SUB in the include LCRM_CIC_BP_SUBF10 i Insert the action find2:

CASE edaction.

*{ INSERT DCTK902670 5

*

WHEN 'FIND2'.

PERFORM process_search TABLES edquery_table.

CALL FUNCTION gs_csearch_ss_methods-flush_data

EXPORTING

set_exec_script = 'X'.

*} INSERT

WHEN 'FIND'.

PERFORM process_search TABLES edquery_table.

CALL FUNCTION gs_csearch_ss_methods-flush_data

EXPORTING

set_exec_script = 'X'.

Now I need help with the Coding. Where can i transferred a Parameter to the serchhelp ?

I hope anyone can show me the place in the Coding?

Or someone have an other idea to realize the Task.

kind regards

Torsten

( The editor has serious problems with preserved words

like "onClick")

1 REPLY 1

Former Member
0 Kudos

Hallo,

i find the answer myself ( a consultant show me the way 😞

before i perform the Search, i have to set a global veriable.

WHEN 'FIND2'.

PERFORM process_search TABLES edquery_table.

in the Searchhelp, i get the global variable to decide, what to do.

Sincerely

Torsten