on 10-16-2007 11:21 AM
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.
Solved : one of the four characteristic was empty. I derived it, and it works !
=> I create the unique combination in the CREATE method, which is checked in the CHECK method.
I answered my question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Even i am struggling with similar issue.
My requirement is as follows:
I have customer_id, shop_id and customer_catagory in se11 table.
Based on customer_id and shop_id, we need to generate the valid combinations.
The user will enter customer_id and shop_id from a screen and based on the customer-id and shop-id which he has entered, a set of valid combinations needs to be genetrated.
I have written a similar code as you did, but i am getting all the combinations (valid+invalid).
Please help.
Thanks
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.