SAP-WUG Digest, Vol 119, Issue 2

Margaret Jaco Margaret.Jaco at staples.com.au
Thu Oct 9 01:51:48 EDT 2014


Hi,

We have a wrapper program that we have given to HR so that they can control this when a person leaves on holidays and has not setup a subsititute.

Here is the code.

REPORT  Z_WRAP_SUB_DEF.

DATA: userid TYPE sy-uname,
      lv_tmp TYPE string.

PARAMETERS:
p_nicknm TYPE sy-uname.

IF p_nicknm = sy-uname.
  MESSAGE text-001 TYPE 'I'.
ELSEIF   p_nicknm = ''.
  MESSAGE text-002 TYPE 'I'.
ELSE.
  SELECT SINGLE bname
    FROM usr02
    INTO userid
    WHERE bname = p_nicknm.
  IF sy-subrc = 0.
    CALL FUNCTION 'SWL_SUBSTITUTION_DEFINE'
      EXPORTING
        user = p_nicknm.
  ELSE.
    CONCATENATE p_nicknm text-003 INTO lv_tmp SEPARATED BY space.
    MESSAGE lv_tmp TYPE 'I'.
  ENDIF.
ENDIF.

Regards,

Margaret.

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of sap-wug-request at mit.edu
Sent: Thursday, 9 October 2014 4:46 PM
To: sap-wug at mit.edu
Subject: SAP-WUG Digest, Vol 119, Issue 2

Send SAP-WUG mailing list submissions to
	sap-wug at mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.mit.edu/mailman/listinfo/sap-wug
or, via email, send a message with subject or body 'help' to
	sap-wug-request at mit.edu

You can reach the person managing the list at
	sap-wug-owner at mit.edu

When replying, please edit your Subject line so it is more specific than "Re: Contents of SAP-WUG digest..."


Today's Topics:

   1. RE: Assigning Substitute as an Admin (Swathi Devireddy)
   2. Re: Assigning Substitute as an Admin (Darlington Chiyamha)


----------------------------------------------------------------------

Message: 1
Date: Wed, 8 Oct 2014 18:01:48 +0000
From: Swathi Devireddy <Swathi_Devireddy at infosys.com>
Subject: RE: Assigning Substitute as an Admin
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID:
	<60B576D2413F07448F88BD5ED8831973228B7E7B at BLRKECMBX22.ad.infosys.com>
Content-Type: text/plain; charset="utf-8"

Hi,
Fixed using transaction RMPS_SET_SUBSTITUTE.Thanks Antonio

Regards,
Swathi

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of michael.mcley at daimler.com
Sent: Wednesday, October 08, 2014 11:20 PM
To: sap-wug at mit.edu
Subject: RE: Assigning Substitute as an Admin

Swathi,

I think you can jam a record into table HRUS_D2 if you have direct access to the table?

Michael McLey
MBUSI - IT Parts & Administration
Mercedes-Benz US International, Inc.
1 Mercedes Drive
Vance, AL 35490
PHONE:  (205) 462 - 5239
EMAIL:   michael.mcley at daimler.com<mailto:michael.mcley at daimler.com>

From: sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu> [mailto:sap-wug-bounces at mit.edu] On Behalf Of Swathi Devireddy
Sent: Wednesday, October 08, 2014 11:52 AM
To: SAP Workflow Users' Group
Subject: Assigning Substitute as an Admin

Hi,
A user has gone on vacation and forgotten to add a substitute.As an admin can I do the substitution on his behalf to another ID?
If so how can it be done.


Regards,
Swathi

**************** CAUTION - Disclaimer *****************

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

for the use of the addressee(s). If you are not the intended recipient, please

notify the sender by e-mail and delete the original message. Further, you are not

to copy, disclose, or distribute this e-mail or its contents to any other person and

any such actions are unlawful. This e-mail may contain viruses. Infosys has taken

every reasonable precaution to minimize this risk, but is not liable for any damage

you may sustain as a result of any virus in this e-mail. You should carry out your

own virus checks before opening the e-mail or attachment. Infosys reserves the

right to monitor and review the content of all messages sent to or from this e-mail

