Greetings!
I recorded a PA40 session and am using the code in my program with success. However, now I must make a call during the BDC code to a FM which requires the PERNR. I'm not sure how to obtain the PERNR while the BDC code is executing. I'm sure if I was doing it manually via PA40 I would be able to "see" the PERNR on the screens but I'm not sure how to obtain it while the BDC code is running.
Thanks in advance.
Snippet of code:
... PERFORM bdc_dynpro USING 'MP000200' '2010'. PERFORM bdc_field USING 'BDC_CURSOR' 'Q0002-FATXT'. PERFORM bdc_field USING 'BDC_OKCODE' '=UPD'. PERFORM bdc_field USING 'P0002-BEGDA' lv_begda. PERFORM bdc_field USING 'P0002-ENDDA' '12319999'. PERFORM bdc_field USING 'P0002-NACHN' gt_enrollment-lname. PERFORM bdc_field USING 'P0002-VORNA' gt_enrollment-fname. PERFORM bdc_field USING 'P0002-MIDNM' gt_enrollment-mname. PERFORM bdc_field USING 'Q0002-PERID' gt_enrollment-ph_ssn. PERFORM bdc_field USING 'P0002-GBDAT' gt_enrollment-dob. ...