Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Standard search help

Hi,

There is one collectiv search help with name I_STATUS. I wud like to use the same in my program but if i use the same. it is not showing up any values.

What wud be the reason and how to rectify that??

PRa

Tags:
Former Member
replied

Hi Praneet,

Here is what is happening. In the search help exit code, it looks for specific program names to determine the object category for which you are looking the status fields for. If the program name is not in the list (like yours), then it looks for the value from memory id. So you have to export to that same memory id in your program and it works. Below is the example.

TABLES: rihea.

DATA: p_obtyp LIKE jsto-obtyp.

INITIALIZATION.
  p_obtyp = 'QMI'.

  EXPORT p_obtyp TO MEMORY ID 'PM_OBTYP'.

  SELECT-OPTIONS: s_txt4i FOR rihea-i_astatin MATCHCODE OBJECT i_status.

Now what value you assign to "p_obtyp" depends on your requirement. Check the different values for "obtyp" and see which one is suitable for you.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question