‎2007 Dec 29 12:20 PM
Dear all,
I have made a BDC for MM02.Here i am facing a problem where for every material the views are in different order,for example-for Material A,purchasing group is 3rd,MRP Controller is 5th 6th and 7th.
and for Material B ,purchasing group is 8rd,MRP Controller is11th 12th and 13th.
since i am using call transaction and if i have done recording based on Material 1,my Material 2 hits the wrong views and hence data does not get updated.
Plz give me some tips.its urgent
‎2007 Dec 29 2:49 PM
Hi,
For Material creation or updates it is generally recommended to use a BAPI as there is a very high probability that the BDC will fail every time there is a screen sequence change / field not displayed on screen for a particular screen. I would thereby suggest changing the loic used and using a BAPI in your program
Rgds
Ajith Sivadasan
‎2007 Dec 29 12:41 PM
Hello,
Generally the views would change from material type to material type make sure that you take into consideration the material type of the material before changing the material and then write a diff BDC for each of them.
Regards,
Sowmya.
‎2007 Dec 29 2:02 PM
Hi Rahul
yes this is the senario where your recording fails basically wht u do is u have to keep the recordings for each material type and based on the material type u have to execute the corresponding recording there is no other way for this
u have to logically call the corresponding recording based on the material type by u r ABAP program...
plzzz reward if u found i am helpfull to u
‎2007 Dec 29 2:49 PM
Hi,
For Material creation or updates it is generally recommended to use a BAPI as there is a very high probability that the BDC will fail every time there is a screen sequence change / field not displayed on screen for a particular screen. I would thereby suggest changing the loic used and using a BAPI in your program
Rgds
Ajith Sivadasan
‎2007 Dec 29 4:31 PM
Hi Rahul,
One workaround for this would be to record by only selecting the Basic data view in the view selection popup and then select the corresponding tabstrips(view) of your choice inside the MM02 transaction, however the best approach would be to use a BAPI
‎2007 Dec 31 10:09 AM
Dear all,
Thanks a ton for your help.
U guyz were correct that the views will depend on material type.and hence BDC will fail.
So i used the bapi BAPI_MATERIAL_SAVEDATA.
and now its working fine.
Will reward points to u all for u r help