07-21-2009 7:34 AM
Hi experts,
I recorded the bdc in QA11.
if this text is there 'You have not completed all characteristics' ..the pop up message will come, In that pop up message the
default 'no' option was selected.....but i want to select thedefault 'yes' option.....how to do.......help me please.........
i recorded the 'yes' option but still the cursor is in 'no' option.....
IF BDCDATA-FNAM = 'RQEVA-INFO_LINE'.
IF BDCDATA-FVAL = 'You have not completed all characteristics'.
PERFORM BDC_DYNPRO USING 'SAPLSPO1' '0100'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=YES'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'SPOP-OPTION1'.
ENDIF.
ENDIF.
this is my codings .....help me please..........
Thank u,
Manjula Devi.D
07-21-2009 7:52 AM
Hi Manjula,
You can try changing the order of OK_CODE and CURSOR.
IF BDCDATA-FNAM = 'RQEVA-INFO_LINE'.
IF BDCDATA-FVAL = 'You have not completed all characteristics'.
PERFORM BDC_DYNPRO USING 'SAPLSPO1' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'SPOP-OPTION1'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=YES'.
ENDIF.
ENDIF.
Though the recording may be done selected with 'NO' option, changing the BDC_OKCODE to 'YES' in the coding should work.
Regards,
Vik
07-21-2009 7:52 AM
Hi Manjula,
You can try changing the order of OK_CODE and CURSOR.
IF BDCDATA-FNAM = 'RQEVA-INFO_LINE'.
IF BDCDATA-FVAL = 'You have not completed all characteristics'.
PERFORM BDC_DYNPRO USING 'SAPLSPO1' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'SPOP-OPTION1'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=YES'.
ENDIF.
ENDIF.
Though the recording may be done selected with 'NO' option, changing the BDC_OKCODE to 'YES' in the coding should work.
Regards,
Vik