You select a single yyctc from database table kna1 into the field yyctc of structure kna1 where the field kunnr of the database table kna1 is equal to the field kunnr of structure kna1
Yes, you could say in abap form kna1~kunnr = kna1-kunnr
Remember kna1 is refering to a database table and an structure at the same time
Lopez,
You can probably find somewhere prior to the select you find
kna1-kunnr = it_emp-kunnr. * * SELECT SINGLE YYCTC into KNA1-YYCTC from KNA1 where KUNNR=KNA1-KUNNR
The code would work just fine and only update the YYCTC field in the KNA1 structure.
Add a comment