Application Development 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: 

DIfferent cases of ME31l BDC

Former Member
0 Kudos

Hello All,

I'm using a BDC to create a Scheduling Agreement .

This Sch.Agr. is created by copying with ref. to an existing Document.

While processing the BDC different cases are being arised.

i.e for different vendors different screens are coming.

Say for Vendor 1 screens 1,2,3 come and for the vendor 2 Screens 1,2,4 come.

So my BDC is failing in such different cases.

Can anybody tell me how to handle those cases ?

i.e how to process the BDC performs w.r.t screens if they exist for the current scenario .

I tried like this :

PERFORM bdc_dynpro USING 'SAPLV50E'

'0590' IF FOUND .

But this is not working .

Regards,

Deepu.K

3 REPLIES 3

Former Member
0 Kudos

You have to determine why the different screens are coming up and then write the batch input program so that it can determine this as well and anticipate the crorrect screens.

Rob

Former Member
0 Kudos

Hello,

Functionally I dont have an idea of why different screens are coming.

But how to handle the same technically ?

Regards,

Deepu.K

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

U can avoid these errors by populating the BDCDATA table according to the vendor.

EG:

Populate BDCDATA table with common screens for all the vendors.

Next...

CASE Vendor/Vendor group.

WHEN xxx

Populate BDCDATA TAble for screens 1,2 3.

WHEN yyy

Populate BDCDATA TAble for screens 4,5 6.

WHEN zzz

Populate BDCDATA TAble for screens 7,8,9.

ENDCASE.

This is just an idea. U have to populate BDCDATA table for all possible vendors.(May not be possible for each vendor, But these screen navigations might be unique for each vendor group or some thing like that.)

If possible try to search for some BAPI which will avoid these type of problems.

Thanks,

Vinod.

Edited by: Vinod Kumar Vemuru on Mar 5, 2008 2:24 PM