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

BDC for multiple line items (VA01)

Former Member
0 Likes
2,249

Hi Experts,

I create a BDC for VA01 transaction for single line item in that now i want to upload multiple line items also with o/p of total no. of records uploaded, no. of records posted and the no. of error records...

Can any body explain with sample code...

Hi Experts,

I create a BDC for VA01 transaction for single line item in that now i want to upload multiple line items also with o/p of total no. of records uploaded, no. of records posted and the no. of error records...

Can any body explain with sample code...

5 REPLIES 5
Read only

bpawanchand
Active Contributor
0 Likes
1,112

Hi

Regards

Pavan

Read only

Former Member
0 Likes
1,112

Arun

It is not worth wasting time on BDC for transactions like VA01. Go for BAPI instead. Use BAPI transaction for finding appropriate BAPI.

Thanks

Amol Lohade

Read only

0 Likes
1,112

its for practising purpose(BDC) can any body explain how to find the total no of records uploaded and no of error records...

Read only

Former Member
0 Likes
1,112

hi Arun

i think this may help u.

*start-of-selection.

*

*perform open_group.

.

.

.

perform bdc_field using 'BDC_CURSOR'

'RV45A-KWMENG(02)'.

.

.

*perform bdc_transaction using 'VA01'.

*

*perform close_group.

CALL TRANSACTION 'VA01' USING BDCDATA MODE 'A' UPDATE 'A'.

regards.

Read only

Former Member
0 Likes
1,112

Hi,

if the flat file is containing header and item records...

first split those records tooo two internal tables header and item..

Loop at header ...

process of recording steps for header....

Loop at item...

here create a varialbe with char 2 .. for index value....

process of item recording steps..

increment the index value by 1....

here u have to pass 'p+' OK_CODE..

Endloop ..(item)

Endloop...(header)

for more info goo through this link...

http://www.sap-img.com/bdc.htm

hope helpful

Raghunath.S