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

BDC For MM01

Former Member
0 Likes
842

Hi,

I had completed a BDC for the Tcode MM01 so that the managment of Quality View is to be maintained for the existing items. I want to know 1 thing is it possible that we can create a bdc in which Items of different types i.e. DIES and Non -Valuated materials can be maintained i.e. i had done the recording for the Dies in which the Quality view is present at no..22 and i am using the funda of P(Page down) but if i execute it for the non - valuated materials the QM view is present at no.. 16 and there is no requierment for the P FUNDA ,but due to the recording done for the Dies is it possible to make it run for the non valuated materials in the same BDC .

Plzz provide me guidelines for solving this problem.

Hi,

I had completed a BDC for the Tcode MM01 so that the managment of Quality View is to be maintained for the existing items. I want to know 1 thing is it possible that we can create a bdc in which Items of different types i.e. DIES and Non -Valuated materials can be maintained i.e. i had done the recording for the Dies in which the Quality view is present at no..22 and i am using the funda of P(Page down) but if i execute it for the non - valuated materials the QM view is present at no.. 16 and there is no requierment for the P FUNDA ,but due to the recording done for the Dies is it possible to make it run for the non valuated materials in the same BDC .

Plzz provide me guidelines for solving this problem.

5 REPLIES 5
Read only

Former Member
0 Likes
774

Hi

refer the thread

this would be very helpful

Read only

0 Likes
774

Hi Amit,

I am just asking for the way is it possible or not ?

Edited by: ricx .s on Dec 12, 2008 7:25 AM

Read only

Former Member
0 Likes
774

Hi,

Yes it is possible.

You will be having a part of code for DIES lik this:

PERFORM bdc_field          USING 'BDC_OKCODE'
                                              '=P+'.
      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(05)' "This is page down+5 = 22
                                              'X'.

Now what you can do is put the 'If' condition so that this will be executed only for your 'DIES'.

In the 'Else' part paste this code(For on-valuated Materials):

ELSE.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                           '=ENTR'.
      PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(16)' "16th position without Page Down
                                           'X'.
    ENDIF.

Hope this will help you.

Regards,

Manoj Kumar P

Read only

0 Likes
774

Hi,

I am trying as wht au had said but it is not working properly. here's d code which i am using right now:-

LOOP AT RECORD.

ON CHANGE OF RECORD-MATNR_001.

perform bdc_dynpro using 'SAPLMGMM' '0060'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-MATNR'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RMMG1-MATNR'

RECORD-MATNR_001. "ItemId

"perform bdc_field using 'RMMG1-MBRSH'

" 'M'.

"perform bdc_field using 'RMMG1-MTART'

" 'ZDIE' .

IF RECORD-MATNR_001 >= '000000000000300000' and RECORD-MATNR_001 <= '000000000000301784'.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(01)'.

perform bdc_field using 'BDC_OKCODE'

'=P+'.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(05)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'MSICHTAUSW-KZSEL(05)'

'X'.

ELSEIF record-MTART_006 >= '000000000000600000' and RECORD-MATNR_001 <= '000000000000640332'.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(01)'.

"perform bdc_field using 'BDC_OKCODE'

" '=P+'.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(05)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'MSICHTAUSW-KZSEL(16)'

'X'.

ENDIF.

Edited by: ricx .s on Dec 12, 2008 9:43 AM

Edited by: ricx .s on Dec 12, 2008 10:01 AM

Read only

Former Member
0 Likes
774

Hi,

I have made some changes in your code.

Replace your old code by this code.

PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
PERFORM bdc_field USING 'BDC_CURSOR'
                        'RMMG1-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
                        '/00'.
PERFORM bdc_field USING 'RMMG1-MATNR'
                        record-matnr_001. "ItemId
"perform bdc_field using 'RMMG1-MBRSH'
" 'M'.
"perform bdc_field using 'RMMG1-MTART'
" 'ZDIE' .
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'."Paste it above if
PERFORM bdc_field USING 'BDC_CURSOR'"Paste it above if
                        'MSICHTAUSW-DYTXT(01)'."Paste it above if
IF record-matnr_001 >= '000000000000300000' AND record-matnr_001 <=
'000000000000301784'.
  "<---Deleted some lines and pasteed above if. Check it out
  PERFORM bdc_field USING 'BDC_OKCODE'
                          '=P+'.
  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(05)'
                          'X'.

ELSEIF record-mtart_006 >= '000000000000600000' AND record-matnr_001
<= '000000000000640332'.
"<---Deleted some lines. Check it out
  PERFORM bdc_field USING 'BDC_OKCODE'
                          '=ENTR'.
  PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(16)'
                          'X'.
ENDIF.

Hope this will help you.

Revert in case of any issue.

Regards,

Manoj Kumar P