<HTML><BODY><DIV style='font-family: "Verdana"; font-size: 10pt;'><DIV>
<DIV>Jerry,</DIV>
<DIV> </DIV>
<DIV>Sorry, can't help you with those. </DIV>
<DIV> </DIV>
<DIV>It is interesting to note that the Object Type FM "is only called at runtime if the object type is initial". Can you create an entry in SWEC without an object type? I could not in 6.20</DIV>
<DIV> </DIV>
<DIV>Doco for the 'event container FM' says you can fill the Event Conatiner with event parameters. You could probably use the older version of the template FM SWE_CD_TEMPLATE_CONTAINER_FB to populate the event conatiner. The newer version of the FM SWE_CD_TEMPLATE_CONTAINER_FB_2 does not have event container as an export/tables parameter and it is passed by value. So I am not sure if it works.<BR></DIV>Best Regards,<BR>Ramki Maley,<BR>WF Developer - USCBP.<BR><BR>-----Original Message-----<BR>From: jerry martinek <jerry.martinek@shawbiz.ca><BR>To: SAP Workflow Users' Group <sap-wug@mit.edu><BR>Sent: Tue, 18 Oct 2005 13:44:04 -0700<BR>Subject: Re: Events for Change Documents - FM For Event Id<BR><BR>
<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_1_c4752d02-3fff-486c-ab7d-26274cb899f1><PRE><TT>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 <<A href="mailto:jerry.martinek%40shawbiz.ca">jerry.martinek@shawbiz.ca</A>>
To: <A href="mailto:sap-wug%40mit.edu">sap-wug@mit.edu</A>
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
<A href="mailto:SAP-WUG%40mit.edu">SAP-WUG@mit.edu</A>
<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
----------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> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> loop at changedocument_position where fname = 'FIELD1'.</DIV>
<DIV>* This is just an example, you may have to do some manipulating to do
arithemetic on the old & new<BR> Difference = changedocument_position-value_New
-</DIV>
<DIV> changedocument_position-value_Old.</DIV>
<DIV> If Difference > 10. <BR>* Do Nothing - Event will be created.</DIV>
<DIV> Else.<BR> Refresh Events. "No Event Will be created<BR>
Endif.</DIV>
<DIV> EXIT.<BR> endloop.<BR></DIV>
<DIV>*To raise additional events, you simply append the Event name to the EVENTS
parameter.</DIV>
<DIV> </DIV>
<DIV>HTH.</DIV>
<DIV> </DIV>
<DIV>Best Regards,</DIV>
<DIV>Ramki Maley,</DIV>
<DIV>WF Developer - USCBP.</DIV>
<DIV> </DIV>
<DIV> <BR>-----Original Message-----<BR>From: jerry martinek
<<A href="mailto:jerry.martinek%40shawbiz.ca">jerry.martinek@shawbiz.ca</A>><BR>To: <A href="mailto:sap-wug%40mit.edu">sap-wug@mit.edu</A><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="<A href="mailto:SAP-WUG%2540mit.edu%5cx22%3eSAP-WUG%40mit.edu%3c%2fA">mailto:SAP-WUG%40mit.edu">SAP-WUG@mit.edu</A</A>>
<A href="<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A>" target=_blank><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug</A" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A</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--
</TT></PRE></DIV><!-- end of AOLMsgPart_1_c4752d02-3fff-486c-ab7d-26274cb899f1 -->
<DIV class=AOLPlainTextBody id=AOLMsgPart_2_c4752d02-3fff-486c-ab7d-26274cb899f1><PRE><TT>_______________________________________________
SAP-WUG mailing list
<A href="mailto:SAP-WUG%40mit.edu">SAP-WUG@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_2_c4752d02-3fff-486c-ab7d-26274cb899f1 -->
<DIV class=AOLPlainTextBody id=AOLMsgPart_3_c4752d02-3fff-486c-ab7d-26274cb899f1><PRE><TT>_______________________________________________
SAP-WUG mailing list
<A href="mailto:SAP-WUG%40mit.edu">SAP-WUG@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_3_c4752d02-3fff-486c-ab7d-26274cb899f1 --></DIV></DIV></BODY></HTML>