‎2006 Apr 13 11:11 AM
Hello ,
Ia m trying to record BDC for VA02, item data.
I have 100 items say i want to go to item 25 , in the table control while recording i use the Scroll button to pull down till 25th item , so that it is at the top of the item list and then i select the item.
SAPMV45A 4001 X
BDC_CURSOR RV45A-MABNR(01)
RV45A-KPRGBZ D
RV45A-KPRGBZ D
These are the values i record in do loop till i get to 25th item.
But this is not workign in code nor in simulation using SHDB.
Please suggest.
Rgds,
Ö
Message was edited by: One Family
‎2006 Apr 13 11:24 AM
Hi,
Why don't you use BAPI_SALESORDER_CHANGE instead of the BDC program?
Regards,
Ravi
‎2006 Apr 13 11:24 AM
Hi,
Why don't you use BAPI_SALESORDER_CHANGE instead of the BDC program?
Regards,
Ravi
‎2006 Apr 13 11:51 AM
Hi Ravi,
Due to few limitations from our Business requirement, BAPI is not meeting all the Requirements. I did start my code intially to go with BAPI unfortunetly it is not meeting all the requirements.
I still have to get this BDC going.
Rgds;
Ö
‎2006 Apr 13 11:58 AM
Hi,
Use a counter in your loop.
ex.
loop at itab.
cntr = cntr + 1.
if cntr = 25.
required processing..
exit.
endif.
endloop.
Hope it helps.
Regards,
Shashank
‎2006 Apr 13 12:00 PM
Hello Manohar,
In VA02, under the table control of the items, there is one button called <b>Item To Top</b>.
Use this button, everytime you want to reach to desire line item. By giving here 000025, system will place line 00025 on the first line. After, that you can access this line by <u><b>field(01)</b></u>
Regards,
Naimesh.
‎2006 Apr 13 10:42 PM
Hi,
You can capture scrolling in recording for BDC so you need to use 'Item to Top' tab in VA02 screen and input your item #. The source code will be :
perform bdc_field using 'BDC_CURSOR'
'RV45A-MABNR(01)'.
perform bdc_dynpro using 'SAPMV45A' '0251'.
perform bdc_field using 'BDC_CURSOR'
'RV45A-POSNR'.
perform bdc_field using 'BDC_OKCODE'
'=POSI'.
perform bdc_field using 'RV45A-POSNR'
record-POSNR_019.
(Here record-POSNR_019 will be your line item #).
Hope it clarifies and do reward in case it is helpful
Cheers,
Vikram