Quantcast
Channel: SCN : Discussion List - SAP for Utilities
Viewing all articles
Browse latest Browse all 2484

CUSTOMER_UPDATE - Update KNA1 without STCD1 and STCD2

$
0
0

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


Viewing all articles
Browse latest Browse all 2484

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>