Skip to Content

Triggering a Guided Procedure (GP) process in CE7.1 from ABAP

In this blog, I will be describing about how to trigger the GP Process from an ABAP system. Here is the scenario. You need to start the GP Process after the ABAP background (batch) program is over.  

SAP has provided the GP Process Discovery service (WSIL), which will give you the list of process available in Guided Procedure design time with their generated version and WSDL location.

Step 1:  Identify the GP Process in the WSIL

You can use

to find out the WSDL location of the GP Process. After identifying the GP process from the WSIL, select the WSDL location, which will be used for creating the web service client. The GP execute process WSDL will consists of all mandatory built-in roles (Administrator, Owner and Overseer) and user-defined roles available for the process and it also has the following operations:


    • GetProcessResult – gives information about the process status & finish time 

    • StartProcess – Starts the GP process instance template

Step 2:  Creating a consumer proxy in the ABAP System

Next step will be creating the consumer proxy for the web service client in ABAP. Login to your ABAP system and launch transaction SE80. From the repository browser select the ‘Proxy Object’ under Enterprise Service option. Now create the ‘Service Consumer’ proxy for the GP WSDL. As an end result, now the ABAP proxy class and the relevant proxy structures are created in the system.

Step 3:  Creating a ABAP Web Service Client Program* *

Now create the ABAP web service client program using the generated the proxy class as shown below:













      Action10Role type ZV1START_PROCESS_IN_DOC_ACTION,

      userList type ZVPUSER_LIST,

      userInRole type ZVPSTRING_TAB,

      userstring like line of userInRole,

      go_sys_exception type ref to CX_AI_SYSTEM_FAULT,

      exception_msg type string.


    INPUT-UDName = ‘ABAPInvoked’.

    INPUT-UDDescription = ‘This GP was invoked by ABAP’.

    INPUT-CallBack_URL = ‘http://callback.local‘.

    userstring = ‘Administrator’.

    Append userstring to userInRole.

    userList-USER = userInRole.

    Action10Role-USERS = userList.

    StartRoles-Action_10 = Action10Role.

    INPUT-Roles = StartRoles.

    CALL METHOD co_obj1->Start_Process


        INPUT  = INPUT


        OUTPUT = OUTPUT.

    WRITE OUTPUT-Response.

  CATCH CX_AI_SYSTEM_FAULT INTO go_sys_exception.

    exception_msg = go_sys_exception->get_text( ).

    write exception_msg.



Note: The above source code is sample for my GP process. Change the source code based on your GP Process WSDL.

Step 4: Create the logical port using either SOAMANGER or LPCONFIG transaction</p><p>Since my ABAP backend is AS 7.0 SP14, I have used SOAMANAGER to create the logical port. Launch SOAMANGER and specify the generated consumer proxy as shown below:</p><p>!|height=233|alt=|width=576|src=|border=0!</p><p>Click on ‘Apply Selection’ to create the logical port by specifying the name and WSDL location. System will create the logical port with the default information from the WSDL. Click on the transport bindings</p><p>!|height=264|alt=|width=552|src=|border=0!</p><p>Add the process instance id & process information query strings (? style=document& pid=<gp_process_id_value>&pver=<gp_process_version) as part of the default transport binding path prefix. By saving the entries in SOAMANAGER will automatically create a RFC destination of type G in SM59 with GUID like below:</p><p>!|height=130|alt=|width=559|src=|border=0!</p><p>Step 5:  Execute the Client Program

As a last step, now we can execute the web service client program and verify the GP process triggered in the CE 7.1 portal (GP Runtime Work Center) as shown below:

ABAP report output with the response process instance GUID for the started GP process

Triggered GP process in CE 7.1 portal


You must be Logged on to comment or reply to a post.
  • Hello Velu,
    This is great – I had no idea how to do this – I will give it a try – thanks for pointing me in the right way!
    Best regards
  • Hi Velu,

    We have a requirement where we need to trigger a process from WebDynpro ABAP application. I have two things to mention here.

    1.We are on C.E 7.0 SP14. You have mentioned this for C.E 7.1. Can I still use this to trigger process?

    2.I need to pass some values from my ABAP application also to the process. Is that possible?

    Thank You,

    • Hi Suresh,

      There is no CE7.0 SP14.  CE 7.0 with SP06 is latest. You have mistakenly mentioned. It should be NW7.0 SP14. You can still trigger the process from NW7.0 SP14 system also pass the values to your GP parameters from ABAP WD.


      • Velu,

        Sorry about that. Its NW7.0 SP14.

        Could you please let me know how the parameters can be passed. I have around 15 parameters to be passed from ABAP application to the first CO in my Process. Some of the parameters are Texts, with more than 255 characters.

        Thank You,

        • Suresh,

          You have ‘INPUT_PARAMETERS’ deep structure for the proxy generated class(from GP Process WSDL). You can fill in all your input parameters value thru this deep structure and then start the GP process from ABAP.


  • Hi Velu,

    Is there any way where we can send some attachments, to the attachemnts tab available on Actions, using this technique?

    I couldn’t find any option but Iam just wondering if there is any way.

    Thank You,

  • Hi Velu,

    I have created one test process and followed the steps that you have mentioned to instantiate the process from ABAP system. I was able to instantiate a process.

    Now I have created an actual process with aorund 15 input parameters and generated a proxy. But, when I try to instantiate the process, Iam geting the following error.
    SOAP:1.026 SRT: HTTP-Code 500: (“Internal Server Error”).

    Any idea why is this happening?

    Please suggest!!


  • Hi Velu,

    I created one proxy class for my test process version 10.
    But now when i have to make some changes, it again saves the process with version 11.

    Now the class existing for version 10, doesnt get updated with the latest changes.

    Do we need to delete and create one new proxy class, everytime when we make any changes in the process?
    Also do we need to change the code everytime for instantiating the process?


  • Hi Velu,

    Your blog helped us a lot, to understand GP. Thanks!

    I have one question,
    Can we have Lotus Notes instead of Portal’s UWL to show up actions on instantiation?
    Is this integration possible?


  • Hi Velu,

    I created the class, port and program followed the steps that you mentioned. But when you run this program ends with the following error.

    SOAP:1,007 SRT: Unsupported xstream found: (“HTTP Code 200  : OK”).

    Any idea why this happens?

    Please suggest!

    Thank you.

    Will have a document for possible errors of this kind?

  • Hi Velu,

    I have problem get the return parameters and state of GP process to ABAP. The StartProcess method working fine, process is started. After I finish the GP process, I would like to determine the return parameters and state of this finished process. I try call methods GetProcessInfo to receive process state, and GetProcessResult to receive process return parameters, but return structures is empty (Guid is used as input paramaters). Can you help me , pls ?



  • Hi Velu,

    This is really a nice weblog to start with.

    We have developed proxy classses for our GP processes and those are being used as well.

    But now, we have a change in the GP porcess and becuase of that some of the input parameters and roles are also got changed.

    At this time, process version got changed from 0.20 to 0.22.

    IN this case, how can we regenarate the proxy?

    It gives error to me whenever i try to regenarate.

    I have tried altering the WSDL file and it worked fine to atleast update the proxy classes.

    But now, it is not allowing to make changes in the Logical port in the SOAMANAGER.

    I have to update the process version in SOAMANAGER under transport settings.

    I am getting error saying:      SRT Framework exception: Preconfiguration is invalid

    can you please let me know how I can solve this issue.