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 with BDC for MM01

Former Member
0 Kudos
307

Hi All,

I am executing BDC for MM01 but its giving message while executing that field MVKE-MTPOS does not exist in screen 4000 wheteas the field is there in the screen 4000 .

Please suggest the way out The code is is as below

LOOP AT it_matmaster.

PERFORM bdc_insert USING 'SAPLMGMM' '0060' ' ' ' '.

PERFORM bdc_insert USING: ' ' ' ' 'RMMG1-MATNR' it_matmaster-matnr.

PERFORM bdc_insert USING: ' ' ' ' 'RMMG1-MBRSH' 'M'.

PERFORM bdc_insert USING: ' ' ' ' 'RMMG1-MTART' 'ROH'.

PERFORM bdc_insert USING ' ' ' ' 'BDC_OKCODE' '=ENTR'.

PERFORM bdc_insert USING 'SAPLMGMM' '0070' ' ' ' '.

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

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

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

PERFORM bdc_insert USING ' ' ' ' 'bdc_okcode' '/00'.

PERFORM bdc_insert USING 'SAPLMGMM' '0080' ' ' ' '.

PERFORM bdc_insert USING: ' ' ' ' 'RMMG1-WERKS' '6510'.

PERFORM bdc_insert USING: ' ' ' ' 'RMMG1-VKORG' '6501'.

PERFORM bdc_insert USING: ' ' ' ' 'RMMG1-VTWEG' '03'.

PERFORM bdc_insert USING ' ' ' ' 'bdc_okcode' '/00'.

PERFORM bdc_insert USING 'SAPLMGMM' '4000' ' ' ' '.

  • PERFORM bdc_insert USING 'SAPLMGD1' '1004' ' ' ' '.

PERFORM bdc_insert USING: ' ' ' ' 'MAKT-MAKTX' 'Test'.

PERFORM bdc_insert USING: ' ' ' ' 'MARA-MEINS' 'KG'.

PERFORM bdc_insert USING ' ' ' ' 'bdc_okcode' '/00'.

PERFORM bdc_insert USING 'SAPLMGMM' '4200' ' ' ' '.

  • PERFORM bdc_insert USING 'SAPLMGD1' '2184 ' ' ' ' '.

PERFORM bdc_insert USING ' ' ' ' 'BDC_CURSOR' 'MG03STEUER-TAXKM(01)'.

PERFORM bdc_insert USING ' ' ' ' 'MG03STEUER-TAXKM(01)' '1'.

PERFORM bdc_insert USING ' ' ' ' 'BDC_CURSOR' 'MG03STEUER-TAXKM(02)'.

PERFORM bdc_insert USING ' ' ' ' 'MG03STEUER-TAXKM(02)' '1'.

PERFORM bdc_insert USING ' ' ' ' 'BDC_CURSOR' 'MG03STEUER-TAXKM(03)'.

PERFORM bdc_insert USING ' ' ' ' 'MG03STEUER-TAXKM(03)' '1'.

PERFORM bdc_insert USING ' ' ' ' 'BDC_CURSOR' 'MG03STEUER-TAXKM(04)'.

PERFORM bdc_insert USING ' ' ' ' 'MG03STEUER-TAXKM(04)' '1'.

PERFORM bdc_insert USING ' ' ' ' 'bdc_okcode' '/00'.

  • PERFORM bdc_insert USING 'SAPLMGMM' '4000' ' ' ' '.

  • PERFORM bdc_insert USING 'SAPLMGD1' '2157' ' ' ' '.

  • PERFORM bdc_insert USING ' ' ' ' 'BDC_CURSOR' 'MVKE-VERSG'.

PERFORM bdc_insert USING: ' ' ' ' 'MVKE-VERSG' 'Y'.

PERFORM bdc_insert USING: ' ' ' ' 'MVKE-KTGRM' '01'.

PERFORM bdc_insert USING: ' ' ' ' 'MVKE-MTPOS' 'NORM'.

PERFORM bdc_insert USING ' ' ' ' 'bdc_okcode' '/00'.

PERFORM bdc_insert USING 'SAPLMGMM' '4000' ' ' ' '.

  • PERFORM bdc_insert USING 'SAPLMGD1' '2162' ' ' ' '.

PERFORM bdc_insert USING: ' ' ' ' 'MARA-TRAGR' '0001'.

PERFORM bdc_insert USING: ' ' ' ' 'MARC-LADGR' '0001'.

CALL TRANSACTION 'MM01' USING bdcdata MODE 'A' .

ENDLOOP.

FORM bdc_insert USING program TYPE any

dynpro TYPE any

fnam TYPE any

fval TYPE any.

CLEAR bdcdata.

IF ( dynpro NE ' ' ).

bdcdata-program = program.

bdcdata-dynpro = dynpro.

bdcdata-dynbegin = 'X'.

APPEND bdcdata.

Thanks

ELSE.

bdcdata-fnam = fnam.

bdcdata-fval = fval.

APPEND bdcdata.

ENDIF.

ENDFORM. "bdc_insert

4 REPLIES 4

Former Member
0 Kudos
131

Within MM01, the fields that appear on the screen will depend on other sales area based criteria. I suspect you are not specifying some data which in turn would make the field appear.

Is there no BAPI you can use.

Former Member
0 Kudos
131

Problem is coming for all the materials?

Check the mateiral & type, sometimes depends on these some screen elements will appear. and for some materials it will not.

Former Member
0 Kudos
131

Hi,

Just comment that liine and see, what it says.

PERFORM bdc_insert USING: ' ' ' ' 'MVKE-MTPOS' 'NORM'.

May be that field is not required for material type ROH.

Regards,

Anji

0 Kudos
131

That field is compulsory field and I have to insert NORM only for all the materials

Pls Suggest