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: 

BDC ISSUE :- VB21 sales deal

Former Member
0 Kudos

Hi Gurus,

For the tcode :- VB21 BDC ISSUE

Creation of sales deal

When we click on condition button in the top then

the pop list comes up asking for the key combination

The popup is a list display . Based on the selelction

the next screen is displayed.

Can anyone please tell me how to do this is BDC

the key commbination value will come in text file

but which screen needs to be displayed is the issue.

Rewards will be given to the best answer

thanks in advance

regards,

Khushboo

4 REPLIES 4

former_member194669
Active Contributor
0 Kudos

The list coming from ALV grid using OO in screen SAPMV13A 0160. You cannot caputure okay code here

0 Kudos

Then how should i Run BDC on it .How to get the values

Kindly suggest

regards,

Khushboo

0 Kudos

hi,

this is code i recorded

report ZTEST1

no standard page heading line-size 255.

include bdcrecx1.

start-of-selection.

perform open_group.

perform bdc_dynpro using 'SAPMV13A' '0420'.

perform bdc_field using 'BDC_CURSOR'

'RV13A-BOART_AG'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RV13A-BOART_AG'

'PRB1'.

perform bdc_dynpro using 'SAPMV13A' '0425'.

perform bdc_field using 'BDC_CURSOR'

'KONA-BOTEXT'.

perform bdc_field using 'BDC_OKCODE'

'=BOKL'.

perform bdc_field using 'KONA-BOTEXT'

'Sales Deal 1'.

perform bdc_field using 'KONA-DATAB'

'25.09.2008'.

perform bdc_field using 'KONA-DATBI'

'31.12.9999'.

perform bdc_field using 'KONA-WAERS'

'INR'.

perform bdc_dynpro using 'SAPMSSY0' '0120'.

perform bdc_field using 'BDC_CURSOR'

'05/03'.

perform bdc_field using 'BDC_OKCODE'

'=BPIC'.

perform bdc_dynpro using 'SAPMV13A' '1144'.

perform bdc_field using 'BDC_CURSOR'

'KOMG-KNUMA_AG'.

perform bdc_field using 'BDC_OKCODE'

'=BACK'.

perform bdc_field using 'KOMG-VKORG'

'5201'.

perform bdc_dynpro using 'SAPMSSY0' '0120'.

perform bdc_field using 'BDC_OKCODE'

'/EABRE'.

perform bdc_field using 'BDC_CURSOR'

'04/03'.

perform bdc_dynpro using 'SAPMV13A' '0425'.

perform bdc_field using 'BDC_CURSOR'

'KONA-BOTEXT'.

perform bdc_field using 'BDC_OKCODE'

'=BACK'.

perform bdc_field using 'KONA-BOTEXT'

'Sales Deal 1'.

perform bdc_field using 'KONA-DATAB'

'25.09.2008'.

perform bdc_field using 'KONA-DATBI'

'31.12.9999'.

perform bdc_field using 'KONA-WAERS'

'INR'.

perform bdc_transaction using 'VB21'.

perform close_group.

write this code in loop,

make internal table and on the basis of internal table u make template and pass it to this code by using "upload" function.

if u dont understand come on gmail i had sent u request just accept that.

Sanket.

Former Member
0 Kudos

hi khushbooo,

as per conditons i recorded same in my system

i suggest u to do the following way.

after u will find the code recorded by bdc is like

perform bdc_dynpro using 'SAPMSSY0' '0120'.

perform bdc_field using 'BDC_CURSOR'

'05/03'.

perform bdc_field using 'BDC_OKCODE'

'=BPIC'.

for BDC_CURSOR u can send u r field instead of '05/03' see above

data : text(5).

perform bdc_field using 'BDC_CURSOR'

text. "here u pass u r value from intenal table .

U r problem will solve it so simple ,

If not solve please revert back.

Thanks & Regards,

Sanket.