Skip to Content
0
Dec 04, 2007 at 02:48 PM

crm_order_maintain

15 Views

Hi,

I am trying to create sales order using crm_order_maintain fm.

Sales order id is getting created but product id and quantity fields are not coming( Item data).

I am passing the product and qunatity fields like below.

******For product*******

wa_orderi-ORDERED_PROD = 'NA2 BOWSPBEARING7/8'. "wa_parts-PART.

wa_orderi-MODE = 'A'.

clear : wa_fieldname,wa_inputfields.

wa_inputfields-ref_handle = 1.

wa_inputfields-ref_kind = 'A'.

wa_inputfields-objectname = 'ORDERADM_I'.

wa_inputfields-logical_key = space.

wa_fieldname-fieldname = 'MODE'.

append wa_fieldname to wa_inputfields-FIELD_NAMES.

wa_fieldname-fieldname = 'ORDERED_PROD'.

append wa_fieldname to wa_inputfields-FIELD_NAMES.

insert wa_inputfields into table it_inputfields.

append wa_orderi to it_orderi.

  • For Quantity*********

wa_scheduleline-QUANTITY = '10'. "wa_parts-quantity.

append wa_scheduleline to it_scheduleline.

wa_schedule-SCHEDLINES = it_scheduleline.

append wa_schedule to it_schedule.

clear : wa_fieldname,wa_inputfields.

wa_inputfields-ref_handle = 1.

wa_inputfields-ref_kind = 'A'.

wa_inputfields-objectname = 'SCHEDLIN'.

wa_inputfields-logical_key = space.

wa_fieldname-fieldname = 'QUANTITY '.

append wa_fieldname to wa_inputfields-FIELD_NAMES.

insert wa_inputfields into table it_inputfields.

clear : wa_fieldname,wa_inputfields.

Can you help me on this?

Regards,

Indhra.E