08-08-2008 1:32 AM
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?
08-08-2008 3:54 AM
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.
08-08-2008 4:28 AM
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
08-08-2008 4:42 AM
>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.
08-08-2008 4:54 AM
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 ?
08-08-2008 5:03 AM
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.
04-10-2012 12:27 PM
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.