on 04-16-2014 4:59 PM
Hi experts,
I´m currently writing a program for migration of order with items. On item level I have the following problem which leads to a dump! When I pass the item category (which is configured in item category determination!!!) the dump occurs! When I pass any other item type which is not valid (for this order type and item type group in customizing) I don´t get this error and the item gets created!! Then I see in webui a message that position type is not valid..
Hope my concern is clear...
here my coding:
*** ORDERADM_I
CLEAR ls_orderadm_i.
ls_orderadm_i-handle = lv_handle. " is 1 and the same as for ls_orderadm_i
ls_orderadm_i-header_handle = ls_orderadm_h-handle. " is 1 too
ls_orderadm_i-itm_type = 'ZAPO'. "Item category
ls_orderadm_i-ordered_prod = lc_prod_id. "any material
ls_orderadm_i-number_int = lc_old_number. "here we have to store old product number "old system
ls_orderadm_i-mode = 'A'.
CALL FUNCTION 'ZCRM_FILL_ORDERADM_I'
EXPORTING
is_orderadm_i = ls_orderadm_i
CHANGING
ct_input_fields = lt_input_fields
ct_orderadm_i = lt_orderadm_i.
In ZCRM_FILL_ORDERADM_I I have the following coding:
insert is_orderadm_i into table ct_orderadm_i.
ls_input_fields-ref_handle = is_orderadm_i-handle.
ls_input_fields-ref_kind = 'B'.
"ls_input_fields-logical_key = is_orderadm_i-handle. " I tried it with/without log. key! both leads in error
ls_input_fields-objectname = 'ORDERADM_I'.
ls_input_field_names-fieldname = ' ORDERED_PROD'.
insert ls_input_field_names into table ls_input_fields-field_names.
ls_input_field_names-fieldname = 'ITM_TYPE'.
insert ls_input_field_names into table ls_input_fields-field_names.
ls_input_field_names-fieldname = 'MODE'.
insert ls_input_field_names into table ls_input_fields-field_names.
ls_input_field_names-fieldname = 'NUMBER_INT'.
insert ls_input_field_names into table ls_input_fields-field_names.
insert ls_input_fields into table ct_input_fields.
Consider: When I delete item_type or give a value which is not maintained in item category determination, I don´t get this dump! Thats very crazy, because it´s only dumping when I pass the "right" item type??!
I debugged and found out that in method GROUP_BILLREQ_I (CL_CRM_BILLREQ_I_GROUP) there is an other method which throws this error, namely determine_time_stamp_t! When I look into the method its dumping subrc of
CONVERT TIME STAMP iv_timestamp_to
TIME ZONE iv_timezone
INTO DATE lv_date_to
TIME lv_time_to.
is 12!! Then the Method CL_ABAP_TSTMP=>SUBTRACTSECS throws the dump!
Here is the screenshot of dump:
Please help, its very urgent!
Thanks a lot!
Best Regards
Tanja
Hi Tanja,
Try creating GUID manually and assign the GUID value to ls_orderadm_i-guid field and ls_input_fields-ref_guid fields.
Create GUID using the below function module
CALL FUNCTION 'CRM_GUID_CREATE'
IMPORTING
ev_guid = lv_item_guid.
Best Regards,
Dharmakasi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tanja,
I think you haven't pasted the whole code. What is there in your FM ZCRM_FILL_ORDERADM_I after "insert ls_input_fields into table ct_input_fields."?.
Thanks,
Faisal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.