MFBF exit?
Hello
experts
I have ba requirement that in tcode mfbf the user cannot post in previous day comparing with current date
.If posting date is less than 3 days from current date posting wil not happen i have wriiten the code in the folowing exit XMRM0001 in FM EXIT_SAPLBARM_001.
But the problem happening that it is being restricted but when the correct date is given all the data from the screen is going.and no material ifs found.
Please help.
I have to deliver the project soon.
BADi:RM_BFLUSH_GOODSMVT
Method:MODIFY_GOODSMVT_BEFORE_DIALOG
MODIFY_GOODSMVT_AFTER_DIALOG
Similar Messages
-
Exit for batch no check not fired for Tr MFBF
hi. experts,
i'm new to abap.
i've to check the manually entered BATCH No. entered in Tr. MFBF and accordingly throw a error message for wrong entry on the first screen.
for this m using the exit SAPLV1ZE and its Function module EXIT_SAPLV01Z_004.
i've created a project in Tr. CMOD and have assigned this exit. also i've created the include given inside the function module. i've activated all.
But while i set a breakpoint there and try executing the transaction, the transaction doesnot stop at the specified break-point in debugger and hence the message doesnot get fired.
Plz help as to why the exit is not fired and why it doesnot stop in the debugger.try this XMRM0001 enhance ment in smod for mfbf.
NB : activate all the things.
regards
shiba dutta -
Hi Experts,
I need to do difference calculation in posting date and document date. I have made the code but not able to find exact BADI or exit for MFBF tcode.
BADI i searched - RM_BFLUSH_GOODSMVT
EXIT ???
Please suggest, where I have to put below code so that when user put dates into this, then it will not allow him to get more than 7 days.
data: d_days like po347-scrdd,
budat like mkpf-budat,
bldat like mkpf-bldat.
budat = rm61b-budat.
bldat = rm61b-bldat.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
I_DATUM_BIS = budat
I_DATUM_VON = bldat
I_STGMETH = '2'
IMPORTING
E_TAGE = d_days
if d_days > 7 .
message 'date exceeds' type 'E'.
elseif d_days < 0.
message 'document date should be greater than posting date' type 'I'.
endif.
Please suggest experts,
Thanks.
DeepanshuHi,
Include - LBARMFS1
FORM - FORM get_hr_data .
Create a implicit enhancement in the beginning of above mentioned form FORM get_hr_data and put below code inside that.
FORM get_hr_data.
ENHANCEMENT 1 ZTEST_TEST.
data: d_days like po347-scrdd,
budat like mkpf-budat,
bldat like mkpf-bldat.
budat = rm61b-budat.
bldat = rm61b-bldat.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
I_DATUM_BIS = budat
I_DATUM_VON = bldat
I_STGMETH = '2'
IMPORTING
E_TAGE = d_days
if d_days > 7 .
message 'date exceeds' type 'E'.
elseif d_days < 0.
message 'document date should be greater than posting date' type 'I'.
endif.
ENDENHANCEMENT.
BR,
Vijay -
Hi Experts
I have used one BADI (RM_BFLUSH_GOODSMVT) in MFBF screen and created a new screen in MFBF in which I am capturing some additional data like "Shift", "Die No." etc. and storing it in a Z Table.
When I reverse my Backflushing entry through MFBF (reversal Push Button) which calls MF41 transaction, my documents are reversing but my customized table entries are not reversing (fine enough because the BADI is not for that purpose).
Now, I am looking for an exit which for transaction MFBF or MF41which I can use to reverse the data in my Z table.
I have used "XMRM0001" but it is resetting my screen data and i am not able to go further.
Can anybody suggest me some EXIT or BADI which I can use in MFBF or MF41 to reverse the entries in Z Table.
Thanks in Advance.....
VineetDear Vineet,
Assume through the customized MFBF screen you are doing confirmation and you are using a BAPI for confirmation and
populating the confirmation details in a Z table (including the Z fields like shift,mould No, etc and the confirmation no details).
Now check using this BAPI - BAPI_REPMANCONF1_CANCEL by passing the confirmation no in the input screen for this reversal
(assuming you have developed a screen for reversal) and write the coding logic in such a
way that if any confirmation number is called for this BAPI (taking from the already existing Z table) then after successful reversal
this entry should get deleted from the existing Z table(by linking the confirmation no entry alone) and populate it in a newZ table for
the reversed entries.
Check and revert back.
Regards
Mangalraj.S -
User exit for MFBF Transaction when we save the Transaction
Hi All,
I have a requirement like this I am generating batch numbers for MFBF Transactioin for this I have written code in the user exit 'EXIT_SAPLV01Z-002' this user exit will generate the Batch Number accordingly client requirement and update the batch number to the cust table which I have created,But now the issue is if we will not save the MFBF Transaction or it got some error and terminated the Transaction MFBF still the batch Number is updating to the custom table I want to find which user exit will trigger when we will save the docuement in the Transaction 'MFBF'?
Thanks&Regards
MaheshHi Mahesh,
Check these user exits.
PTRM0001 User Exit for Lead Column in REM Planning Table
SAPLRMPU Customer Exits for Material Staging
XMRM0001 User exits: Backflushing in Repetitive Manufacturing
No of Exits: 3 -
User Exit or BAdI available for transaction MFBF
Hi all,
Is there any BAdI or User Exit available for Trasaction MFBF to change the workcentre type? if possible could anyone help me out in figuring out the the Exit.
Answers will be rewarded
Cheers,
Prashanthcheck...
Enhancement/ Business Add-in Description
Enhancement
PTRM0001 User Exit for Lead Column in REM Planning Table
SAPLRMPU Customer Exits for Material Staging
XMRM0001 User exits: Backflushing in Repetitive Manufacturing
Business Add-in
CIF_RM_PPR_DISTRIB Distribution of Postprocessing Records in APO
FCO_CO_FUNCTIONS CO Functions for Failure Costs
FCO_CUSTOMER_SPECIF Failure Costs: Customer-Specific Enhancements
FCO_RM_FUNCTIONS Failure Costs: Enhancements in Repetitive Manufacturing Area
RM_HR_INTEGRATION HR Integration of REM Backflush
RM_LIST_PRODUCTION BAdI for Printing Production Settings
RM_MF50_ROWS BAdI for Hiding Lines in the Planning Table
RM_PERFORMANCE_DREQ Performance Improvement in New Distrib. of Dependent Reqmts -
Hi,
I am trying to use XMRM0001 user exit for MFBF transaction. But when I activate the project, MFBF starts bevaing weired in the way that all the figures entered in the fiedls get cleared automarcally.
Could anyone pls sugest me why it is happening and what is the correct way to use this user-exit?
RegardsHi Adhish Parakh,
I also faced the same problem as yours.
In your scenario, I guessed you used exit EXIT_SAPLBARM_001 (Customer Exit: RM_BACKFLUSH_CHECK) or at least, you created z-include for this.
After looking at SAP note, It said:
In all user exits which must also be activated for the activation of the enhancement project, all export parameters must be filled with the values of the Import parameters.
In the example: E_rm61b = i_rm61b.
So, even if you did nothing, add that assignment into z-include. And then it works. (at least in my case).
You can see note 165264 for more information
Best rgds,
Solaris. -
Hi all,
I want to change the value of quantity field using exit EXIT_SAPLBARM_002 of XMRM0001 but values are not getting updated.
is this the right exit or there exists any other exits
pls let me know
thanksHi Uday,
These are the exits and BAdi's available for this transaction.
When ever you want to know which exit is going to be triggered, you just pick that exit, inside the exit you will be provided with function module exit.
For example: EXIT_SAPLBARM_002 Here inside it you need to put a break point. then activate it.
For Example: break username.
If you put like this it only affects your login only. There wont be any disturbance for others who are working on the same server.
After that you activate it and run your trnsaction.
or give some inputs to it and save it.
So before that you need to check all the business flow that is either creating any order or some thing like that. At that time while pressing any button the function gets triggers.
If the exit you mentioned doesn't triggered, then go with other exits I have listed below. If it is not possible with this exit, then finally you should go with BAdi.
Enhancement
PTRM0001 User Exit for Lead Column in REM Planning Table
SAPLRMPU Customer Exits for Material Staging
XMRM0001 User exits: Backflushing in Repetitive Manufacturing
Business Add-in
RM_PERFORMANCE_DREQ Performance Improvement in New Distrib. of Dependent Reqmts
RM_MF50_ROWS BAdI for Hiding Lines in the Planning Table
RM_LIST_PRODUCTION BAdI for Printing Production Settings
RM_HR_INTEGRATION HR Integration of REM Backflush
RM_BFLUSH_GOODSMVT BAdI: Goods Movements in Backflush -Repetitive Manufacturing
FCO_RM_FUNCTIONS Failure Costs: Enhancements in Repetitive Manufacturing Area
FCO_CUSTOMER_SPECIF Failure Costs: Customer-Specific Enhancements
FCO_CO_FUNCTIONS CO Functions for Failure Costs
CIF_RM_PPR_DISTRIB Distribution of Postprocessing Records in APO
Reward points if it helps you.
Cheers,
Swamy Kunche -
Component Backflush (MFBF) - Process component list - User exit?
We do the goods issue of the component (Mvt: 261) using the option below;
"Component Backflush (MFBF) - Process component list". The users add the component directly in the screen entry "Process component list". But when they save, the requirement is to "add an additional packaging material internally say in a userexit or BADI". Is it possible to add another component automatically using userexit?
I tried the enhancements: XMRM0001 and also BADI for GOODSMVMT but no help. Any ideas? Appreciate your help. And expect a REWARD !!!! :):)
SriniWhen I hit 'SAVE' on "Process Component list" screen, it stops at EXIT_SAPLMBARM_002. But by that time the material document is already created
The process steps that I follow are as below:
1) MFBF
2) Choose radio button 'Component Backflush'
3) Click on 'Process component list'
4) Enter the Material 'M1', Plant and batch, Qty, Mvt: 261 and Hit enter
5) ...... NOW ..
6) BEGIN .. THE CUSTOM REQUIREMENT
"When there is M1 in the list, Add automatically 'P1' material with 531 Plus
"When there is M1 in the list, Add automatically 'P1' material with 261 Minus
7) END .. THE CUSTOM REQUIREMENT
8) So the resulting Material document (Goods Issue) will have 3 line items:
a) M1 261
b) P1 531
c) P1 261
Thank you somuch. You can call me too if you can: 813-504-7100. -
Hi Folks,
Users getting the frequent dumps in production systems. actaully we observed that dumps are coming when the users accessing the MFBF transaction manually when the batch job was running for backflush and NRIV (number ranges) table is getting locked.
The dump details is:
ABAP/4 runtime error DBIF_RSQL_SQL_ERROR
Occurred on 16.04.2007 at 15:57:10
>> Short dump has not been completely stored. It is too big.
SQL error 60 occurred when accessing table "NRIV ".
What happened?
The database system detected a deadlock and avoided it by rolling back
your transaction.
Information on where termination occurred
The termination occurred in the ABAP/4 program "SAPLSNR3" in
"READ_NRIV".
The main program was "SAPLBARM".
The termination occurred in line 231
of the source code of program "LSNR3F01" (when calling the editor 2310).
The error occurred during batch input processing
Source code extract
002010 NRIV-TOYEAR = BNRIV-TOYEAR.
002020 G_FOUND = YES.
002030 WHEN 4.
002040 WHEN OTHERS.
002050 G_ERROR_IN_BUFFER = YES.
002060 ENDCASE.
002070 ENDIF.
002080
002090 IF BUFFER_ACTIVE = NO OR G_ERROR_IN_BUFFER = YES.
002100 * Die Pufferversion ist nicht aktiv oder es wurde bereits
002110 * ein Fehler im Puffer oder NrKreisServer festgestellt.
002120 * Gⁿltiges NrKreisIntervall mit Bis-GeschΣftsjahr aus der
002130 * DB ermitteln
002140 *
002150 SELECT * FROM NRIV WHERE OBJECT = P_OBJECT
002160 AND SUBOBJECT = P_SUBOBJECT
002170 AND NRRANGENR = P_NR_RANGE_NR
002180 AND TOYEAR >= P_TOYEAR
002190 ORDER BY PRIMARY KEY.
002200 G_FOUND = YES.
002210 EXIT.
002220 ENDSELECT.
002230 ENDIF.
002240
002250 IF G_FOUND = YES.
002260 * Intervall lesen, um zu sperren
002270 SELECT SINGLE FOR UPDATE * FROM NRIV WHERE
002280 OBJECT = NRIV-OBJECT
002290 AND SUBOBJECT = NRIV-SUBOBJECT
002300 AND NRRANGENR = NRIV-NRRANGENR
> AND TOYEAR = NRIV-TOYEAR.
002320 IF SY-SUBRC <> 0.
002330 MESSAGE E751 RAISING INTERVAL_NOT_FOUND WITH P_OBJECT
002340 P_NR_RANGE_NR.
002350 ENDIF.
002360 ELSE.
002370 MESSAGE E751 RAISING INTERVAL_NOT_FOUND WITH P_OBJECT
002380 P_NR_RANGE_NR.
002390 ENDIF.
002400 ENDIF.
002410
002420 IF NRIV-EXTERNIND <> SPACE.
002430 MESSAGE E752 RAISING NUMBER_RANGE_NOT_INTERN.
002440 ENDIF.
002450
002460 * LΣnge (maximale Anzahl Stellen) der Nummern berechnen
002470 G_NR_LENGTH = STRLEN( NRIV-FROMNUMBER ).
002480
002490 * Nummern in numerische Felder fⁿr spΣtere Berechnungen ⁿbernehmen
002500 ASSIGN NRIV-FROMNUMBER(G_NR_LENGTH) TO <G_F>.
Contents of system fields
SY field contents..................... SY field contents.....................
SY-SUBRC 0 SY-INDEX 1
SY-TABIX 1 SY-DBCNT 1
SY-FDPOS 32 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1
Chosen variables
Any help will get full points.
Regards
TAJUDDINHi Prabhu,
This problem is in 3.1i for which there is no SAP note. Notes are available for 4.6c.
Is there any possibility that we can modify the SAP note of 4.6c and implement in 3.1i?
Regards
TAJUDDIN -
Hi Folks,
Users getting the frequent dumps in production systems. actaully we observed that dumps are coming when the users accessing the MFBF transaction manually when the batch job was running for backflush and NRIV (number ranges) table is getting locked.
The dump details is:
ABAP/4 runtime error DBIF_RSQL_SQL_ERROR
Occurred on 16.04.2007 at 15:57:10
>> Short dump has not been completely stored. It is too big.
SQL error 60 occurred when accessing table "NRIV ".
What happened?
The database system detected a deadlock and avoided it by rolling back
your transaction.
Information on where termination occurred
The termination occurred in the ABAP/4 program "SAPLSNR3" in
"READ_NRIV".
The main program was "SAPLBARM".
The termination occurred in line 231
of the source code of program "LSNR3F01" (when calling the editor 2310).
The error occurred during batch input processing
Source code extract
002010 NRIV-TOYEAR = BNRIV-TOYEAR.
002020 G_FOUND = YES.
002030 WHEN 4.
002040 WHEN OTHERS.
002050 G_ERROR_IN_BUFFER = YES.
002060 ENDCASE.
002070 ENDIF.
002080
002090 IF BUFFER_ACTIVE = NO OR G_ERROR_IN_BUFFER = YES.
002100 * Die Pufferversion ist nicht aktiv oder es wurde bereits
002110 * ein Fehler im Puffer oder NrKreisServer festgestellt.
002120 * Gⁿltiges NrKreisIntervall mit Bis-GeschΣftsjahr aus der
002130 * DB ermitteln
002140 *
002150 SELECT * FROM NRIV WHERE OBJECT = P_OBJECT
002160 AND SUBOBJECT = P_SUBOBJECT
002170 AND NRRANGENR = P_NR_RANGE_NR
002180 AND TOYEAR >= P_TOYEAR
002190 ORDER BY PRIMARY KEY.
002200 G_FOUND = YES.
002210 EXIT.
002220 ENDSELECT.
002230 ENDIF.
002240
002250 IF G_FOUND = YES.
002260 * Intervall lesen, um zu sperren
002270 SELECT SINGLE FOR UPDATE * FROM NRIV WHERE
002280 OBJECT = NRIV-OBJECT
002290 AND SUBOBJECT = NRIV-SUBOBJECT
002300 AND NRRANGENR = NRIV-NRRANGENR
> AND TOYEAR = NRIV-TOYEAR.
002320 IF SY-SUBRC <> 0.
002330 MESSAGE E751 RAISING INTERVAL_NOT_FOUND WITH P_OBJECT
002340 P_NR_RANGE_NR.
002350 ENDIF.
002360 ELSE.
002370 MESSAGE E751 RAISING INTERVAL_NOT_FOUND WITH P_OBJECT
002380 P_NR_RANGE_NR.
002390 ENDIF.
002400 ENDIF.
002410
002420 IF NRIV-EXTERNIND <> SPACE.
002430 MESSAGE E752 RAISING NUMBER_RANGE_NOT_INTERN.
002440 ENDIF.
002450
002460 * LΣnge (maximale Anzahl Stellen) der Nummern berechnen
002470 G_NR_LENGTH = STRLEN( NRIV-FROMNUMBER ).
002480
002490 * Nummern in numerische Felder fⁿr spΣtere Berechnungen ⁿbernehmen
002500 ASSIGN NRIV-FROMNUMBER(G_NR_LENGTH) TO <G_F>.
Contents of system fields
SY field contents..................... SY field contents.....................
SY-SUBRC 0 SY-INDEX 1
SY-TABIX 1 SY-DBCNT 1
SY-FDPOS 32 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1
Chosen variables
Any help will get full points.
Regards
TAJUDDINDear All,
Notes are available for 4.6c version. This problem is in 3.1i and for this there is no note. Can we modify this 4.6c note and use in 3.1?
Regards
TAJUDDIN -
Restrict Users for Deletion of Components in MFBF
Dear All,
How to restrict users from deleting components in post with correction screen in MFBF in REM?
Regards,
TejasDear Tejas,
Check this link
[Deleting components in MFBF|Deleting BOM components, while backflushing in REM]
Apart from this you can go for a screen variant,as per to my knowledge i dont think you can restrict
through an user exit.
Regards
Mangalraj.S -
GI(Goods Issue) for serialized component in mfbf transaction
In transaction MFBF when we press save after entering planned order and backfluish quantity it asks for serial numbers for the main component but if there are serialized componets in compoents tab it throws error on saving ,the requirement form my customer is like that if there is a serialized component in component list its pop up should come and asking for serial numbers and its GI should happen
hi santhosh
kindly check the order type .i think you are using MB1A for refurbishment process.but it is not possible.only maintenance order can be posted via MB1A
follow the procedure for goods issue in refurbishment order.
Choose Logistics ® Plant maintenance ® Maintenance processing ® Completion confirmation ® Goods movement ® Goods movement.
The entry screen for a goods issue appears.
Choose the pushbutton For order.
Enter the relevant order number in the dialog box and choose Continue.
An entry screen appears.
Choose Copy.
The Maintain Serial Numbers dialog box appears.
Choose Reference document.
Enter the order number in the Refurbishment order group box and choose Execute.
A list appears with the planned serial numbers for the refurbishment order.
Check the selections of serial numbers, for whose material you want to post a goods issue, and choose Copy.
The serial numbers are copied into the Maintain Serial Numbers dialog box.
Choose Exit window.
The goods issue is posted.
regards
thyagarajan -
User Exit or BAPI for Auto Backflush
Hi,
We have a requirement like-
In backflush transaction (MFBF) for finish good we have many dependant materials that also need to be backflushed individually. To avoid this manual backflushing one by one we want to automate the process with the help of user exits available in SAP.
Is there any User-Exits or BAPI by which we can acheive the above process automatically. Need some examples
Thanks & Regards
AKHi,
For MFBF there are sollowing user-exits....
XMRM0001 - Backflushing in Repetitive Manufacturing.
PTRM0001 - For lead column in REM planning Table.
SAPLRMPU - Customer Exit for Article Staging.
Reward points if useful....
Regards
AK -
Hi,
I have to add one field under tab Make-To-Stock in MFBF transaction
Pls suggest me.
Thanks in advancehi,
check according to ur requirement
Enhancement
PTRM0001 User Exit for Lead Column in REM Planning Table
SAPLRMPU Customer Exits for Material Staging
XMRM0001 User exits: Backflushing in Repetitive Manufacturing
Business Add-in
RM_PERFORMANCE_DREQ Performance Improvement in New Distrib. of Dependent Reqmts
RM_MF50_ROWS BAdI for Hiding Lines in the Planning Table
RM_LIST_PRODUCTION BAdI for Printing Production Settings
RM_HR_INTEGRATION HR Integration of REM Backflush
RM_BFLUSH_GOODSMVT BAdI: Goods Movements in Backflush -Repetitive Manufacturing
FCO_RM_FUNCTIONS Failure Costs: Enhancements in Repetitive Manufacturing Area
FCO_CUSTOMER_SPECIF Failure Costs: Customer-Specific Enhancements
FCO_CO_FUNCTIONS CO Functions for Failure Costs
CIF_RM_PPR_DISTRIB Distribution of Postprocessing Records in APO
Yogesh N
Maybe you are looking for
-
Siri in other languages?when?
Hello there from Greece.I just bought an iphone 4s.Unfortunately I realized that Siri ιs not working in GREEK.Please tell me if and when Siri will operate on my language?Maybe a release date? Thank you
-
Everyone says do you have filters on your iPhone and I say no and it's suppose to come with iOS 7.0.4 isn't it?
-
RAW Processing with Canon 5D Mark iii
Since upgrading to Aperture 3.3.1 I started to notice a huge decrease in the sharpness of my images. I have checked previous threads and followed up on my Highlight Tone priority settings as well as Post Import Raw Process setting. Having messed arou
-
A stupid question about the new mac pro
I know the mac pro has dual ethernet ports, but does it also have wifi built in? Or do I actually have to plug it tonto my router? Sorry for the perhaps obvious question. PS. As a point of interest, I received mine yesterday. There was NOTHING inside
-
Heads Up on Access Issues?
I am assuming -- and may be wrong -- but it appears as though the iTMS being down is causing iTunes U to be down as well? I didn't see any announcements to that effect ... here at PSU we were set to do a demo and faculty training session this morning