ME51N - EXIT_SAPLMEREQ_005
Hello.
I have problem with Purchase Requisition ( transaction ME51N).
I want to change the value of u201ERelease dateu201C using user-exit EXIT_SAPLMEREQ_005.
CALL METHOD im_req_item->get_data
RECEIVING
re_data = get.
set-frgdt = u2026..
CALL METHOD im_req_item->set_data
EXPORTING
im_data = set.
Next, in dynpro is visible the right value from EXIT_SAPLMEREQ_005, but when saving the system uses another value, not the value from user exit.
Do you anybody have some experiences with similar problem?
Lumir
HI Lumir,
Just debug the enhancements and check from where it is picking.
Regards,
Madhu.
Similar Messages
-
Error message does not lead to the custom tab me51n
Hi Experts,
When I try to to create a PR in me51n and check, a popup with error messges appear when we pick one of the entry and select edit button that leads to the field of that concerned tab.I have a custom tab and cutom field the issue is error message is displayed to fill the custom field but when I check mark that error and select edit that does not take me to the custom tab where custom field exists please suggest I have tried lot of user exits but no use.
appreciate your help......We added some error message checking using Function exit EXIT_SAPLMEREQ_005. How we can bring the screen to Customer Data Tab when there are any errors under the tab. And as long as the error is not fixed, the screen will stay on the tab?
To eloborate my question - in ME51n/Me52n, the system gives a messages window/subscreen with errors or warnings upon clicking the check button or upon save. On the messages window/subscreen, we can select a particular message and edit will take action to the corresponding tab with the cursor on the field with the issue. I understand this is standard functionality.
However I'm looking for a way to make this work for a mandatory field on the customer data tab i.e., when I select the error message pertaining to this mandatory field and choose edit, control should jump to the customer data tab with the cursor on the mandatory field. -
Exit / BADI for ME51N / ME52N
Hi experts,
I have the following requirement:
1. In transactions ME51N / ME52N, the long text field for the item (Item Text) must be made read-only if the PR is already approved / released (release strategy indicator = '2').
2. The PR workflow approvers must recieve an e-mail if this text has been changed while the PR is still blocked / not fully approved (release strategy indicator = 'X').
I'm guessing both can be achieved through BADI implementations (in this case, IF_EX_ME_REQ_POSTED~POSTED), but I've read a lot about various Exits in these transactions, and now I'm not sure if this is the right one. Can you help me?
PS.: I'm not completely familiar with BADIs and Exits, so please bear with me on this.Thanks for the replies.
The MM consultant is still looking for a way to grey out the text field within SPRO. It's not an easy requirement
Regarding the text changes, I followed your advices and I'm now trying to implement my code within the exit EXIT_SAPLMEREQ_005 (it's triggered right after the user saves the document, so it makes sense). The problem now is that when this exit is called, the changes made to the item text are already committed, and I can't compare the new text with the old one.
I also tried implementing ME_REQ_PROCESS_ITEM, but it doesn't seem to be called from ME52N.
Isn't there a log for long text changes? It would be really easy to just read CDHDR / CDPOS and know if the text has been changed. Also, is this text the same text from material master? If it is, I guess it would be easier to log its changes, right?
Will appreciate your input on this.
Regards,
Leo -
Purchase requisition , ME51N, user exit for change Release date
Hello.
Purchase Requisition ( transaction ME51N).
I want to change the value of u201ERelease dateu201C using user-exit EXIT_SAPLMEREQ_005.
CALL METHOD im_req_item->get_data
RECEIVING
re_data = get.
set = get.
set-frgdt = u2026..
CALL METHOD im_req_item->set_data
EXPORTING
im_data = set.
Next, in dynpro is visible the right value from EXIT_SAPLMEREQ_005, but when saving the system uses another value, not the value from user exit.
Do you anybody have some experiences with this problem?
LumirHi
The USer Exit you can use for the ME51n Tcode is by using Badi's.The Badi you can use is ME_PROCESS_REQ_CUST BADI.
Method to be used: PROCESS_ITEM
This link gives you a brief idea.Hope it helps you.
BADI for ME51N
Thanking you. -
User Exit for ME51N Transaction
Hi folks,
I have a requirement regarding ME51N Tocde. If the user enters the internal order number in ME51N, while creating Purchase Requisition, the corresponding cost center should be displayed in the cost center field by default. I have found one user exit which will be useful for this. I wrote the code and feteched the Cost Center value in the exit EXIT_SAPLMEREQ_005. But i dont field any paramet for sending the Cost center value here. Could any body suggest me how to proceed now...How can i display the cost center value, using this Exit....
Thanks in advance,
Shyam.Hi Shyam,
You can find the user exit using the following method:
1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
2. In 'Display' mode, go to 'Methods' tab.
3. Double click the method 'Get Instance' to display it source code.
4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.
5. Then run your transaction ML81N.
6. The screen will stop at this method.
7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.
Hope this solves your query.
Regards,
Saumya -
EXIT_SAPLMEREQ_005 EBAN-FIPOS?
I use EXIT_SAPLMEREQ_005 (4.6C version) for filling item`s field in ME51N 'Commitment Item' in tabstrip Account assignment.
DATA item TYPE MEREQ_ITEM.
DATA itemx like MEREQ_ITEMX.
item = im_req_item->get_data( ).
itemx = im_req_item->get_datax( ).
itemx-fipos = 'X'.
item-fipos = lv_fipos.
call method im_req_item->SET_DATA
EXPORTING
im_data = item.
call method im_req_item->set_datax
EXPORTING
im_datax = itemx.
In structure MEREQ_ITEM_S_CUST_ALLOWED I create append-structure with field FIPOS.
But it don`t working. Why? When I create new item, field is empty.HI
goto se80..enter ME in the package..will return u various enhancements ..choose the relevant one!! -
Modify header in the Transaction ME51N
Hi Guys,
Someone do know how to modify the text of the container of the header in ME51N transaction? I tried with some Badis as ME_PROCESS_REQ_CUST, most do not have that measure of change.
TanksHi,
For the BADI
chk this links-
BADI -- ME_REQ_HEADER_TEXT
developing a badi
Check this Exit
MEREQ001-> EXIT_SAPLMEREQ_005.
Check the field for header in this exit.
Hope this solves the issue.
Regards
Lekha -
User Exit - 'EXIT_SAPLMEREQ_005'
Hi All,
I need to do an enhancement using MEREQ001.
while executing me51n, the system fetches valuation price automatically for the material but in my case i need to fetch price from the latest PO.i found that the function exit to b used is 'EXIT_SAPLMEREQ_005' . But if i try to change the field it says it cannot be changed and morever in the export parameters of the exit this field is not there in the structure. so how do i change the value kindly help.
thanksHi Kavitha,
1).if you wanted to do changes any Enhancement, first of all you needs to create a project under CMOD transaction and there you needs to assign Function Exit,
2) place the cursor on 'INCLUDE ZXM02U05' stament and hit Enter button, it shows some warning message, after you just duble click on the same statement by using Mouse. it will ask you to create new object..? say yes.
3) here you can write the code by using Import and Export parameters.
4) Export parameter EX_MESSAGES returns the Messages after processing.
Thanks,
Murali. -
How to update Purchase requisition number in EBAN table through ME51n?
Hi Guru,
I know thoes user exit as below use for ME51N.
EXIT_SAPLMEREQ_005
EXIT_SAPLEBND_001
EXIT_SAPLMEREQ_010
But I don't know which use exit effect after saving PR number in EBAN table and which field to tick PR number = '0010000111' in order to I want update number 00100001111 in EBAN table after clicking save in ME51N.
I need it soon . Please help me,
Thank you so much guru.Hi,
Try with this BADI ME_PROCESS_REQ_CUST and create a new implementation under POST. That would give us the generated new PR number and using that we can access the relevant tables.
And also try this exit given Below EXIT_SAPLMEREQ_009 Document Number Assignment: Purchase Requisition
Regards
kk
Edited by: Krishna KiranN on Dec 20, 2011 5:28 AM -
Not allowing to change the plants in me51n transaction
hi all,
my requirement is to not allow the user to use different plants at item level(10,20 etc) . for that i have used the user exit MEREQ001 in the function module EXIT_SAPLMEREQ_010
i have written following code
DATA : WA_EBAN LIKE EBAN,
WA_EBAN1 LIKE EBAN.
IF SY-TCODE EQ 'ME51N'.
READ TABLE IM_T_EBAN INTO WA_EBAN INDEX 1 TRANSPORTING WERKS .
IF SY-SUBRC EQ 0.
LOOP AT IM_T_EBAN INTO WA_EBAN1 WHERE WERKS NE WA_EBAN-WERKS.
IF SY-SUBRC EQ 0.
MESSAGE ID 'ZM' TYPE 'E' NUMBER '305'.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
iam able to trigger tha error message when we use diffferent plants at item level.but after that iam not able to change the plants in iten level.so please can anyone suggest me how to solve this problem
thanks in advance
rama.This OSS [Note 383725 - Enhancement MEREQ001 various problems|https://service.sap.com/sap/support/notes/383725] may help you.
Regards -
Material field not getting displayed on Material Data tab in ME51n or ME21N
Material Field was missing in ME51n/ME21n.
I went into SPRO ->PReq-> Define Screen Layout at Document Level and checked Optional for Material field. Now it's showing up on the ITEM overview section of the Preq.
But its still missing on Material Data tab in ME51n or ME21N but I can see the Material field on the Item Overiew section of the Req/PO Screen.
Where exactly do I make the settings for the item level in SPRO?We use the Enjoy screens and document types for ME51N/ME21N pretty much out of the box. We do not have the material master number on any of the detailed item tabs either. I do not think you can show it in the details unless you activate the customer specific fields tab.
Regards -
Activate text for Cost Center for ME51N, ME52N, ME53N
Hi, experts
As a requirement on T/C ME51N, ME52N, ME53N is needed to activate on "Account assignment" tab, the text for Cost Center field, how can I do this?
Thanks in advance.
Is there any path or exit could help with it?I need to add on Tabstrip "Account assignment" for fields
CO Area and Cost Center text field description ( right side ) for each one.
How can I do this? Thanks in advance. -
Display descriptions of cost center and G/L account in ME51N/ME52N/ME53N
Hi Experts,
Can any one suggest that how to display descriptions of cost center and G/L account in account assignment subscreen- ME51N / ME52N / ME53N.
Thanks in Advance...
Sivahi
if the field is required then u have to enter them manually
so if this are not required then goto OKB9 here give the default cost center for the Gl acct -
Change the name of custom tab in me51n / me52n / me53n
Hi,
I have to add a few custom fields in PR item of transactions me51n / me52n / me53n. I have used the enhancement MEREQ001 for adding the custom fields. The sytem automatically creates a custom tab with the name Customer Tab for the additional fields that I have added using the enhancement MEREQ001 while displaying in me51n / me52n / me53n.
Now I have a requirement to change the name of the custom tab created for transactions me51n / me52n / me53n from Customer Data to Others.
Can anyone suggest me how to go about doing this???
Thanks in advance.
Abhisek.
P.S.:- Points will be be duly awarded 4 helpfull answers.Hi,
I tried doing whatever you had suggested but it seems that it is not working.
Could you suggest some other way to do this?
Thanks and regards.
Abhisek. -
Obrigatory Number Service on ME51N,ME52N,ME53N for company or plant
Staff
I wonder if it is possible to make the number of mandatory service as a company or plant in transaction ME51N and ME52N and ME53N.
I used trransação OLMSRV - Set Screen Layout but it makes the number of mandatory service for all the company's and plans.
Sorry for my english>
Hi Sandipan, sorry for the late, I tried to manage this task but without success.
The user exit I'm working on in EXIT_SAPLBBPK_001.
FUNCTION EXIT_SAPLBBPK_001.
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(IM_BBPDECDATA) LIKE BBPDECDATA STRUCTURE BBPDECDATA
*" VALUE(IV_MANU_PROF) TYPE MANPRC OPTIONAL
*" CHANGING
*" VALUE(CH_PROFILE) LIKE T160EX-EPROFILE
INCLUDE ZXBBPU04.
ENDFUNCTION.
It includes ZXBBPU04, in which I have to understand if I'm working on a Purch. requisition in MODIFY mode or in CREATE mode.
Maybe you are looking for
-
Currently I use a HTML Snippet to publish our schools music calendar page on the web. I would like to find a way to post a running daily events calendar on the home page using the same calendar. Anyone have any thoughts on this? The view I am looking
-
Error while checking the rate data through installation
Hi everyone, I am facing an error message while checking the rate data for an installation: "Internal error: Error when reading internal table IEGER in ISU_O_DEVICERATE_OPEN". Please guide. Thanks and Regards
-
Is It possible connect two router**from console port to console port
Hi, I need this for doing reverse telnet. Thanks very much
-
Photoshop elements Katalog aktualisieren geht nicht
Hallo, ich habe jetzt alles, was mir einfällt versucht: Wenn ich in meinem neuen LR5.6 den PSE Katalog (PSE11) aktualisiere, finde ich von rund 11.000 Fotos nur rund 1.000 wieder. Es erscheint die Fehlermeldung "Diese Dateien sind entweder nicht verf
-
Airport express/extreme and iTunes configuration
I recently purchased a Macbook Air 10.9.3, to replace my 7 year old white Macbook 10.6.8. I connected the air to my home wireless network which was running through an Airport express (A1088). Recently I started having issues with the network (having