Hi Balaji,
please see these codes, let us suppose i have done recordings for all the three screens.
now i got my recordings, then just see the variables used in first and third screens
just see for examples, this is a data for first screens,
perform bdc_dynpro using 'SAPMF05A' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BKPF-BLDAT'
wa_input-BLDAT. "'29.05.2013'.
perform bdc_field using 'BKPF-BLART'
wa_input-BLART. "'R1'.
perform bdc_field using 'BKPF-BUKRS'
wa_input-BUKRS. "'1100'.
perform bdc_field using 'BKPF-BUDAT'
wa_input-BUDAT. "'29.05.2013'.
perform bdc_field using 'BKPF-MONAT'
wa_input-MONAT. "'2'.
perform bdc_field using 'BKPF-WAERS'
wa_input-WAERS. "'INR'.
perform bdc_field using 'BKPF-XBLNR'
wa_input-XBLNR. "'123'.
perform bdc_field using 'FS006-DOCID'
'*'.
perform bdc_field using 'RF05A-NEWBS'
wa_input-NEWBS. "'01'.
perform bdc_field using 'RF05A-NEWKO'
wa_input-NEWKO. "'4000000612'.
perform bdc_dynpro using 'SAPMF05A' '0301'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'=S+'.
now i have to comment it for all its variables in first screens, so what i will do is
perform bdc_dynpro using 'SAPMF05A' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'BKPF-BLDAT'
* wa_input-BLDAT. "'29.05.2013'.
* perform bdc_field using 'BKPF-BLART'
* wa_input-BLART. "'R1'.
* perform bdc_field using 'BKPF-BUKRS'
* wa_input-BUKRS. "'1100'.
* perform bdc_field using 'BKPF-BUDAT'
* wa_input-BUDAT. "'29.05.2013'.
*perform bdc_field using 'BKPF-MONAT'
* wa_input-MONAT. "'2'.
* perform bdc_field using 'BKPF-WAERS'
* wa_input-WAERS. "'INR'.
*perform bdc_field using 'BKPF-XBLNR'
* wa_input-XBLNR. "'123'.
*perform bdc_field using 'FS006-DOCID'
* '*'.
*perform bdc_field using 'RF05A-NEWBS'
* wa_input-NEWBS. "'01'.
*perform bdc_field using 'RF05A-NEWKO'
* wa_input-NEWKO. "'4000000612'.
perform bdc_dynpro using 'SAPMF05A' '0301'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'=S+'.
and after this i will leave it as for second screen, and again i will comment all the variables used in third screens, like shown above, this will solve your issue.