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

VA02 BDC

Former Member
0 Likes
1,387

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,102

Hi,

Why don't you use BAPI_SALESORDER_CHANGE instead of the BDC program?

Regards,

Ravi

5 REPLIES 5
Read only

Former Member
0 Likes
1,103

Hi,

Why don't you use BAPI_SALESORDER_CHANGE instead of the BDC program?

Regards,

Ravi

Read only

0 Likes
1,102

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;

Ö

Read only

0 Likes
1,102

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

Read only

0 Likes
1,102

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.

Read only

Former Member
0 Likes
1,102

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