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: 

MFBF parameter ID

Former Member
0 Kudos

Dear experts,

I try to post the following coding:


SET PARAMETER ID 'MAT' FIELD v_matnr.
SET PARAMETER ID 'WRK' FIELD v_plant.

CALL TRANSACTION 'MFBF'.

when I execute this program, the material field is blank in MFBF, only Plant field is filled with data. I try to press F1 in the material field, the Parameter ID is MAT, which I use correcly in my coding. Can anyone tell me why data is not passed in the material field in MFBF?

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos

There is no GET PRAMETER ID 'MAT' for material that is the reason you are not able to set the value to material field. For your Reference Check this include LBARMO35

IF rm61b-werks IS INITIAL.
    GET PARAMETER ID 'WRK' FIELD rm61b-werks.
  ELSE.
    SET PARAMETER ID 'WRK' FIELD rm61b-werks.
  ENDIF.
  IF rm61b-werks IS INITIAL AND cursorfield IS INITIAL.
    cursorfield = 'RM61B-WERKS'.
  ENDIF.

0 Kudos

Dear Vijay,

In my coding, I didn't write GET PARAMETER ID 'MAT'. I use SET PARAMETER ID 'MAT'.

The funny thing is that when I call transaction MMBE, it works


SET PARAMETER ID 'MAT' FIELD p_matnr.
SET PARAMETER ID 'WRK' FIELD p_plant.
CALL TRANSACTION 'MMBE'.

But for transaction MFBF, it fails to pass the value p_matnr to Material field. What is the problem?

Edited by: Yean Nean Yong on Aug 8, 2008 11:29 AM

0 Kudos

>in my coding, I didn't write GET PARAMETER ID 'MAT'. I use SET PARAMETER ID 'MAT'.

i know that, but what i am trying to tell is

you will set the parameter id using the SET PARAMETER ID. But the standard program of MFBF is not getting that value inside using the GET PARAMETER ID and moving it to screen field.

But in MFBF it is not happening for material field.Standard program is doing it for Plant field only,

But for MMBE they are doing, that is the reason you are getting that.

in program RMMMBESTN, line 165

GET PARAMETER ID 'MAT' FIELD ms_matnr-low.
  REFRESH ms_matnr.
  MOVE 'I' TO ms_matnr-sign.
  MOVE 'EQ' TO ms_matnr-option.
  APPEND ms_matnr.

0 Kudos

Dear Vijay,

Thanks. I understand now. But is there any way that I can force MFBF to use GET PARAMETER ID without creating a custom ZMFBF ?

0 Kudos

I m not sure. Check for any enhancement spots before displaying the screen, then you can set that value.

If you are on ECC6.0 then you can find Enhancement Spots.

0 Kudos

hi Vijay

I'm new to Enhancement point. The requirement is to disable the fields

  ERFMG_R,  ERFME,  WERKS in MFBF T.code. I was written this code

   ENHANCEMENT 59  ZENH_LCOWBFM1.    "active version
  IF ( COWB_COMP-WERKS >= '3000' and COWB_COMP-WERKS <= '3999' ) and
     ( ( COWB_COMP-MATNR >= '5000' and COWB_COMP-MATNR <= '5999' ) or
       COWB_COMP-MATNR+0(3) = 'BPC' ).
    IF screen-name 'COWB_COMP-ERFMG_R' or screen-name 'COWB_COMP-ERFME' or screen-name = 'COWB_COMP-WERKS'.
       screen-input = 0.
       MODIFY SCREEN.
    ENDIF.
  ENDIF.
ENDENHANCEMENT.

This code is working for fields COWB_COMP-ERFMG_R, COWB_COMP-ERFME and not for

COWB_COMP-WERKS.