address. Messages sent to or from this e-mail address may be stored on the

Infosys e-mail system.

***INFOSYS******** End of Disclaimer ********INFOSYS***



If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20141008/1f5154fc/attachment-0001.htm

------------------------------

Message: 2
Date: Thu, 9 Oct 2014 07:46:08 +0200
From: Darlington Chiyamha <chiyamhad at gmail.com>
Subject: Re: Assigning Substitute as an Admin
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID:
	<CALAvGyFayGTpUw5NdnZHcA2CVwr1P7HFJCP2Z=Ucv5Sv519hPw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Swathi,

You can also use FM RH_SUBSTITUTES_LIST in a program to assign substitutes.

Regards,

Darlington

On Wed, Oct 8, 2014 at 8:01 PM, Swathi Devireddy < Swathi_Devireddy at infosys.com> wrote:

>  Hi,
>
> Fixed using transaction RMPS_SET_SUBSTITUTE.Thanks Antonio
>
>
>
> Regards,
>
> Swathi
>
>
>
> *From:* sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] *On 
> Behalf Of *michael.mcley at daimler.com
> *Sent:* Wednesday, October 08, 2014 11:20 PM
> *To:* sap-wug at mit.edu
> *Subject:* RE: Assigning Substitute as an Admin
>
>
>
> Swathi,
>
>
>
> I think you can jam a record into table HRUS_D2 if you have direct 
> access to the table...
>
>
>
> *Michael McLey*
> MBUSI - IT Parts & Administration
> Mercedes-Benz US International, Inc.
> 1 Mercedes Drive
> Vance, AL 35490
> PHONE:  (205) 462 - 5239
> EMAIL:   michael.mcley at daimler.com
>
>
>
> *From:* sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu 
> <sap-wug-bounces at mit.edu>] *On Behalf Of *Swathi Devireddy
> *Sent:* Wednesday, October 08, 2014 11:52 AM
> *To:* SAP Workflow Users' Group
> *Subject:* Assigning Substitute as an Admin
>
>
>
> Hi,
>
> A user has gone on vacation and forgotten to add a substitute.As an 
> admin can I do the substitution on his behalf to another ID?
>
> If so how can it be done.
>
>
>
>
>
> Regards,
>
> Swathi
>
> **************** CAUTION - Disclaimer *****************
>
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended 
> solely
>
> for the use of the addressee(s). If you are not the intended 
> recipient, please
>
> notify the sender by e-mail and delete the original message. Further, 
> you are not
>
> to copy, disclose, or distribute this e-mail or its contents to any 
> other person and
>
> any such actions are unlawful. This e-mail may contain viruses. 
> Infosys has taken
>
> every reasonable precaution to minimize this risk, but is not liable 
> for any damage
>
> you may sustain as a result of any virus in this e-mail. You should 
> carry out your
>
> own virus checks before opening the e-mail or attachment. Infosys 
> reserves the
>
> right to monitor and review the content of all messages sent to or 
> from this e-mail
>
> address. Messages sent to or from this e-mail address may be stored on 
> the
>
> Infosys e-mail system.
>
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
>
>
>
> If you are not the addressee, please inform us immediately that you 
> have received this e-mail by mistake, and delete it. We thank you for 
> your support.
>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>


--
Regards/Groete

Darlington Chiyamha
SAP ABAP/Workflow Consultant
Cell: +27 71 869 3176
Alt Cell: +27 82 061 6309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20141009/fb7a9311/attachment.htm

------------------------------

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


End of SAP-WUG Digest, Vol 119, Issue 2
***************************************


The information contained in this email and any attached files are strictly private and confidential. This email should be read only by the intended addressee only. If the recipient of this message is not the intended addressee, please call Staples Australia Pty Limited on +61 2 9335 0555 or Staples New Zealand Limited on +64 9 271 7600 and promptly delete this email and any attachments. The intended recipient of this email may only use, reproduce, disclose or distribute the information contained in this email and any attached files with the prior written permission of StaplesTM. If you are not the intended addressee, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email and any attached files. StaplesTM advises that this email and any attached files should be scanned to detect viruses. StaplesTM accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files.



More information about the SAP-WUG mailing list