Skip to Content

Applies To:

Processing return parameter of BOR type TL.

Keywords:

Transaction Launcher, BOR, CRM, ECC, Handler, process_return, SWO1, Return, TL, WebUI, ICWeb

Summary:

You created a transaction launcher to open an ecc transaction from CRM WebUI.

You want to return parameter on exit from ecc transaction and would like to read the parameter in crm.

Solution:

   Step1:

Set a global variable with values you want to return from ecc transaction. This could a variable of a function group or SPA/GPA parameters set by SET PARAMETER statement.

Example: In PAI on click of save button of a z transaction which creates new installment plan, set SPA/GPA parameter.

set para.jpg

This step may be skipped for standard transactions where the desired return parameter is available in some SPA/GPA parameter.

   Step2:

Open business object repository method which is called by TL.

Read the global variable which is set in previous step and set a container element

after the CALL TRANSACTION statement.

/wp-content/uploads/2015/04/set_container_687653.jpg

Note that bor container element name need not be same as SPA/GPA parameter name.

  Step3:

TL handler class which is a subclass of CL_CRM_UI_LTX_ABSTRACT_ITS has access to the protected attribute GR_DATA_FLOW_FROM_ITS.

TL handler.jpg

In process_return method of handler class, read the container of this attribute to get the parameter

/wp-content/uploads/2015/04/process_return_687640.jpg

gt_container of gr_data_flow_from_its is set in super call of process_return method.

So this call should not be commented.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply