on 06-12-2013 3:50 PM
HI Gurus ,
through the status management configuration i created a status profile . this status is being shown in the User status tab under header data .
i am creating a report to fetch this user status data.
it is not being stored in teh VBUK table
please suggest the table where the user status is being stored
Regards
zahid
Hi,
In VBAP you will get OBJNR which is the object number
with that OBJNR go to JEST table to get the status ID
with that Status ID you can get the description of the status in TJ02T
hope it is clear
regards,
santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zahid,
The object number is 'VB' + vbeln + posnr. Try to find that in the JEST table.
Sample code to read the status information:
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_SALES_ORDER->CHECK_ITEM_OBJ_STATUS_ACTIVE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_POSNR TYPE POSNR
* | [--->] I_STAT TYPE J_STATUS
* | [<-()] R_BOOLEAN TYPE BOOLEAN_FLG
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CHECK_ITEM_OBJ_STATUS_ACTIVE.
* checks if a given object status for an item is active or not
data:
l_objnr type j_objnr.
concatenate 'VB' m_vbeln i_posnr into l_objnr.
select count(*)
from jest
where objnr eq l_objnr
and stat eq i_stat
and inact eq space.
if sy-dbcnt eq 0.
r_boolean = con_false.
else.
r_boolean = con_true.
endif.
endmethod.
Best regards,
Oliver
Message was edited by: Oliver Beie
Hi Zahid,
pls have on mind that JEST-STAT contains the internal representation of your user status not the short text which is displayed in the SO. You get this code from table TJ30T.
Or have a look on JEST with SE16N just by giving the object number but without an special status.
Another id: I'm not sure if the object id starts with 'VB' for quotations, I used that only for SO before. Play a little around with that value or try just 'V*'. If that does not help just search with the quotation number (with leading digits) or the quoatation + item number.
Or a even more technical way: Start a trace with ST05 and call VA23. Here you can see how SAP reads this information.
Best regards,
Oliver
Message was edited by: Oliver Beie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.