‎2008 May 26 12:32 PM
Hi Experts,
I am working on a BDC program in which I have to change the Accounting view data for Materials(MM02).
Each material has diferent number of views. So How can I select only the Accounting View when changing Material data through BDC.
Thanks
Kumar
‎2008 May 26 12:52 PM
HI Ashok ,
One possible solution is you have to see which material type is having how many number of views.
The number of views will be definitely depending upon material type .
Then in BDC check wht is the Material type and accordingly you can select the number of view in which the accounting fall.
‎2008 May 26 1:01 PM
Hi ashok ,
ideally you should use BAPI_Material_savedata to change the material master.
as far as your problem goes you can use the following method to select appropraite view in MM02.
SET PARAMETER ID 'MXX' FIELD c_v.
c_v is a char 1 constant and can have values
User department Maintenance statu(Value of c_v)
Work scheduling A
Accounting B
Classification C
MRP D
Purchasing E
Production resources/tools F
Costing G
Basic data K
Storage L
Forecasting P
Quality management Q
Warehouse management S
Sales V
Plant stocks X
Storage location stocks Z
Regards,
N.
Edited by: navjot sharma on May 26, 2008 2:02 PM
‎2008 May 26 1:02 PM
Hi Kumar,
simplest answer is don't. SAP no longer supports transactions MM0x for BDC, you are supposed to use the BAPI's, e.g. BAPI_MATERIAL_EDIT. You can program around the changing number of entries in the view selection popup but it's no fun. You will have to determine what views have been maintained, stored somewhere in a status field on the different MARx tables. I don't remember all the details off the top of my head and don't have an example program.
Hope this helps,
Gert.
‎2008 May 26 1:06 PM
Hi Ashok,
First select basic data 1 view, then click on more options and select accounting view.
Regards,
N M Poojari.