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 session Background error

Former Member
0 Likes
680

hi

I got an issue in a bdc session method for Pa30 transaction. In the flat file if i swap the values for start date and end date and a im running the bdc . Then in sm35 transaction if i process with background the session becomes error but it gets saved in database table pa0000 as the dates swapped. It must not get saved in database table when the session is in error . Anyone know why does it gets saved?

1 ACCEPTED SOLUTION
Read only

surajarafath
Contributor
0 Likes
640

For this you do your validations before starting the BDC process.

i think in PA30 while saving it is not validating the date.

You try like if values are correct proceed to BDC process or else end.

4 REPLIES 4
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Likes
640

Can you please post the SM35 error log.

Thanks,

Alok

Read only

surajarafath
Contributor
0 Likes
641

For this you do your validations before starting the BDC process.

i think in PA30 while saving it is not validating the date.

You try like if values are correct proceed to BDC process or else end.

Read only

0 Likes
640

yes i know that i can do validations for dates and it will be solved. but without doing validations in sm35 the sessions shows the error and database tables gets updated as the dates swapped... it should not hit the database table when session has errors. how to overcome in this case?

Read only

Former Member
0 Likes
640

Hii,,

Why you not using FM 'HR_INFOTYPE_OPERATION'. You can 'INS' (insert) 'MOD'(Modify) and 'DEL'(delete) record in infotype.