cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Confirmation Item QUANTITY during Runtime

Former Member
0 Kudos

Hi Experts,

I am trying to create Confirmation ITEM with QUANTITY during runtime.

I have successfully created item using CRM_ORDERADM_I_MAINTAIN_OW however it doesnot have scheduling_i structure which hold QUANTITY. I tried with CRM_ORDER_MAINTAIN_MULTI_OW. getting following error, I tried with CRM_SCHEDLIN_I_READ_OW it creating quantity on CRM Confirmation screen.

Can you pls tell me how to get quantity.

Thanks

Anee

The current application program detected a situation which really should not occur. Therefore, a termination with a short dump was triggered on purpose by the key word MESSAGE (type X)

ls_fund_h         TYPE  crmt_fund_h_com,
        ls_cla_h          TYPE  crmt_cla_h_com,
        ls_lawref_h       TYPE  crmt_lawref_h_com,
        lt_lawref_h       TYPE  crmt_lawref_h_comt,
        ls_orderadm_i     TYPE  crmt_orderadm_i_com,
        lt_orderadm_h     TYPE  crmt_orderadm_h_comt,
        lt_chngproc_i     TYPE  crmt_chngproc_i_comt,
        ls_chngproc_i     TYPE  crmt_chngproc_i_com.

  DATA:
        ls_entry            TYPE  crmt_guid_handle,
        lv_dummy            TYPE  crmt_msgtext,
        lv_vona_kind_copy   TYPE  crmt_boolean,
        lv_count            TYPE  i,
        ls_msg_handle       TYPE  balmsghndl,
        ls_exception        TYPE  crmt_exception_logical_ke
        lv_subrc            TYPE  sy-subrc.

  FIELD-SYMBOLS:
        <ls_order_item>   TYPE  crmt_order_items.

* check correct call
  ADD 1 TO gv_recursive_call.
  ADD 1 TO gv_maintain_active.
  CALL FUNCTION 'CRM_ORDER_CHECK_RECURSIVE_OW'
    EXCEPTIONS
      recursive_call              = 1
      call_without_order_maintain = 2
      OTHERS                      = 0.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    EXIT.
  ENDIF.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Did you solve the problem?

Answers (0)