‎2010 Sep 09 9:53 AM
Hi gurus
I use the CLFMAS IDOC to update class data in SAP.
My problem is that "old class data is lost".
Has anyone out there successfully used a CLFMAS idoc to update certain characteristics of a class while not blanking out other characteristics of that class?
Thanks!
‎2010 Sep 09 10:06 AM
Hi,
The CLFMAS idoc is attached to function module 'IDOC_INPUT_CLFMAS' and has idoc type CLFMAS01/CLFMAS02.
Idoc is working fine for us by passing the segments E1OCLFM,E1KSSKM,E1AUSPM,E1DATEM data filled.
or try to put Break Point in the function module at below performs.
Pass Break point in these Performs and se the error.
perform convert_values.
*--- read allocations and compare with imported ones
perform read_and_compare_allocations
*--- read one validation and compare it with imported one
perform read_and_compare_validations
Prabhudas
‎2011 Jul 25 9:51 AM
Hi,
You can use the customer exit 'EXIT_SAPLCLFM_002' for this requirement.
This customer exit is triggered before saving the Class / Char data for a material in the database during CLFMAS processing.
Sample code:
DATA: wl_allkssk LIKE LINE OF t_allkssk,
wl_allausp LIKE LINE OF t_allausp.
IF i_appl = space.
CLEAR: t_delcl, t_delob.
LOOP AT t_allkssk INTO wl_allkssk WHERE vbkz = 'D'.
CLEAR wl_allkssk-vbkz.
MODIFY t_allkssk FROM wl_allkssk INDEX sy-tabix TRANSPORTING vbkz .
ENDLOOP.
LOOP AT t_allausp INTO wl_allausp WHERE statu = 'L'.
CLEAR wl_allausp-statu.
MODIFY t_allausp FROM wl_allausp INDEX sy-tabix TRANSPORTING statu.
ENDLOOP.
e_active = 'X'.
ENDIF.
Hope this would solve your problem
Regards,
Bhawit