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: 

Standard search help

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

How are you using it in your program and where are you using it?

13 REPLIES 13

former_member191735
Active Contributor
0 Kudos

How are you using that. use like MATCHCODE OBJECT I_STATUS.

and also check out the values in table

Former Member
0 Kudos

How are you using it in your program and where are you using it?

0 Kudos

I am using the following way.

s_txt4i for rihea-i_astatin MATCHCODE OBJECT I_STATUS.

Same thing u can check with standard program RIAUFK20.

Thanks

0 Kudos

Can any one give me a clue for this??

Pra

0 Kudos

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 Kudos

Hi Sree,

Thanks for ur quick reply. I would like to have the status for module PM - work orders.

How can I determine OBTYP?? It is on what basis like Module or Specific work order??

Any inputs?

Pra

0 Kudos

If you are looking for statuses similar to 'RIAUFK20' then it is 'ORI'. You can get all the categories (obtyp) from TJ03 table and filter it using PM for text.

0 Kudos

Sree,

Even I too tried with ORI. Not working. It seems our code is not effective. Where can I find that exit code, so that I can also see for where it's going wrong...

Pra

0 Kudos

Are you not any values or are you getting wrong values now?

0 Kudos

Not getting any values...it seems to be weird...

It is working fine with a new sample program...but not with the existing one...just give me that location, where it is checking for programs / memory location...there i can see in debug mode...and will come to know the actual prob...

Thanks a lot for ur help...

PRa

0 Kudos

You have to put the following three lines of code as it is, otherwise it will not work. The program for the search help is LIMCHF10, FORM GET_OBTYP.

INITIALIZATION.

p_obtyp = 'ORI'.

EXPORT p_obtyp TO MEMORY ID 'PM_OBTYP'.

Message was edited by:

Srinivas Adavi

Message was edited by:

Srinivas Adavi

0 Kudos

Hey sree,

Find the culprit. I have declared it as V_obtyp instead of p_obtyp.

Where the std program trying to import p_obtyp....to memory id..

Thanks a lot dude!!!!!

PRa

0 Kudos

You are welcome, I was thinking that you did not use the INITIALIZATION event, but I did not suspect that you changed the name.