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

IS data modification is possible with BDC

Former Member
0 Likes
1,440

Hi ALL

I am trying to generate a BDC programm for transaction VK12 'Change Condition Record'

Data is not updated or modified while the program is executed. I have tried both Call Transaction

and Session method.

Can anyone tell me hw to do it?

whether it is possible to update a table data using BDC??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,385

Problem must be with your BDc recording. Otherwise its not possible that data is not going to update.

Do it manually first using Vk12 for one condition record and then record again BDC for VK12.

Check the record you have changed through BDC, whether values have been changed or not.

Hope this process will give you the mistake you are doing.

Regds,

Anil

Hi ALL

I am trying to generate a BDC programm for transaction VK12 'Change Condition Record'

Data is not updated or modified while the program is executed. I have tried both Call Transaction

and Session method.

Can anyone tell me hw to do it?

whether it is possible to update a table data using BDC??

9 REPLIES 9
Read only

Former Member
0 Likes
1,385

Hi,

What error do you get in session method?

Is the session processed successfully?

Regards,

Ankur Parab

Read only

0 Likes
1,385

In session method i am not getting any error

. session is processed sucesfully.

but data is not update...I tried to do it with call transaction then.

In that there is the same problem.

my program is executing sucessfully but data is not updated.

Read only

Former Member
0 Likes
1,386

Problem must be with your BDc recording. Otherwise its not possible that data is not going to update.

Do it manually first using Vk12 for one condition record and then record again BDC for VK12.

Check the record you have changed through BDC, whether values have been changed or not.

Hope this process will give you the mistake you are doing.

Regds,

Anil

Read only

Former Member
0 Likes
1,385

Hi,

Yes it is possible to update tables through BDC. For eg. using VK12, you should be able to update the related table of VK12.

Try changing the MODE in CALL TRANSACTION as follows :-

CALL TRANSACTION 'SE24' USING bdcdata_tab MODE 'A'.

Google for text 'Sample SAP BDC program' & you will get some very good examples.

Thanks,

Best regards,

Prashant

Read only

Former Member
0 Likes
1,385

Hi,

I hope you have added

COMMIT WORK AND WAIT.

if this doesnt work, then

COMMIT WORK AND WAIT.
WAIT UPTO 2 seconds.

Thanks,

Best regards,

Prashant

Read only

0 Likes
1,385

Where i hav to use this code??

Read only

Former Member
0 Likes
1,385
CALL TRANSACTION 'SE24' USING bdcdata_tab MODE 'A'.

COMMIT WORK AND WAIT.
WAIT UPTO 2 seconds.
Read only

0 Likes
1,385

Thanx all ..Nw my program is running..

Read only

Former Member
0 Likes
1,385

Yes data modification is possible.

You dont require Commit Work after BDC. Since you are posting through a transaction.

Whosoever suggests you, please ask them how many times have they done an explicit Commit Work after VK12 or any other transaction.

Run your BDC in 'A' mode and see if your changes are getting reflected or not.

Revert if u need any inputs.