Skip to Content
avatar image
Former Member

Implement the abap logic into the workflows

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 05, 2015 at 09:20 AM

    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-ExceptioninbindingofTaskandtheMethod?

    program exit :

    Program Exits In Workflow - ABAP Development - SCN Wiki

    Regards,

    Jaydeep

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2015 at 07:44 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 08, 2015 at 05:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded