Purchase Req user exit
I am having difficulty entering a user exit, M06B0002, function EXIT_SAPLEBND_001 include ZXM06U13. It should allow me to set CEBAN-USRC1 a user field which would allow me to determine the release strategy using this as a classification.
The system works fine for user exit M06B0001 which allows the person in workflow responsible to be determined. But this does not allow me to manipulate field USRC1.
I have added the enhancement M06B0002 to project Z06B0001 which already contains M06B0001 and activated the enhancement. Include ZXM06U13 has been activated as well, yet a breakpoint in the code is not hit.
Any suggestions?
The release strategies have been configured (in DEVL) the coding is in place, and the correct release codes are listed. I have even got the substitution to work. However, if I change the document type before saving, it fails to re-evaluate the new release strategy. Since this is a mistake that many users will make, I need to determine why this is so. Debugging has shown that it is re-determining personnel in ZXM06U12, but this would be after the strategy had been determined. ZXM02U05 verifies the customer fieldsand the flag EX_RECHECK_ITEM is being set. I have checked SAP Notes. Any ideas?
Similar Messages
-
Purchase Order User Exit (ME21N)
Hello experts,
I have a request to enhance SAP for authorization when a user creates a PO (ME21N)that all of the line items have the same purchasing group as the what is in the header, or it cannot be created.
Anybody have any idea what exit this would be in?
Thanks.Hi Tom,
Here are the user exits available for ME21N.
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
For your case, please check <b>MM06E005</b> or you can try BADI <b>ME_PROCESS_PO_CUST</b>.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
Purchase order : user-exit to fill new field in table EBAN
Hi,
in EBAN table i created a new field named ZTYPE_SITE. Now i would like to fill this field when i save my purchase requisition. I don't found the user-exit or BADI to do that.
Thanks for help.
Cheers.up
-
Create Purchase Order : User Exit
Hi,
When creating a Purchase Order, before saving it, I want to check the line items for certain conditions and want to check or uncheck the Goods Receipt indicator based on the condition.
Could someone please let me know the user exit for this. I would really appreciate your help.
Thank You,
RekhaHere is a program which shows you user exits by transaction code. Implement the program, run it, and enter the transaction code, hit F8. This will give you a listing of exits. Look thru them, look at the function modules tied to them and look at the FM signature to see if your data is available. I don't know for sure if any will actually update a value.
report z_find_user_exit no standard page heading.
tables: tstc, tadir, modsapt, modact,
trdir, tfdir, enlfdir, tstct.
data : jtab like tadir occurs 0 with header line.
data : hotspot(30).
parameters : p_tcode like tstc-tcode obligatory.
at line-selection.
get cursor field hotspot.
check hotspot(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
start-of-selection.
perform get_data.
perform write_list.
* FORM get_data *
form get_data.
select single * from tstc
where tcode eq p_tcode.
check sy-subrc eq 0.
select single * from tadir
where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
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.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = tadir-devclass.
select single * from tstct
where sprsl eq sy-langu
and tcode eq p_tcode.
endform.
* FORM write_list *
form write_list.
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.
endform.
Regards,
Rich Heilman -
Regarding Purchase order User-exit
Hello friends,
Here is the situation.
when we create purchase order ... I need to modify the planned delivery field value under delivery tab at item level.
For this I found user exit. 'EXIT_SAPMM06E_016' and I have written the logic in the include program.
when I tested in debbugmode... the cursor is not at all comming to that point. It was failing always at the function module 'MODX_FUNCTION_ACTIVE_CHECK'.
I don't know alwys active field showing blank. I think we need to activate the user exit some where. how to do and where to do?
plese help me ..
extract the code --from include program MM06EF0C_CUSTSCR1_ITEM_SET_D03
User-Exit für Positionsfelder versorgen (PBO)
FORM custscr1_item_set_data_pbo USING im_no_screen LIKE fc_call.
DATA: l_enj_call TYPE c.
STATICS: first_call(1) TYPE c VALUE 'X',
active LIKE sy-calld.
IF NOT first_call IS INITIAL.
CLEAR first_call.
CALL FUNCTION 'MODX_FUNCTION_ACTIVE_CHECK'
EXPORTING
cprogname = 'SAPMM06E'
funcnumber = '016'
IMPORTING
active = active
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF NOT sy-subrc IS INITIAL.
CLEAR active.
ENDIF.
ENDIF.
CHECK NOT active IS INITIAL. ==========================> always active sowing blank
IF fc_vorga EQ cva_en.
l_enj_call = 'X'.
ELSE.
l_enj_call = space.
ENDIF.
*-Define Fields:
DATA: l_ci_ekpo LIKE ekpo_ci,
lt_usr_tekpo LIKE bekpo OCCURS 0,
lt_usr_teket LIKE beket OCCURS 0,
lt_usr_tekkn LIKE ekknu OCCURS 0,
lt_usr_tkomv LIKE tkomv OCCURS 0.
*-Copy Tables:
MOVE-CORRESPONDING ekpo TO l_ci_ekpo.
lt_usr_tekpo[] = pot[].
lt_usr_teket[] = ett[].
lt_usr_tekkn[] = knt[].
lt_usr_tkomv[] = tkomv[].
*-User Exit
CALL FUNCTION 'EXIT_SAPMM06E_016'
EXPORTING
i_ekpo = ekpo
===============
thanks in advance
Regards
RaghuHi Raghunath
I hope you have included your enhancement in a project and activated the project.
1-Needed help
2-SMOD and CMOD
Hope it is helpful.
Regards
Neha -
Purchase requisition User Exit/BADI
I am creating a Purchase Requisition using MRP. (Transaction MD50). I am looking for an user exit or BADI which allows me to change Purchase Requisition line item before the Purchase requisition is saved.
Thanks in Advance.Hi,
Here there are 2 User Exits that may be usefull
LMDR2001 User exits restr. profiles of opt. pur.ord.-based load bldg
LMDZU001 User exits in additional planning
Rgds
FC -
Outbound Purchase order user exit EXIT_SAPLEINM_002 help
Hi,
Can somebody tell me how to stop the IDOC processing if the conditions are not met? My detail question is
I am modifying the data in the outbound IDOC (IDOC_OUTPUT_ORDERS) for purchase order. I am using the user exit EXIT_SAPLEINM_002 to modify the segment data.
But I would like to know how to stop for creating the IDOC if one of the condition will not met (for example if there is no data in Ztable while fetching then IDOC should not be created )?
If the condition will fail I don't want to create the IDOC but Purchase order has to create in R/3.
Any suggestions on my above query is highly appreciable.
Regards,
NoorulHi
The purchase order should always be created because it's created before creating the IDOC, I suppose it will be created by a particular message.
Have you tried to raise the exception DATA_NOT_RELEVANT_FOR_SENDING?
Max -
Purchase order user exit / BADI / Enhancement points
Hello experts,
Please Help me to get the user exit or any way to enhance the PO functionality. I am trying to set the PO line item status to "Blocked" or "Unblocked" whenever a change is triggered in PO line item for transactions Me21N / Me22N. The blocked status will be triggered by the custom enhancement, this is the requirement.
Thanks in advance for your help.
I tried the user exit MM06E005, but not working.
- NagarajanHello Nagarajan Ramudu,
inside of MM06E005 you should try the function module EXIT_SAPMM06E_012,
i'm using this user-exit from all things in my company.
Regards,
Welinton Rocha -
Hello Firends,
I am unable to find suitable user exit. My requirement is whenever a new PO is created from Preq,the system should check a Z table where certain material/Sloc combinations are allowed. If combination is not maintained in z table, error message should be diaplayed and PO should not be created.
Please advise.
SanjayDear Sanjay,
You want to find User Exits its very simple, please do this way
Go to 'SMOD' and give here enhancement name and click Test or F8
if you dont know Enhancement name press F4 and give package "ME" press enter and here so many exit names displays select relavent and press test or F8 inside of that exit your user exit will appear
Hope this may helps you
Prem. -
Read Items in Purchase requisition User exit in ME52n
Hi,
I'm trying to read the items of a PR from the UserExit EXIT_SAPLEBND_001 (I want to read the screen in ME52N).
Can anybody tell me how to do this ?
ThanksHi, Ramesh.
I'm using the I_CEBAN structure in order to modify some characteristic in the release strategy, by item, but in that step (into the exit saplebnd_001), I need to access to the rest of the items to complete the necessary process for my application.
I can't find out the entire items table.
The CEBAN comunication structure, only include the current item.
I'd appreciate any ideas.
Thank you, very much.
Alejandro -
Hello,
I need to add a custom field to the PR transaction. I have added the field to screen 111 of Function group XM02, added the custom field in the able EBAN under the include structure "CI_EBANDB", coded function exit EXIT_SAPLMEREQ_003. For the custom field added there is no information coming in "im_req_item" in the function exit. What structure do I need to pass my custom field value in PROCESS AFTER INPUT for "im_req_item" to be populated with the value of the custom field.
Any help would be appreciated.
Thanks,
ALAM.hi,
do in this process .......
go to the screen in se80 ......create a module in PAI event....
do catch the values there in to some variables (of your custom fields ...)
--> export them to memory id using export statement......
--> inside the exit EXIT_SAPLMEREQ_003 get those values
into some variables from the memory id ..........
--> now get the line item data into some strucutre reading from the meothd GET_DATA ....
--> in this way
data : re_data type REQ_ITEM.
CALL METHOD im_item->get_data
RECEIVING
RE_DATA = RE_DATA.
now the data comes into re_data....do check in debug mode .....now pass the custom fields which you have imported from memory id (which been added to eban strucutre.....)which will be seen in re_data (structure).....
--> next call metod
CALL METHOD im_item->set_data
EXPORTING
IM_DATA = RE_DATA. -
Purchase requisition, user-exit before save
Hi,
my need is very simple, when i save my purchase requisition i need to access in modification to items (standard fields) of my document.
I'm looking for a few days on SDN or Google but without success, the question has often been discussed but the answers are not accurate or some people say "try this or this" but it doesn't work.
There was an answer to use the Badi ME_PROCESS_REQ_CUST, but all these methods do not suit me. Some people proposes to use the method PROCESS_ITEM or POST. For the first i need to work with global items not line by line and in the method POST i do not have access to lines.
So can you help me ?
Cheers.>
Vinod Kumar wrote:
> Explore the options available in badi ME_PROCESS_REQ_CUST (check methods CHECK & POST). In both these methods, importing parameter IM_HEADER (type ref to IF_PURCHASE_REQUISITION) can be used to extract all PR related data. See interface method IF_PURCHASE_REQUISITION->GET_ITEMS for item level information.
>
> I would suggest you to search for available Wiki pages/ forum posts to get more information.
Hi Vinod,
thanks for your reply.
I found this wiki http://wiki.sdn.sap.com/wiki/display/ABAP/AccessingtheInacessible-LocalClasseswithinGlobalClasses
I need some help, i would like in method POST change items data (standard), i don't have some success.
My code :
METHOD if_ex_me_process_req_cust~post.
DATA: l_item_list TYPE mmpur_requisition_items,
l_item TYPE mmpur_requisition_item,
l_item_akt TYPE mereq_item,
l_item_ref TYPE REF TO if_purchase_requisition_item,
lo_obj TYPE REF TO object, " root object
ld_attr TYPE string.
FIELD-SYMBOLS:
<lo_lcl> TYPE ANY,
<ls_item> TYPE mereq_item,
<ls_itemx> TYPE mereq_itemx,
<item> TYPE mmpur_requisition_item.
" Get items of purchase requisition
l_item_list = im_header->get_items( ).
LOOP AT l_item_list ASSIGNING <item>.
l_item_akt = <item>-item->get_data( ).
l_item_ref = <item>-item. " TYPE REF TO if_purchase_requisition_item
l_item_akt-afnam = sy-uname.
<item>-item->set_data( l_item_akt ).
ENDLOOP.
l_item_list = im_header->get_items( ).
ENDMETHOD. -
hi,
While selecting material code in Purchase req screen I like to display the corresponding G/L account code in Account Assignment-->G/L Account field. Kindly give me the suggestion .
Thanks & Regards
R.VijaiCheck this MEREQ001 Customers' Own Data in Purchase Requisition USer Exit
Inside the above user exit you have a Screen Exit
SAPLMEGUI 0014 SUB0 SAPLXM02 0111
try with that -
User Exit for Purchase Req. ME51N
Hi,
In ME51N, I would like to default some value for the field BPUEB.
Is there any user exit for such purpose?
Many thanks.
Regards,
ChrisHi Chris,
These are the available exits and badis.
Enhancement/ Business Add-in Description
Enhancement
MEREQ001 Customers' Own Data in Purchase Requisition
Business Add-in
ME_COMMITMNT_PARKING BAdI for Redefining Commitment Interface When Parking
ME_MEREQ_PARKING BAdI Purchase Requisition: "Hold"
ME_REQ_HEADER_TEXT Copy Header Text: Enjoy Purchase Requisition
o.of Exits: 1
o.of BADis: 3
Impliment the coding and put the break points.
********Rewards some points.
Rgds,
P.Naganjana Reddy -
User exit while saving Service Purchase Order
i want to update one z table from the Service PO, after saving. Hence i require , an user exit, which will give the details of the service tab , of the PO. I am not able to get any exit, where the details of the Service tab, of the transaction me22n.
Below is the screen of the Service tab of the purchase Order Screen :
<b>Line DeService numbShort text Quantity Uni Gross priceCr
10 3000001 Sub-Con Recruitment Commissio91 DAY1,249.00 IN
20 3000001 Sub-Con Recruitment Commissio91 DAY1,249.00 IN</b>hi,
check this out .
Transaction Code - ME21 Create Purchase Order
Exit Name Description
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
LMEKO001 Extend communications structure KOMK for pricing
LMEKO002 Extend communications structure KOMP for pricing
MM06E011 Activation of PReq Lock
No of Exits: 38
Kishi.
Maybe you are looking for
-
Tranferring data from external hard drive to Windows 7
I just from Win Vista to Win 7 32 bit. I backed up my entire computer on an external hard drive. How do I get all my apps and itunes stuff back onto itunes so I can sync my iPhone 4?
-
PM 7/Distiller 5.0 suddenly not working!
I've been happily using the combination of PageMaker 7.0 with Distiller 5.0 and Acrobat 5.0 for several years now, and a LOT lately. I'm generating books in PageMaker, printing them to a .ps file via "Distiller on Drive C:" (selected as the printer),
-
Can an ipad connect to a dell printer?
I just bought my ipad, but I'm not sure if it will connect to my dell printer. I know I can download an app to print but im not sure which ones will allow access to a dell printer, if any will. Help!!
-
How to run test cases in a jar file using junit?
Hi, I want to run test cases in a jar file using junit and the jar file is not in the class path. I wrote the following code, but it does not work. import java.net.URL; import java.net.URLClassLoader; import junit.framework.TestResult; import junit.t
-
Poor sound quality, Airport Express
Hi, I have this 2 yrs old airport express but it has all of the sudden a really poor sound quality. When I connect it to my home stereo and play through airplay and if I connect headphones the sound is very poor and scratchy I've used 3 diffferent ca