How to know about the User_Exit being called in MB31
Dear Sir,
Kindly guide us about the steps to be followed , for knowing that which USER_EXIT are being called during the MB31 transaction .
Also request you to kindly guide us about the steps to be followed in debugging of transaction MB31 .
We assure to give full points for the suggested solution pl .
Rgds
B Mittal
Hi,
Check the code below. This will give you the list of Active User Exits.
Hope this helps.
*& Report Y_TEST_USER_EXIT
&& This report displays all the active customer enhancements in the
*& system and also displays whether they are active or implemented
REPORT Y_TEST_USER_EXIT.
*Data decleration
types: begin of s_function,
fname like MOD0-FUNCNAME,
ftext like tftit-stext,
impl,
active,
example,
end of s_function.
TYPEs : BEGIN OF display_str,
project type modact-name,
enhancement type modact-member,
fm type modsap-member,
status type char20,
END OF display_str.
constants: c_true type char4 value 'True'.
data : lt_member type table of modact-member,
ls_member like LINE OF lt_member,
lt_fm type table of modsap-member,
ls_fm like LINE OF lt_fm,
lt_modname type table of modact-name,
ls_modname like line of lt_modname,
lt_display type TABLE OF display_str,
ls_display like LINE OF lt_display,
ls_function type s_function,
field1(30).
START-OF-SELECTION.
*Select active customer enhancement.
select name from modattr into ls_modname
where status = 'A'.
append ls_modname to lt_modname.
CLEAR ls_modname.
ENDSELECT.
if lt_modname is INITIAL.
WRITE / 'no active enhancements'.
endif.
*Determine the details about the customer enhancement.
LOOP AT lt_modname INTO ls_modname.
CLEAR : ls_display.
SELECT member from modact into ls_member where name = ls_modname.
select member from modsap into ls_fm where name = ls_member and typ = 'E'.
ls_display-project = ls_modname.
ls_display-enhancement = ls_member.
ls_display-fm = ls_fm.
clear : ls_function.
ls_function-fname = ls_fm.
perform get_impl_status USING ls_function.
if ls_function-impl = 'X'.
ls_display-status = 'Implemented'.
ELSE.
ls_display-status = 'Active'.
endif.
APPEND ls_display to lt_display.
endselect.
ENDSELECT.
ENDLOOP.
*Displaying results
format color = 1.
write : 'Please double-click on the object for follow-on action'.
new-LINE. uline.
write : 'Customer Project', at 30 'SAP Enhancement', at 60 'Exit Func Mod', at 100 'Active/Implem'.
ULINE.
format color = 0.
loop at lt_display into ls_display.
new-LINE.
write : ls_display-project, at 30 ls_display-enhancement, at 60 ls_display-fm,
at 100 ls_display-status.
ENDLOOP.
*For calling transaction CMOD / SMOD / SE37.
at line-selection.
get cursor field field1.
CASE field1.
WHEN 'LS_DISPLAY-PROJECT'.
set parameter id 'MON_KUN' field sy-lisel(10).
call transaction 'CMOD' and skip first screen.
WHEN 'LS_DISPLAY-ENHANCEMENT'.
set parameter id 'MON' field sy-lisel+29(10).
call transaction 'SMOD' and skip first screen.
WHEN 'LS_DISPLAY-FM'.
set parameter id 'LIB' field sy-lisel+59(30).
call transaction 'SE37' and skip first screen.
WHEN OTHERS.
message 'Click on the right place.' TYPE 'I'.
ENDCASE.
**& Form get_impl_status
*This FORM checks whether an EXIT FM is implemented or not
form get_impl_status using p_function type s_function.
data : l_mand LIKE tfdir-mand,
l_incl_names TYPE smod_names OCCURS 1 WITH HEADER LINE.
l_incl_names-itype = 'C'.
APPEND l_incl_names.
CLEAR l_mand.
SELECT SINGLE mand FROM tfdir INTO l_mand WHERE funcname = p_function-fname.
IF sy-subrc = 0 AND l_mand(1) = 'C'.
p_function-active = 'X'.
*l_status-active = c_true.
ELSE.
p_function-active = ' '.
*l_status-inactive = c_true.
ENDIF.
CALL FUNCTION 'MOD_FUNCTION_INCLUDE'
EXPORTING
funcname = p_function-fname
TABLES
incl_names = l_incl_names
EXCEPTIONS
OTHERS = 4.
IF sy-subrc = 0.
LOOP AT l_incl_names.
SELECT SINGLE name FROM trdir INTO l_incl_names-iname
WHERE name = l_incl_names-iname.
IF sy-subrc = 0.
p_function-impl = 'X'.
ELSE.
p_function-impl = ' '.
ENDIF.
ENDLOOP.
ENDIF.
endform. "get_impl_status
Also Check the code posted by me in the lonk below ,to get the List of available User exits and Badi for a particular tcode . very useful program.
Re: User Exit for IW22 - to populate custom fields
Hope it helps.
Manish
Similar Messages
-
Please tell me how i know about the factory unlock and Jailbreak unlock iphone4
I have purchase an iphone 4 from Los Angeles and the saler has confirmed that this is Factory unlock serial number of the iphone is QR1XXXXTA4S VERSION OF THE PHONE IS 4.3.5.
This is working here at Pakistan with local carier fantastic.
I would like to know that if I will go for update and this will not factory unlock the iphone will lock during the update what is the procedure to identify Factory unlocked and Jailbreak unlocked iphone4
Imran
< Edited By Host >It is against the TOS to discuss jailbreaking on the forums. Please remove your post with your email address. It has already been reported.
-
How to know about Description from the TransType...?
Hi All,
I have used SBO 2005 A PL 43 SP1 and have some queries below:
SELECT TOP 100 PERCENT T0.DocDate, T0.TransType, CAST(T0.BASE_REF as char) AS BASE_REF, T0.Warehouse, T0.CardCode, T0.CardName, T0.xInQty, T0.xOutQty, T0.Price, T0.Currency , T1.ItemName, T1.SuppCatNum, CAST(T0.InvntAct as char) AS InvntAct, T2.AcctName, T0.StatusDescr
FROM vwOINM_DEL0_02 T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode LEFT OUTER JOIN OACT T2 ON T0.InvntAct = T2.AcctCode
WHERE (T0.ItemCode = 'RO00 0465') AND (CAST(T0.TransType AS char(3)) + CAST(T0.CardCode AS char) IN ('13 ZZ0 Cash&Carry') OR (T0.TransType <> 13))
AND (T0.xDocDate BETWEEN CONVERT(DATETIME, '2008-01-01 00:00:00', 102) AND CONVERT(DATETIME, '2008-11-25 00:00:00',102)) ORDER BY T0.DocDate, T0.TransNum
TransType -
> is a field name on table "OINM"
How to know about Description from the TransType and where can we relate to the table?
example :
TransType Description
====================
15 Delivery
13 AR Invoice
59 Goods Receipt
60 Goods Issue
Please anybody can help me...?
Regards,
AgungYou can use function on sql side which to proper transid returns desciption.
The function is as
create FUNCTION [dbo].[trans](@trans integer)
RETURNS varchar(100)
AS
BEGIN
DECLARE @ret varchar(100)
select @ret =
case @trans
when 1 then 'oChartOfAccounts'
when 2 then 'oBusinessPartners'
when 3 then 'oBanks'
when 4 then 'oItems'
when 5 then 'oVatGroups'
when 6 then 'oPriceLists'
when 7 then 'oSpecialPrices'
when 8 then 'oItemProperties'
when 12 then 'oUsers'
when 13 then 'oInvoices'
when 14 then 'oCreditNotes'
when 15 then 'oDeliveryNotes'
when 16 then 'oReturns'
when 17 then 'oOrders'
when 18 then 'oPurchaseInvoices'
when 19 then 'oPurchaseCreditNotes'
when 20 then 'oPurchaseDeliveryNotes'
when 21 then 'oPurchaseReturns'
when 22 then 'oPurchaseOrders'
when 23 then 'oQuotations'
when 24 then 'oIncomingPayments'
when 28 then 'oJournalVouchers'
when 30 then 'oJournalEntries'
when 31 then 'oStockTakings'
when 33 then 'oContacts'
when 36 then 'oCreditCards'
when 37 then 'oCurrencyCodes'
when 40 then 'oPaymentTermsTypes'
when 42 then 'oBankPages'
when 43 then 'oManufacturers'
when 46 then 'oVendorPayments'
when 48 then 'oLandedCostsCodes'
when 49 then 'oShippingTypes'
when 50 then 'oLengthMeasures'
when 51 then 'oWeightMeasures'
when 52 then 'oItemGroups'
when 53 then 'oSalesPersons'
when 56 then 'oCustomsGroups'
when 57 then 'oChecksforPayment'
when 59 then 'oInventoryGenEntry'
when 60 then 'oInventoryGenExit'
when 64 then 'oWarehouses'
when 65 then 'oCommissionGroups'
when 66 then 'oProductTrees'
when 67 then 'oStockTransfer'
when 68 then 'oWorkOrders'
when 70 then 'oCreditPaymentMethods'
when 71 then 'oCreditCardPayments'
when 73 then 'oAlternateCatNum'
when 77 then 'oBudget'
when 78 then 'oBudgetDistribution'
when 81 then 'oMessages'
when 91 then 'oBudgetScenarios'
when 97 then 'oSalesOpportunities'
when 93 then 'oUserDefaultGroups'
when 101 then 'oSalesStages'
when 103 then 'oActivityTypes'
when 104 then 'oActivityLocations'
when 112 then 'oDrafts'
when 116 then 'oDeductionTaxHierarchies'
when 117 then 'oDeductionTaxGroups'
when 125 then 'oAdditionalExpenses'
when 126 then 'oSalesTaxAuthorities'
when 127 then 'oSalesTaxAuthoritiesTypes'
when 128 then 'oSalesTaxCodes'
when 134 then 'oQueryCategories'
when 138 then 'oFactoringIndicators'
when 140 then 'oPaymentsDrafts'
when 142 then 'oAccountSegmentations'
when 143 then 'oAccountSegmentationCategories'
when 144 then 'oWarehouseLocations'
when 145 then 'oForms1099'
when 146 then 'oInventoryCycles'
when 147 then 'oWizardPaymentMethods'
when 150 then 'oBPPriorities'
when 151 then 'oDunningLetters'
when 152 then 'oUserFields'
when 153 then 'oUserTables'
when 156 then 'oPickLists'
when 158 then 'oPaymentRunExport'
when 160 then 'oUserQueries'
when 162 then 'oMaterialRevaluation'
when 163 then 'oCorrectionPurchaseInvoice'
when 164 then 'oCorrectionPurchaseInvoiceReversal'
when 165 then 'oCorrectionInvoice'
when 166 then 'oCorrectionInvoiceReversal'
when 170 then 'oContractTemplates'
when 171 then 'oEmployeesInfo'
when 176 then 'oCustomerEquipmentCards'
when 178 then 'oWithholdingTaxCodes'
when 182 then 'oBillOfExchangeTransactions'
when 189 then 'oKnowledgeBaseSolutions'
when 190 then 'oServiceContracts'
when 191 then 'oServiceCalls'
when 193 then 'oUserKeys'
when 194 then 'oQueue'
when 198 then 'oSalesForecast'
when 200 then 'oTerritories'
when 201 then 'oIndustries'
when 202 then 'oProductionOrders'
when 205 then 'oPackagesTypes'
when 206 then 'oUserObjectsMD'
when 211 then 'oTeams'
when 212 then 'oRelationships'
when 214 then 'oUserPermissionTree'
when 217 then 'oActivityStatus'
when 218 then 'oChooseFromList'
when 219 then 'oFormattedSearches'
when 221 then 'oAttachments2'
when 223 then 'oUserLanguages'
when 224 then 'oMultiLanguageTranslations'
when 229 then 'oDynamicSystemStrings'
when 231 then 'oHouseBankAccounts'
when 247 then 'oBusinessPlaces'
when 250 then 'oLocalEra'
when 280 then 'oSalesTaxInvoice'
when 281 then 'oPurchaseTaxInvoice'
when 300 then 'BoRecordset'
when 305 then 'BoBridge'
when 260 then 'oNotaFiscalUsage'
when 258 then 'oNotaFiscalCFOP'
when 259 then 'oNotaFiscalCST'
when 261 then 'oClosingDateProcedure'
when 10 then 'oBusinessPartnerGroups'
when 278 then 'oBPFiscalRegistryID'
else '?' end
return @ret
end
and call it as
SELECT TOP 100 PERCENT T0.DocDate, dbo.trans(T0.TransType), CAST(T0 .... -
How do we let Apple know about the Apple ID Issue?
Hi, there seems to be an issue (Apple's end) with signing in to the Itunes store and the Mac App store. How do we let them know about the issue? Their service status shows all green lights so it seems they are not aware of the problem.... I don't know about you but I'm getting really frustrated.. !! PS It seems that my warranty has expired so I don't have direct access to their support ?! HEEEEEEEEELP! THAAAAAANX!!!!!
Milan, Italy, March 11Hi valelorandi,
I understand that you are seeing an issue with your connection to the iTunes Store and Mac App Store. I have an article for you that will help you address this issue, and it can be found below:
Can't connect to the iTunes Store - Apple Support
https://support.apple.com/en-us/HT201400
Thanks for using the Apple Support Communities. Have a good one!
-Braden -
Hi, Dear. I purcahse my iphone 4S on of the guy, my problem is when i update any app from App store and i click update there is an e-mail address is coming which i doesnt know about the password, how can i revome the e-mail address for update our apps.
Yes. Delete the Apps that were not Purchased using Your Apple ID.
But a Restore as New is the way to go. -
I have upgraded my OX from mountain lion to mavericks . the installer is asking for previous product key. How to know about previous key as the trial version is installed and I have paid for upgrade cost? I dont have the previous product key.
virenkhare wrote:
I have upgraded my OX from mountain lion to mavericks . the installer is asking for previous product key. How to know about previous key as the trial version is installed and I have paid for upgrade cost? I dont have the previous product key.
There are no keys, there is no trial version of OSX (ML or Mavericks) and Mavericks is free
What have you downloaded, and where did you get it -
How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?
Thanks for looking into this Jeff!
I work with an Inventory module software and is responsible for software detection across several computers. Once an updated version comes up, I update our database with latest software details to get it detected if installed on any machines.
The problem tracking updates with Desktop Creative Cloud Software are;
1)We have to have it installed with the CC applications in-order to get the notification of the latest updates and have to check everyday.
2)Only relates to the latest updates, so in-between we may miss a prior update unknowingly.Hence, the remote machines having those updates may not get detected with the software version update which would create problem in reporting.
3)For all CC products, there is no base or previous updates available for installation if we miss one.
I went through the Adobe Products Update pages [Product updates] which holds good when it comes to Acrobat and Reader software which I follow to track down any newer updates but this is inconsistent when it comes to CC products like in After Effects CC, Dreamweaver CC etc...
So overall to be very specific, is there any one channel I can follow to get the notifications only for the updates on CC products and then may be I can rely on Desktop Creative Cloud for installation if not available anywhere like in product update pages of Adobe ?
Regards,
Subrat -
I would like to have more information about the cookies being stored on my computer via firefox- such as last date accessed/created/modified; how can I add these options to cookie storage?
Maybe this extension will do that:
*Cookies Manager+: https://addons.mozilla.org/firefox/addon/cookies-manager-plus/ -
Hello! I'd like to know about the battery. Can it lose the capacity? What can i do to prolong it life time? Full charge? How to proceed ? Thanks.
http://www.apple.com/batteries/iphone.html
and:
http://support.apple.com/kb/ht1476 -
So mad about the picture being gone when receiving a call on os7.1
anyone else so mad about the picture being gone when receiving a call on os7.1 I need a fix for this!!!
we can not help you as we are not apple employees. Provide feedback directly to Apple: http://www.apple.com/feedback/
-
How do I know about the whole tables, sequences, triggers of the specific D
Hello,
I can check the whole tables of the db users with select * from tab; BUT can I know the whole META DATA of tables, sequences, triggers, procedures of a specific user?
Best regardsRaakh wrote:
Hello,
I can check the whole tables of the db users with select * from tab; BUT can I know the whole META DATA of tables, sequences, triggers, procedures of a specific user?
Oracle doesn't expose the metadata just like that but shows it in the various columns of various views based on the object type, for example like for tables, it would be in the user_tables and so on. If you are interested in knowing about the metadata of a specific object, you should use dbms_metadata package.
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/d_metada.htm#ARPLS641
HTH
Aman.... -
I've been watching the forums for a while now, and I know about the box shortage, but I'm afraid there are still some things that confuse me. It's been almost three weeks since I submitted a request for the first gen nano replacement program. Has anyone else been waiting this long? I admit, it's really frustrating to just have to wait with no word from Apple about when we can expect to recieve boxes.
I was also wondering if there's been any sort of answer on what the mailed-in nanos are being replaced with. Brand new first gen nanos, new nanos of a different generation, refurbished nanos (first gen or otherwise)? Maybe I've been looking in the wrong places, but I haven't seen a definitive answer. Has anyone completed the whole replacement program who can answer this?
Thanks for all the help! I was so excited when I first got the email telling me about this replacement program, but it's difficult when everything seems so vague.I was also wondering if there's been any sort of answer on what the mailed-in nanos are being replaced with.
Call the replacement program (phone# is listed) & ask them. -
How can i debug a rfc being called from sap
hello Gurus,
We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
the message "Name or password is incorrect (repeat logon)u201D.
How can i find out where the data has stuck.
Please help.
BR
HoneyHI,
please have a look at the link below..
this may help u !!!
[Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
Best of Luck !!1
Regards
Ravi -
Is there a dialing app which places icons on the screen along with the name being called?
Does anyone know of an app which places a limited number of phone numbers along with the name of the person being called on the screen of the iPhone? Our grandfather is 95 years old, and can not operate the small buttons on most cell phones, and has trouble navigating around the phone to make calls. We just want 3 phone numbers displayed, along with who is being called, so he does not have to navigate to anything except the main screen. Thanks.
http://itunes.apple.com/us/app/icon-project-home-screen-icon/id434277910?mt=8
-
Hi,
How to know whether the Content Type at Library level is Inheriting Parent Content type or not using Powershell?
Is there any property for that? Or Do I need to compare the Content type Id's at Site collection level and Library level?
Any help would be greatly appreciated.
Thank you,
AA.Hi Ashok,
For a content type, there is an attribute called Inherits, the value of this attribute determines whether the content type inherits fields from its parent content type when it is created.
If Inherits is TRUE, the child content type inherits all fields that are in the parent, including fields that users have added.
If Inherits is FALSE or absent and the parent content type is a built-in type, the child content type inherits only the fields that were in the parent content type when SharePoint Foundation was
installed. The child content type does not have any fields that users have added to the parent content type.
More information, please refer to the link:
https://msdn.microsoft.com/en-us/library/office/aa544268.aspx?f=255&MSPPError=-2147217396
Best Regards,
Wendy
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Maybe you are looking for
-
Oracle Application server 10g on vista
Hi Freinds, AMD 64 bit processor running os vista 34 bit. I want to install oracle application server 10g on windows Vista. when i run the set up its giving me an error but oracle certification table shows its vertified on vista. erro message: Checki
-
How can I add linkable urls when making a web gallery
I need linkable urls on a web gallery page - ie opening in the browser, preferably in a new window/tab. I thought I had it by manually editing: <contactEmail>url:http://mysite.co.uk</contactEmail> This *does* load Firefox, but the appended 'url:' is
-
Application to read 2 log files from internet
Hi, Anybody could tell me how to develop this project. I'm lack of time. thanks You have been asked into a company called Broken Arrow Software as a Senior Software Engineer and Management consultant. You are being paid very handsomely and have been
-
Can't start mysql 5.5 on MAC OS X server
attempting to start MySQL on Mac OS X server 10.6 fails with following error: [ERROR] /usr/local/mysql-5.5.8-osx10.6-x86_64/bin/mysqld: unknown option '--skip-locking' appreciate any advice or help how to fix this problem. thank you.
-
I have Lightroom 4.2 which isn't opening in Windows 7. A message comes up saying it's already open in another application; I can't see that it is. I've been using this successfully for 2 years now! I've tried shutting down and restarting; still not o