2022 May 25 12:44 PM
Hello , i have an issue with updating aufk table
in CO11N user create an confirmation order and he fill " Count Field " , the task is to calculate the sum of confirmation count of order and insert it in AUFK table ( i created fiel Z in this table ) this my code :
SELECT SUM( zz1_compteur_cfm ) FROM afru INTO lv_compt WHERE aufnr = afrud-aufnr .
sum_compt = lv_compt + afrud-zz1_compteur_cfm .
UPDATE AUFK SET ZZ1_TOTALCOMPTEUR_ORD = sum_compt where aufnr = afrud-aufnr .
update doesn't work , thinks
Hello , i have an issue with updating aufk table
in CO11N user create an confirmation order and he fill " Count Field " , the task is to calculate the sum of confirmation count of order and insert it in AUFK table ( i created fiel Z in this table ) this my code :
SELECT SUM( zz1_compteur_cfm ) FROM afru INTO lv_compt WHERE aufnr = afrud-aufnr .
sum_compt = lv_compt + afrud-zz1_compteur_cfm .
UPDATE AUFK SET ZZ1_TOTALCOMPTEUR_ORD = sum_compt where aufnr = afrud-aufnr .
update doesn't work , thinks
2022 May 25 2:36 PM
Where did you implement this coding in detail? It depends on the user-exit/BAdI that your update might be overwirtten again by the SAP-LUW, that's why I am asking.
Kind regards
Jens
2022 May 25 4:16 PM
Wich user exit or Badi can i use for updating AUFK TABLE please ?