cancel
Showing results for 
Search instead for 
Did you mean: 

Implement the abap logic into the workflows

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi  Dipika,

Thanks for your continuous support on this. As per your points I have tried but I got some confusion where I need to assign the business logic to task.

If you don't mind could please share the screen shots for this. With you have

Thanks,

Sunitha

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Thank you so much Krishna.

Former Member
0 Kudos

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 :

http://wiki.scn.sap.com/wiki/display/ABAP/SAP+Business+Workflow#SAPBusinessWorkflow-Exceptioninbindi...?

program exit :

Program Exits In Workflow - ABAP Development - SCN Wiki

Regards,

Jaydeep