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: 

problem for material uploading thru BDC

former_member1006740
Participant
0 Kudos

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

Former Member
0 Kudos

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

former_member555112
Active Contributor
0 Kudos

Hi,

You can use the direct input program RMDATIND.

Regards,

Ankur Parab

Former Member
0 Kudos

Hi Dude,

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

Former Member
0 Kudos

Hi,

Use BAPI BAPI_MATERIAL_SAVEDATA, for code check below link.

[link1|]

Thanks,

Asit Purbey.

Former Member
0 Kudos

Hi,

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

Rgds,

Venu

Former Member
0 Kudos

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

former_member1006740
Participant
0 Kudos

Solved by myself only using LSMW ..

Thx for all.