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

Standard search help

Former Member
0 Likes
1,880

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
Read only

Former Member
0 Likes
1,803

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

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

13 REPLIES 13
Read only

former_member191735
Active Contributor
0 Likes
1,803

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

and also check out the values in table

Read only

Former Member
0 Likes
1,804

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

Read only

0 Likes
1,803

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

Read only

0 Likes
1,803

Can any one give me a clue for this??

Pra

Read only

0 Likes
1,803

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.

Read only

0 Likes
1,803

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

Read only

0 Likes
1,803

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.

Read only

0 Likes
1,803

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

Read only

0 Likes
1,803

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

Read only

0 Likes
1,803

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

Read only

0 Likes
1,803

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

Read only

0 Likes
1,803

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

Read only

0 Likes
1,803

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