Skip to Content
0
Former Member
Oct 28, 2009 at 05:49 AM

uploading opportunity using CRM_ORDER_MAINTAIN

18 Views

Hi All,

I'm having a hard time uploading a partner number using the FM CRM_ORDER_MAINTAIN. I have already successfully uploaded data such as text,status,items,etc.. But all data coming from IT_PARTNER seems to be not uploaded, here is the part of my code which i populate data to IT_PARTNER, Thanks! 😊

*----input prospect

wa_partner-ref_kind = 'A'.

wa_partner-kind_of_entry = 'C'.

wa_partner-partner_fct = '00000021'.

wa_partner-partner_no = wa_i_lead_final-prospect.

wa_partner-display_type = 'BP'.

wa_partner-no_type = 'BP'.

wa_partner-mainpartner = 'X'.

APPEND wa_partner TO it_partner.

*----enter fieldnames to fieldnames table

wa_field_names-fieldname = 'DISPLAY_TYPE'.

APPEND wa_field_names TO it_field_names.

wa_field_names-fieldname = 'KIND_OF_ENTRY'.

APPEND wa_field_names TO it_field_names.

wa_field_names-fieldname = 'NO_TYPE'.

APPEND wa_field_names TO it_field_names.

wa_field_names-fieldname = 'PARTNER_FCT'.

APPEND wa_field_names TO it_field_names.

wa_field_names-fieldname = 'PARTNER_NO'.

APPEND wa_field_names TO it_field_names.

*----input objectname and append fieldname table to lt_ct_input_fields

wa_ct_input_fields-ref_kind = 'A'.

wa_ct_input_fields-objectname = 'PARTNER'.

wa_ct_input_fields-field_names = it_field_names.

APPEND wa_ct_input_fields TO it_ct_input_fields.