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.
Similar Messages
-
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 -
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 -
Need User Exit before the Purchase Order saved!!!
Hai All,
I am in search for User Exit before the Purchase Order gets saved.This User Exit should capture this generated Purchase Order and post it to the Destination System for further processing.
Can anyone help me to find this User Exit.
Thanks,
Ugandhar.<b></b><b></b>
Message was edited by: Ugandhar DomathotiCheck out this enchancement in smod <b>MM06E001</b>
in that EXIT_SAPLEINM_001
EXIT_SAPLEINM_002
may help you ....
regards
vijay -
User exit before the call of FM CCARD_AUTH_SIMULATION
HI Gurus
I wanna know if there is any user-exit before the call of FM CCARD_AUTH_SIMULATION, for the structure XVBAK.
I want to manipulate with the document category for that particular order before the order is saved.
If anyone can provide me the user exit for the structure XVBAK then it will be helpful to me.
Thanks
Swarngo for implicit enhancement option.
Reddy -
Hi,
Is there any user-exit at save for transaction KL01.
Here is my requirement.
Where ever am employee is hired in HR ( transaction PA40; Action = Hire) i have to automatically create an Activity Type ( t.code : KL01 ). I am doing this in user-exit PBAS0001, component EXIT_SAPFP50M_002 on HR side.
The next this is, once activity type is created using transaction KL01, i have to automatically trigger a activity type planning, transaction KP26.
So, i need a user exit at Save in transaction KL01, so that i can trigger KP26 from there. I found one exit COOMKS02, but i its not triggeting from KL01.
Does any one know any user-exit in KL01 which trigger at save. Please let me know
Thanks,
PratikHi Sharad,
Thanks for your reply.
I always have an option for executing both KL01 and KP26 fron PBAS0001, but what i was thinking that if there is any exit available at save in KL01, i can trigger KP26 from there.
If i could not find any exit, i will call both KL01 and KP26 from PBAS0001 itself.
Thanks,
Pratik -
User exit on SAVE event in tranasaction CS01
Hi all,
Please tell me user exit on save event in transaction cs01.
Thank you.Hi,
Check the following user exits.
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0013 Customer-specific processing of an explosion for BOM browser
hope it helps
Regards
Rajesh Kumar -
Hi experts,
I have a problem:
We use differerent solutions for Web Access for externals - Web Dynpro and a normal GUI, shown via WEBGUI.
So we create a new user (SU01) for the external and he can access the system
But this problem may appear:
The external tries to login via OPERATOR, DDIC, SAP*,... and lock this user - system will hang up!
Solution can be a user exit BEFORE login, so we can check the user name (OPERATOR...) and don't authorize for login.
Is there a user exit? I know the exit EXIT_SAPLSUSF_001 - bt this one is too late (after login).
Also it would be important to know if the login is via SAPGUI oder via WEBGUI/Webdynpro (in EXIT_SAPLSUSF_001)
Any ideas on this?Hi,
why don't you unlock the User?
Try this:
data: wa_return type table of BAPIRET2.
If sy-uname = 'OPERATOR'
CALL FUNCTION 'BAPI_USER_UNLOCK'
EXPORTING
USERNAME = sy-uname
TABLES
RETURN = WA_return.
CALL 'SYST_LOGOFF'
endif.
Hmmm...I will try this. But I'm not sure if I will reach this point if I try to login with the wrong password?!
Edit: I tried to logon with a wrong password (before i created a hardcoded Breakpoint in the user exit). But I won't reach this point.
So the question is not solved. If someone tries to logon as Operator several times, user Operater will be locked. How to prevent to log on via specific users (like Operator, DDIC...) in the Webgui? -
User exit before TO creation to chage MAKTX field or FM to change it after
Hi all,
I need some WM Expertise help.
When I create a Sales Order from program (with bapicreatefromdata2) , the system automatically create a delivery, and then, a transfer order with no immediate confirmation. The TO is manual confirmed. In bapicreatefromdata2 I completed on each item line the field ARKTX with a description (Example: red - material description ). This field is automatically completed in delivery( same field ARKTX). But I need this description also in transfer order for each line (field MAKTX). The TO is created automatically and the field MAKTX is completed with the description from the material master.
So, I need an user exit before TO creation to change the field MAKTX. I have tried user exit: MWMTO001 and is not working I think because the TO is created with no immediate confirmation. Also I putted break-point everywhere in program SAPML03T (standard program for TO creation) and I changed the settings in debugger mode. I checked System Debugging and Update Debugging. Nothing happened. I cannot find the place before TO is created.
An alternative to this is to update LTAP (item table for TO) after TO immediate creation in include MV45AF0B_BELEG_SICHERN but I can't find a function module to update the table before TO manual confirmation. I tried L_TO_UPDATE_PREPARE but this I think is for confirmed TO.
Any one who worked on this kind of things, Please help.
Thanks in advice,
Bogdancheck these exits....
EXIT_SAPMM06E_012
<b>EXIT_SAPMM06E_013</b>
EXIT_SAPMM06E_014
EXIT_SAPMM06E_006
EXIT_SAPMM06E_007
EXIT_SAPMM06E_018
EXIT_SAPMM06E_016
EXIT_SAPMM06E_017
vijay -
USER-EXIT on SAVE event for IE01
Hi,
I need USER-EXIT on SAVE event for t-code IE01.
EXIT IEQM0003 work only first time after pressing "SAVE".
IF i press "SAVE" second time equipment will be created.
Edited by: andriy.hulyk on Jan 26, 2012 12:45 PMHere is my code:
IF DATA_ILOA-TPLNR IS INITIAL.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '*'.
CASE SY-SUBRC.
WHEN 0."SAP-ALL User
EXIT."OK
WHEN 12."User without restriction
EXIT."OK
WHEN OTHERS.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '01'.
CASE SY-SUBRC.
WHEN 0."Create eq. only with FL for some work centers
MESSAGE E250(ZPM) WITH 'test' RAISING POSTING_NOT_ALLOWED_EXT.
ENDCASE.
ENDCASE.
ENDIF.
If i press "SAVE" firs time it work great. But next pressing just create new equipment. My restriction does not work( -
User Exit when save Purchase Requisition (ME51N and ME52N)
Hy Everyboby,
I want to know an enhancement point/user exit activated when saving a Purchase requisition to control all item amount for a budget check.
So anyone can help me ?
Thanks in advance.Hi All,
i am working on an enhancement where in i need to enhance the transactions ME41,42 , ME51n, 52n and ME21n and ME22n.
the requirement is whenever a PR is created/modified (ME51/52) and a business document is attached to it, then the same business document should be available in the RFQ created for this PR as an attachment. and the same flow should happen while creating the PO using the RFQ. I am unable to find a correct user exit for this requirement. kindlyreply me if you have any solutions for it.
your help is very much appreciated.
thanks,
Mohan -
User exit after save for purchase order create/change
After generating the purchase order no (ME21) i need to save that PO no into a custom table.....can u plz tell me such user exit where i can do this???
Hi,
BADI ME_PROCESS_PO_CUST.
1. Method to implement would be POST.
2. Method POST has parameter IM_HEADER which is in reference to IF_PURCHASE_ORDER_MM.
3. This reference has method GET_CONDITIONS.
4. call this method to get conditions data.
5. Make all the changes based on the logic and use method SET_CONDITIONS to change the values.
User exit will be MM06E005.
EXIT_SAPMM06E_012.
<b>Reward points</b>
Regards -
User exit after save for purchase order?
After generating the purchase order no (ME21) i need to save that PO no into a custom table.....can u plz tell me such user exit where i can do this???
Hello,
Use the exit
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
VAsanth -
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
-
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.
Maybe you are looking for
-
Different ways of setting up a TC as a HD
I'm looking for some inspiration here on how best to set up my TC for my needs & wondering how others do for similar needs.... I have a 2TB TC that I have set up so that all of mine & my girlfriends photo's, music, movies & documents are on the one l
-
My 24" IMac freezes and makes a popping sound in the speakers. What could be wrong?
Good afternoon I have an early 2008 24" imac, 2.8GHz Intel cor 2 duo, mountnain lion 10.8.2. From time to time it suddenly stops, and makes a popping noise from the speakers and then the computer is frozen, i have to press the power button. This is n
-
How can I split a QuickTime file in two?
8/21/2006. How can I split a QuickTime file in two? I saved a two hour videotape converted by PYRO A/V LINK to iBook G4 combo into a file of 24.5 Gb, and I saved to QuickTime into 536 mgs. Of course, it took half a day. When I went to copy it as vide
-
EclipseLink-Redeploying a DBWS WS on PL/SQL package after changing return
Issue concerning: EclipseLink 2.4.1 (DBWS) on WebLogic Hi, I've created a DBWS webservice based on a Oracle (10g) PL/SQL package, by using EclipseLink DBWS builder. The PL/SQL function exposed as a webservice call has a Object type return type, e.g.:
-
Installing APEX 3.1 with HTTPServer 10g (from Companion CD)
Hi everyone, Our database is 10.2.0.1 and I installed in a seperate home the HTTPServer coming with the 10gR2 companion CD (Apache Standalone install). The default port I use is 7777 (for the welcome page). Then I installed APEX 3.1, following the di