Application Development 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: 

BDC problem in MM01

Former Member
0 Kudos
595

Hi

I wrote BDC for Uploading Material Master in MM01.

During recording process (SHDB), i have selected all the specific "Selection Views".

And during uploading, the last 4-5 "Views"

like:

accounting1

accounting2

costing

etc are not getting selected.

How to overcome this problem?

With regards

John

10 REPLIES 10

Former Member
0 Kudos
197

Hi John,

run ur BDC in foreground(mode A) n chk out the problem..

the problem may be because while recording u scrolled down the view window which didnt get recorded..

Hope it helps,

Regards,

Bikash

Former Member
0 Kudos
197

hi,

put a break point at Call Transaction Statement and change the mode from <b>'N' to 'A'</b>.

Regards,

Santosh

former_member635028
Active Participant
0 Kudos
197

Hi,

while selecting views i think u didnt click page down and u have not selected those views,that is the reason why u are not able to get that views.

i think this will help u out.........

Thanks,

Sreevani

Message was edited by: sreevani musaloji

Former Member
0 Kudos
197

Hi,

Are you clicking on 'Organizational Levels' while selecting the views?

Because some of the views are org level specific and if dont select the level, these views will not be created.

Instead of BDC, try to use BAPI_MATERIAL_SAVEDATA.

It is a better option.

Hope it helps.

Regards,

Shashank

former_member188685
Active Contributor
0 Kudos
197

Hi John,

Try to record it Properly. may be recording is not proper.

Regards

Vijay

vinod_gunaware2
Active Contributor
0 Kudos
197

Try to record transaction again and then cross verify by using in foreground(i.e. 'A').

regards

vinod

Former Member
0 Kudos
197

Hello John,

Even though u recorded the MM01 with one material and selected all the views you need to be careful as these views change positions with material type and other parameters. The best approach could be to select only the BASIC view and then use Goto option to select the relavant view.

Former Member
0 Kudos
197

Dear John,

in MM01 transaction the views are selected dynamically, the selection is depend upon Material Type.

While recording a transaction, please select all views (click on 'Select All' button). this will record all the fields on all the views.

Pass the values from internal table to relevant fields.

Regards

Rahul

ferry_lianto
Active Contributor
0 Kudos
197

Hi John,

When you create material master via MM01 (BDC), the system will determine the views based on the configuration (IMG) of <b>Assign Screen Sequences to User/Material Type/Transaction/Industry Sector -VCM_T133K (View) and Screen Sequences - VCM_T133A (View).</b>

Based on the screen sequence number (VCM_T133K-BILDS), the system will assign the correspondence screens (VCM_T133A-AUSWG) for views selection.

So please check both views VCM_T133A and VCM_T133K based on material type (for example) prior to assign views selection in your BDC code. You may need to have more than one logic to handle selection views.

Hope this will help.

Let me know if you need further assistant.

Regards,

Ferry Lianto

Former Member
0 Kudos
197

Hi John,

This code will really help you. Because i did the same thing and working fine for me. Make sure the no. of views you are trying to create should be same all times else the BDC will not be successful.

Every view that you create will have a position number, so the SHDB will give you the position no. of that view.

PERFORM BDC_FIELD USING

'BDC_OKCODE' '=AUSW'

CHANGING RT_BDCDATA.

PERFORM BDC_DYNPRO USING

'SAPLMGMM' '0070'

CHANGING RT_BDCDATA.

PERFORM BDC_FIELD USING

'BDC_OKCODE' '=P+'

CHANGING RT_BDCDATA.

PERFORM BDC_DYNPRO USING

'SAPLMGMM' '0070'

CHANGING RT_BDCDATA.

Please let me know if you have any doubts, so that i can help you on this.

One thing you need to keep in mind is whether you are creating a new material or update or extensions.

regards,

shylesh