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 for material uploading thru BDC

Former Member
0 Likes
962

HI Folks,

I want to upload material master for this views- basic data1,sales org1,sales org2,sales general/plant, purchasing, accounting.so after selecting views im getting one small window in that we have to fill plant,sales org, and distribution channel .i have created bdc program.after processing the program..the data is not passing into the small window which is having plant,sales org,distribution channel.

if iam using lsmw also the same problem,the data is not passing to the plant window...iam using ECC 6.0 version.

how can i solve this problem..please help me as soon as possible.

Thanks ,

Neelu

7 REPLIES 7
Read only

Former Member
0 Likes
889

you can use LSMW BAPI method , you wont get the popup wondow

Business Object BUS1001006 Standard material

Method SAVEDATA Create and change materia

Message Type MATMAS_BAPI Create and change materia

Basic Type MATMAS_BAPI01 Create and Change Materia

Read only

Former Member
0 Likes
889

Hi,

You can use the direct input program RMDATIND.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
889

Hi Dude,

Insted of BDC goo for BAPI to upload the Material Master data BAPI_MATERIAL_SAVEDATA.

Read only

Former Member
0 Likes
889

Hi,

Use BAPI BAPI_MATERIAL_SAVEDATA, for code check below link.

[link1|]

Thanks,

Asit Purbey.

Read only

Former Member
0 Likes
889

Hi,

First check the recording, just process your recording in transaction SHDB (by selecting your recording name and click on process button).

Rgds,

Venu

Read only

Former Member
0 Likes
889

Hi,

This is a sample recording, try this, it will solve your issue.

perform open_group.

perform bdc_dynpro using 'SAPLMGMM' '0060'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-MTART'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RMMG1-MBRSH'

'C'.

perform bdc_field using 'RMMG1-MTART'

'FERT'.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(02)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'MSICHTAUSW-KZSEL(01)'

'X'.

perform bdc_field using 'MSICHTAUSW-KZSEL(02)'

'X'.

perform bdc_dynpro using 'SAPLMGMM' '4004'.

perform bdc_field using 'BDC_OKCODE'

'=SP02'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_field using 'BDC_CURSOR'

'MARA-MATKL'.

perform bdc_field using 'MARA-MEINS'

'KG'.

perform bdc_field using 'MARA-MATKL'

'02'.

perform bdc_field using 'MARA-MTPOS_MARA'

'NORM'.

perform bdc_dynpro using 'SAPLMGMM' '4004'.

perform bdc_field using 'BDC_OKCODE'

'=SP04'.

perform bdc_field using 'BDC_CURSOR'

'MAKT-MAKTX'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_dynpro using 'SAPLMGMM' '0081'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-VTWEG'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'RMMG1-WERKS'

'C001'.

perform bdc_field using 'RMMG1-VKORG'

'C001'.

perform bdc_field using 'RMMG1-VTWEG'

'01'.

perform bdc_dynpro using 'SAPLMGMM' '4000'.

perform bdc_field using 'BDC_OKCODE'

'=SP19'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_field using 'MARA-MEINS'

'KG'.

perform bdc_field using 'MARA-MATKL'

'02'.

perform bdc_field using 'MVKE-SKTOF'

'X'.

perform bdc_field using 'BDC_CURSOR'

'MG03STEUER-TAXKM(01)'.

perform bdc_field using 'MG03STEUER-TAXKM(01)'

'0'.

perform bdc_dynpro using 'SAPLMGMM' '4200'.

perform bdc_field using 'BDC_OKCODE'

'=MAIN'.

perform bdc_field using 'BDC_CURSOR'

'MAKT-MAKTX'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_dynpro using 'SAPLMGMM' '4000'.

perform bdc_field using 'BDC_OKCODE'

'=SP19'.

perform bdc_field using 'BDC_CURSOR'

'MAKT-MAKTX'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_field using 'MARA-MEINS'

'KG'.

perform bdc_field using 'MARA-MATKL'

'02'.

perform bdc_field using 'MVKE-SKTOF'

'X'.

perform bdc_dynpro using 'SAPLMGMM' '0081'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-LGORT'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'RMMG1-LGORT'

'0001'.

perform bdc_dynpro using 'SAPLMGMM' '4000'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

perform bdc_field using 'BDC_CURSOR'

'MAKT-MAKTX'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_field using 'MARA-MEINS'

'KG'.

perform bdc_field using 'MARA-IPRKZ'

'D'.

perform bdc_dynpro using 'SAPLMGMM' '4000'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_field using 'MARA-MEINS'

'KG'.

perform bdc_field using 'MARA-GEWEI'

'KG'.

perform bdc_field using 'MARC-MTVFP'

'02'.

perform bdc_field using 'BDC_CURSOR'

'MARC-LADGR'.

perform bdc_field using 'MARA-TRAGR'

'0001'.

perform bdc_field using 'MARC-LADGR'

'0001'.

perform bdc_dynpro using 'SAPLMGMM' '4000'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

perform bdc_field using 'BDC_CURSOR'

'MAKT-MAKTX'.

perform bdc_field using 'MAKT-MAKTX'

'test'.

perform bdc_field using 'MARA-MEINS'

'KG'.

perform bdc_field using 'MARA-IPRKZ'

'D'.

perform bdc_transaction using 'MM01'.

perform close_group.

Thanks & Regards,

Kimaya

Read only

Former Member
0 Likes
889

Solved by myself only using LSMW ..

Thx for all.