Hi All,
we are creating the service Contract using the CRM_ORDER_MAINTAIN FM.
I am able to insert product details and Item details successfully.
But when I am trying to add BILLING PLAN its thorwing runtime Error.
PFB my code. Kindly guide me if I missed something.
wa_dates_rule-rule_per_date_t = ‘BILL0003’.
wa_dates_rule-rule_bill_date_t = ‘BILL0003.
wa_dates_rule-rule_inv_date_t = ‘BILL0003’.
wa_dates_rule-cashflow_type = 'SERV'.
wa_dates_rule-currency = ‘EUR’.
wa_dates_rule-qty_unit = ‘AE’.
wa_dates_rule-number_int = <Item number>.
wa_dates_rule-billplan_line_id = sy-tabix.
wa_dates_rule-bill_value = ‘1’.
lw_dates_rule-bill_date = <date with time>.
lw_dates_rule-invcr_date = <date with time>.
lw_dates_rule-settl_from = <date with time>.
lw_dates_rule-settl_to = <date with time>.INSERT wa_dates_rule INTO TABLE it_dates_rule.
wa_billplan-billplan_dates_com = it_dates_rule.
wa_billplan-ref_guid = item guid.
wa_billplan-ref_kind = 'B'.
wa_billplan-ref_handle = sy-tabix.
wa_billplan-billplan_type = 'Z2'.
wa_billplan-ref_to_header = 'N'.
INSERT wa_billplan INTO TABLE it_billplan.
and in the input fields
Passing 'RULE_BILL_DATE_T', 'RULE_INV_DATE_T' , 'BILL_DATE', 'INVCR_DATE' , 'BILL_VALUE' , 'SETTL_FROM' , 'SETTL_TO' .
and Passing ITEM GUID for the input fields table.
Please note that I tried to find from debugging the CRMD_ORDER, but more parameters are coming. I couldn't find from where those are generated.
Any help in this regard will be great help.
Thanks and Regards,
S.Anandablan