AW: Create a Substitute

Nieder Martin Martin.Nieder at munich-airport.de
Fri Jul 27 01:55:40 EDT 2001


Hi Brindha,
 
a simple way to update table HRUS_D2 is to generate a table mainenance
dialog (SE54) on the table. Here you can navigate authorities =
(S_TABU_DIS)
so that only certain persons can manipulate the table.
 
The update can be done via SM30.
 
Hope this helps
Martin
 
-----Urspr=FCngliche Nachricht-----
Von: Brindha Sriram [mailto:brinsriram at yahoo.com]
Gesendet: Donnerstag, 26. Juli 2001 22:51
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Create a Substitute
 
 
Hi Susan,
I'm using ver 4.6C and tried to use this program. It
pops up a transaction to create/maintain the
substitute and asks for transport requests to save the
substitute. Is there a way to update the table without
using the transport requests as this is a painful
way!!
 
Thanks in advance.
Brindha
 
 
> Forwarded on behalf of MKlemba at ERA.PL ...
> >It is not possible to maintain substitution of
other users. At
> least not in
> >the standard functionality.
> >I have written a report to provide this
functionality (v.4.5B).
> >
> >Basically what you have to do is to use appropriate
functions.
> You may have
> >to change plan variant in following code:
> >
> >
> >REPORT ZWFSSUBST.
> >
> >INCLUDE .
> >
> >TABLES SSCRFIELDS.
> >
> >CONSTANTS:
> > US_TYPE LIKE SWHACTOR-OTYPE VALUE 'US',
> > ACT_PLVAR LIKE OBJEC-PLVAR VALUE '02'.
> >
> >PARAMETERS:
> > US_ID LIKE USR02-BNAME
> > MATCHCODE OBJECT USER_ADDR
> > OBLIGATORY.
> >
> >SELECTION-SCREEN SKIP 2.
> >SELECTION-SCREEN PUSHBUTTON /16(4) VIEW
USER-COMMAND VIEW.
> >SELECTION-SCREEN PUSHBUTTON 20(4) EDIT USER-COMMAND
EDIT.
> >SELECTION-SCREEN PUSHBUTTON 24(4) ACTI USER-COMMAND
ACTI.
> >
> >INITIALIZATION.
> > MOVE ICON_DISPLAY TO VIEW.
> > MOVE ICON_CHANGE TO EDIT.
> > MOVE ICON_ACTIVATE TO ACTI.
> >
> >AT SELECTION-SCREEN.
> > CASE SSCRFIELDS-UCOMM.
> > WHEN 'VIEW'.
> > CALL FUNCTION 'RH_SUBSTITUTES_LIST'
> > EXPORTING
> > US_TYPE =3D US_TYPE
> > US_ID =3D US_ID
> > ACT_PLVAR =3D ACT_PLVAR
> > ACT_BEGDA =3D SY-DATUM
> > ACT_ENDDA =3D '99991231'
> > MAINTAINANCE_FLAG =3D ' '
> > ACT_MODE =3D ' '
> > EXCEPTIONS
> > NO_ACTIVE_WF_PLVAR =3D 1
> > OTYPE_NOT_VALID =3D 2
> > OBJECT_NOT_VALID =3D 3
> > OTHERS =3D 4.
> > IF SY-SUBRC <> 0.
> > MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
> > WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
> > ENDIF.
> >
> > WHEN 'EDIT'.
> > CALL FUNCTION 'RH_SUBSTITUTES_LIST'
> > EXPORTING
> > US_TYPE =3D US_TYPE
> > US_ID =3D US_ID
> > ACT_PLVAR =3D ACT_PLVAR
> > ACT_BEGDA =3D SY-DATUM
> > ACT_ENDDA =3D '99991231'
> > MAINTAINANCE_FLAG =3D 'X'
> > ACT_MODE =3D ' '
> > EXCEPTIONS
> > NO_ACTIVE_WF_PLVAR =3D 1
> > OTYPE_NOT_VALID =3D 2
> > OBJECT_NOT_VALID =3D 3
> > OTHERS =3D 4.
> > IF SY-SUBRC <> 0.
> > MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
> > WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
> > ENDIF.
> >
> > WHEN 'ACTI'.
> > CALL FUNCTION 'RH_SUBSTITUTES_ACTIVATE'
> > EXPORTING
> > US_TYPE =3D US_TYPE
> > US_ID =3D US_ID
> > ACT_PLVAR =3D ACT_PLVAR
> > ACT_BEGDA =3D SY-DATUM
> > ACT_ENDDA =3D '99991231'
> > EXCEPTIONS
> > NO_ACTIVE_WF_PLVAR =3D 1
> > OTYPE_NOT_VALID =3D 2
> > OBJECT_NOT_VALID =3D 3
> > OTHERS =3D 4.
> > IF SY-SUBRC <> 0.
> > MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
> > WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
> > ENDIF.
> >
> > ENDCASE.
> >
> >
> >START-OF-SELECTION.
> > CALL FUNCTION 'RH_SUBSTITUTES_LIST'
> > EXPORTING
> > US_TYPE =3D US_TYPE
> > US_ID =3D US_ID
> > ACT_PLVAR =3D ACT_PLVAR
> > ACT_BEGDA =3D SY-DATUM
> > ACT_ENDDA =3D '99991231'
> > MAINTAINANCE_FLAG =3D ' '
> > ACT_MODE =3D ' '
> > EXCEPTIONS
> > NO_ACTIVE_WF_PLVAR =3D 1
> > OTYPE_NOT_VALID =3D 2
> > OBJECT_NOT_VALID =3D 3
> > OTHERS =3D 4.
> > IF SY-SUBRC <> 0.
> > MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
> > WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
> > ENDIF.
> >
> >
> >
> >
> >-----Original Message-----
> >From: Pedro Bezerra [mailto:pedrobezerra at yahoo.com]
> >Sent: 05 czerwca 2001 23:20
> >To: SAP-WUG at MITVMA.MIT.EDU
> >Subject: Create a substitute
> >
> >
> >Hi Gurus,
> >
> >In workflow the user can crated a substitute. But
the administrator can
> >created a substitute for users ? if yes, how can do
this ? Imagine the
> >situation that the administration don't have a user
password.
> >
> >Thanks in advance.
> >
> >Pedro Bezerra
> >
 
 
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! =
Messenger
http://phonecard.yahoo.com/
 


More information about the SAP-WUG mailing list