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

Update AUFK TABLE

Former Member
0 Likes
1,343

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

2 REPLIES 2
Read only

Jeansy
Active Contributor
0 Likes
1,277

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

Read only

Former Member
0 Likes
1,277

Wich user exit or Badi can i use for updating AUFK TABLE please ?