2008 Jan 25 4:26 AM
Hi,
I would like to create a "OO transaction" for a public class method . The method is having an one import parameter. Is it possible to call OO transaction with the method argumnet.
Ex: class1->method1(arg1). is it possible to wrap this method with oo transaction . if so ,how can i call the transaction to pass value to the method.
Hi,
I would like to create a "OO transaction" for a public class method . The method is having an one import parameter. Is it possible to call OO transaction with the method argumnet.
Ex: class1->method1(arg1). is it possible to wrap this method with oo transaction . if so ,how can i call the transaction to pass value to the method.
2008 Jan 25 5:54 AM
Hello Jey
No, you cannot.
The only way is to use the same mechanism for "normal" transactions: SET/GET parameters. However, you cannot pass the GET value during the method call but have to retrieve it within your method.
Regards
Uwe
2008 Jan 25 8:40 AM
2008 Jan 25 9:27 AM
Hello Jey
Parameter ID 'BUK' is used to set the company code.
Thus, in your MAIN method (which is started by the OO-transaction) you could code at the beginning:
GET PARAMETER ID 'BUK' field me->md_company_code. " instance attribute of your class
However, I would place this coding into the CONSTRUCTOR method of your class.
Regards,
Uwe
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |