Application Development 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: 

PROBLEM IN BDC(QS41)

Former Member
0 Kudos

Dear All,

I have recorded the BDC for t-code qs41.

Here is the code.

report ZQS41

no standard page heading line-size 255.

include bdcrecx1.

start-of-selection.

perform open_group.

perform bdc_dynpro using 'SAPLQSBA' '0010'.

perform bdc_field using 'BDC_CURSOR'

'RQSBA-KATALOGART'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RQSBA-KATALOGART'

'1'.

perform bdc_field using 'RQSBA-CODEGRUPPE'

'*'.

perform bdc_dynpro using 'SAPLQSBA' '0100'.

perform bdc_field using 'BDC_CURSOR'

'V_QPGR_KAT-KURZTEXT(01)'.

perform bdc_field using 'BDC_OKCODE'

'=NEWL'.

perform bdc_dynpro using 'SAPLQSBA' '0100'.

perform bdc_field using 'BDC_CURSOR'

'V_QPGR_KAT-STATUS(01)'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'V_QPGR_KAT-CODEGRUPPE(01)'

'tst'.

perform bdc_field using 'V_QPGR_KAT-KURZTEXT(01)'

'testtttttttt'.

perform bdc_field using 'V_QPGR_KAT-STATUS(01)'

'2'.

perform bdc_dynpro using 'SAPLQSBA' '0100'.

perform bdc_field using 'BDC_OKCODE'

'=%_GC 119 22'.

perform bdc_field using 'VIM_MARKED(01)'

'X'.

perform bdc_dynpro using 'SAPLQSBA' '0200'.

perform bdc_field using 'BDC_CURSOR'

'V_QPCD_KAT-KATALOGART'.

perform bdc_field using 'BDC_OKCODE'

'=NEWL'.

perform bdc_dynpro using 'SAPLQSBA' '0200'.

perform bdc_field using 'BDC_CURSOR'

'V_QPCD_KAT-KURZTEXT(02)'.

perform bdc_field using 'BDC_OKCODE'

'=SAVE'.

perform bdc_field using 'V_QPCD_KAT-CODE(01)'

'1'.

perform bdc_field using 'V_QPCD_KAT-CODE(02)'

'2'.

perform bdc_field using 'V_QPCD_KAT-KURZTEXT(01)'

'xxxxxxxxxxxxxxx'.

perform bdc_field using 'V_QPCD_KAT-KURZTEXT(02)'

'yyyyyyyyyyyyyy'.

perform bdc_dynpro using 'SAPLSTRD' '0300'.

perform bdc_field using 'BDC_CURSOR'

'KO008-TRKORR'.

perform bdc_field using 'BDC_OKCODE'

'=LOCK'.

perform bdc_field using 'KO008-TRKORR'

'CCDK900006'.

perform bdc_transaction using 'QS41'.

perform close_group.

While running the BDC, the double clicking part is not woring.

perform bdc_field using 'BDC_OKCODE'

'=%_GC 119 22'.

this is where it's not working.

Help is highly appriciated

Thanks in advance

Arun

1 REPLY 1

Former Member
0 Kudos

Hi Anil,

Record the trxn QS41. There will be a OK-CODE assigned for selection of this record

(perform bdc_field using 'VIM_MARKED(01)' 'X'.)

And change your accordingly.

Regards,

Raj