Skip to Content
0
Former Member
Jun 08, 2007 at 01:59 PM

BDC

52 Views

Hi Experts,

Is there any system variable which is returned after BDC is performed. For example for below code

perform bdc_dynpro using 'SAPMP50A' '1000'.

perform bdc_field using 'BDC_OKCODE' '=INS'.

perform bdc_field using 'RP50G-PERNR' it-pernr.

perform bdc_field using 'RP50G-TIMR6' 'X'.

perform bdc_field using 'RP50G-BEGDA' it-begda.

perform bdc_field using 'RP50G-ENDDA' it-endda.

perform bdc_field using 'RP50G-CHOIC' '2006'.

perform bdc_field using 'RP50G-SUBTY' it-ktart.

perform bdc_dynpro using 'MP200000' '2250'.

perform bdc_field using 'BDC_OKCODE' '=UPD'.

perform bdc_field using 'P2006-BEGDA' it-begda.

perform bdc_field using 'P2006-ENDDA' it-endda.

perform bdc_field using 'P2006-KTART' it-ktart.

perform bdc_field using 'P2006-DESTA' it-begda.

perform bdc_field using 'P2006-DEEND' it-endda.

perform bdc_transaction using 'PA30'.

What is the possible variable i should use to see if BDC was successfull else generate log file for errors. As we use sy-subrc for select.

Thank you.

Regards,

Admir.

Points will be rewarded.