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

Help ......

Former Member
0 Likes
1,017

Hi Experts ,

I am doing BDC recording for MM01 ,

in this i have to go to MM01 and select some views like basic data1 , basic data2 ,mrp1,mrp2,mrp3 ..and so on...i did recording and selected these views

but when i execute the report , no views are geting selected and error is coming (please select atleast one view) .please help me out for that ..its urgnt..

Thanks in advance,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
970

Hi!

Unfortunately BDC_CURSOR is only positioning the cursor, but it is not doing anything useful.

The following commands are selecting the relevant views on MM01 04-07.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(04)' 'X'.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(05)' 'X'.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(06)' 'X'.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(07)' 'X'.

Regards

Tamá

8 REPLIES 8
Read only

Former Member
0 Likes
970

To select the View, Follow code will be generated by recording:-

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(01)'.

here it select the first view Basic Data 1.

Check in you code if it not there, delete and record once again.

Read only

Former Member
0 Likes
971

Hi!

Unfortunately BDC_CURSOR is only positioning the cursor, but it is not doing anything useful.

The following commands are selecting the relevant views on MM01 04-07.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(04)' 'X'.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(05)' 'X'.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(06)' 'X'.

PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(07)' 'X'.

Regards

Tamá

Read only

0 Likes
970

thanks for your help ..ya u are right ..cursor is there ,but its not selecting any views..

you mean to say that after perform bdc_field using 'MSICHTAUSW-KZSEL(04)', i should code 'x'.

plz reply soon..

Read only

0 Likes
970

Hi

YES it should be 'X'. capital X means you are selecting that View

so like that give X's for the different views.

it will work

regards

Anji

Read only

0 Likes
970

Thanks Anji..

u have solved my problem..Thnks lot........

Read only

Former Member
0 Likes
970

As u are creating BDC on MM01. I just bring your notice in one fact that the no and sequence of various vews in MM01 depending on the material type and industries. So your BDC suppose to fail if you want to create a material with other type ( Except the type you have used for recording). Again your BDC can fail if your SAP version change as the screen no will change.

So, it is safe to use standard BAPI. There is a standard BAPI for material change of creation : 'BAPI_MATERIAL_SAVEDATA' and for displaying 'BAPI_MATERIAL_GETLIST'.

Read only

0 Likes
970

This FM 'MATERIAL_BTCI_SELECTION_NEW'' is also used for selecting views.

Read only

0 Likes
970

YES u are right ..

but i am doing for one ind and one mat type for nw ..

and will surly discuss this problem to my seniors ..

thanks for your valuable answer