Events for Change Documents - FM For Event Id

jerry martinek jerry.martinek at shawbiz.ca
Tue Oct 18 16:44:04 EDT 2005


Hi Ramki,

Thank you.

Do you know how the 'FM for object type' and 'event container FM' work? Like with the previous function module, until you have used them, it's pretty difficult to understand how to use them. The available help is not that helpfull.

Regards,
Jerry Martinek  


Content-Type: multipart/alternative;
	boundary="--------MailBlocks_8C7A23761D9609C_8BC_82CD_MBLK-M11.sysops.aol.com"


----------MailBlocks_8C7A23761D9609C_8BC_82CD_MBLK-M11.sysops.aol.com
Content-Type: text/plain; charset="us-ascii"

Hi Jerry,
 
Yes, you can do what you need with the Event Id FM. The FM is executed before the event is created. The parameter CHANGEDOCUMENT has the changes and EVENTS has the event which started the FM. You can examine the changed fields and decide whether to raise the event or not. You can also create additional events for the object by adding events to the EVENTS parameter.
 
 
   loop at changedocument_position where fname = 'FIELD1'.
* This is just an example, you may have to do some manipulating to do arithemetic on the old & new
      Difference = changedocument_position-value_New -
                         changedocument_position-value_Old.
      If Difference > 10. 
* Do Nothing - Event will be created.
      Else.
         Refresh Events. "No Event Will be created
      Endif.
      EXIT.
   endloop.

*To raise additional events, you simply append the Event name to the EVENTS parameter.
 
HTH.
 
Best Regards,
Ramki Maley,
WF Developer - USCBP.
 
 
-----Original Message-----
From: jerry martinek <jerry.martinek at shawbiz.ca>
To: sap-wug at mit.edu
Sent: Tue, 18 Oct 2005 10:03:55 -0700
Subject: Events for Change Documents - FM For Event Id


Hi,

I've looked at the help for the 'FM For Event Id' in the Events for Change 
Documents and unfortunately I don't understand the explanation. The explanation 

"This function module is used to determine event names from the data transferred 
by the change document. Its interface therefore has event names as output 
parameters and the change data which is to be saved as input parameters:" 

doesn't answer my question which is what is this function module used for.

What I need to do is to create a new triggering event if a requisition changes 
when the value of the change is less than 10% and there is no active workflow 
for a release relevant requisition.

This is an SAP 46C system.

I want to know whether change documents is the place to make this check.

Thanks,
Jerry  

  

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

----------MailBlocks_8C7A23761D9609C_8BC_82CD_MBLK-M11.sysops.aol.com
Content-Type: text/html; charset="us-ascii"

<HTML><BODY><DIV style='font-family: "Verdana"; font-size: 10pt;'><DIV>
<DIV>Hi Jerry,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Yes, you can do what you need with the Event Id FM.&nbsp;The FM&nbsp;is executed before the event is created. The parameter&nbsp;CHANGEDOCUMENT has the changes and EVENTS has the event which&nbsp;started the FM. You can examine the changed fields and decide whether to raise the event or not. You can also create additional events for the object by adding events to the EVENTS parameter.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; loop at changedocument_position where fname = 'FIELD1'.</DIV>
<DIV>* This is just an example, you may have to&nbsp;do some manipulating to do arithemetic on the old&nbsp;&amp; new<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Difference = changedocument_position-value_New -</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;changedocument_position-value_Old.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;Difference&nbsp;&gt; 10.&nbsp;<BR>*&nbsp;Do Nothing - Event will be created.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Refresh Events. "No Event Will be created<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Endif.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXIT.<BR>&nbsp;&nbsp; endloop.<BR></DIV>
<DIV>*To raise additional events, you simply append the Event name to the EVENTS parameter.</DIV>
<DIV>&nbsp;</DIV>
<DIV>HTH.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best Regards,</DIV>
<DIV>Ramki Maley,</DIV>
<DIV>WF Developer - USCBP.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;<BR>-----Original Message-----<BR>From: jerry martinek &lt;jerry.martinek at shawbiz.ca&gt;<BR>To: sap-wug at mit.edu<BR>Sent: Tue, 18 Oct 2005 10:03:55 -0700<BR>Subject: Events for Change Documents - FM For Event Id<BR><BR></DIV>
<STYLE>
.AOLPlainTextBody {
    margin: 0px;
    font-family: Tahoma, Verdana, Arial, Sans-Serif;
    font-size: 12px; 
    color: #000; 
    background-color: #fff; 
}

.AOLPlainTextBody pre {
    font-size: 9pt;
}

.AOLInlineAttachment {
    margin: 10px;
}

.AOLAttachmentHeader {
    border-bottom: 2px solid #E9EAEB;
    background: #F9F9F9;
}

.AOLAttachmentHeader .Title {
    font: 11px Tahoma;
    font-weight: bold;
    color: #666666;
    background: #E9EAEB; 
    padding: 3px 0px 1px 10px;
}

.AOLAttachmentHeader .FieldLabel {
    font: 11px Tahoma; 
    font-weight: bold;
    color: #666666;
    padding: 1px 10px 1px 9px;
}

.AOLAttachmentHeader .FieldValue {
    font: 11px Tahoma; 
    color: #333333;
}

</STYLE>

<DIV class=AOLPlainTextBody id=AOLMsgPart_0_401fa95d-f97f-4785-a3f8-934b158e8458><PRE><TT>Hi,

I've looked at the help for the 'FM For Event Id' in the Events for Change 
Documents and unfortunately I don't understand the explanation. The explanation 

"This function module is used to determine event names from the data transferred 
by the change document. Its interface therefore has event names as output 
parameters and the change data which is to be saved as input parameters:" 

doesn't answer my question which is what is this function module used for.

What I need to do is to create a new triggering event if a requisition changes 
when the value of the change is less than 10% and there is no active workflow 
for a release relevant requisition.

This is an SAP 46C system.

I want to know whether change documents is the place to make this check.

Thanks,
Jerry  

  

_______________________________________________
SAP-WUG mailing list
<A href="mailto:SAP-WUG%40mit.edu">SAP-WUG at mit.edu</A>
<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
</TT></PRE></DIV><!-- end of AOLMsgPart_0_401fa95d-f97f-4785-a3f8-934b158e8458 --></DIV></DIV></BODY></HTML>

----------MailBlocks_8C7A23761D9609C_8BC_82CD_MBLK-M11.sysops.aol.com--
-------------- next part --------------
_______________________________________________
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