CRM and CX Blogs by Members
Find insights on SAP customer relationship management and customer experience products in blog posts from community members. Post your own perspective today!
cancel
Showing results for 
Search instead for 
Did you mean: 
kamran_farooqui
Contributor

This document will help us to show how we can flow the parameters to Sales Order and Sales Quotation through Transaction Launcher.


Prerequisite: Set up of a TL calling tcode va01.


T code: se24

Provide the object type you have created, click on Change.


Double click on Method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW


Do the changes as mentioned below

method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW.
data: __gdc    type ref to if_crm_ui_data_context,
__source
type        string,
__line  
type        string,
__path  
type        crmt_ic_ac_identify_path.
__gdc ?=
cl_crm_ui_data_context_srv
=>get_instance( gv_view_controller ).
********** Begin of parameter declaration ***********
data ICWCPROCESSEDOBJECT
type ty_ICWCPROCESSEDOBJECT .
data PARAM1
type ty_PARAM1 .
data ICWEBCLIENTBORKEYPARAMETER
type ty_ICWEBCLIENTBORKEYPARAMETER .
ICWEBCLIENTBORKEYPARAMETER
=
'VA01'.
me
->set_container_object(
iv_name       
= '<*MAINOBJ*>'
iv_object_key 
= ICWEBCLIENTBORKEYPARAMETER
iv_object_type
= gv_bortype ).
***********************************************************************
******************************************************************
***********************************************************************
DATA: lv_bpid TYPE bu_partner.
TYPES: BEGIN OF ty_param1,
pid
(000020)   TYPE c,
value(000250) TYPE c,
END OF ty_param1.
DATA: lv_param1 TYPE ty_param1.
CALL METHOD __gdc->get_entity_attribute_as_value
EXPORTING
path 
= '//currentCustomer/BP_NUMBER'
IMPORTING
value = lv_bpid.
lv_param1
-pid = 'VAG'.
lv_param1
-value = lv_bpid.
me
->set_container_data( iv_name  = 'PARAM1'
iv_value
lv_param1 ).

Once the changes done now we can see Sold to Party parameter got copied to va01 screen.

Reagrds,

Kamfrk.

2 Comments
Top kudoed authors