01-31-2011 6:52 AM
Hi Experts,
I have a BDC for Quotation creation using HBS2.
The execution per screen works fine for the old company code created previously.
But when a new company was created, using the same BDC a new screen appears not in the recording and the effect is that the sequence of screen execution is lost as a result producing an error message field "VBKD-IHREZ" does not exist in screen.
Thanks a lot.
Kath
01-31-2011 6:57 AM
Hi,
Try to do BDC fof the new company code and in the program first check if it is a old company code or new company code based on that you can call the new company code screen logic ELSE you can skip that.
Regards,
Nagaraj
01-31-2011 6:58 AM
Hi Kathy,
You can run BDC in forground & check on which screen this message is coming, then you should check for old company code in the same mode (foreground) and then you can see & analyse what you have missed & can check the code as well in sequence.
Thanks.
01-31-2011 7:24 AM
Hi Adarsh,
Have tried comparing the bdcdata for both new and old company, except for the values needed in the fields the entire screen sequence is identical.
When I manually click the screen where BDC will look for VBKD-IHREZ, the screen not in the recording did not display.
Thanks.
Kathy
01-31-2011 7:35 AM
Hi,
If you are getting different screen flow for different actions, then you should record all possible scenarios first. Then anayse what are the differences and accordingly put the logic.
Here, you can have two recordings. One for existing company code and another for new company code. Check first whther company code already exists (check table T001W, if just plant check require. I don't know your exact scenario). If exists first recording. Call different screens conditionally.
Let me know whether it helps or describe your problem in the details.
Thanks & Regards,
Anil Salekar
01-31-2011 7:22 AM
Hi,
As Adarsh Jain said, you can follow that process else you can try to create the Quotation manually with the same data which is coming through the BDC you will know exactly why that screen field is triggering for the new company code.
--
Shyam
01-31-2011 7:33 AM
Hi Shyam,
I have tried to manually encode the quotation using HBS2 but the screen that causes the error in BDC is not visible.
So I find it weird that creation of quoation for old company as well as doing it manually thru HBS2 works fine without the screen with error in BDC. This screen is visible only in BDC when creating of quotatation for new company.
Thanks a lot.
Kathy
02-01-2011 6:49 AM
Hi,
Did u tried to create the Quotation manually with the New Company Code? If not try this. If you found the screen flow is changing for the new company code, make the necessary changes in the BDC Program for the new company code.