User-exit - Adding a field to ME51N t.code
Hi Team,
I would like to know what is the exit to be used to add a new field at item level in ME51N transaction code.
Pl respond and would be awarded.
Regards
Badari
Hi
In release => 4.7 there's a BADI but now I'm working on 4.6 and don't remember the name, I believe it's like REQCUSTOM*.
The exits are in enhancement MEREQ001
Max
Similar Messages
-
User exit MM06E005 - Customer fields in purchasing document
Hi,
I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a tab (customer tab) in that the value should get displayed.
likewise for each and every line items the value should keep on changing.
And
I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
Regards
ManojHi,
Indeed the exit which you have specified MM06E005 comprises the enhancement for customizing fields and screens associated with it. may be you might not have activated the screen associated with the exit. the screen might have been created but missed while activating.
Regards,
Jagath -
How to know where the user exits or enhancement used in standard sap code?
Hi
I m pretty new to abap.
How can I know where the user exits or enhancement used in standard sap code?
As i have to add some functionality to the standard sap code. I m looking to search the enhancement or user exits used in this standard code wher i can add my functionality.
thanks in advance.
Moderator message : Search for available information, thread locked.
Edited by: Vinod Kumar on Oct 19, 2011 2:38 PMHi Henry,
I don't think this is the easiest way to look at the code around a particular field on the screen. Debugging standard programs also can be very tedious, if not impossbile. So, instead of this question, I would like to find out exactly what you want to do if you know the code.
If you are in a transaction and you want to know where the code of a particular field is, the fastest way to get to it is by pressing the F1 key on the field and then press the Technical info button on the help screen. In here you will typically see the same kind of information but it is very specific to the field you selected.
PROGRAM(SCREEN) tells you which program is manipulating the main screen, in which your field is embedded. Remember your field may be included in a sub-screen and that subscreen may be the one included in the main screen.
PROGRAM(SUB SCREEN) tells you which program is directly responsible for the field on the subscreen it is included in. This is where you should find the code most appropriate for the field, but not necessarily.
PROGRAM(GUI) controls how your push buttons and the menu options in the screen behave and controlled.
Srinivas -
User Exit - adding defualt WBS Element in addi.tab for IW31 - Servi.Order
I am facing a problem with adding WBS Element in Addit.Data tab for Service Order creation using IW31.
At the time of creating service order using TCODE IW31, I have to maintian default values like WBS ELEMENT, for this I am using a USER EXIT "IWO10010".
The problem is getting dump error. Becuase, it is NUMC type and I am passing the value with character + numeric. Like "EX/1232/22".
Field length is NUMC - 8.
"CAUFVD-PSPEL"
If I create manually without using user exist, the field WBS Element is accepting the value and service order is creating successfully with WBS Element.
This is also same as CAUFVD-PSPEL.
I Couldn't understand How the SAP system will works?
Any solution for this.
Note: Creating Service Order IW31, Passing WBS Element with user exist with same field (CAUFVD-PSPEL) giving dump error showing "Passing Character values". If I create manually, and enter character + numeric in the same field CAUFVD-PSPEL, system creating service order without any error.
Help me out
thanks
Sekharself answered
-
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 Exits or BADI for Tcode ME51N
Hi All,
My requirement is i need to check available quantity at the time of Purchase req creation. If PR quantity is available in stock then it should not allow to create new PR.
Is there any user exit or Badi for this requirement. Kindly send me.
Regards,
ParasHi Paras,
Copy this program and execute. Will get all list of existin g Exits and Badis.
very useful program
Below code will give a list of BADIs for particular transaction.
*& Report ZNEGI16 *
REPORT ZNEGI16 .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
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,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
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 in ('SMOD', 'SXSD')
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:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
Reward points if this helps.
hema. -
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 -
PO User Exit to Populate Field Validity End During Creation
Hi Gurus,
I'm currently designing a program that will perform auto-deletion of Purchase Orders that have no GRs after the latest Delivery Date of the PO line items. Our client is very strict in managing their purchasing activities hence the requirement. I'm planning to use the Validity End field on the Header level of the PO. Now, what I want to happen is that during PO creation (whether via ME59 or ME21N), a user exit will auto-populate the Validity End field using a pre-defined formula that will add a couple of days (buffer) to the delivery date.
Is there such a user exit that can auto-populate Validity Start and Validity End?
Thank you,
AivanHi,
Check the BADI :ME_PROCESS_PO_CUST
Which can be worked for your requirement. -
User exit with a field in custom z table
hi ..
I have a custom z table with a z field in it. This z field is linked with t800d data base table. when a report is executed using this t800d table they want text data from the z field, but it is not displaying . they said the possible solution would be defining a user exit. how can i do this?Hi,
Your requirement is not clear. Can you explain a bit.
Regards,
Atish -
User Exits to validate Fields in BP transaction
Hi,
Anyone Send me the User Exits To validate the Screen Fields of Transaction BP.
with Regards
kesavaperumalPlease Check Following BADI's.
BUPR_FILTER_RELSHP_2 Filtering or Hiding of Relationships Within the GUI
BUPA_ROLEGRP_HIDE Badi For Hiding Role Groups
BUPA_NUMBER_GROUP Badi for presetting the number grouping field
BUPA_INITIAL_SCREEN Initial Screen for BP creation
BUPR_ENQUEUE_TEST INTERNAL: Tests Whether BP is Locked
BUPR_RELSHP_OVR_EXT SAP BP: Extension of the Relationship Overview
Regards,
Swamy. -
User Exit for New Field Creation & Updation at Sales Order Level
Hi All,
I want to create one new field in Additional Data B Tab of Sales Order.
Also when the sales order is created with reference to a Contract, that Contract number to be updated in that field.
Which user exit need to be used for this field Creation & Updation at the time of order creation? Is it MV45AFZZ?
Pls suggest.
Rgds,
Senni.BHi
Additional header data is on screen SAPMV45A 0309, additional item data on screen SAPMV45A 0459. These screens contain the Include screens SAPMV45A 8309 or SAPMV45A 8459 as user exits.
Regards
Madhu -
User exit for (reference field) XBLNR check in ML81N
Hello,
We would like to implement a duplicate check on the reference field: XBLNR in ML81N. This would be to prevent users from posting duplicate service entry sheets.
Has anyone done it with SRV* user exits?
Thanks,
RichardHi,
Following are the list of user exits available for ML81N
SRVDET User screen on tab strip of service detail screen
SRVEDIT Service list control (maintenance/display)
SRVENTRY Unplanned part of entry sheet (obsolete since Rel. 3.1G)
SRVESI Data conversion entry sheet interface
SRVESKN Set account assignment in service line
SRVESLL Service line checks
SRVESSR Set entry sheet header data (This might be helpful)
SRVEUSCR User screen on entry sheet tabstrip
SRVKNTTP Setting the account assgnmt category when reading in, if "U"
SRVLIMIT Limit check
SRVMAIL1 Processing of mail before generation of sheet
SRVMSTLV Conversion of data during importing of standard service cat.
SRVPOWEB Purchase order for service entry in Web
SRVQUOT Service export/import for inquiry/quotations
SRVREL Changes to comm. structure for release of entry sheet
SRVSEL Service selection from non-SAP systems
SRV_FRM SRV: Formula calculation (obsolete since 4.0A!)
INTERFAC Interface for data transfer -
User exit to change Field labels( text) in VT01N
Dear all,
I have a requirement to change the Screen name of External ID1 ans External ID2 in identification tab to Seal and Trail. Is ther a user-exit to do this.
useful answers will be rewarded
Thanks
JHi
Find the available exits with the following program:::
*& Report ZFINDUSEREXIT
report zfinduserexit.
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).
Execute the report, give the transaction you want to find user exit, and query( press f8 ).
If no appropriate exit is available you can go for badi's.
To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
double click on method get_instance, get a break point on case statement.
execute and start the required transaction in new session.
look for variable <b>exit_name.</b> It would show the available badi's.
Hope this helps
<b>if it helped, you can acknowledge the same by rewarding</b>
Regards
Dinesh -
User exit to open field for change / ready for input in delivery
Hi !
We need to open a field for change / ready for input in the header level of a delivery after it has been goods issued. Is there a BADi / User exit that can open a field for change / ready for input in the delivery after the delivery has been goods issued ?
Regards,
Ashok.Hi,
As per the SAP Process it is not recommendable to edit the closed delivery. In order edit the devlivery you have to cancel the post goods issue and then update the same.
So there is a option like in PBO user-exits, we can force the status fields values and open up the delivery fields. But this would lead to inconsitency.
If you are updating just any information, you can always use the Text fields in header or items to update at any time of delivery processing.
Regards,
Sivparatap -
Regarding User Exit for SD Field Catalog
Hi All,
I need to insert a field called "Transportation Zone" in the field catalog.
Path: sproF5sales and DistBasic FunctionsPricing-Pricing ControlMaintain Condition Tables..
Now using CMOD Tcode, how to locate the appropriate Exit for this issue...???
Regards
PAvanHi Pavan,
You can see these user exits in SE38
To create a new field in the field catalog, the field needs to be put in field catalog with a Z name, say ZZ_TRZONE
Now you have to make changes in these 2 user exits to populate the transportation zone which is coming from masterdata into sales order , into the structure TKOMP ...etc which are populated during pricing. If you achieve that, then the condition records will be updated.
Please let me know if you need further information on this.
Rwd point if it helps.
BTW, These userexits are used only if the field which you want to include in the condition table is not in the list of allowed fields in the field catalog or not in structures KOMG, KOMP, KOMK. If the field is already there in field catalog and in all these structures, then there is no need for user exit. You just need to create the condition table.
Message was edited by:
iimnava
Maybe you are looking for
-
Does Santa Rosa MB Pro support portrait mode on an External?
A MacInTouch post says no. I'm now using a 17 in. G4 with an NEC 1980SX external that rotates. The display settings in my Tiger System Preferences allow me to rotate the display 90 degrees which makes working on 11x17 documents much easier. I want th
-
Can I convert a PDF to XLS with the trial version?
If so, how do I do this?
-
Using active x reference in teststand
I make multiple calls to active x dlls in multiple subsequences. Can anyone explain the advantages and disadvatages of creating a new object for each call? I initially created a new object only on the first call and then used the same local active x
-
Best data type to represent a file size
Hi All! I have to create a table which holds details abou the files which process on a system and maintain the file name process, size of the file in byts, full path location the file is stores etc. My question is what would be the best data type for
-
Customs Declaration: determination of Legal Regulation
Hi, given that the determination of Legal Regs should be based on 1Country, 2Country of dep/country of dest, 3Country of dep/country group of dest, 4Country group, 5Country group of dep/country of dest, 6Country group of dep/country group of dest, On