Screen exit in ME51n
hi all,
my requirement is like this:-
while creating a purchase requisition user want to see the data of last 2 purchase order of the material (last 2 purchase order price and their date).
I have implemented enhancement MEREQ001, and written code in function module EXIT_SAPLMEREQ_001.
There I have been able to display the data of last 2 purchase orders, but I am not being able to save these data in EBAN, where I have created fields in .include structure CI_EBANDB.
My problem is I am not being able to save the data of last 2 purchase orders in these fields of EBAN.
I have searched for solutions in SDN but could'nt find a proper solution.
It will be very helpfull if you people give me a solution to save the data in EBAN.
Thanks in advance.
Hi,
Implement this code in EXIT_SAPLMEREQ_003 exit.
DATA: lv_req_item TYPE mereq_item.
DATA: re_aktvt TYPE aktvt.
CALL METHOD im_req_item->get_data
RECEIVING re_data = lv_req_item.
CALL METHOD im_req_item->get_activity
RECEIVING re_aktvt = re_aktvt.
CASE re_aktvt.
* Display mode
WHEN 'A'.
* Change mode
WHEN 'V'.
lv_req_item-zz_budget = eban-zz_budget. "<---- Your Feilds here
lv_req_item-zz_budgetflag = eban-zz_budgetflag. "<---- Your Feild here
CALL METHOD im_req_item->set_data
EXPORTING im_data = lv_req_item.
ex_changed = 'X'.
ENDCASE.
Similar Messages
-
Hi there,
I'm implemente a screen exit on ME51N, the exit MEREQ001, I'm new in screen exits.
It's implemented, but I got the following error message when trying to access the screen "Customer Data" in the transaction
<b>
"Screen SAPLXM02 0111 must be an Include screen (screen error)"</b>
Thanks a lot.
AlexandreHello Alexandre,
I am new in screen exits too and the error you get is because of the fact that SAPLXM012 with subscreen 0111 is a function pool:
System-defined Include-files. *
INCLUDE LXM02TOP. " Global Data
INCLUDE LXM02UXX. " Function Modules
INCLUDE LXM02F00.
" SAP-Formpool for Customer-Use
INCLUDE ZXM02ZZZ. " Subprograms and Modules
Within the include INCLUDE ZXM02ZZZ yo ucan generate includes for your own purpose with source code for PAI and PBO; my tric is to get a control on costcenters in tc ME51N for authorizations and I am also figuring out how to manage this.
Hopes this helps a little bit and if you can give feed back on my issue ...be my guest...;-)
Kind regards ,
René -
Screen Exit for ME51N and ME52N ??
Hi all,
I have to replace the standard Field "Requisitioner" in the CONTACT Tab with a Z table field with Search help and I have to make it mandatory, so that the user MUST enter the Requisitioner and its F4 help can be used from the Z Table field.
For this i need to modify standard program's screen using screen exit.
How can i meet the requirement?
Any sugegstions are welcomed...Helpful answers will be rewarded for sure..
Thanks in advance,
Regards,
TejasCheck the threads -
User Exit or BADI for ME21N or ME51N
ME51N user exit
Screen Exit for ME51N
Regards,
Amit -
Screen exit for ME51N in header
Hi friends,
Is there any screen exit for ME51N(Purchase requisition) in header level.I found MEREQ001 enhancement, but this is for item level.please help.
regards,
Thoufique.Hi Thoufique,
try the following screen exits:
EXIT_SAPLMEREQ_001 Export Data to Customer Subscreen for Re
EXIT_SAPLMEREQ_002 Prepare Customer Subscreen for Requisiti
EXIT_SAPLMEREQ_003 Import Data from Customer Subscreen for
Also, for more help on your problem, refer to the following link:
Re: re: screen exits
Hope this will help you... -
Badi / Screen Exit for ME51N
Hi Folks,
My requirement is to add a standard field in the existing tab . Is there any BAdi / Screen Exit provided for tcode ME51n. I have checked the provided Exits and BAdi's but all of them are to add a new tab. But in my case I want to add a field in the existing tab.
Kindly let me know the possibilities.
Thanks in Advance.
SomuHi Soma,
As i know it is not possible . Better to add a new tab and add fields there.
Regards,
Madhu. -
HI ,
EVERYBODY
I AM DOING SCREEN EXIT FOR TCODE ME51N, ENHANCEMENT (MEREQ001) EXIT SAPLMEGUI , I HAVE ADDED TWO FIELDS
VALIDITY START DATE AND VALIDITY END DATE.
I HAVE CONFUSION ABOUT HOW TO EXPORT DATA ENTERED IN SUBSCREEN.
PLS HELP ME ..........
THANKS & REGARDS
SANJEEVhi,
EXIT_SAPLMEREQ_001 -
Export Data to Customer Subscreen for Requisition (PBO)
*sample code write in the corresponding include
DATA: ls_mereq_item TYPE mereq_item.
clear eban values if no PReq item
IF im_req_item IS INITIAL.
CLEAR: *eban,
eban.
ELSE.
read item data from system
ls_mereq_item = im_req_item->get_data( ).
fill customer field with old values
eban-zflag = ls_mereq_item-zflag.
*eban-zflag = ls_mereq_item-zflag.
ENDIF.
Read and store activity type to chnge the field status
of the subscreen
IF NOT im_req_item IS INITIAL.
gf_aktyp = im_req_item->GET_ACTIVITY( ).
endif.
EXIT_SAPLMEREQ_003 Import Data from Customer Subscreen for Requisition
data: ls_mereq_item type mereq_item.
*get values if PReq item exists
if not im_req_item is initial.
*read item data from system
ls_mereq_item = im_req_item->get_data( ).
*if customer field changed
if eban-zflag ne *eban-zflag.
*fill field with new value
ls_mereq_item-zflag = eban-zflag.
*set new item data to system
call method im_req_item->set_data( ls_mereq_item ).
*tell the system that there has something changed on the customer tab
EX_CHANGED = 'X'.
endif.
endif.
cheers,
sasi -
Screen-Exit ME51n or ME52n or ME53n
Hi All,
i am working on Screen Exit in ME51n
I have activated screen .
MEREQ001 Customers' Own Data in Purchase Requisition
in this enhancement i have added one field i want display the
do the calculaton on basis of quantity and need to display in this field .
Help me out ..
Regards,
MOHD>i did this things but the data is not capturing from
screen and vice-versa is happening .
can u pls guide me with simple example in screen PBO and PAI.
Regards,
MOHD. -
Screen enhancement in ME51N - control is not passing to PBO and PAI of exit
HI ,
I am doing screen Exit for the Tcode : Me51N / Me52N.
I have to add 3 Text fields in item level, i am using Enhancement:MEREQ001(in CMOD).
Initially i added those 3 fields in Structure CI_EBANDB.
Then i designed Screen in Screen Exit:SAPLMEGUI Screen Num:111.
Here in the PBO and PAI Module
MODULE STATUS_0111 , MODULE USER_COMMAND_0111.
the control is not going , i tried with break-point inside these modules.
But while executing ME51N , debugger is not working.
Code i wrote in both PAI and PBO
MODULE STATUS_0111 and MODULE USER_COMMAND_0111.
loop AT SCREEN.
screen-output = '1'.
screen-input = '0'.
MODIFY SCREEN.
endloop.
I need to display the three screen in Display format not in editable format.
Thanks and Regards,
Prakash KHi
You need to write the code in PBO of that screen based on TRANSACTION TYPE.
there is a method call 'get_transaction_state' from this you will get the transaction type (H - create , 'V'- change 'B' -display) at run time.
If run time transaction type = B
LOOP AT screen.
IF screen-name eq c_name . "field names
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif. -
Hi experts, there is some screen-exit for HEADER of ME51N??
I've found only MEREQ001, but it has a screen exit only for item requisition...
Thanks.
AlexandereHi,
check the following screen exit Information for Enhancement "MEREQ001"
Calling screen No. Area Called screen No.
SAPLMEGUI 0014 SUB0 SAPLXM02 0111
also find the following user-exits
EXIT_SAPLMEREQ_001 Export Data to Customer Subscreen for Re
EXIT_SAPLMEREQ_002 Prepare Customer Subscreen for Requisiti
EXIT_SAPLMEREQ_003 Import Data from Customer Subscreen for
Regards
Sreeni -
Screen Exit in Header Level in ME51N
Hi,
Are there any screen exits in header level in ME51N screen? I need to call a BSP upon the click of a button and when the user selects a line item from there, it has to fall as a line item in the PR screen.
Need your help on this.
Thanks and Regards,
Manideep SettipalliHello,
Please refer to this very useful document about finding user-exits, BADI's eg.
Methods to find Customer/User Exit's & BADi's for a Transaction Code!
Regards
Ali Murat -
Hi All,
In ME51N t-code PR Creations,
I have used enhancement MEREQ001, In this I have used to Screen exit as Below:
Screen exit SAPLMEGUI 0014 SUB0 SAPLXM02 0111
Now Please tell me from where and how to calll this screen sub-screen 0111 created in the exit.
Thanks & Regards,
Amit Y.Hi,
You have to create SAPLXM02 0111 which is already getting called by the calling screen SAPLMEGUI 0014 so once you create this screen it should automatically come on the PR creation screen.
Regards,
Himanshu -
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 -
Problem while transporting Screen exit object from DEV to QAS client
Hello All,
I have developed screen exit for tcode 'ME51N' to add customer field in newly added TAB. To grayout that field in display mode, I have added code on the PBO event of that screen. Code for PBO even has been written inside the include. Exit is working fine on development client.
After transporting the exit on QAS client the field graying out functionality in diplay mode is not working eventhough the include which contains the code for PBO even is exist on QAS. Also in flow logic if i double clock on the PBO module event, it says object does not exist, eventhough the include which contains the PBO event code exist in QAS.
Please, help me to understand why the linkage between flow logic PBO event and the include where the PBO code has been written is not getting transported from DEV to QAS.Hi,
First check the TR log if there is any errors. If no errors, then check if all the objects were properly transported or not.
You might have missed out in transporting the enhancement activation(CMOD).
Try to Rebuild the object list for updating the navigation index. You can do this from SE80=>Rightclick on function group=>More functions=>Rebuild object list.
Thanks,
Vinod. -
Issue with Method to find Screen Exit
Hi all,
I am planning to add 2 custom fields to item details tab in ME51N .
I tried to find screen exits using development class of ME51N i.e ME
I went to smod and tried to find enhancements using ME development class and from the list of enhancements i tried to find a screen exit but i could found one.
I found an enhancement
MEREQ001 Customers' Own Data in Purchase Requisition
Which had a screen exit as well and this is what i was exactly looking for.
But my question is that
MEREQ001 is under development class MEREQ
So that means the way i was trying to find the screen exits is wrong or is there a better way to find screen exits
Let me know
ThanksHi,
U will find that if u try this program.
How to Find a Screen Exit in a Given SAP Standard T-code
Program
REPORT YSMOD2 .
TABLES: MODSAP, MODACT, TSTC.
PARAMETERS: INPUT1 LIKE TSTC-TCODE DEFAULT ' ',
INPUT2 LIKE MODSAP-TYP DEFAULT ' '.
DATA: SEARCH1(6),
SEARCH2(3),
SEARCH3 LIKE MODSAP-MEMBER.
DATA : FIRST_ROW VALUE 'Y'.
CONCATENATE: '%' INPUT1 '%' INTO SEARCH1,
'%' INPUT2 INTO SEARCH2.
SELECT * FROM TSTC WHERE TCODE LIKE SEARCH1.
FIRST_ROW = 'Y'.
CHECK TSTC-PGMNA NE SPACE.
CONCATENATE '%' TSTC-PGMNA '%' INTO SEARCH3.
SELECT * FROM MODSAP WHERE TYP LIKE SEARCH2
AND MEMBER LIKE SEARCH3.
SELECT SINGLE * FROM MODACT WHERE MEMBER = MODSAP-NAME.
IF FIRST_ROW EQ 'Y'.
WRITE: /0 TSTC-TCODE, 6 TSTC-PGMNA, 16 MODSAP-NAME, 32 MODSAP-TYP,
45 MODSAP-MEMBER, 70 MODACT-NAME.
FIRST_ROW = 'N'.
ELSE.
WRITE: /16 MODSAP-NAME, 32 MODSAP-TYP, 45 MODSAP-MEMBER, 70 MODACT-NAME.
ENDIF.
CLEAR : MODSAP, MODACT.
ENDSELECT.
IF SY-SUBRC NE 0.
WRITE : /0 TSTC-TCODE, 6 TSTC-PGMNA, 30 'No exits found'.
ENDIF.
CLEAR TSTC.
ENDSELECT.
END-OF-SELECTION.
CLEAR: SEARCH1, SEARCH2, SEARCH3.
End
Regards,
Jagadish -
Hi,
I had to add one date field on the me51n trnasaction.
Sap is providing one screen exit for that. i.e mereq001
I developed the subscreen saplxm02 0111. And i added one date field for that. And i activated the project too. But iam unable to find the screen field which i have added.
Please can any body help regarding this problem.
Thanks in advance.
rgds
p.kphi,
the below help is provided by sap for screen exit, go through one by one
Screen exits allow you to add your own fields to specified screens in standard R/3 transactions. To take advantage of customer-specific subscreens, you first need to create projects as described in the section Creating an add-on project. Then, you must include the SAP enhancement that contains the screen exit you want to use in your project. From the main screen of the Project management transaction, proceed as follows:
Select Enhancement components and choose Change.
The system lists all customer exits contained in the enhancements included in your project.
Place the cursor on the screen exit you want to create your own subscreen for.
Choose Edit component.
The system prompts you to enter a development class for your subscreen. Use the development class that contains all of the objects created for this specific enhancement project. The system then transfers you to the Screen Painter.
Create your subscreen using the Screen Painter.
Add modules to the screen flow logic as needed.
Enter the name of the module in the flow logic editor, then double-click on the module name and the system automatically creates the module in the corresponding function module program.
Generate your screen and choose Back (the green arrow) to return to the Project management transaction.
Once you activate your enhancement project, the fields defined in your subscreen will appear in the standard R/3 transaction
cheers,
sasi
Maybe you are looking for
-
SharePoint 2010 TechNet Guru News: October Winners Announced
All the votes are in! And below are the results for the TechNet Guru Awards, October 2014 !!!! For a full list of winners, see the full blog post, as runners up had to be removed from this post to fit the forum max length restrictions. BizTalk Tech
-
IPhoto Crashes if I just look at a picture
Just recently loaded in a 1 Gig card 4 or 5 times four Gig or so in Photos. I have almost 20 Gig in the iPhoto folder. Have been running 5.0.4 for a while without incident. Suddenly after just scrolling through a couple of pictures or sometimes just
-
This is regarding Shipment 1. In brief let me know, why shipment cost is required in shipment, 2. What is the importance for vendor and why we create Purchase order,vendor invoice here in shipment 3. Why Service entry sheet is created
-
Firefox crashing even after reinstall
I desperately need help because there is something very VERY wrong with Firefox. Whenever I try to start it the crash reporter will pop up right away. I have tried a complete and utter reinstall three times even deleting all the profiles and temp fil
-
Problem with PDF/X-1a export in illustrator CS6
I have these huge illustrator files containing a mix of text, vector shapes and placed bitmap pictures cropped using clipping masks. When I used to save as a PDF/X-1a:2001 in Illustrator CS3, the clipping masks were applied and only the visible pixel