Workflow for Notification long text

Magalhaes, Marcia marcia.magalhaes at ocps.net
Fri Oct 21 10:06:48 EDT 2011


Hi Siva,
You may create the ABAP Z program below to find user exits for a given transaction.  You can also find a BADI for the transaction, see the instructions after the code below.

report  zfinduserexit   .
tables: tstc, tadir, modsapt, modact,
        trdir, tfdir, enlfdir, tstct.

data : jtab like tadir occurs 0 with header line.
data : hotspot(30).

parameters : p_tcode like tstc-tcode obligatory.

at line-selection.
  get cursor field hotspot.
  check hotspot(4) eq 'JTAB'.
  set parameter id 'MON' field sy-lisel+1(10).
  call transaction 'SMOD' and skip first screen.

start-of-selection.
  perform get_data.
  perform write_list.
*---------------------------------------------------------------------*
*       FORM get_data                                                 *
*---------------------------------------------------------------------*
form get_data.
  select single * from tstc
    where tcode eq p_tcode.
  check sy-subrc eq 0.

  select single * from tadir
    where pgmid = 'R3TR'
      and object = 'PROG'
      and obj_name = tstc-pgmna.

  if sy-subrc ne 0.
    select single * from trdir
      where name = tstc-pgmna.
    if trdir-subc eq 'F'.
      select single * from tfdir
        where pname = tstc-pgmna.
      select single * from enlfdir
        where funcname = tfdir-funcname.
      select single * from tadir
        where pgmid = 'R3TR'
          and object = 'FUGR'
          and obj_name eq enlfdir-area.
    endif.
  endif.

  select * from tadir into table jtab
    where pgmid = 'R3TR'
      and object = 'SMOD'
      and devclass = tadir-devclass.

  select single * from tstct
    where sprsl eq sy-langu
      and tcode eq p_tcode.

endform.                    "get_data
*---------------------------------------------------------------------*
*       FORM write_list                                               *
*---------------------------------------------------------------------*
form write_list.
  format color col_positive intensified off.
  write:/(19) 'Transaction Code - ',
       20(20) p_tcode,
       45(50) tstct-ttext.
  skip.
  if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
           2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline,
          /(95) sy-uline.
    loop at jtab.
      select single * from modsapt
      where sprsl = sy-langu and
      name = jtab-obj_name.
      format color col_normal intensified off.
      write:/1 sy-vline,
             2 jtab-obj_name hotspot on,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
  else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
  endif.

endform.                    "write_list
* END OF PROGRAM
*---------------------------------------------------------------------*

FIND THE BADI RELATED TO YOUR TRANSACTION IN MINUTES

These steps should enable you to find any BADI related to any transaction in a matter of minutes.
1. Go to the transaction SE37 to find your function module.
2. Locate the function SXV_GET_CLIF_BY_NAME.
3. Put a breakpoint there.
4. Now open a new session.
5. Go to your transaction.
6. At that time, it will stop this function.
7. Double click on the function field EXIT_NAME.

That will give you name of the BADI that is provided in your transaction.


-----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: Friday, October 21, 2011 9:55 AM
To: sap-wug at mit.edu
Subject: SAP-WUG Digest, Vol 83, Issue 48

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. Task assignment (Bert Deterd)
   2. Re: SAP-WUG Digest, Vol 83, Issue 44 (siva krishna)
   3. RE: Rule Binding Issues (Anderson, Fruzzie G. (MSFC-IS60)[EAST])


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

Message: 1
Date: Fri, 21 Oct 2011 10:50:23 +0200
From: Bert Deterd <bertdeterd at creetion.com>
Subject: Task assignment
To: SAP-WUG- <sap-wug at mit.edu>
Message-ID: <28D661B1-BF8E-4BC7-B110-8957D4A96950 at creetion.com>
Content-Type: text/plain; charset="us-ascii"

Hi all,
Small question :
Does a user who gets role X later than the creation time of task (assigned to  role X), get that task in his inbox?
Probably not i would guess. I can test this but you most likely know this already. If not is it possible to re-assign  tasks in some sort of a batch job?

Regards,
Met vriendelijke groet,
Bert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20111021/3b1ca417/attachment-0001.htm

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

Message: 2
Date: Fri, 21 Oct 2011 15:02:13 +0530
From: siva krishna <sivakrishnan11 at gmail.com>
Subject: Re: SAP-WUG Digest, Vol 83, Issue 44
To: sap-wug at mit.edu
Message-ID:
	<CAELWwqQ9Rj6M64m4V5_stXiAMO3GBSPRfes-=+zn4epCFTYGrQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello Rick,

Thanks for quick response.
But no event has been triggered, when i change the notification long text and clicked on save.
Can you suggest me any User exits corresponding to the notification long text and operation long text as well.

