Skip to Content

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

Characteristics relationship - Check with Exit - Create combination

Hi gurus, my brothers !

Use Integrated Planning, SPS 13.

I have implemented an exit to check a characteristic relationship, and I must implement the CREATE method, called when I generate a characteristic combination.

An error message 'No combinations could be generated' (RSPLS_CR 012) is sent, whatever I create.

Here is the code :

  CREATE DATA l_data LIKE LINE OF e_th_chas.
  ASSIGN l_data->* TO <l_chas>.

  ASSIGN COMPONENT '/BIC/YN_PLANT' OF STRUCTURE <l_chas>
                                   TO <l_plant>.
  ASSIGN COMPONENT '/BIC/YN_BASIN' OF STRUCTURE <l_chas>
                                   TO <l_basin>.
  ASSIGN COMPONENT '/BIC/YN_DPCAT' OF STRUCTURE <l_chas>
                                   TO <l_dpcat>.
  ASSIGN COMPONENT '/BIC/YN_SUBFAM' OF STRUCTURE <l_chas>
                                    TO <l_subfam>.

  CALL METHOD seldr_to_range
    EXPORTING
      i_tsx_seldr = i_tsx_seldr
    IMPORTING
      e_t_range   = lt_range.

* Get selected UNIQUE values
  LOOP AT lt_range INTO ls_range.
    CASE ls_range-chanm.
      WHEN 'YN_BASIN'.  MOVE ls_range-low TO <l_basin>.
      WHEN 'YN_PLANT'.  MOVE ls_range-low TO <l_plant>.
      WHEN 'YN_SUBFAM'. MOVE ls_range-low TO <l_subfam>.
      WHEN 'YN_DPCAT'.  MOVE ls_range-low TO <l_dpcat>.
    ENDCASE.
  ENDLOOP.

  INSERT <l_chas> INTO TABLE e_th_chas.


Any idea ?

Thanks in advance.

Former Member
Not what you were looking for? View more on this topic or Ask a question