cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add products and coproducts using CO_XT_COMPONENT_ADD

former_member707214
Discoverer
0 Likes
806

First ,I am adding a component/material using CO_XT_COMPONENT_ADD. and then CO_XT_ORDER_PREPARE_COMMIT. It is working fine.

Next, for the same order i am adding a co-product using CO_XT_COMPONENT_ADD.

It gives me a dump while commit function.

Using the below code before commit.

ASSIGN ('(SAPLCOBC)RESB_BT[]') TO <ft_resb_bt>.
LOOP AT <ft_resb_bt> ASSIGNING <fs_resb_bt>.
lv_numc = sy-tabix * 10.
<fs_resb_bt>-posnr = lv_numc.
CLEAR lv_numc.
ENDLOOP.

Is there any other way to add products and co-products into CO02 using program ?

Accepted Solutions (0)

Answers (0)