BADI for IW31 which has values of Plant,Fundcenter,cost center
Hi,
My requirement is that While running IW31,if the first four characters of Settlement Rule(Cost Center) and FundsCenter is not equal to Planning Plant then an error message should be raised . Can you suggest any appropriate BADI or User Exit for this?
Path for Funds Center-->Go to>Assignment--->Funds Management
Thanks
K Srinivas
Hi Srinivas,
In order to find Badi or User Exit, you can put a STOP point at class CL_EXITHANDLER and in method GET_INSTANCE, CALL METHOD cl_exithandler=>get_class_name_by_interface and then you can execute the Tcode and then at every click it will stop in debugging & give the name of the Exit or Badi.
Hope it Helps...
Regards,
Shailesh Jadhav
Similar Messages
-
BADI for VL31N which has the Inbound Delivery Number as a parameter.
Hi,
I have a requirement that after creation of a new inbound delivery through VL31N the control should go to a custom screen. The new inbound delivery no. generated thru VL31N should be seen in this custom screen.
I am searching for a user exit or BADI for VL31N. This exit should have the Inbound delivery Number created through VL31N.
I tried many exits and BADIs. However, none of them have the Inbound Delivery No.
Please help.
Regards,
JayaThe issue was resolved by the use of the BADI 'DELIVERY_PUBLISH'. Its method PUBLISH_AFTER_SAVE was used.
IF sy-tcode = 'VL31N' OR sy-tcode = 'VL32N'.
DATA : v_tcode TYPE sy-tcode .
FIELD-SYMBOLS: <i_del> TYPE likp.
DATA: wa_likp TYPE likp,
t_likp TYPE STANDARD TABLE OF likp.
ASSIGN ('(SAPMV50A)LIKP') TO <i_del>.
wa_likp = <i_del> .
SET PARAMETER ID 'VL' FIELD wa_likp-vbeln .
ENDIF. -
Why will new Photos ap on mac not email? No "email" pulldown -shows "more" for extensions which has Outlook checked but does me no good.
I am struggling with the same problem. I have two HP 4100dtn printers on ethernet. Each has a manually assigned IP address. I can set up the printer(s) just fine in the Print & Fax Preference and Snow Leopard finds the printer just fine when I enter the IP address and chooses the correct HP Driver.
When I try to print, my print job appears in the queue as expected, than an error appears that something about a "bad command". Sorry, I'm home right now and don't have direct access to the printer so I can't give you the precise language of the message, but the gist of the message is that the system tried to connect to the printer to send the print data but the printer does not know how to respond to the command that was sent.
It's as if the firmware in the 4100 just doesn't have something in it's lexicon that Snow Leopard needs. The HP web site is no help. One page I found says the printer is supported (http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&obje ctID=c01664444&jumpid=regR1002USEN ) and another page I found says that it is not supported (http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&obje ctID=c01879014&jumpid=regR1002USEN). The HP on line chat won't let me log in and hold a chat with HP unless I know the Serial Number of the printer, which I don't have here at home.
More to follow tomorrow.
Anyone have any ideas? -
BADI for IW31/32 (work order)
Hi,
I have to find BADI for IW31/32 (work order). The requirement is to update delivery address on automatic PR created from non-stock items of the work order.
Please suggest. Points will be rewarded for appropriate suggestions.
Thanks,
ParvatiHi
Execute the below program . It will give you all exits and badis for a transaction.
You can excute this by giving IW31 in the selection screen and you will get the badis and exits related to it.
REPORT Z_FIND_BADI .
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.
do 2 times.
enddo. -
Plant and Cost Center are not displaying in FI doc. for asset scrap ABAVN.
Hi All,
When we do asset retirement by Scraping using Transaction Code ABAVN, Plant and Cost center are not appearing in the FI document. But, in the master data the Plant and Cost center are assigned for the particular Asset.
When I see the FI document display, the fields Cost Center and Plant are blank. Business Area and Profit Center fields are getting updated.
Can any one help me how to get this Plant and Cost Center in the posted document. Is there any OSS notes for this. I am using ECC 6.0 version.
Thanks in advance for your help.
Regards,
RajeshRajesh
Aditional on me answer.
The systemtakes not the cost center from the asset you have to assign it in OKB9 or to fill in during this posting:
Steps
Click on Simulate, than you see the posting screen:
Click on the line (pk 40)
Click on Goto and Additional account assignment and fill in the cost center whatu2019s in the master record of the asset and post
An other option is to make a substitution to get this information -
Hi all,
can u plz send me the mandatory fields(along with discription) for creation of FB60(vendor invoice),and FK01(cost center).
thank u,
Srinivas Reddy.The FK01 is the transaction used to create a Vendor.
The mandatory fields are:
a. NAME1: For Name
b. SORT1: For CUIT number.
c. SORT2: For alternative CUIT number.
d. CITY1: For city.
e. STCD1: Tax Number.
f. Others depending the case.
For FB60 (Vendor invoice) the mandatory fields are:
a. ACCNT: Number of Vendor Account.
b. BLDAT: Date.
c. XBLNR: Reference Number.
d. WRBTR: Invoice Amount.
e. HKONT: G/L Account Number.
f. WRBTR: Invoice Amount. The same as d but in the item.
g.MWSKZ: Tax Type. Depending the case.
h. KOSTL: Cost Center. Depending the case but is highly probable that the field were mandatory.
i. Others. Depending the case.
I have given to you the most probably fields that are mandatory for those transactions.
Your Sincerely
Leonardo Lopez
FI Consultant -
Badi for IW31 to keep check on Funds Center and Settlement rule
Hi,
My requirement is that While running IW31,if the first four characters of Settlement Rule(Cost Center) and FundsCenter is not equal to Planning Plant then an error message should be raised . Can you suggest any appropriate BADI or User Exit for this?
Path for Funds Center-->Go to>Assignment--->Funds Management
Thanks
K SrinivasHii Srinivas,
Did you find any solution for this, i am also encountering the same problem.
Regards,
meenakshi -
I would like to populate the cost center in work order to PR. Is there any user exit or BADI ? I had try IWO10009, it doesn't work.
Please help on this. Thanks.Hi all
I am from FICO but I have quite the same issue. I would really appreciate if PM gurus can help me in this. From FICO point of view, the Cost Center from t/code iw31 needs to be populated so that later, auto-created PR then PO followed by GR, will be reflected in Cost Center Reports such as Cost Center:Actual/Plan/Variance. This is important for accurate management reporting. In addition, t/code FBL3n Display Line Items for that G/L account, will show which Cost Center expenses are posted into.
Eva
Does this why you need the Cost Center to be populated?
Thanks & regards
Fauzi -
Why can I no longer specify my preferred font for text which has a link attached to it?
I use TBird to send old school, professional looking business letters with logo image header and footers. Recently, I am unable to apply my preferred font to the website link part of my footer. This seems to have become an issue after one of the more recent upgrades of TBird. Its frustrating as I feel good graphic design requires uniformity in font style/type and size. This seems no longer possible. Now when I attach a hyperlink to my website address it changes my preferred font to something that looks like Arial and locks both font and size. It looks crappy.
''Kits47 [[#answer-701080|said]]''
<blockquote>
The only way I know its 12 pt. is that I copy into Word and check the font size there.
</blockquote>
Huge error number one, and probably cause of your problem in the first place.
<blockquote>
I would really like to see TBird use point size for fonts.
</blockquote>
Thunderbird uses HTML, HTML is expressed in pixels.
<blockquote>
In terms of not having Papyrus on you Linux box, I suppose that's you're choice.
</blockquote>
Licensing actually, not choice. The font is licensed and distributed by Microsoft. See http://www.microsoft.com/typography/fonts/font.aspx?FMID=1113 for a list of products your recipient can install to get the font.
<blockquote>
In my outgoing email subject line I always specify that my reply is best viewed in HTML, full screen.
</blockquote>
HTML is the default for almost all mail so that does appear to be overkill. Full screen. Personally I would be just as likely to not read mail that required full screen. Mail gets about half a screen here.
<blockquote>
Most systems will automatically substitute fonts for ones not on that system, at least in Apple and PC systems. </blockquote>
Papurus actually has a higher chance of being present on a Mac system than a windows one as Apple have distributed it with OSX since 2003.
<blockquote>
Anyway all of that is a little off topic. I wanted help with why TBird intermittently messes with font size and style when I cut and pasting email responses to people.
</blockquote>
As I said at the beginning. Do not use word. Word first converts to RTF then to HTML (All done internally) The resulting HTML is extremely complex and to put it bluntly pastes as a whole page from which Thunderbird must extract only the relevant parts. (inside the body tag) The end result is the program ends up confused about what goes where.
<blockquote>
And, if there is some reason why sometimes, again I stress sometimes, it will not let me use the font of my choice for text that has a hyperlink attached to it.
</blockquote>
If your pasting from Word the most obvious thing will be that the hyperlinked text will have it's own font tags another reason I suggest you use the program your in.
* If you want it on paper use a word processor. It is what they are designed for
* If you want it in email use the email program to actually write your mail.
* If you want to guarantee the look on delivery send PDF attachments. -
Dear all,
When i create a maintenance order(iw31) with reference to equipment it defualts teh equipment cost center, in the location tab.
I have a requirement to change the cost center based on the workcenter / priority, when i save the order.
Is there is any user exit / Badi available for my requirement?
Regards
MuraliHi
Enhancement/ Business Add-in Description
Enhancement
IWO10012 Maintenance order: Priority handling on central header
Business Add-in
IWO_UI_USEFLEX BAdI for Calling Up an Alternative UI
No.of Exits: 1
No.of BADis: 1
Arunima -
Hi All,
I am looking for a BADI or userexit for IW31, service order. when entering a component, (ex. material AAA), click on availability check, if the qty committed < qty required, then update the component with different material (ex. material ABC instead of AAA).
your help is greatly appreciated.Hi,
Try BADI
IWO1_TL_INTEGRATION
IWO1_ORDER_BADI
Hope it helps...
Lokesh
pls. reward appropriate points -
BADI for VA01 which are not for internal use ???
Hello Folks,
Im looking for BADIs which are not for internal use for the transaction VA01...
Could anyone send all the BADIS which can be implemented for VA01...
Thanks in advance...
ReddyHi there, you are lucky enough because I have found them almost a few days ago:
---------- BADI for VA01 ----------
A1) BADI
BEFORE (choosing any ORDER: ....) :
- BADI_SD_SALES
- BADI_SD_SALES_BASIC
- UKM_R3_ACTIVATE
- BADI_LAYER
- BADI_MATN1
AFTER (choosing ORDER NR - xxxx -) :
- ADDR_PRINTFORM_SHORT
- BADI_SD_SALES_ITEM
- BADI_IBASE_AUTHORITY
- BADI_IBASE_IBCO
- CU_CONFIG_DELEGATION
- CUKO_PLANT_CHANGE
- EHS_DG_002
- SD_COND_ACCESS_A
- BADI_SD_TO_FM
AFTER CHANGING something in all items and shifting to TAB "item detail":
- BADI_SD_DPBP
- CFOP_DET_PREP
- ADJUST_NET_DAYS
- BADI_SD_SALES_ADDON
AFTER CHANGING something again in all items and shifting to TABS:
- CFOP_DET_PREP
AFTER SAVING:
- /SAPSLL/CTRL_SD0A_R3
- QUANTITY_STRUCT_CK
- DYNPRO_EXTENSION_CK
- IBRT_GEN_ADD_IN
- VALUATION_CK
- WORKORDER_UPDATE
- ATP_PUBLISH_RESULTS
- FM_FYC_RECOVERY_POST
- FMAVC_DECO
- GM_POSTING_CONTROL
- BADI_ISPS_GRANT
- DIP_UPDATE_FKDAT
- CACL_CHARACTER_INPUT
- /SAPSLL/CTRL_SD0A_R3
- /SAPSLL/RFC_DEST
- /SAPSLL/CTRL_SD0A_R3
- /SAPSLL/IFEX_SD0A_R3
- /SAPSLL/KMAT
- BADI_SD_UPDATE_PLVAL
- CUX_ADD_IN
- BOM_EXIT
- WORKORDER_EXEC_STEPS
In case you may need them...
---------- USER EXIT for VA01 ----------
A2) USER EXIT for VA01 :
SDAPO001 Activating Sourcing Subitem Quantity Propagation
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly
V45L0001 SD component supplier processing (customer enhancements
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing
A3) CLASSICAL USER-EXIT per VA01:
--- include MV45AFZZ ---
FORM userexit_delete_document.
FORM userexit_field_modification.
FORM userexit_move_field_to_vbak.
FORM userexit_move_field_to_vbap.
FORM userexit_move_field_to_vbep.
FORM userexit_move_field_to_vbkd.
FORM userexit_number_range USING us_r
FORM userexit_pricing_prepare_tkomk.
FORM userexit_pricing_prepare_tkomp.
FORM userexit_read_document.
FORM userexit_save_document.
FORM userexit_save_document_prepare.
Hope its enough
Denis Mullaraj -
ME_PROCESS_PO_CUST Plant and Cost Center Validation Isuue
Hi Friends,
I have a requirement to validate ME21N PO creation with Account assignment 'K'. In our Business Process, we have 2 plants lets say 3000 and 5000. Plant 3000 is linked to Business Area say 4000 and Plant 5000 is linked to Business Area 9000. Now we have unique cost center assignment in both Business areas.
My requirement is when i enter wrong cost center then system has to validate it with plant and has to pop up error message in PO creation. With BADI ME_PROCESS_PO_CUST, i am able to populate the error message when i enter wrong cost center but i can save the PO which is wrong.
Please help me on this issue.
I have written in my logic in BADI ME_PROCESS_PO_CUST -> PROCESS_ACCOUNT.
Thanks,
-Ziadhello ziad
Some sample code, same code is there in POST also. just refer it, not as per your requirement.
CHECK
METHOD if_ex_me_process_po_cust~check.
Konstanten
CONSTANTS: lc_e(1) TYPE c VALUE 'E',
lc_x(1) TYPE c VALUE 'X',
bsart TYPE bsart VALUE 'FO',
ekorg TYPE ekorg VALUE 'REPL'.
DATA: ls_mepoheader TYPE mepoheader.
INCLUDE mm_messages_mac.
Rechungspläne müssen mit der Belegart FO und in der
EKORG = REPL angelegt sein
Get header data
ls_mepoheader = im_header->get_data( ).
IF ls_mepoheader-bsart EQ bsart AND ls_mepoheader-ekorg NE ekorg.
Create Message
mmpur_message_forced
lc_e
'ZI_MM'
'007'
ls_mepoheader-bsart
ls_mepoheader-ekorg
CALL METHOD im_header->invalidate( ).
ELSEIF ls_mepoheader-bsart NE bsart AND ls_mepoheader-ekorg EQ ekorg.
Create Message
mmpur_message_forced
lc_e
'ZI_MM'
'008'
ls_mepoheader-bsart
ls_mepoheader-ekorg
CALL METHOD im_header->invalidate( ).
ENDIF. -
SAP report which display PO nos based on cost center, Internal orders
Hi.
I am looking for a report in MM which will display the list of purchase orders for a cost center, Internal orders etc.
The report output should have ALV grid format,The output of the report should have material no or short text, PO quantity, PO Price, PO value. GR qty, GR value,IR qty, IR value, G/L to which consumption has posted etc.
Reports ME2K, MB5S, ME80FN do not show the G/L account to which GR value is posted.
Basically I am looking for a existing report which is readily available.Hi
I dont think there is standard report. we have developed custom report one of my previous project.
YOu can try a abap query using tables EKKO, EKPO, EKBE and EKKN.
regards
Srinivas -
Mapping of Plant to Cost Center
Is there any direct mapping of plant to the cost center?
If so, pls. provide the transaction code through which we can check the same.
Also provide the table, if any.Hi,
If you are talking about getting the Default Account Assignment (Cost Center) for a Cost Element as per Plant (Valuation Area) then go to OKB9 and maintain the GL A/c with default Cost Center keeping value as "1" i.e. Valuation area is mandatory in the column of mandatory fields of Account Assignment.
Maybe you are looking for
-
Ipod touch comes up in itunes but i have no tabs?! Help!
When i plug my ipod into itunes, it comes up on the side but the only thing that comes up when i click on it is ipod! Thats all it says ipod! Plz help!
-
Hi I am tuning a very slow procedure.For this dbms_statspack has been created and the report between two snap ids is taken. The report is very exhuastive and I need to point where to attack. e.g Top 5 Wait Events db file sequential read 339,500 117,3
-
Hi all.. I download the lollipop firmware and updated through flashtool. All Is okay no issue but the camera is not working.. I mean its opening but it is not focusing anything and when I click the shutter the camera app freezes.. Please help
-
ITunes will not run on my computer since I tried to upgrade the software
I performed an upgrade a while back to my iTunes software. Every since then it will not open even though it says it is running in my task manager. I tried uninstalling and reinstalling a hundred times with no luck so far. I recently went to the iTune
-
Hey everyone, I'm trying to compile a program that I wrote, but I cannot get it to come up. In command prompt, I set the directory to where I have the program saved: C:\Java I already have the path set to: c:\program files\java\jdk1.6.0_13\bin When I