03-04-2008 3:43 PM
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
03-04-2008 10:46 PM
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
03-05-2008 7:38 AM
Hello,
Functionally I dont have an idea of why different screens are coming.
But how to handle the same technically ?
Regards,
Deepu.K
03-05-2008 8:53 AM
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