SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

CUSTOMER_UPDATE - Update KNA1 without STCD1 and STCD2

Former Member
0 Kudos

Hi,

I've got a seious problem in saving Business Partner from FPP2 or CIC0. In particular, when I save a BP, there's a call on the function CUSTOMER_UPDATE, that deletes data stored in KNA1.

The fields affected are STCD1 and STCD2. In KNA1 before saving they are both present with correct values; by the way, when I save the BP, I have this stack:


*58		FUNCTION	CUSTOMER_UPDATE*
57		FORM	UPDATE_TASK_ALL
56		FUNCTION	SD_CUSTOMER_MAINTAIN_ALL
55		FUNCTION	ISU_CUSTOMER_SAVE
54		FUNCTION	ISU_BUPA_EVENT_DSAVE
53		FORM	EVENT_DSAVE

When CUSTOMER_UPDATE is called, there's an internal table I_KNA1 in which STCD1 and STCD2 are both initial (other values are correctly present).

In CUSTOMER_UPDATE there's the following update:


49	  KNA1 = I_KNA1.
50	  IF KNA1-KUNNR NE SPACE.
51	    UPDATE KNA1.
52	    IF SY-SUBRC NE 0.
53	      MESSAGE A803 WITH 'KNA1' KNA1-KUNNR.
54	    ENDIF.
55	  ENDIF.

So I loose STCD1 and STCD2.

I can't understand when and how I_KNA1 is read or filled, can somebody help me please?

Bye,

Gabriele

2 REPLIES 2

Former Member
0 Kudos

Have I posted the question in the right section?

ankit_doshi
Participant
0 Kudos

Hi Gabriele,

Did you find the solution to this problem? I am facing a similar issue wherein I lose the KNA1-ADRNR field

Regards,

Ankit