Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC

Former Member
0 Likes
462

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
359

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

1 REPLY 1
Read only

Former Member
0 Likes
360

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