Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CLFMAS IDOC problem

Former Member
0 Likes
2,012

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!

2 REPLIES 2
Read only

Former Member
0 Likes
1,052

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

Read only

0 Likes
1,052

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