2007 Nov 30 3:47 PM
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
2007 Nov 30 3:58 PM
How are you using it in your program and where are you using it?
2007 Nov 30 3:58 PM
How are you using that. use like MATCHCODE OBJECT I_STATUS.
and also check out the values in table
2007 Nov 30 3:58 PM
How are you using it in your program and where are you using it?
2007 Nov 30 4:03 PM
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
2007 Nov 30 4:51 PM
2007 Nov 30 4:55 PM
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.
2007 Nov 30 5:07 PM
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
2007 Nov 30 5:23 PM
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.
2007 Nov 30 5:36 PM
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
2007 Nov 30 5:39 PM
2007 Nov 30 5:49 PM
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
2007 Nov 30 5:54 PM
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
2007 Nov 30 5:58 PM
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
2007 Nov 30 6:05 PM
You are welcome, I was thinking that you did not use the INITIALIZATION event, but I did not suspect that you changed the name.