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

Problem in BDC for Material master Change

Former Member
0 Likes
973

Hi,

I have made a BDC to change the material master, I have done the recording with SHDB I want to do changes in Sales data and MRP data, when I do the recording I have selected views and it was 4 , 11 AND 12 VIEW IN select vie option but in some material Classifcation view is maitain and it is coming at 2nd position and my selected views are shiftin by one position due to this BDC is giving error Screen contain no filed -


,

I sthere any way that I acn directly select the Three views as Sales data , MRP1 and MRP2, because when we do the recording it is not showing the name it is showing as

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(12)'.

perform bdc_field using 'BDC_OKCODE'

'=DEF_SAVE'.

perform bdc_field using 'MSICHTAUSW-KZSEL(04)'

'X'.

perform bdc_field using 'MSICHTAUSW-KZSEL(11)'

'X'.

perform bdc_field using 'MSICHTAUSW-KZSEL(12)'

'X'.

********************

regards,

zafar

Hi,

I have made a BDC to change the material master, I have done the recording with SHDB I want to do changes in Sales data and MRP data, when I do the recording I have selected views and it was 4 , 11 AND 12 VIEW IN select vie option but in some material Classifcation view is maitain and it is coming at 2nd position and my selected views are shiftin by one position due to this BDC is giving error Screen contain no filed -


,

I sthere any way that I acn directly select the Three views as Sales data , MRP1 and MRP2, because when we do the recording it is not showing the name it is showing as

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(12)'.

perform bdc_field using 'BDC_OKCODE'

'=DEF_SAVE'.

perform bdc_field using 'MSICHTAUSW-KZSEL(04)'

'X'.

perform bdc_field using 'MSICHTAUSW-KZSEL(11)'

'X'.

perform bdc_field using 'MSICHTAUSW-KZSEL(12)'

'X'.

********************

regards,

zafar

5 REPLIES 5
Read only

Former Member
0 Likes
840

HI,

Use BAPI_MATERIAL_SAVEDATA instead of BDC.

As different material types(MTART) has different views.

Regards and Best wishes.

Read only

0 Likes
840

Hi Kiran,

Thanks for your reply, autually my problem is that material type is same but some fields are not maitian for some material.

i, what is the table name in which we can find the classification data of material as per material master, so that if record found in that table i can select the diffrent views.

regards,

zafar

Read only

0 Likes
840

You can use these FM to get material classification details.

CLAF_CLASSIFICATION_OF_OBJECTS.

BAPI_OBJCL_GETDETAIL.

You can also use CLB2 transaction to upload classification data.

Read only

0 Likes
840

Hi,

Myproblem is solve , in the table MARA i found the filed VPSTA : Maitenance status, Having the vakue may KVEDLBZX those value is diffrent for different material this value indicates

User department Maintenance status

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,

after reading what fields are maitain according to that i have selected the proper views and my problem is solve.

regards,

zafar

Read only

0 Likes
840

Hi,

Used FM ' MATERIAL_BTCI_SELECTION_NEW ' to get current position of view.

then used

read table lt_bdcdata_view with key fval  = 'X'.
       lv_var = lt_bdcdata_view-fnam+17(2).
       concatenate 'MSICHTAUSW-DYTXT(' lv_var ')' into lv_var1.
       concatenate 'MSICHTAUSW-KZSEL(' lv_var ')' into lv_var2.


Thanks

Sunil Vijay