‎2007 Apr 28 11:23 AM
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,
‎2007 Apr 28 12:15 PM
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á
‎2007 Apr 28 12:10 PM
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.
‎2007 Apr 28 12:15 PM
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á
‎2007 Apr 28 12:33 PM
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..
‎2007 Apr 28 12:38 PM
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
‎2007 Apr 28 12:49 PM
‎2007 Apr 28 1:00 PM
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'.
‎2007 Apr 28 1:01 PM
This FM 'MATERIAL_BTCI_SELECTION_NEW'' is also used for selecting views.
‎2007 Apr 28 1:05 PM
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