<div>You can even try to include INCLUDE cntn01_SWC. but all the macros will be included with zero ( 0 ) for eg</div>
<div> </div>
<div>onorder to use SWC_GET_ELEMENT in the badi you have to call the macro SWC0_GET_ELEMENT.</div>
<div>SWC_SET_ELEMENT ---> SWC0_SET_ELEMENT..<br><br></div>
<div class="gmail_quote">On Wed, Mar 10, 2010 at 6:12 AM, Mike Pokraka <span dir="ltr"><<a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Just to throw another one into the mix, the SAP help also has some<br>comments on the matter:<br><br>To use the BOR macros in a class, two INCLUDES must be included.<br>
· include <CNTN03>.<br>contains the local types<br>· include <CNTN02>.<br>contains the BOR macros<br><br>But then again some people you guys spend far too much time hacking around<br>the internals to look at the doco :-)<br>
<br>...or one could also just use SAP_WAPI_* function modules and not bother<br>with macros.<br><br>Cheers,<br>Mike<br><br><br>On Tue, March 9, 2010 3:54 pm, Mike Gambier wrote:<br>><br>> Andy,<br>><br>><br>><br>
> Not that it'll matter that much but your suggested INCLUDE seems to have a<br>> last changed on date of 2005 in our ECC 6 system (SAP_ABA 701), whereas<br>> CNTN01_OO was last touched by SAP in 2009.<br>><br>
><br>><br>> As to which one they actually support going forward I guess only they<br>> know...maybe...<br>><br>><br>><br>> Mike GT<br>><br>><br>><br>> Date: Tue, 9 Mar 2010 14:20:28 +0000<br>
> Subject: RE: Using <CNTN01> in a BADI<br>> From: <a href="mailto:abcurtis@gmail.com">abcurtis@gmail.com</a><br>> To: <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>><br>><br>><br>> SAP provide OO versions of the includes, try<br>
><br>> <SWFCNTN01><br>><br>> Andy<br>><br>> ---------- Forwarded message ----------<br>> From: vijay srikanth <<a href="mailto:vijay_d15@hotmail.com">vijay_d15@hotmail.com</a>><br>> To: "SAP Workflow Users' Group" <<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>><br>
> Date: Mon, 8 Mar 2010 17:37:24 +0000<br>> Subject: RE: Using <CNTN01> in a BADI<br>><br>> Hi John,<br>><br>> Most of the macros in CNTN01 are also available as Function modules like<br>> SWC_ELEMENT_SET SWC_ELEMENT_GET etc.<br>
> you can also try using them, in case you have to.<br>><br>> Cheers,<br>> Vijay<br>><br>>> Date: Mon, 8 Mar 2010 11:45:13 +0000<br>>> Subject: RE: Using <CNTN01> in a BADI<br>>> From: <a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a><br>
>> To: <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>>><br>>> Hi John,<br>>><br>>> Why do you need the include? If you raise an event using the WAPI FM,<br>>> the<br>>> container is a flat name-value structure. No need for container macros,<br>
>> just append the values.<br>>><br>>> Cheers,<br>>> Mike<br>>><br>>> On Thu, March 4, 2010 10:07 am, John Howarth wrote:<br>>> > Hi<br>>> ><br>>> > On a 4.6C system. I am trying to trigger a Goods Receipt event from<br>
>> BADI<br>>> > (rather than a FM) I cant use the <CNTN01> include because of 'LIKE'<br>>> > statements in the code.<br>>> > Has anyone got example of the code I can use .<br>
>> ><br>>> > Kind Regards,<br>>> ><br>>> > John Howarth<br>>> ><br>>> > SAP PLM Technical Support<br>>> ><br>>> ><br>>> ><br>>> > EADS Defence and Security Systems<br>
>> ><br>>> > ( Contact: 01633 715315<br>>> ><br>>> > * Email: <a href="mailto:john.howarth@eads.com">john.howarth@eads.com</a><br>>> ><br>><br>> _________________________________________________________________<br>
> Do you have a story that started on Hotmail? Tell us now<br>> <a href="http://clk.atdmt.com/UKM/go/195013117/direct/01/_______________________________________________" target="_blank">http://clk.atdmt.com/UKM/go/195013117/direct/01/_______________________________________________</a><br>
> SAP-WUG mailing list<br>> <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>> <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
><br><br><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
</blockquote></div><br>