Application Development and Automation 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: 
Read only

Select Accounting View in BDC Program

ashok_kumar24
Contributor
0 Likes
563

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

4 REPLIES 4
Read only

Former Member
0 Likes
442

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.

Read only

Former Member
0 Likes
442

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

Read only

Former Member
0 Likes
442

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.

Read only

Former Member
0 Likes
442

Hi Ashok,

First select basic data 1 view, then click on more options and select accounting view.

Regards,

N M Poojari.