Skip to Content

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.


Capture 1.JPG

Double click on Method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW


Capture2.JPG

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 ).

Capture3.JPG

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

Capture4.JPG

Capture5.JPG

Capture6.JPG

Capture7.JPG

Reagrds,

Kamfrk.

To report this post you need to login first.

2 Comments

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

Leave a Reply