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...
LOOP at itab into wa.
build bdc_tab using program, dynopro, dynbegin and fname from transaction SHDB recording with corresponding wa-fval
COMIT WORK every 100 records
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