Skip to Content
0
Oct 03, 2012 at 06:06 PM

BDC_INSERT for VK11

308 Views

Hi all,

I am trying to set up a bdc session for entering pricing conditions through vk11. I recorded a session of the transaction using tcode SHDB to set up the bdc table with the parameters needed to complete the transaction, but it is not saving when I pass it to BDC_INSERT. Essentially the logic looks like this...

BDC_OPEN_GROUP

LOOP at itab into wa.

build bdc_tab using program, dynopro, dynbegin and fname from transaction SHDB recording with corresponding wa-fval

BDC_INSERT

COMIT WORK every 100 records

ENDLOOP

BDC_CLOSE_GROUP

From the SHDB recording the first line in the display is

program = ' '

dynpro = ' '

dynbegin = 'T'

fname = 'VK11'

fval = ' '

If I include this line in the bdc_tab i get an eror of screen ' ' is invalid, but if i don't the session completes with no errors but does not save to the db tables. The recording that it is modeled after worked successfully, so I'm not sure why it won't save when running in the program bdc session with the exact same parameters. This is the fisrt bdc I have ever set up so I'm not sure what all I need to check. Any help is appreciated

Zack