09-25-2008 6:16 PM
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
09-25-2008 6:26 PM
The list coming from ALV grid using OO in screen SAPMV13A 0160. You cannot caputure okay code here
a®
09-25-2008 6:54 PM
Then how should i Run BDC on it .How to get the values
Kindly suggest
regards,
Khushboo
09-25-2008 7:04 PM
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.
09-25-2008 6:40 PM
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.