Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to create Confirmation Item QUANTITY during Runtime

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.

Tags:
Former Member
Former Member replied

Did you solve the problem?

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question