PMS BADI HRHAP00_DOC_STATNAME IMPLEMENTATION ASSIGNMENT IN SPRO
Hi PMS Experts,
I have implemented BADI "HRHAP00_DOC_STATNAME" and I wanted to know the place in SPRO where we can assign BADI "HRHAP00_DOC_STATNAME" implementation.
Thanks and Advance.
hi rajat,
i have implemnted this badi ..it definitley triggers in preparation and in planning...
but not in process phase...
in any case...was it the same issue..?
mey be its because of the std functionality Note 1306218 - Review Date not defaulted
rgds
gayathri
Edited by: Gayathri on Oct 6, 2009 8:48 AM
Similar Messages
-
BADI BBP_WF_LIST implementation
Hello,
I would like to implement a the BBP_WF_LIST BADI for confirmation (BUS2203).
Can someone explain me all the step I have to do. I never did this before and I don't know the step to do.
thanksHi
Implement the BADI - BBP_WF_LIST using SE18 Transaction for the filter type - BUS2203 for doing this job.
Here is the documetation of this BADI
<b>BBP_WF_LIST BADI</b>
Short Text
Display Worklists and Search Results Lists
With the Business Add-In BBP_WF_LIST , you can tailor the
display of worklists and search results lists for purchase order documents (and Sourcing applications) in SRM Server according to your own criteria.
Standard settings
The following methods are available:
BBP_WF_LIST for purchasing documents
BBP_WF_LIST_SOCO for the Sourcing application
In the standard version, the following differences exist between the display of worklists and search results lists:
Normal employees see only their own requirements and documents
The purchaser's worklist in Sourcing and in the application for processing purchase orders is dependent on assignment to an organizational unit.
The goods recipient and invoicing party can find all purchase orders, confirmations, and invoices.
As standard, the system sorts the purchasing documents in ascending order by the last date of processing.
To distinguish between the worklists and search results lists of the SRM Server applications, the BAdI is implemented dependent on the following filters:
BUS2201
Filter value for the worklist in purchase order processing in SAP Enterprise Buyer
BUS2203
Filter value for the worklist in confirmation processing in SAP Enterprise Buyer
BUS2205
Filter value for the search results list in invoice processing in SAP Enterprise Buyer
BUS2121
Filter value for the worklist in shopping cart status check in SAP Enterprise Buyer
BUS2200
Filter value for the search results list in bid invitation processing in SAP Bidding Engine
BUS2202
Filter value for the search results list in bid processing in SAP Bidding Engine
BUS2000113
Filter value for the search results list in contract processing in SAP Enterprise Buyer
Activities
Implement and activate the BAdI if you wish to adapt worklists and search results lists.
Note that the filter value Object type (field OBJECT_TYPE) determines for which application the BAdI implementation is active.
Example
Using the BadI BBP_WF_LIST you can sort the worklist by document number, for example, or remove documents belonging to a particular user from the worklist.
The implementation of the BadI using Business object type BUS2205 allows you to change the list of invoices and the purchase orders associated with these invoices independently of one another. For example, you could sort the purchase orders by purchase order number and the invoices by the name of the user who created them.
You can exclude bid invitations from a certain product category, for example, from the purchaser's search results list in SAP Bidding Engine.
You can exclude contracts from a certain purchasing organization or purchasing group, for example, from the purchaser's search results list in SAP Enterprise Buyer.
Further notes
If the BadI is used for confirmations and purchase orders, it always accesses the list of the actual document and its purchase orders.
The purchaser's worklist contains only requirements that, according to Customizing, are to be processed in the Sourcing application. See the IMG activity Define Sourcing for Product Categories.
Change Output List Purchasing Documents
Functionality
With method BBP_WF_LIST in SAP Enterprise Buyer, you can adapt the display list of the worklist for purchasing documents and search results lists according to your own criteria.
Parameters
Importing
FLT_VAL
Filter value
I_PDLIST_NEW
Entry list of worklist or the search results list and additional information
Changing
E_PDLIST
Output list of worklist or the search results list (contains only GUIDs)
<b>And Here is the sample Code for the BADI Implementation...</b>
METHOD if_ex_bbp_wf_list~bbp_wf_list.
DATA: t_header_guids TYPE TABLE OF bbp_guid_tab,
t_pdlist TYPE TABLE OF bbp_pds_pdlist,
t_messages TYPE TABLE OF bbp_pds_messages,
t_sc_guids TYPE TABLE OF bbp_guid_tab,
t_ref_doc TYPE TABLE OF bbps_sc_refdata,
t_itemlist TYPE TABLE OF bbp_pds_sc_itemlist,
t_conf_pdlist TYPE TABLE OF bbp_pds_pdlist.
DATA: wa_sc_guids TYPE bbp_guid_tab,
wa_pdlist TYPE bbp_pds_pdlist,
wa_ref_doc TYPE bbps_sc_refdata,
wa_itemlist TYPE bbp_pds_sc_itemlist,
wa_conf_pdlist TYPE bbp_pds_pdlist.
IF sy-tcode EQ 'BBPCF02'.
*--- First Get all the Reference documents
*--- Get all the Shopping Carts
CALL FUNCTION 'BBP_PD_SC_GETLIST'
TABLES
i_header_guids = t_header_guids
e_pdlist = t_pdlist
e_messages = t_messages.
*--- Sort the SC based on SC number
SORT t_pdlist BY object_id.
*--- Get all the Header Guids
LOOP AT t_pdlist INTO wa_pdlist.
wa_sc_guids-guid = wa_pdlist-guid.
APPEND wa_sc_guids TO t_sc_guids.
ENDLOOP.
*--- Get all the Reference Document for the Header Guids
CALL FUNCTION 'BBP_PD_SC_REF_GETLIST'
EXPORTING
i_item_not_deleted = 'X'
TABLES
it_header_guids = t_sc_guids
et_refdata = t_ref_doc
it_logical_systems = 'R3BACKENDSYSTEM' -> Give he R/3 backend system RFC Destination name here
EXCEPTIONS
nothing_found = 1
OTHERS = 2.
*--- Retain only the PO (Business Object 2012)
DELETE t_ref_doc WHERE ( be_object_type NE 'BUS2012' AND
be_object_type NE 'BUS2012001' ).
*--- Sort all reference documents based on be_object_id - Purchase Order numbers.
SORT t_ref_doc BY be_object_id.
*--- Loop on all remaianing POs
*--- Use SC Guid (Header)
LOOP AT t_ref_doc INTO wa_ref_doc.
DELETE e_pdlist WHERE object_id = wa_ref_doc-be_object_id.
ENDLOOP.
*--- Here make a call to the R/3 system by using your RFC Function module
*---- and update e_pdlist [] table which finally will contain all the
*--- detialed confirmations starting with Document type - "EB"
*---- based on the document type "ECDP" and "ECPO" - Add one more document type "EB" ..
*---- so when ever BBPCF02 is called in ITS it should disply the POs
*--- which are based on document types as "ECDP" "ECPO" and "EB".
ELSEIF sy-tcode EQ 'BBPCF03'. " Display All PO/Confirmations
*--- Similar code as above
ENDIF. "if sy-tcode eq 'BBPCF02'.
ENDMETHOD.
Hope this will help.
Please reward suitable points, incase it suits your requirements.
Regards
- Atul -
BADI - Multiple implementation
Hi,
I know the how the badi multiple implementation is done and how filter usage is done. But Badi is for enhancement for standard SAP so in which kind of situation it is possible. Can any one give an example where this can be implemented multiple times.
Regards,
RajeshHere is the software delivery process
SAP->IBU->Partener->Customer
So the given enhancment(Badi) can be implemented in the above process chain by the parties involved.
ALso check http://help.sap.com/saphelp_47x200/helpdata/en/c8/1978b543b111d1896f0000e8322d00/frameset.htm
Cheers,
Hakim -
BADI HRPAD00INFTY Implementation
Hi,
I have a query related to BADI implementation HRPAD00INFTY. We have implemented this BADI to delimit the record and create a new one of Bank details(infotype 0009). When in PA30, we copy a record whose End date is infinite i.e. 12/31/9999. After copying the record, copied record should get delimited with the end date as last changed date, as todays date. And end date of new record should get set to infinite date as above.
New record is getting created correctly, but the delimited record's end date is not getting changed. As per analysis, when we try copying the record first time, the dates get set correctly and further not. The IN_UPDATE method of BADI is not getting called in next change sessions.
Please advise on same or let us know for any solutions if any.
Thanks,
Rupali.Try like this
method IF_EX_HRPAD00INFTY~BEFORE_OUTPUT.
Data: LV_WA(20) Type C Value '(MP002100)VIEW_REPID'.
Types: T_VIEW_REPID Type T582V-REPID.
Field-Symbols: <FS_REPID> Type T_VIEW_REPID.
Assign (LV_WA) To <FS_REPID>.
endmethod. -
Agentry Work Manager 6.0: BADI to enhance assignment type
Hi,
I have the requirement to more or less combine the work order assignment types 1 and 2. I have to fetch the operations based on its assigned personal number, but at the same time I have to fetch a work order and all the operations if the Agentry user is the work order header responsible.
Unfortunately this is a single value parameter so I set the assignment type to 2. Now I thought it would be really easy to fetch the work orders based on the assignment type 1 since there is a BADI available after each assignment call method:
WHEN '2'. "Operation level
me->get_assignment2(
EXPORTING
iref_rfc_oo_data = iref_rfc_oo_data
IMPORTING
et_return = lt_return
et_wo_object = lt_wo_object ).
IF NOT gref_badi_wo IS INITIAL.
CALL BADI gref_badi_wo->get_assignment_type2
EXPORTING
iref_mdo_data = me->oref_mdo_data
CHANGING
ct_wo_object = lt_wo_object.
ENDIF.
So inside the BADI gref_badi_wo->get_assignment_type2, I wanted to call the me->get_assignment1 method, and then join the 2 internal tables values.
But the problem is once the BADI is called it is not possible to call this method since we only have the OREF_MDO_DATA object which has the original class as a inaccessible private attribute. I could try to copy and adapt the me->get_assignment1 code but there are some attributes that are not accessible inside the BADI. Do you see a simple and elegant solution to this requirement?
I would like to avoid creating a new Z handler class inheriting from the standard one...
Thank you.
Tags edited by: Michael ApplebyHi,
I just wanted to close this old thread since what I did long ago to solve the issue is to replicate the me->get_assignment1 inside the me->get_assignment2 BADI method code. It is not just a copy paste since from the BADI you don't have access to some MDO handler private data.
But it is possible to replicate all the fetch process except when doing a delta with exchange since I couldn't easily get the necessary data from the main MDO. But even if you get all the work orders ID's, after the BADI the standard code checks the exchange table again and rules out the unnecessary WO ID's. -
FI Payment Release Workflow Agent assignment and SPRO settings.
Hi Experts,
I am working on Payment release workflow for 2 stages. So for this i have activated the main workflow WS00400012 and for First level release WS00400011 and for second level release WS00400021.
Now where should i assign the agent for First level release and second level release ? and what setting should i do in SPRO as FI settings.
Any of you suggestions will be of great help me to resolve this issue.
Regards,
HariHi,
Thank you for your reply.Should i mention the main workflow number in SPRO or
just the subworkflows alone ?.
Assign main workflow number
Can i assign users directly in workflow itself insteas of assigning position in SPRO.
Don't assign users inside the workflow, if the user id you want to change then again you have to change the workflow.
Regards,
Surjith -
BADI FTR_CUSTOMER_EXTENT Implementation for Facility creation - TM_61
Hello Experts
I am trying to add new tab in the create facility transaction and I feel that the right BAID to do this is FTR_CUSTOMER_EXTENT. I am not able to update the new values in the screen to the database table. I check in the forum and there are many questions for the same but there is no clear answer for the same. Request your help in letting me know how this can be achieved.
I have also checked the same Function Group FTR_CUSTOM_BADI_SAMPLE but still I am not clear as to how I can achieve this.
Thanks in advance
Vijay VHello Claudia,
I finally solved the problem, and I hope my solution may suite your problem.
The bigger problem I had was pass the data from the screen to the BADI itself, so I created a function group following the FTR_CUSTOM_BADI_SAMPLE in which I developed the objects.
Those are the steps I followed:
I enhanced the structure VTBFHA with the custom field I needed;
I created an implementation for the FTR_CUSTOMER_EXTENT
in EVT_APPLICATION_START method I called a function module (copied from the FTR_CUSTOM_BADI_SAMPLE_START) in which I started the subscreen I draw in new tab. (Please note that by doing this I now have the interface if_open_trtm_customer_data always at hand). Follow the instruction of the sample code or the http://scn.sap.com/thread/1534252 thread)
in the PBO of the subscreen I retrivied the custom data via GET_CUST_DATA of the IF_OPEN_TRTM_CUSTOMER_DATA interface and pass the data in my screen fields. In order to do that I called a function module developed in the same function group, so that the interface is ready to be used.
in the PAI of the subcreen, once the data is entered I pass the new data via SET_CUST_DATA of the IF_OPEN_TRTM_CUSTOMER_DATA interface, again developing a FM within the function group of the EVT_APPLICATION_START custom function module I used.
I am sure there must be a better solution, but it owrked pretty fine for me, so I hope this my help you as well.
Moody -
Badi For Account Assignment Category in me21n
Hi All,
I am trying to implemnt badi for me21n for assigning default account assignment category as E.
i got the badi for ME_PROCESS_PO_CUST .
But the the problem is i dont find account assignment category field(KNTTP) in trhe metyhods tab.
No othe badi is getting triggered.
Please help me out in this regard.
Thanks and regards
Ibrahimhi,
i hope this will help you.
DATA:
ls_acc TYPE REF TO if_purchase_order_account_mm,
ls_item TYPE REF TO if_purchase_order_item_mm ,
ls_hdata TYPE mepoheader ,
ls_header TYPE REF TO if_purchase_order_mm ,
ls_idata TYPE mepoaccounting,
ls_data TYPE mepoitem_data .
DATA : lv_werks TYPE wrf1-locnr .
DATA : vlfkz TYPE wrf1-vlfkz.
DATA : matkl TYPE mara-matkl.
DATA : ls_ana TYPE zmm_ana_hesap.
DATA : lv_okset TYPE c.
ls_acc = im_account .
*get item from account
CALL METHOD ls_acc->get_item
RECEIVING
re_item = ls_item.
*get item header
CALL METHOD ls_item->get_header
RECEIVING
re_header = ls_header.
*- Get item header data
CALL METHOD ls_header->get_data
RECEIVING
re_data = ls_hdata.
*- Get item data
CALL METHOD ls_item->get_data
RECEIVING
re_data = ls_data.
*- Get account data
CALL METHOD ls_acc->get_data
RECEIVING
re_data = ls_idata.
lv_werks = ls_data-werks.
***Conversion Exitler
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_werks
IMPORTING
output = lv_werks.
SELECT SINGLE vlfkz FROM wrf1 INTO
vlfkz
WHERE locnr EQ lv_werks.
SELECT SINGLE matkl FROM mara INTO
matkl
WHERE matnr = ls_data-matnr.
SELECT SINGLE sakto INTO ls_ana-sakto FROM zmm_ana_hesap
WHERE matkl = matkl
AND vlfkz = vlfkz
AND bsart = ls_hdata-bsart
AND knttp = ls_data-knttp
IF sy-subrc EQ 0 .
ls_idata-sakto = ls_ana-sakto.
lv_okset = 'X' .
ENDIF .
* buraya lv_check ya da sakto bou015F ise için kosul gelecek
IF lv_okset IS NOT INITIAL .
*- Set item
MOVE-CORRESPONDING ls_data TO ls_idata .
CALL METHOD ls_item->set_data
EXPORTING
im_data = ls_idata.
ENDIF.
ENDMETHOD. -
BADI - "REDUCT_TRIP_AMOUNT" implementation is not working
Dear all,
While creating or changing trip data i got one badi "REDUCT_TRIP_AMOUNT". i was implemented badi.
Badi implementation is not working. There was hard code break point "BREAK-POINT." i was writen in badi , But is not comes in way of execution.
Since BADI name i am getting, BADI implementation is not working..
Let me know any config required or what...
Regards,
VipulHello Vipul,
I am having the same problem, I am trying to implement the BADI ''REDUCT_TRIP_AMOUNT'' for deducting the TRIP Amount for leave days , but when I put the hardcode breakpoint , it is not stopping anywhere.
Kindly help .
Regards,
Vishal Chauhan -
BADI ME_PROCESS_PO_CUST Implementation is not called
Hello,
I have created a test implementation(local object) for BADI ME_PROCESS_PO_CUST and implemented the Process_Item method to compare item price with material master commercial price. I have also activated the implementation.
When I create a PO using ME21N, this implemenation is not getting called. I have put a breakpoint in the implementation but processing doesn't stops here. Also I am not able to find 'Where used' of the BADI name or the interface 'IF_EX_ME_PROCESS_PO_CUST'.
What are the reason for above behaviour? Do we maintain this BADI name in some Customizing Table?
Please help.
Regards,
Shubhami did the same as you did and the code is clearly getting triggerred.
Samle Code:
DATA : l_header TYPE REF TO if_purchase_order_mm.
DATA : l_conditions TYPE mmpur_tkomv.
DATA : l_item LIKE LINE OF l_conditions.
DATA : l_data TYPE mepoheader.
CALL METHOD im_item->get_header
RECEIVING
re_header = l_header.
CALL METHOD l_header->get_data
RECEIVING
re_data = l_data.
CALL METHOD im_item->get_conditions
IMPORTING
ex_conditions = l_conditions.
CALL METHOD im_item->set_conditions
EXPORTING
im_conditions = l_conditions.
if i put break-point on any of these methods the implementation is getting trigerred. -
User exit / Badi for Account Assigned Sales Order billing
We are planning to collect the royalty in the condition type.We want to accumulate the condition in the Internal Order.After certain period we want to close the orders .Can any one suggest the Userexit / Badi for this type of Billing / Pricing
Thanks
JeevanHello,
please have a look in the customizing transaction SPRO:
> SPRO
> Sales and Distribution
> System Modifications
> User Exits
Here you can find the documentation of all Userexits for SD.
I hope that the information are helpful.
Regards
Claudia
If you are satisfied with the answer, please give Reward Points -
BADI to implement add link in appraisal process
hi,
I want to implement "add links" in appraisal Process, please suggest me simple way using BADI.
Please reply as soon as possible..
Thanks,
HemantIn appraisal a lot of changes can be made to the standard via Badis. A list of all user exit/Badi available in this functionality can be seen via PHAP_ADMIN >Utilities menu >Badi overview
Hope this info can help you.
Best Regards -
BADI ADDRESS_CHECK implementation
I am trying to implement Badi ADDRESS_CHECK to validate address using regional structure .But in SE19 during implementation when i click on methods ' IS_ACTIVE_FOR_COUNTRY & ADDRESS_POSTAL_CHECK'
to maintain the ABAP code..it is throwing a message like " specify filter types ".
Can any one suggest me how to set filter to this BADI .
Thanks & Regards,
Rahul DOn se19 screen>attributes tab>in below selection screen TYPE add an new row>and put in ISO CODE as IN>Save.
-
Hi experts
I defined a BADI which has a subscreen. In my calling program i call followed method to call BADI
CALL METHOD CL_EXITHANDLER=>GET_INSTANCE
EXPORTING
EXIT_NAME = 'MyBADI Define Name'
CHANGING
INSTANCE = EXIT.
CALL METHOD CL_EXITHANDLER=>SET_INSTANCE_FOR_SUBSCREENS
EXPORTING
INSTANCE = EXIT.
PROGRAM = SY-REPID.
DYNPRO = SY-DYNNR.
CALL METHOD CL_EXITHANDLER=>GET_PROG_AND_DYNP_FOR_SUBSCR
EXPORTING
EXIT_NAME = 'MyBADI Define Name'
CALLING_PROGRAM = PROGRAM
CALLING_DYNPRO = DYNPRO
SUBSCREEN_AREA = 'SUBSC'
IMPORTING
CALLED_PROGRAM = PROGRAM
CALLED_DYNPRO = DYNPRO.
In my BADI implementation I defined a program which has a sub screen and put something on the sub screen and declare the called prog and call dynpro with the program name and the screen name. When i run the calling program,the subscreen can't display. can you tell me why?
Thanks
BR
ChrisHi, I solved the first problem by my own. Following you have to consider:
1.) the Subscreen has to be in a function where
a) the subscreen itself is defined
b) a function module is defined for the method set_data. This function modul is called within the method set_data and
receives the data from the BAdI through its import parameter. These data is mapped to the subscreen fields. The
subscreen fields have to be defined within the top include.
c) The same you have to do with the get_data method, just the way around. The function modul has export parameters to
transfer the data to the BAdI. Within the module you map the subscreen fields to the export parameters.
Still, open is how force the application to save the data entered ... but I'll figure it out ... you can bet on it! -
Hi all
can anybody explain me about the account asignment category in MM..
1.What is the significance of account assignment category in MM
2.What are the SPRO activities we have do for the same
Thanks
sap-mmHi,
Account assignment category: - A key indicating whether an item is to be assigned to an auxiliary account (such as a cost center). The account assignment category determines which account assignment details are required for the item (for example, cost center or account number).
Configuration: -
SPRO > MM > Purchasing > Account Assignment > Maintain Account Assignment Categories
Activities: -
1. Check the attributes of the account assignment categories
2. Maintain the account assignment categories to suit your requirements
SPRO > MM > Purchasing > Account Assignment > Define Combination of Item Categories/Account Assignment Categories > If you have created new account categories, you maintain the combinations for the item categories here.
SPRO > MM > Purchasing > Account Assignment > Set Subscreen for Account Assignment (Coding) Block
Activities: -
1. Check whether the standard SAP subscreens meet all your requirements.
2. Create new subscreens if necessary.
3. If necessary, change the priority or the active indicator for the preset subscreens.
SPRO > MM > Purchasing > Account Assignment > Assign Default Values for Asset Class > In this step, you can specify a default asset class for each material group. If you then order a material from the material group and create an asset for the purchase order, the system will insert this default value.
Maybe you are looking for
-
Quits while importing; pictures in library folder don't show in window
Quits while importing; photos are in iPhoto Library, but don't show up I have about 6500 photos in iPhoto 5.0.4. Everything worked well until this week when I went to import a series of new pictures. I import from a Scandisk card reader. The process
-
HP TouchSmart application will not start
We purchased an HP IQ 526 TouchSmart desktop with Windows Vista Home Premium 64-bit machine approximately two months ago. We use Clearwire to connect to the internet. About a month ago the HP TouchSmart applilcation stopped working. It will not start
-
The video appears on Quick Times but I can't get the video to show
When a video comes in I can hear the audio on my Quick Time Player, but the screen stays black without any video. what's going on ?
-
Help!!! iPhone in recovery mode after update!!
My iPhone went into recovery mode after updating!!! It's telling me to restore but I'll loose everything ive been trying to transfer! I can't loose these photos. Please tell me there's a way to fix it???
-
How to get the music player--for audio books--to p...
I've been using a Sony MP3 player to listen to audio books that I can chek out of my local library using a software product known as "Overdrive Media console" I see that there's an app for this on the Nokia 920, but the only output I can get is via