Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Opportunity creation report using one order Function Module

former_member557605
Participant
0 Kudos

Hi

I am trying to create a report for creating opportunity using one order framework function module (crm_order_read, crm_order_maintain, crm_order_save). When i execute this report then partner and partner function is not updating. Please, any one tell me which table is used for maintaning the prtner function and partner in opportunity.

I have attached may report which i have created. Please,report.txt find.

1 ACCEPTED SOLUTION

Domi
Contributor
0 Kudos

Hi

you need to set also these fields:

DATA: ls_logical_key TYPE crmt_partner_logic_partner_key.
...
ls_partner-ref_handle = ls_orderadm_h-handle.
...
ls_partner-ref_partner_handle = 1.   
ls_logical_key-ref_partner_handle = ls_partner-ref_partner_handle. " 0 = inital my be ignored!
...
ls_input_field-objectname  = 'PARTNER'.
ls_input_field-ref_handle  = ls_partner-ref_handle.
ls_input_field-logical_key = ls_logical_key.

for a partner update you have to set as well:

ls_logical_key-ref_partner_handle = ls_partner-ref_partner_handle.
ls_logical_key-ref_partner_no     = ls_partner-ref_partner_no.
ls_logical_key-ref_partner_fct    = ls_partner-ref_partner_fct.
ls_logical_key-ref_no_type        = ls_partner-ref_no_type.
ls_logical_key-ref_display_type   = ls_partner-ref_display_type.

BTW - Use constants from INCLUDE crm_object_names_con. like:

INCLUDE crm_object_names_con.
...
ls_input_field-objectname  = gc_object_name-partner.
...
2 REPLIES 2

Domi
Contributor
0 Kudos

Hi

you need to set also these fields:

DATA: ls_logical_key TYPE crmt_partner_logic_partner_key.
...
ls_partner-ref_handle = ls_orderadm_h-handle.
...
ls_partner-ref_partner_handle = 1.   
ls_logical_key-ref_partner_handle = ls_partner-ref_partner_handle. " 0 = inital my be ignored!
...
ls_input_field-objectname  = 'PARTNER'.
ls_input_field-ref_handle  = ls_partner-ref_handle.
ls_input_field-logical_key = ls_logical_key.

for a partner update you have to set as well:

ls_logical_key-ref_partner_handle = ls_partner-ref_partner_handle.
ls_logical_key-ref_partner_no     = ls_partner-ref_partner_no.
ls_logical_key-ref_partner_fct    = ls_partner-ref_partner_fct.
ls_logical_key-ref_no_type        = ls_partner-ref_no_type.
ls_logical_key-ref_display_type   = ls_partner-ref_display_type.

BTW - Use constants from INCLUDE crm_object_names_con. like:

INCLUDE crm_object_names_con.
...
ls_input_field-objectname  = gc_object_name-partner.
...

0 Kudos

This is really helpful information but my problem didn't solve.