Thanks for any update.

Siva krishna



> Message: 2
> Date: Fri, 21 Oct 2011 10:48:02 +1100
> From: Rick Bakker <rbakker at gmail.com>
> Subject: Re: Workflow for Notification long text.
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
> Message-ID:
>        
> <CAGSLasSZpPDyU3JiZouWVRGDCJ9_TcExsPjFq6AjF1=YP8GR8A at mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
>
> You can start by turning on the event trace (SWEL) via tx SWELS.
> Do your change in IW52 and see if an event is created. If so, you can 
> use that to start your workflow (or task).
>
> regards
> Rick Bakker
> hanabi technology
>
> On Thu, Oct 20, 2011 at 7:43 PM, siva krishna 
> <sivakrishnan11 at gmail.com>
> wrote:
> > Hello,
> > I have a requirement, where I need to trigger a workflow mail, when 
> > ever there is a change in Notification long text(IW52). Also i have 
> > to include the text in the mail.
> > Kindly let me know how this can be done.
> > Thanks in advance for any updates.
> > SIVA KRISHNA
> >
> > _______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20111021/5118754f/attachment-0001.htm

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

Message: 3
Date: Fri, 21 Oct 2011 08:54:55 -0500
From: "Anderson, Fruzzie G. (MSFC-IS60)[EAST]"
	<fruzzie.g.anderson at nasa.gov>
Subject: RE: Rule Binding Issues
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID:
	<A605629600C9A347B5881FFE16F101FB2A3D8EB7FD at NDMSSCC07.ndc.nasa.gov>
Content-Type: text/plain; charset="us-ascii"

Hi Eddie,

Thank you very much for your assistance.  I checked the workflow logs and the agent for the tasks was WF-BATCH.  I appreciate you taking time to respond to my email.

Regards,


Fruzzie Anderson


From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Morris, Eddie
Sent: Thursday, October 20, 2011 3:01 AM
To: SAP Workflow Users' Group
Subject: RE: Rule Binding Issues

Hi Fruzzie,

If it works when you test it in PFAC but not at runtime it would lead me to believe that the runtime user who executes the rule is missing PLOG object from their authorisations.

Have a look at KBA 1592604 and note 755767.

Regards,
Eddie

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Anderson, Fruzzie G. (MSFC-IS60)[EAST]
Sent: 20 October 2011 01:28
To: sap-wug at mit.edu
Subject: Rule Binding Issues

Hello,

I need some expertise in binding for a rule that was created to determine the agent for a missed deadline.  When I process the rule through transaction PFAC, the agent is found.  The inputs to the function module that determines the agent is 'invoice number' and 'fiscal year' which is derived from the workflow container.  However, I am receiving the following error through the workflow.  Any assistance is greatly appreciated.


|       |12373110|No Action              |Work item 000012373110: Object FLOWITEM method EXECUTE cannot be executed                 |
|       |12373110|No Action              |Error when processing node '0000000201' (ParForEach index 000000)                         |
|       |12373117|CREATE_WIM_HANDLE      |Error when creating a work item                                                           |
|       |12373117|CREATE                 |Error when creating a component of type 'Step'                                            |
|       |12373117|PROCESS_NODE           |Error when processing node '0000000201' (ParForEach index 000000)                         |
|       |12373117|Result Processing      |Error during result processing of work item 000012373117                                  |
|       |12373117|CREATE_VIA_WFM         |Agent determination for step '0000000201' failed                                          |
|       |12373117|EVALUATE_AGENT_VIA_RULE|Workflow WS90000008 no. 000012373110 activity 0000000201 role 'AC90000001': No agent found|
|       |12373117|AC90000001             |Resolution of rule AC90000001 for task TS90000038: no agent found


[cid:image001.png at 01CC8FCF.00D45760]

Regards,


Fruzzie Anderson


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20111021/0276f408/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 20006 bytes
Desc: image001.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20111021/0276f408/attachment.png

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

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


End of SAP-WUG Digest, Vol 83, Issue 48
***************************************

----------------------------------------------------------------------
The information contained in this e-mail message is intended solely for
the recipient(s) and may contain privileged information. Tampering with
or altering the contents of this message is prohibited. This information
is the same as any written document and may be subject to all rules
governing public information according to Florida Statutes. Any message
that falls under Chapter 119 shall not be altered in a manner that
misrepresents the activities of Orange County Public Schools.
[References: Florida State Constitution I.24, Florida State Statutes
Chapter 119, and OCPS Management Directive A-9.] If you have received
this message in error, or are not the named recipient notify the sender
and delete this message from your computer.




More information about the SAP-WUG mailing list