MRP Run with User Exit key for Follow up material
Dear Gurus,
I want to run MRP only for followup materials by using User exit key. For example i have a material X(with discontinued Indicator as 1) and it's follow material is Y.
So we have a user exit key as ZFL, with coding as shown below. Now when i run MD01 with user exit key ZFL and parametre as 1, it only runs MRP for material X and not for material Y. What else we need to do so that when i run MD01 with user exit key ZFL, it shoudl consider both X and Y.
WHEN 'ZFL'.
DATA : BEGIN OF ITAB5 OCCURS 0,
KZAUS LIKE MT61D-KZAUS,
END OF ITAB5.
TRANSLATE USER_PAR TO UPPER CASE.
SPLIT USER_PAR AT ',' INTO TABLE ITAB5.
IF ITAB5[] IS INITIAL.
EXIT.
ENDIF.
CLEAR: NO_PLANNING, STOP_PLANNING.
READ TABLE ITAB5 WITH KEY KZAUS = MT61D-KZAUS.
IF SY-SUBRC <> 0.
NO_PLANNING = 'X'.
ENDIF.
Hi Kumar,
You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
Thanks
Similar Messages
-
Problem in MRP planning with user exit key
Hi All,
I have a requirement like this..
we have 1000 FG in our plant.. out of which they want to plan only 250 FG's through MRP run collectively...when they do MRP run system should plan only these 250 FG's and also down level materials ( components ) of these 250 FG's ..
So I proposed to use user exit key in MD01 screen by activating user exit M61X0001 and these 250 FG 's are identified with a separate MRP group in material master and developed enhancement..
But when I do MRP run in MD01 with this user exit key, system only planning those 250 FG's but not planning down level materials or components of these 250 FG's.. is this standard behavior.. can somebody guide me how solve this issue..
Thanks
KumarHi Kumar,
You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
Thanks -
User exit needed for KDMAT (customer-material number )
Hi! I need to find a user exit for filling in the customer-material number (KDMAT) in the Sales order. If there is not a cutomer material info record, the filed should be filled in with the Old material number from the Material master (MARA-BISMT). Does anyone knows such a user-exit.
ThanksYou can try with any of the following sale order user exits
- User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
- User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAP
- User-Exits in program MV45AFZB - USEREXIT_CUST_MATERIAL_READ
thanks
G. Lakshmipathi -
Problem with user exit EXIT_SAPLIEDI_001 for Inbound Idocs in replacing G/L
Hello all,
I am currently facing an issue where my IDOC where exit EXIT_SAPLIEDI_001 is not appearing to work properly.
Basically I am using the FM that processes the inbound idoc (IDOC_INPUT_INVOIC_FI) to post an accounting document. We needed a solution where we need to substitute one of the G/L Accounts.
The current process in our SAP system is that we are creating a billing document which automatically generates the output type (running: program rsnasted subroutine edi_processing) to create and process the inbound idoc.
So I discovered FM EXIT_SAPLIEDI_001 which exports company code and G/L Account back does this.
In this exit, Since I needed to get data from the IDOC, I used the logic ASSIGN: ('(SAPLIEDI)IDOC_DATA[]') TO <fs_edidd> to get the DATA Records for further processing.
During the development and testing phase in the Sandbox system this works.
However when we moved this to production we encountered a situation where the G/L account was not being substituted so were assuming EXIT_SAPLIEDI_001 is not working properly. However when I reprocess this in production either by running the idoc with errors RBDMANI2 or BD87 the IDOC is properly posted and the G/L Account is substituted as well as if I try to repeat the output type of the billing document. So there are instances when in the actual business scenario it does not work except when I reprocess it.
I was wondering if there are any ideas why this could have happened?
Oh ... I also noticed when we transported the objects of the exit. When I try to double click the subroutine I made inside the exit it said the object does not exist. I had to generate the function group of FM EXIT_SAPLIEDI_001 in SE80 in production for it to reflect. I was wondering if this could have caused the issue.
Well I hope to hear from you.
Regards
Edited by: Rob Burbank on Dec 6, 2011 1:03 PMHi,
Check in t.code CMOD whether project is active or not (Activate the Project)
BR,
Vijay -
Hi Gurus,
I have coded in user exit: M61X0001 which do some checking for MD01 - MRP for Collective items and I want this checking also can be applied to MD03 - MRP for Single item. I would like to ask if it is possible to use "User exit key" in transaction: MD03 - MRP for single item?
Another question:
I would like to control the stock level by certain criteria. Let say, total planned stock from MRP for a material cannot exceed certain limit set by a company.
eg.
Material XYZ - Overall qty can be order for 3 plants below set by company = 5 pcs
If MRP run by plant individually, I will obtain the following result:
Plant A - MRP planned for 2 pcs
Plant B - MRP planned for 2 pcs
Plant C - MRP planned for 2 pcs
How to prevent only 5 pcs being order instead of 6 pcs?
Pls advise asap.
Thanks & regards,
LoiHi Gurus,
I had defined "Scope of planning" in the Customizing for MRP activity "Define Scope of Planning for total planning".
But when I tried to run the scope of planning through MD01, the system prompt me with error message - "Please check the destinations for parallel MRP", pls advise for the solution.
If group together several plants (let say, plant 1010, 1011, 1020, 1030) under one MRP run (scope of planning = Z01), is that means I will only get one planning output that group under Z01? Pls advise.
Thanks & regards,
Loi -
Hi,
What all things to take care for MPS with MCI user exit key??
The requirement is -we need to run MPS for few material s in a plant (distribution). Can we do that by assigning diff MRP controller into those materials for whcih we need to run MPS.
Regards
DinabandhuUsing the user exit you can write your own way of requirement. Any required combination is possible.
-
Please help me with user-exits or baids for TCode : FOE2 & FOE1
Hi Experts
Please help me with user-exits or baids for TCode : FOE2 & FOE1.
I found these but not picking values from VIMI01,VIOB03 and VIOB41.
User-exits
FVCH0001 CH-specific enhancements: Esp. POR
ISRE0001 Determine bank procedure account no.
ISRE0002 IPD reporting data retrieval
Business Add-in
FVD_HANDLE_FORMULA Processing of Condition FormulasHi,
ASk your basis regarding the CI_CSKB table active issue, and first of all i dont see any table with the name CI_CSKB.
And check this exit-COOMKS03 whether it works for your screen exits.
Cheers!!
VEnk@
Edited by: Venkat Reddy on Nov 4, 2008 5:59 PM -
Does User exit exsist for the following transaction
i want to ask that does user exit exsist for the following transaction code
IK01
IK02
IP42
what data they fetch ?
Edited by: Iftikhar Qayyum on Feb 21, 2008 9:40 PMi want to ask that does user exit exsist for the following transaction code
IK01
IK02
IP42
what data they fetch ?
Edited by: Iftikhar Qayyum on Feb 21, 2008 9:40 PM -
Hi all,
I'm facing a typcial problem
In MDBT -processing key is maintained as NETPL
There are 3 materials say
1.A
2.B
3.C
For all three materials NETCH is marked in the planning file entry & NETPL is blank in MD21
When i go for MRP run via MDBT then no proposal is raised for A & B,where as for C i'm getting a proposal
All three has requirement -Exected result is Planned order
Initially i thought NETPL is not active in MD21 & that is the reason i'm not getting any proposal
but i'm shocked to see proposal for material C
MRP is run with processing NETPL
Will the material marked for NETCH also be included in the run or only those materials which are marked for NETPL only will be included ?
If yes for 1st question then i feel there is a logical difference
If yes for 2nd question then why should i get proposal for material C?
Please clarify me
SVP
Guys pls respond
Edited by: SVP on Jan 8, 2009 3:55 PMHi Vishal,
Thanks for pointing out user exit key,i didnt noticed that,In one the variants user exit key is maintained ,MRP controller selection (CTL)
& user exit paramter also is maintained as 100 in one variant & in another as 001-099,101-500
How is this normally defined?What doen tis mean
In first case(100) does it mean that run only for thos matrials which have MRP controller as "100"
In second case rund for all materials with MRp controller (001-0990 & 101 to 500 I'm not usre on this
If yes pls let me know where we define this whole thing
Like MRP controller selection is defined as CTL -but what does it mean,where are the actual conidtions written
Very basic question may be but i'm not aware fo this,pls let me know
Once again thanks a lot for giving the lead
SVP -
User-Exit/ Enahncement for LT03
Hi All,
I have a requirement like this:-
In case you have a partial picking a TO(TA Code-LT03) will also need to get the information, which Storage Unit type can be used.
The Functionallity needs to be extended for partial pickings. A partial picking is existing, when not a full pallet is picked
I need a enhancement which should determine the Storage Unit Type (SUT) based on the following logic
If storage unit type "PAL" (LTAP-LETYP) is being determined within the Transfer Order. and if LTAP-VSOLM = MLGN-LHMG1 then
LETYP = MLGN-LETY1 or if MLGN-LHMG1=9.999.999.999 then LETYP = MLGN-LETY1.
I tried with User Exit MWMTO007 and MWMTO001.
For MWMTO007, it did not trigger and for MWMTO001, data is not being changed.
Can anybody suggest any user-exit/enhancement?
Regards
SouravHi Priyanka,
First do you know when this exit gets triggered(Transaction).
If you know then inside the exit click on INCLUDE ZXLTOU10
then press enter. Put a break point there.
run the transaction. It will stuck up there.
You will get values in I_LTAP and I_LTAK.
Then write .
select
LGNUM
LQNUM
MATNR
WERKS
CHARG
LGTYP
LGPLA
PLP0S
GESME
VERME
K0BER
VBELN
POSNR
from LQUA into corresponding field of T_QMAT
where lgnum = i_ltak-lgnum.
Regards
Sandipan
Edited by: Sandipan Ghosh on Aug 27, 2008 2:00 PM -
To find out appropriate user exit/ badi for transaction VT01n
Hi,
I have the following requirement.
Cass shipment type (VTTK-ADD03) field needs to be required and should be automatically populated upon creation of the shipment document. The rules for populating the value (SO, ST, PO and RA) are as follows:
If any of the orders on the shipment are customer order types, then the CASS shipment type should be a SO,
If all of the orders are STO orders, then the Cass shipment type should be "ST",
If all of the orders are PO orders, then the Cass shipment type should be "PO" , and
If all of the orders are customer return orders, then the Cass shipment type should be "RA".
I have to find out proper user exit / badi to do this.I have tried with many userexit but it won't work.
Thanking in advance to give your suggestion in order to resolve it.
With regards,
Ajit.Hi this code will enable you to find the user exit for any transaction . Just give the transaction as input
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
*---End of Program
Just for your information the User exits available for VT01n are
MV56AINI Initialization of transaction control for transportation
V56AFCCH Shipment processing: Check function code allowed
V56AGTAR User Exit for Filtering Shipping Unit Calculation
V56ARCHV Customer-spec. checks for archiving shipments
V56ATKTX Change the number of lines for text input in shipment
V56BMOD Transportation processing: Field modification
V56DISTZ Shipment Processing: Determine Distance
V56FCOPY Shipment processing: Copy delivery data
V56FSTAT Shipment processing: Activities when setting a status
V56L0001 Status of Shipments for a Delivery
V56LDELI Read Delivery Data for Shipment Processing
V56LOCID Shipment Processing: Determine Location Identification
V56MVT04 Extensions for Collective Processing of Shipments
V56SLDET Shipment processing: Leg determination
V56TDLIF Filter Delivery Items for Shipment
V56UCHCH Shipment processing: Check whether changes were made
V56UCHCO Check shipments are complete
V56UDLUP Obsolete as of 4.6C: Delivery Update on Delivery Routines
V56UNUMB Shipment number allocation
V56USTAT User-individual definition of transportation planning status
V56USVDO Update new objects for transport
V56USVDP Preparation for updating new objects for transport?
Award points if helpful..
Thanks -
Request for info. on USER EXIT/BADI for FB60
Hi,
This is with reference to FB60 user exit/badi for with holding tax.I want to use the customized table for withholding tax.
]Please guide some alternative solution rather than user exit and badi.
I dont think the following user exit and badi are used for withholding tax.
I done some analysies.I didnt find any user exit/badi related to withholding tax.I found the following
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
FEDI0001 Function Exits for EDI in FI
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
SAPLF051 Workflow for FI (pre-capture, release for payment)
Badi
FQST_CALC_COUNTRY,FQST_CIN_WITHITEM are related with withholding tax and they are for country specific such as India.
Every expert answer will be rewarded.
Thanks in advance
CraTry Business Transaction Events. Transaction code BERP.
Regards,
Zoltá -
User Exit / BADI for TCODE PSV1
Hi
Can any body let me know the BADI / User Exit Name for tcode PSV1 Scenario is as under
when ever Business event created with resource in PSV1 , I need to send data to other system at the time of creation.
Regards
AmmadHi,
Execute transaction SE24
Give class name CL_EXITHANDLER
Open GET_INSTANCE method.
Set a break point below line
CALL METHOD cl_exithandler=>get_class_name_by_interface
Now run trasaction PSV1, and your control will break at each BADI(If any), exit name and instance will give you the BADI details.
I think this is one of the simplest way.
Thanks -
Problem with User Exit parameter in MD01
I have done the coding for user exit in MD01. But the exit is not being triggered even when the exit key is specified in the selection screen of the transaction.
I need to control the material being planned and restrict it to type ROH only.
Please help me... I need to do this fastHi Sultana,
The user exit key is stored in table T450U. But the user exit parameter is not stored. Instead, it is entered in the selection screen of MD01.
Also, You can check the following Transaction codes if they help you to solve yor problem:
MD20 - Create planning file entry
MD21 - Display planning file entry
MDAB - Set up planning file entry in background
MDRE - Check planning file entry
Hope it helps. -
MEREQ001 User Exit Problem for ALV Columns.
Hello,
I am using this user exit to make changes to the Purchase requisition enjoy transaction. There is an ALV used for item details and if you use the customer CI_EBANDB include in EBAN table you can see those fields available in the alv and you can add them up using change layout.
To make these fields editable as they remain in display always inspite of the fact that you use ME51n or ME52n.
MM --> Purchasing --> Purchase Req -->Define Scree Layout at document level.
is the configuration required as per a previous mail thread in the forum. However when i go to spro i am not able to see those new fields which i have added for KEY FIELD selection. Am i missing something or has anybody before done this... Could anybody guide me with the step by step process.
Regards,
Shekhar KulkarniHello,
In 46C, I checked and found no user exits / BADIs for your requirement. If you are very keen of this feature, may be that you have to modify the SAP standard. Not a good option.
Regards, Murugesh AS
Maybe you are looking for
-
From database to drop down box
Hi all, Suppose I have the following String query ="Select name, number from Person"; I want to put all the "names" in a drop down box and all the "numbers" in a separate drop down box. When I do this: while(rs.next()){ <select="person" onchange="sho
-
Printing in iCal 1.5.5
Is there a way in iCal for Panther to print the notes in the calendar event? Not the task list. Either just that event or all events in a month with the notes included.
-
ORABPEL-02052 and cannot add a new domain
Hi, I develope a very simple BPEL processes and ant it. But it shows error ORABPEL-02052. I add <property id="optSoapShortcut"> <name>Make Calls Via Soap Stack</name> <value>true</value> <comment><![CDATA[ Make Calls Via Soap Stack. <p/> The default
-
Is it possible to pre-order the iPhone 5 and schedule pick up at an Apple Store on 09.21.2012?
-
Can a filename be built from vairables?
Hi there, Another question from me: when creating an output flat file using my custom OTD's, can I build a unique filename using values from variables like %d for the date, %t for time, etc? And can I also fill a variable from the data in that file,