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 problem

Former Member
0 Likes
552

Hi,

I have a program which creates a BDC session for REHIRE event.

The screens for REHIRE event are IT0000, IT0002 and IT0001.

Now the problem is while I do normal manual REHIRE through PA40. It works fine.

But when I record this through SHDB the IT0000 and IT0002 save succesfully but an error comes on IT0001 screen saying "ERROR! Emp. Status (IT0000) and EE group (IT0001) do not match.".

The problem is in session method the table update doesnt happen immediately. So is there any coding technique which can help me use submitting the IT0000 to PA0000 table and then moves to IT0001 screen? Something like COMMIT WORK in programming?

Thanks in advance.

6 REPLIES 6
Read only

Former Member
0 Likes
514

Hi,

I am unaware about the functionality. From what I understood the first two screens make a table update & then the third screen should get executed. Can you make 2 seperate BDC sessions in that case, and run them serially.

Regards,

Sonali.

Read only

Former Member
0 Likes
514

try to wait for a few seconds ..

say ..

wait up to 10 seconds.

Read only

Former Member
0 Likes
514

HI,

Instead of PA40 use the PA30 and create records 0000, 0001 & 0002 independlty through BDC.

This should work.

I heard that Recording PA40 Might not work because of Dynamic action.

Read only

kamesh_g
Contributor
0 Likes
514

Hi

YOu can use WAit up to 2 seonds not more than that because if you are giving that in loop or repeated process it will take more than 2 hrs to execute in quality or production ..

So while using WAIT option try to use less seconds and be care full about perfomance

Read only

Former Member
0 Likes
514

Many of you have asked me to put a WAIT statement.... but that will only make the ABAP program wait it will not hold the session for the seconds mentioned. And in any case I dont want it to wait.. I want it to update the data in first two screens to their respective tables and then process the third screen.

Hoping for more inputs..

Problem still not solved.

Read only

Former Member
0 Likes
514

thank u