2008 Aug 19 6:59 AM
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...
2008 Aug 19 7:03 AM
2008 Aug 19 7:08 AM
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
2008 Aug 19 7:57 AM
its for practising purpose(BDC) can any body explain how to find the total no of records uploaded and no of error records...
2008 Aug 19 8:11 AM
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.
2008 Aug 19 8:21 AM
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