As we can see for the PERNR, for example 00250731 we have two records. They differ in the values of the columns BEDA and ATZPH. Our goal is to produce a new record out of the two which should look as follows
PERNR; %key; BAField; BFField
So it is a kind of merging of any to records that have the same key.
I was suggested to use apply_map... but this does not work. Any suggestions would be appreciated.