User status as object attribute

clucking workflow at lucking.dk
Tue Aug 8 05:04:49 EDT 2006


Hi Mike,

I played with this years ago for object type ECM and couldn't figure it out
either. I ended up creating a normal virtual attribute instead (se code
below for the status and the belonging text).

Cheers,
clucking.

GET_PROPERTY USERSTATUS CHANGING CONTAINER.
TABLES: JEST,TJ30T.
DATA: STATUSOBJNUMBER TYPE ONR00-OBJNR, STATUSPROFILE TYPE JSTO-STSMA.
SWC_GET_PROPERTY SELF 'statusobjnumber' STATUSOBJNUMBER.
SWC_GET_PROPERTY SELF 'statusprofile' STATUSPROFILE.
SELECT * FROM JEST
WHERE OBJNR = STATUSOBJNUMBER
AND INACT = ' '.
  IF JEST-STAT(1) = 'E'.
    EXIT.
  ENDIF.
ENDSELECT.

SELECT SINGLE * FROM TJ30T
WHERE STSMA = STATUSPROFILE
AND ESTAT = JEST-STAT
AND SPRAS = SY-LANGU.

SWC_SET_ELEMENT CONTAINER 'Userstatus' TJ30T-TXT04.
END_PROPERTY.



GET_PROPERTY USERSTATUSTEXT CHANGING CONTAINER.

DATA: STATUSOBJNUMBER TYPE ONR00-OBJNR, STATUSPROFILE TYPE JSTO-STSMA.
SWC_GET_PROPERTY SELF 'statusobjnumber' STATUSOBJNUMBER.
SWC_GET_PROPERTY SELF 'statusprofile' STATUSPROFILE.
SELECT * FROM JEST
WHERE OBJNR = STATUSOBJNUMBER
AND INACT = ' '.
  IF JEST-STAT(1) = 'E'.
    EXIT.
  ENDIF.
ENDSELECT.

SELECT SINGLE * FROM TJ30T
WHERE STSMA = STATUSPROFILE
AND ESTAT = JEST-STAT
AND SPRAS = SY-LANGU.

SWC_SET_ELEMENT CONTAINER 'Userstatustext' tj30t-txt30.
END_PROPERTY.

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
Mike Pokraka
Sent: 8. august 2006 09:51
To: SAP Workflow Users' Group
Subject: Re: User status as object attribute

Hi Thomas,

I'm working with a delegated QMSM subtype. It is starting to look like an
OSS problem, though I can't find any notes by searching for any of the
obvious terms (User status, ifstatus). When debugging a manual entry it
looks for the status with a blank status profile, so I suspect it's got to
do with that.

I've even hardcoded values into the other Statusxxxxx attributes, no joy.

Thanks for the feedback.
Cheers,
Mike

>
> Mike,
>
> I remember having a problem with statuses where the StatusObjNumber
> attribute caused problems - will have to research.  Thought an OSS note
> corrected.
>
> User statuses are definitely possible.
>
> Which BO are you working with?  That might help me find it.
>
> Regards,
> Thomas Maue
>
>
>
>
>              "Mike Pokraka"
>              <asap at workflowcon
>              nections.com>                                              To
>              Sent by:                  sap-wug at mit.edu
>              sap-wug-bounces at m                                          cc
>              it.edu
>                                                                    Subject
>                                        User status as object attribute
>              08/07/2006 07:25
>              AM
>
>
>              Please respond to
>                "SAP Workflow
>                Users' Group"
>              <sap-wug at mit.edu>
>
>
>
>
>
>
> Hello all,
> Simple question: How do I enable user statuses as attributes in a BO?
>
> I've done this before but for some reason it's not happening here or I'm
> missing something blindingly obvious. When I select a status in the
> attributes all I see are system statuses. If I enter it directly I get
> "Status E0001 from the object status management is not defined".
>
> IFSTATUS, StatusObjNumber, StatusObjType, StatusProfile are all
> implemented and functioning correctly, the object tests ok, searched the
> archives, read the saphelp, still no user status. I can define an
> attribute, when I hit the dropdown all I see are system statuses.
>
> Maybe it's not possible? It's been a while since I worked with it...
>
> Any input appreciated.
> Cheers,
> Mike
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list