How to create application log in SAP
According to my reqirement,I need to display messages in the application log whenever some updation is done.
How to do create application log and display messages in the application log.
Hello Smriti
If you have interface IF_RECA_MESSAGE_LIST available on your system then I highly recommend to use as message collector.
When you create an instance of the interface (CF_RECA_MESSAGE_LIST=>CREATE) you can provide an application log object.
The collected messages can easily be saved as log.
For an example have a look at my Wiki posting [Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
Regards
Uwe
Similar Messages
-
Hi,
I have written a report which gathers errors in a test data container.
These errors are stored in a internal table of type stringtab.
I want to create a Application Log of these errors so that the user can
view it at a later time.
Are there predefined function modules available in ABAP for creating and viewing log?
Kindly provide me the details.
Regards,
Bikash.Hi Monika,
Is it necessary to add messages from message class in
BAL_LOG_MSG_ADD --> Put message in log.
Is there any way where a string can also be added and viewed from a application
log?
For my use case i actually have a stringtab for which i want to have a log.
Regards,
Bikash. -
How to create application component in SAP R/3
Hi gurus,
I have created one custom defined master data in SAP R/3.I need to replicate it in BW.So I need to create one application component by own.is it possible to create custom application component instead of assigning it to SAP R/3 application component?.
Thanks & Regards,
BharathTo my knowledge you cannot create an application component of your own. Assign it to an existing appropriate app component.
-
How to create different log files for each of web applications deployed in OC4J
Hi All,
I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
1. how to create different log files for each of my deployed web applications ?
2. what are the advantages in running multiple instances of oc4j and in what case we should run
multiple instances of OC4J ?
3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
Thanks and Regards,
Kumar.Hi Avi,
First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
Thanks and Regards,
Ravi. -
Need a report created that tracks how long users are logged on SAP.
Hi Abapers,
is there any report that tracks how long or how often users are logged on SAP.
I mean total time that the user had been logged on sap system.
Pelase provide me any related tables or T.code apart from usr02 whcih has last log on date and time.
Thanks in advance ..Check Prg: SAPMSM20
-
How to create system message in SAP EP?
Dear All,
How to create system message in SAP EP?
i need to find solution for this task. Is there any way without collaboration? For example in SLD there is "System message" without additional functions. Please help.
Portal installed on Netweaver 7.01 EHP1Hi Abay,
You need to develop custom application to accomplished your requirement for system message in the potral.
Please have a look at "Brodcast messages to logged on users in Portal:
Brodcast messages to logged on users in Portal(Part1)
Brodcast messages to logged on users in Portal(Part2)
Also you can develop system message in the KM and integrate in the portal.
Hope it will helps,
Regards, Arun Jaiswal -
Proceedure of how to create a logo in SAP R/3
Dear Techie's,
Please tell me the Proceedure of how to create a logo in SAP R/3 and how to include in the ALV.
I suppose its to be included in the ALV_comentary_write function module.
Please guide me in full.
Regards,
-=Virendra=-HI,
Please follow below steps
(1)Create a class name
SBDSV1 (TRANSACTION) --> New Entries --> Class name (SOME NAME) --> Class type (OT).
2)After entering the above details and saving, the fields Class object name fields will be blank, make entries as shown below .
1) Class : BDS_LOC1
2) Class : BDS_POC1
3) Class : BDS_REC1
4) Object name : BDS_CONN00
3)- Now next time logging in to OAOR you can directly refer to this Class name.
4)1) Go to transaction OAOR, give the class name created.
2) Give class type as OT
3) Give some name in object key its like sub folder
5) a) Click on create drag down standard doc types will get no. of option chose one
b) double click on the class name in this new screen.
c)in the below screen are, you have tabs for details,documentinfo,keywords,create, click on create TAB,
d)By double clicking on screen you can browse the folder where image is located and select it
e)Once the image is selected it will be stored in the folder that is created with object key
6) now double click on the image you uploaded & in below screen area select the Details tab, you will get object id,use this object id & code as below
7)form FILL_EVENTS .
DATA: wa_events TYPE SLIS_ALV_EVENT.
CLEAR: LS_EVENTS.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
IMPORTING
ET_EVENTS = LS_EVENTS
wa_events-form = 'STD_TOP_OF_PAGE'.
MODIFY ls_events FROM wa_events TRANSPORTING FORM WHERE NAME =
'TOP_OF_PAGE'.
CLEAR: wa_events.
endform. " FILL_EVENTS
FORM STD_TOP_OF_PAGE.
DATA: it_listheader TYPE SLIS_T_LISTHEADER,
is_listheader TYPE SLIS_LISTHEADER.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheader[]
I_LOGO = 'ZTEST' "this is object id mentioned in 6 step
I_END_OF_LIST_GRID =
ENDFORM.
Regards,
Raghavendra -
How to create a map in SAP BI???
Dear SAP BI Experts,
I have a difficulties to make a map in BI and missed the steps procedure how to create a map. I have an ESRI CD Map and Arc VIew application. What is the first step if i want to create a map and is there any procedures or manuals from the beginning "how to create a map in SAP BI" ???
So sorry for stupid question!!!
Thank you very much for your time and help.
Best Regards,
Rudy (SAP BI Team)Hi Nirmansyah,
Please check the below link.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/step-by-step%20procedure%20for%20creating%20customized%20bex%20maps.pdf
Hope this helps.
Veerendra. -
How to create application toolbar in modal dialog box in selection-screen
Hi Experts,
how to create application toolbar in modal dialog box in selection-screen?
Regards,
SwapnikaHi,
Check the following link regarding Model dialog box and appication toolbar
http://help.sap.com/saphelp_nw70/helpdata/en/d1/801b84454211d189710000e8322d00/frameset.htm
It helps in solving your problem.
Thanks.
Ramya. -
Writing Application Log of SAP PI
Hi All,
I have a requirement to update the Application Log of SAP PI 7.1 with Ehp1 whenever mapping for a particular pair of Sender and Receiver is executed.
SenderA (JMS) -> SAP PI (update Application Log; SLG1) -> ReceiverA (JMS).
I have already seen this blog: /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility but it seems to be written long back.
How should this be done in PI?
Thanks
PankajYou can do this with an RFC lookup in message mapping, or with a BPM by calling an abap proxy that post a log in SLG1.
-
How to create userdefined menus is sap b1
hai,
i have small doubt:
how to create userdefined menus is sap b1
thank u
nagababuUI API provides two methods for creating and setting menus
<b>Dynamically in Run Time</b>
this method is used to add a dynamic menu to your add-on forms. The dynamic menu is updated each time a new form gets focus.
to use this method initiate the <b>MenuCreationParams</b> object and call <b>Menus.AddEx</b> to add the menu into the application.
<b>XML Batch Operation</b>
Use this method to load or update multiple menus simultaneously. In addition, this method allows reusing of your code in a resource-like manner to improve performance.
After creating the menus in your code, call <b>Menus.GetAsXML</b> to get the entire SAP Business One menu structure in an XML file and call <b>Application.LoadBatchActions</b> to load the XML file instead of calling specific Add methods in your code.
hope u will get idea abt creation of user-define menus..
Nirdesh -
HI SAP Gurus,
Please let me know the purpose of application log and the creation of it.
I am strugling with one standard report which have a BADI to it.
It is equipement status report(IW38).
In the production we find some equipments which are not serviceable even all the orders are done.
I need to find the reason for that. So, i was sugested to create application logs. But i dont know about it. Please let me know.
Will be rewarded with points.
Regards,
KishoreHi
Look at the Tcode <b>SLG1</b> which gives the application log
You have to create a Object, Subobject for your application to see your own tcode log
and you can use the following fun modules in your code as per the requirement
SBAL Application Log: Collect Messages
BAL_GLB_SEARCH_LOG Application Log: Global: Find log(s) (in memory)
BAL_GLB_SEARCH_MSG Application Log: Global: Find message(s) (in memory)
BAL_LOG_CREATE Application Log: Log: Create with Header Data
BAL_LOG_EXCEPTION_ADD Application Log: Log: Add Exception
BAL_LOG_EXCEPTION_CHANGE Application Log: Log: Exception: Change
BAL_LOG_EXCEPTION_DELETE Application Log: Log: Delete Exception
BAL_LOG_EXCEPTION_READ Application Log: Log: Exception: Read Data and Texts
BAL_LOG_EXC_ADD Application Log: Log: Exception: Add
BAL_LOG_HDR_CHANGE Application Log: Log: Header data: Change
BAL_LOG_HDR_READ Application Log: Log: Header Data: Read Data and Texts
BAL_LOG_MSG_ADD Application Log: Log: Message: Add
BAL_LOG_MSG_ADD_FREE_TEXT Application Log: Log: Message: Insert as free text
BAL_LOG_MSG_CHANGE Application Log: Log: Message: Change
BAL_LOG_MSG_CUMULATE Application Log: Log: Message: Add Cumulatively
BAL_LOG_MSG_DELETE Application Log: Log: Message: Delete
BAL_LOG_MSG_DELETE_ALL Application Log: Log: Message: Delete All Messages
BAL_LOG_MSG_READ Application Log: Log: Message: Read data and texts
BAL_LOG_REFRESH Application Log: Log: Delete log from memory
SBAL_DB Application Log: Database Interface
BAL_ARCHIVE_LOAD Application Log: Archive: Load Logs
BAL_ARCHIVE_SEARCH
BAL_DB_DELETE Application Log: Database: Delete Logs from Database
BAL_DB_LOAD Application Log: Database: Load Logs
BAL_DB_SAVE Application Log: Database: Save logs
BAL_DB_SEARCH Application Log: Database: Find Logs
Regards
Anji -
How to create an infotype in sap ecc6.0 ?
Hi all,
I know i how to create an infotype in sap 4.7, but i am facing the problem while
creating an infotype in sap ecc6.0 version. could u plz provide me the info with screen shots how to create an infotype and how to enhace that infotype ?
Waiting for u r response.
Regards,
RaviHi ,
To create OM infotype:
1. Go to SE11 and create a structure HRI9XXX (9XXX --> name of the infotype). Add the required fields to this structure and save and activate. then come out of it.
2. Go to PPCI and enter Infotype number (9XXX) and description.
3. Click create.
4. In the infotype category select details for the infotype.
5. Click create button. It should create the infotype.
6. Click on Check. A window with menu will open.
7. In that window navigate to Table Entries.
8. Under table Entries, select T777I and click on change.
9. It opens SM30. Click on Maintain.
10. Select the infotype and add information for "Time Constraint" and "Infotype Per Object Type".
11. Save.
12. Go back to check menu, see if all entries exist. Do not worry last 5 table entries. And you are done -
HOW TO CREATE A VARIABLE IN SAP SCRIPT
HI ALL,
CAN ANYONE TELL ME HOW TO CREATE A VARIABLE IN SAP SCRIPT.
THANK YOU,
BYE
TAKE CARE.Hi Ravi,
You can use like this
A text in the editor contains the following DEFINE commands:
/: DEFINE &mysymbol& = 'xxx xxx xxxxx xxxx'
&mysymbol&
/: DEFINE &mysymbol& = 'yyyyy yyy yyyy'
/ &mysymbol&
The printed text appears -
How to creat purchase register in SAP r/3 system?
Dear All,
Please tell me how to creat purchase register in sap R/3 system.HI
I think there is no standard functionality in sap u need to develop with abaper help with proper logic
if it is for venijula s_alr_87009936 try this t.code
Thanks & Regards
Phaneendra
Edited by: phaneendra Reddy on Jun 12, 2009 9:24 AM
Maybe you are looking for
-
Automatically closing statements
Hi. Is there a way to automatically close all statements and ResultSets associated with a Connection if all you have is the Connection? (without closing the Connection) Thanks.
-
How to Delete the Previos Month Forcast/Demand
HI Experts We have Put some forcast and Demand in the month of april and May in my MRP list still I can able to see the forcast. becz we have not consumed that forcast. Can any one tell me how to delete, or how to set to dele
-
Back to my mac no longer working with iCloud
Now that I have converted my mobileme to iCloud, back to my mac is no longer functioning properly. As far as I can tell, my AEBS doesn't like my back to my mac login credentials, even though they are correct. I can log in via settings on each compu
-
I have a full version of CS4 Web Design Premium, now my old Photoshop CS4 and Illustrator CS3 are redundant. Can I either sell these or give as a gift to my girlfriend's nephew - they have been deactivated and removed from my computer (macbook pro).
-
I have two sites, one for my wife and my own. Both "E'Mail Me" buttons access my old e-mail address when clicked. I use Mail 1.3 where we have mailboxes under my ISP account. Is there a way to fix this, assigning my wife's address to the button on he