yes !I have 3-records in the file(external file)then I should navigate the screen for 3! times.
Code: Alles auswählen.
do.
read dataset file into record.
if sy-subrc <> 0. exit. endif.
*D505
perform bdc_dynpro using 'SAPMF02D' '0505'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'RF02D-KUNNR' record-KUNNR_001.
perform bdc_field using 'RF02D-BUKRS' record-BUKRS_002.
*D520
perform bdc_dynpro using 'SAPMF02D' '0520'.
perform bdc_field using 'KNA1-LOEVM' record-LOEVM_003.
perform bdc_field using 'BDC_OKCODE' '=UPDA'.
perform bdc_transaction using 'FD06'.
enddo.