on 01-02-2015 10:52 AM
Hi Experts,
Can any one help me on these.
@ Note : I need to implement the business logic(like select queries in SAP ABAP workflows.) I am new to this concept.
Please help me and send me any documents with you have or suggest me how to do this.
Thanks and Regards,
Sunitha.
Hi Sunitha,
In continuation to Krishna's response, here's a simple technique to understand Business object methods if you are an ABAPer,
1) Methods are similar function modules wherein you define Import/Export/Table(Multiline) parameter attributes as per your requirement.
2) You assign values to importing/exporting parameters from Workflow-->workflow tasks-->methods via binding
3) However,to read these values from method parameter to method program you use std macro 'swc_get_element container <import parameter>' for a single value and 'swc_get_table container <import parameter>' for multiline parameters.
4) Develop the logic similar to what you would do in Function module, like writing select query etc (there are some exceptions though, not going in detail)
5) Assign the output to method parameter using std macro 'swc_set_element container <export parameter>' for a single value and 'swc_set_table container <export parameter>' for multiline parameters.
Regards,
Dipika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You will find many threads many threads related to your requirement in scn.
You can create your BO object using t-code swo1, and in that create method where you can write
you logic.
and then when you create your task using PFTC, you can use this method in that and use that task in you workflow.
Don't forget to do proper binding between workflow , task and its method.
Refer link : SAPTechnical.COM - Working with Business Objects
Regards,
Jaydeep
Hi Sunitha,
Its seems like you have just started with SAP workflow. If so, I would advise you to go through the tutorials in the below link. It provides explanation with appropriate screenshots.
SAP Business Workflow
Also just answer your query, the programming part is mostly done at Busness Object -> Method(SAPTechnical.COM - Working with Business Objects) level or using Class->Method (SAPTechnical.COM - ABAP Classes in Workflow).
Regards,
Unni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use business logic in method use in task or you can attach program exit with the task according to your requirement.
go through below link :
program exit :
Program Exits In Workflow - ABAP Development - SCN Wiki
Regards,
Jaydeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.