I am new to HR and old to ABAP which means that I am not good (yet) with field-symbols or OO so I am having a bit of trouble figuring out how to do what I want to do. Unicode is not helping me either. Could someone please help me streamline the following code (I do not want to repeat lines of code for 36 PA tables)?
FORM 400-LOAD_MASTER_DATA. loop at dt_pa0000 into ds_pa0000. move p_prefix to ds_pa0000-pernr+0(2). insert pa0000 from ds_pa0000. endloop. loop at dt_pa0001 into ds_pa0001. move p_prefix to ds_pa0001-pernr+0(2). insert pa0001 from ds_pa0001. endloop. loop at dt_pa0002 into ds_pa0002. move p_prefix to ds_pa0002-pernr+0(2). insert pa0002 from ds_pa0002. endloop. etc...
Background: I am pulling data from prod to dev via rfc. Current process has to be changed because in Unicode (apparently) different table data cannot be dumped into a huge char container. So I am trying to split it. I want to say 'INSERT (paname) from (waname)' or use <fs> somehow, but I am missing the magic. Thanks!