BADI for t-code PTMW
Hi Experts,
I am implementing BADI PT_BLP_USER for the transaction PTMW.
We have to seperate logic for create record in PTMW and delete record. But I am not able to capture the delete action while the BADI is triggered.
Can any1 please let me know, sample code is always welcome. The filter I have set is SAV.
Thanks & Regards,
Manas
Hi
Implementing screen enhancement in XD01 is some what tricky.
First of all, you have create a screen group in SPRO. For example 'ZC'.
To assign screen:
Implement BADI: CUSTOMER_ADD_DATA_CS
Method: GET_TAXI_SCREEN
To activate screen:
Implement BADI: CUSTOMER_ADD_DATA
Method: CHECK_ADD_ON_ACTIVE - Write the following code.
CASE I_SCREEN_GROUP.
WHEN 'ZC'. " SCREEN GROUP
E_ADD_ON_ACTIVE = 'X'.
WHEN OTHERS.
ENDCASE.
Similar Messages
-
User EXIT, BADI for T-code ME21n, ME21
Hi Guru's,
I have rquirement where for some company codes user dont want GR and GR based invoicing if net price for PO is less than 100 GBP as it is very small quantity.
To achive this we have to uncheck Goods receipt check bax from tab 'Delivery' and uncheck inv. receipt check box from tab 'Invoice' of item level view at the time of PO creation.
Now, i am serching for User exit or BADI which will serve this purpose, as T-code ME21n is enjoy transaction for ME21 i dont think we will get any user exit, we have to do it through BADI.
If anyone has done something like this and have idea how i can achive this please revert back.
regards,
Rahulhttp://www.erpgenie.com/sap/abap/code/abap26.htm
which gives the list of exits for a tcode
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.
It may help you.
Best Regards,
Vibha
*Please mark all the helpful answers -
Exit or badi for t code EXPD (Progress Tracking)
Hi Gurus
I have to add two fields in t code EXPD (Progress Tracking) can you please tell me the name of Exit or BADI for that.
Thanks In advance.
Chitta Ranjan MahatoFrankly, I never worked on EXPD (Progress Tracking).
Still, I believe the following SAP Help link will be helpful to you:
- [ BAdIs for Progress Tracking |http://help.sap.com/saphelp_470/helpdata/en/d6/89412e7197f1438e16baf05abe2fe5/content.htm]
Regards
JP -
User-Exits/Badis for T.Code Co01 Production Order
Hi Friends,
Please can any one give the User-Exits/ Badis For Co01 , I need to link the Material with Documents....
Thanks,
Ravi...........These are the available user exits..
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines -
User exit or badi for transaction code CORS
Hi All
I am looking for user exit or badi to update item text while executing transcation code CORS.
Please Advice
Thank You
Ravindra SuvarnaHi
Check these enhancements and exits
CONFPS05 PS confirmation: Customer specific enhancements when saving
EXIT_SAPLCORF_010 PS Confirmation: Customer-Specific Enhancements when Saving
CONF0001 Enhancements in order confirmation
EXIT_SAPLCORU_001 Order Confirmation: Deactivation of Functions -
Hi,
I have a task here that needs to send external email to the employee's manager whenever the approver set the status from 'released for approval' to 'approve'.
which is status 20 to 30 in CATSDB-STATUS thru transaction code CAT4 or
CATS_APPR_LITE.
Can anyone give some help here?
Thanks in advance.Hi,
there are mainly three ways to trigger a workflow:
- linked to a change document, because in standard function module to write change documents a trigger for a workflow is pre-designed. With workflow-customizing you can activate an active trigger.
- linked to output messages. There is a medium 9, which is the workflow trigger.
- linked to status changes. Maybe not all status change functions include a pre-designed workflow trigger, but at least for status in table JEST it should be possible to make workflow-customizing to activate a trigger.
- 'manually' with a function module SWE_EVENT_CREATE.
It's also possible to define filters (e.g. only status = approved), so your example was perfectly fitting workflow possibilities. If no other option is fitting, have a look at above mentioned exit.
Then you still have the question, should you try to define a workflow or just create a mail by FM. There I can't help you, this depends more on your skills and time.
Regards,
Christian -
User Exit or BADI for T.code CO11N
HI All,
I created a Production Order(100023) using TCode CO01 with 10 Qty.
When i am creating a Production Order confirmation using TCode CO11N, i Confirmed 9 Qty and 1 Qty for Rework Order, it is confirming the 9Qty and creating a new Production Order (100024) for 1Qty.
As per the requirement it is working fine. While system creating a Production Order (100024) for the Rework Qty, i need to populate the Reference Production Order number (100023) in the field Ref. Order in Control Data tab in the Production Order.
Can any one suggest me how to populate this field? Is this possible by any USER EXIT or BADI ?
Or Can we do it by configuration?
Regards,Hi Prakash,
Thank you for response,
I tested this EXIT, it consists only Original Prod Order and its Confirmation details only. It doesn't have the Rework Prod Order details.
I need to populate the Original Prod Order number in Rework order control data.
Regards,
Srinivas K -
User Exit or Badi for transcation code COR6N
Hi All
While saving the document through COR6N, i want to update the item text of all the items with the value of the batch number of the second item in the item list.
I am looking for user-exit or badi where I got access to MSEG internal table and it also allow me to change item text.
Please advice.
Ravindra SuvarnaCheck this Badi WORKORDER_GOODSMVT.
and in this COGI_POST have access to the MSEG table.
Regards
Vijay -
User Exit / BADI for F-02 during SAVE to update BSEG Line Items.
Hi Experts,
I need a User Exit / BADI for Transaction code F-02 which triggers during save to update BSEG-SGTXT with Vendor / Customer
name in the Tax Line Item.This is to update table BSEG .
Thanks in Advance,
NithyHi,
Do it with the BTE 00001120 (tcode FIBF).
I hope this helps you
Regards,
Eduardo
PD: I forgot, check this link. It will tell you how to do it
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
Edited by: Eduardo Hinojosa on Jul 15, 2009 6:38 PM -
Userexit/BAdi for CBIH102 (HR-EHS module)
Hi guru's,
Please help find the userexit/BAdi for Transaction code: CBIH102. The Requirement is to auto-populate the Accident Category (CCIHT_IPEVA-IALPCAT) field during the Creation/Change mode. I tried the below exits/BAdi & set all the breakpoints, activated CMOD projects and even implemented BAdi. It is not triggering. Enhancement Framew
Object Name Description
EHSIAHM1 EH&S: Menu Exit 1 for Incident/Accident Log Header
EHSIAHM2 EH&S: Menu Exit 2 for Incident/Accident Log Header
EHSIAPM1 EH&S: Menu Exit 1 for Incident/Accident Log Person
EHSIAPM2 EH&S: Menu Exit 2 for Incident/Accident Log Person
EHSMPHM1 EHS: Menu Exit 1 for Measurement Project Header Data
EHSMPHM2 EHS: Menu Exit 2 for Measurement Project Header Data
EHSMPJM1 EHS: Menu Exit 1 for Measurement Project Measurements
EHSMPJM2 EHS: Menu Exit 2 for Measurement Project Measurements
EHSSARA EHS: Check/Edit Lines in SARA List Before Printout
BAdi Name Description
EHSI_AC_COSTC EHS: Cost Calculation in Safety Measures
EHSI_ANNC_RATCP EHS: Calculation of Rating of Standardized Criteria
EHSI_ER_MEX_01 EHS: Risk Assessment Menu Exit 1
EHSI_ER_MEX_02 EHS: Risk Assessment Menu Exit 2
EHSI_ER_MEX_03 EHS: Risk Assessment Menu Exit 3
EHSI_ER_MEX_04 EHS: Risk Assessment Menu Exit 4
EHSI_FAL_***_SRV_SCR EHS: Screen Enhancement: Injury/Illness Log-Service Assignmt
EHSI_FAL_MEX_01 EHS: Injury/Illness Log Menu Exit 1
EHSI_FAL_MEX_02 EHS: Injury/Illness Log Menu Exit 2
EHSI_FAL_MEX_03 EHS: Injury/Illness Log Menu Exit 3
EHSI_FAL_MEX_04 EHS: Injury/Illness Log Menu Exit 4
EHSI_IA_RPHDFLG_COMP EHS: Determ. of Reportable Event Indicator in Inc./Acc. Hdr
EHSI_INT_ORG_1403 EHS: Write Long-Term Average to Infotype 1403
EHSI_MJVA_MATCHUP EHS: Transfer Measured Values - Amounts
EHSI_MJ_IMPORT EHS: Import Measured Values
EHSI_MJ_MEX_01 EHS: Measurement Management - Measurement - Menu Exit 1
EHSI_MJ_MEX_02 EHS: Measurement Management - Measurement - Menu Exit 2
EHSI_MP_CREATE EHS: Create Measurement Projects
EHSI_MP_DV_SCR EHS: Screen Exit: Device List in Measurement Management
EHSI_MP_EPI_IMP EHS: Import Exposure Profile
EHSI_MP_METHOD_HELP EHS: F4 Help for Measurement Method
EHSI_MP_MEX_01 EHS: Measurement Management - Meas. Project - Menu Exit 1
EHSI_MP_MEX_02 EHS: Measurement Management - Meas. Project - Menu Exit 2
EHSI_WA_MEX_01 EHS: Work Area Menu Exit 1
EHSI_WA_MEX_02 EHS: Work Area Menu Exit 2
EHSI_WA_MEX_03 EHS: Work Area Menu Exit 3
EHSI_WA_MEX_04 EHS: Work Area Menu Exit 4
EHSI_WA_OVERALL_RAT BAdI Default Impl.: Work Area Overall Rating
EHSI_WA_RECEIVED_RAT BAdI Default Impl.: Work Area Received Rating
EHSI_ACPM_DATA_TRANS BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_HEAD_SCR BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_MEX_1 BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_MEX_2 BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_PAY_SCR BAdI Default Impl.: Work Area Received Rating
EHSI_IAL_COSTS_SCR BAdI Default Impl.: Work Area Received Rating
EHSI_IPEVA_TIMDAT EHS: Make the Multiple Absences in the I/A Log flexible
Regards,
VinayakUp please )
-
Stop standard process in user exit (or badi) for ME21N.
Hello,
I have implemented a user exit (and also a BADI) for transaction code ME21N.
The user exit is executed before saving the purchase order.
In my user exit, I just check data and if they are wrong, I just want to stop the process displaying an error message.
So, I've just used 'MESSAGE Exxx(xxxx)'.
The problem is that the standard process catch the error and treat it in stead of stopping. The standard process treats the error and proposes the user to chose if he(she) wants to continue or to stop (within a popup).
I just want to stop the process, displaying a error message.
If someone has a idea about how I can realise that, please let me know.
Giuseppe,Which Exit/Badi did you implement? And Error message should normally stop the process. Maybe you have implemented the wrong exit.
-
Hi all,
I'm trying do find a user-exit/badi for t-code VF01, that allows me to change at the same time,some fields, of the header structure VBRK and items structure VBRP (all the items available). Until now, all the user-exits i've tried dont allow me to change both structures at the same time, neither badi (SD_CIN_LV60AU02). Regards,
PCastroHi,
may be you are trying to chage the some other BADI. to find the exact BADI, follow this procedure.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction
if you follow this 7 steps, you will find a suitable BADI.
pl reward if it helps.
Thanks & Regards
Sadhu Kishore -
Why badi HRPAD00INFTY can't work in t-code PTMW?
hi:
why badi HRPAD00INFTY can't work in t-code PTMW? if I want to do enhancement about PT infty in PTMW,what should i do?Please refer to help document for BAPI:HRPAD00INFTY which allows you to react to specific events in Personnel Administration. If you need logic in TMW, implement BADI PT_BLP_USER. Further information can be found in section 6.a of SAP Note 447097.
Regards
Chetan -
User Exit or BADI for Updating Tax code (MWSKZ) using ME21N
Hi all,
I am trying to fin out an exit or badi for Updating Tax code (MWSKZ) and Unit of Measure in transaction ME21n.
The scenario is like this...
For Purchase Orders Tax code will be defaulted from Purchasing info record or contract or parameter id for that item-vendor-plant.
If the Tax Code is not defaulted and account assignment is blank then tax code on the PO is updated according to the below mentioned table
Table
Supplying Plant/ Receiving Plant Tax code
Vendor/Country
Any plant/vendor/
country 5050(NA) 20
2300 6700 E0
If the tax code on PO cannot be updated by the above table, then buyer needs to put tax code on the purchase order manually.
Thanks,
Shiva, BangaloreHi Siva.,.,.,
These r the exits.,..,which will be called while calling ME21N/ME22N/ME23N
EXIT_SAPMM06E_006
EXIT_SAPMM06E_007
EXIT_SAPMM06E_008
EXIT_SAPMM06E_009
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
EXIT_SAPMM06E_014
EXIT_SAPMM06E_016
EXIT_SAPMM06E_017
EXIT_SAPMM06E_018
U want to default some values while the Initial screen will come right,
while u Enter ME21N in command Prompt.,.,two exits will get triggerd,
EXIT_SAPMM06E_014
EXIT_SAPMM06E_016
If u want to Default some values u can use these two exits.,.
Try using EXIT_SAPMM06E_016.,.this will solve ur purpose.
and if the user changes some values on screen.,,and you want them to get reflected .,.,.that means if user changes and saves data .,.
While saving.,.,EXIT_SAPMM06E_012 and EXIT_SAPMM06E_013 will get triggerd
Try using EXIT_SAPMM06E_013.,,.it was somehow the same requirement as mine.,.,IN my case it worked fine.,.,
Regards
Debasish
Message was edited by:
Debasish Das -
Sample Code in BADI for Open Hub Services
Hi all,
We have a requirement to extend(add few new fields and populate them using BADI) for the target structure of Infospoke in Open hub services.
I have 2 issues which are stopping us to proceed further.
1. I did this by just adding new fields in this change mode of target Structure (didn't used 'Append structure' as while saving and creating T.port request,its popping error like 'Structure not present in TRDIR).I am not able to assign this to any T.request,as of now I have saved it as Local object.How can I assign this to an request?is it possible?.
2. After putting breakpoint in the BADI I don't see any data in the Importing table.I need some sample code in the BADI which should populate the New fields in the target structure.
It will be great if anyone of you will give us any solution for the same.
Thanks,
Rahul.
Edited by: Rahul Siddi on Oct 12, 2009 3:04 PMHello Rahul,
Find the code below with the steps to be implemented.
Enter your infospoke in the edit mode.
- On the Transformation tab set the indicator for the Infospoke with Transformation with BADI so that the infospoke is activated.
- This will take you to the Addin implementation/BADI builder.
- Enter the short text/description for the implementation. The implementation name is always the same as the technical name of the infospoke
- The implementation of the BADI is always filter dependant.
- In the properties tab of the infospoke enter your infospoke under the Filter specifications.
If you do not specify an InfoSpoke under Filter Specifications, then this implementation is valid for all InfoSpokes. This means that this is called up for all InfoSpokes during the extraction.
- Activate your class
- From your interface tab page, double click on the Transofrm Method and you will arrive in the class builder page
- Here you can enter the code
- To do a look up of the master data you have to write a code similar to the one I've given below. This is just an example for looking up material master.
IF FLT_VAL = 'Your infospoke'.
T_DATA_IN] = I_T_DATA_IN[.
Select zstd_cost from /bi0/pmaterial into table T_return
For all entries in T_DATA_IN
WHERE material = T_DATA_IN-material.
...Continue with your code.
Append output from T_return to your output E_T_DATA_OUT
- Activate your method. Return to the BAdI builder. Return to your InfoSpoke.
Check if you missed any of these...
Kris...
Maybe you are looking for
-
Server 2012 R2 Active Directory delegation and access
May be a simple question... In my company I have installed a backup domain controller on hyper-v for IT administration. All I want the IT admin guy to do is create users, modify their password and join clients to domain. He should not be allowed to c
-
TS1363 Iphone just shows the apple and blinks on and off.
Iphone just shows the apple and blinks on and off.
-
Hi, I'm a newbie to JMF and how to handle media file stream over RTP. What I need to do now is to receive a media stream from RTP, then play it and save it to a file at the same time. I have read throught the example and explanation on the Java Sun w
-
Understanding the data storage
Hello, In order to understand very well what happens regarding the data in the cube and in the relational database, here is a little scenario. Clould you please tell me whether my understanding is correct or not. Further precisions are welcome : If I
-
HTML editor with syntax highlighting and UTF-8 support
In an ongoing effort to move our lives into the cloud and into our pockets (and as a part of an article series for a tech blog), me and a friend are trying to completely replace the need for computers with our iPhones. In some ways, it is going splen