Which trigger to use for error logging output ?
hello,
is there a trigger which is executed every time
an error occurs in report generation ?
so that i can write the error-message via
"TEXT_IO" to an external file every time the
trigger fires ?
any suggestions
greetings
thorsten lorenz
No, there's no equivalent of the Forms On-Error trigger. Please see my response in your other thread for information on where the error messages can be found.
Hope this helps,
Danny
Similar Messages
-
Hi experts,
I would like to ask if you happen to kmow an alternative FM to 'SMPO_DISPLAY_MESSAGES'.
The thing is I'm using error log in my program and I configure it so that there is just a pushbutton in the ALV. Once the button is pushed, the error encountered in the execution of the program will show.
Using FM 'SMPO_DISPLAY_MESSAGES' would show the pop-up for errors while executing the program and not after execution.
If you happen to know any alternative for this FM, it would really help.
Thanks in advance.
JenUse below FMs
BAL_LOG_CREATE
BAL_LOG_REFRESH
BAL_LOG_MSG_ADD
BAL_DSP_LOG_DISPLAY
reward if useful -
Which trigger to use for this?
Hello,
I have this code here that should stop the user from creating a new record (therefore not adding it to the tree) if the value of sublevel = 0.
I dont know which trigger I can use to make this kind of validation.
declare
v_group_code varchar(12);
var number;
begin
v_group_code:= ftree.get_tree_node_property('CONTROL.GROUP_TREE',nvl(:SYSTEM.TRIGGER_NODE,1),FTREE.NODE_VALUE);
:parameter.grup_cd_selected := v_group_code;
select SUB_LEVEL
into var
from pyr_group
where code = v_group_code;
if var = 0 then
message('You cannot create group here.');
message('You cannot create group here.');
RAISE form_trigger_failure;
end if;
end;Thank youHi
This code here that should stop the user from creating a new record (therefore not adding it to the tree) if the value of sublevel = 0.Pls try to use WHEN-CREATE-RECORD Trigger
Hope this helps...
Regards,
Abdetu... -
Which trigger to use for insert data into db table in Forms
Hi,
My form is current having a database block with table reference. When enter data into form field and click on save button. Automatically the record is inserted into database table.
I want to make this as manual insert. I changed the data block to a non-database. Where should i write the insert statement in order to insert data into table.
Is it Key-commit trigger at form level?
Please advise.
Thanks,
Yuvaraaj.Hi Yuvaraaj.
Insert should happen when we click on the save which is inbuilt in the form. In this case where should i write the insert statement.Forms in built save commit's the form data where block is based on database not non database.
@2nd reply
Ypu are right. The reason i chnaged the database block to non-database is Currently i have a database block with form field canvas which insert only 1 record in to >table when we click on standard save button. The requirement was to add a field called CHANNEL which should have multiple values displayed. (i created this channel >field in a seperate datablock (non database) and used the same canvas.) When we insert data in all fields (single record) and channel we should be able to selected >multiple channel (say A,B and C) when we click on save then 3 records should be inserted in to the table which looping values for each channel. This was the actual >requirement and this is the reason why iam changing the block to non-database block.You are talking about two blocks.. 1. Master block and 2. Details block name channel
You are inserting one record in master block then insert 3 record name A,B,C for that master record.
Now you want master record should insert to each A,B,C record. Means
'how are you' --master record
and you want
'A'- 'how are you'
'B'- 'how are you'
'C'- 'how are you'OR
?Ok. If you want master record save in database and then want to save non-database(channel) data into database USE Post-Insert trigger at block level and do the rest.
Hope this helps...
Hamid
Mark correct/helpful to help others to get right answer(s).*
Edited by: HamidHelal on Jan 26, 2013 1:20 AM -
Is there a custom function available which can be used for logging errors captured in a sp during and after execution in a sql table?
Basically we would like to utilize such function in every sp and log errors of each sp in a error log table
MudassarThanks .
I was able to write this however I am thinking I am missing something
CREATE FUNCTION testfunction1()
RETURNS @temp_error TABLE (
id int identity(1,1),
procedure_name varchar(255),
line_number int,
error_number int,
error_message varchar(max),
error_state int,
error_severity int,
occurence_datetime datetime default current_timestamp,
user_name sysname default suser_name(),
login_name sysname default suser_name()
AS
BEGIN
insert @temp_error(procedure_name,line_number,error_number,error_message,error_state,error_severity)
select error_procedure(),error_line(),error_number(),error_message(),error_state(),error_severity()
RETURN;
END;
CREATE TYPE test_type AS TABLE(
id int identity(1,1),
procedure_name varchar(255),
line_number int,
error_number int,
error_message varchar(max),
error_state int,
error_severity int,
occurence_datetime datetime default current_timestamp,
user_name sysname default suser_name(),
login_name sysname default suser_name()
GO
create proc usp_error_test
@test_type AS test_type READONLY
as
begin
begin try
select 1/0
end try
begin catch
select * from testfunction1(@test_type)
end catch
end
Mudassar -
Which Smartform is used for output of a (confirmation) sales order ( in tra
Where in customizing I can see which Smartform is used for output of a (confirmation) sales order ( in transaction VA02/VA03) and which print program.
If the mechanism is different please let me know
Thx in advance(right answers will be rewarded)Hi Tina,
This is very simple.
You can go to transaction NACE
Now click on Output Types, here against your output type you can see what is the smart form attached in the field processing requirements.
If its order confirmation, it would either be standard BA00 or a copy of that, maybe the naming convention would help you.
Also If you click on the extreme left hand button in NACE, you can see against your output type what are the records maintained, and under communication tab, you could get to see the printer setting.
Hope this solves your query.
Reward suitably if helpful.
Regards
Ravi -
Which CKM is used for moving data from Oracle to delimited file ?
Hi All
Please let me know Which CKM is used for moving data from Oracle to delimited file ?
Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?Addy,
A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
HTH -
Which method is used for event creation
Dear All,
My client has more then one Purchase Organization. Workflow for Purchase order release very from pur org to pur org. For example - workflow WS92000030 is trigger when PO is created for India pur org where as workflow WS92000021 is trigger when PO is created for US pur org.
I checked and found that same Object Type - BUS2012 & event - RELEASESTEPCREATED is used in all Pur. Org PO release workflow. Also I found in Transaction code - SWETYP that Type linkage activate for BUS2012, RELEASESTEPCREATED in all the PO workflow - WS92000030 & WS92000021.
As per my knowledge, event can be created in various way such as Function module, Change document, General status management, Business Transaction Events etc.
Can some one guide me, how can I found that which method is used for event creation in different pur org?
How can I fould what is the fuctional module used for event creation if Fuctional module used for event creation.
For your information, I can see in T. Code - SWUO that 'Result dependent on a check function module' for all the workflow - WS92000030, WS92000021 etc.
Thanks inHi Sahu,
I dont think they have used the Function module or change document or any other kind of methods to trigger the workflow. This is because RELEASESTEPCREATED method is a standard method and it will be triggered by standard SAP. They can not make changes in standard sap saying RELEASESTEPCREATED should be triggered for this Purchase Org .
Istead what i think is, they might have given the Event Condition for each workflow.
In SWDD>> basic settings>> Start Events, we can give condition on triggering the workflow.
Please check this.
Regards,
Gautham -
Which function is used for adding days to given month
which function is used for adding days to given month
Hi Jagrut,
Good ... Check out the following examples
<b>Get a date</b>
DATE_GET_WEEK Returns week for a date
WEEK_GET_FIRST_DAY Returns first day for a week
RP_LAST_DAY_OF_MONTHS Returns last day of month
FIRST_DAY_IN_PERIOD_GET Get first day of a period
LAST_DAY_IN_PERIOD_GET Get last day of a period
RP_LAST_DAY_OF_MONTHS Determine last day of month
<b>Date calculations</b>
DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DATE_IN_FUTURE Calculate a date N days in the future.
RP_CALC_DATE_IN_INTERVAL Add days/months to a date
RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
DATE_CREATE Calculates a date from the input parameters:
Example: DATE_CREATE
CALL FUNCTION 'DATE_CREATE'
EXPORTING
anzahl_jahre = 1
anzahl_monate = 2
anzahl_tage = 3
datum_ein = '20010101'
IMPORTING
datum_aus = l_new_date.
Result:
l_new_date = 20020304
Example: MONTH_PLUS_DETERMINE
data: new_date type d.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -5 " Negative to subtract from old date, positive to add
olddate = sy-datum
IMPORTING
NEWDATE = new_date.
write: / new_date.
<b>Hollidays</b>
HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
date is a holiday by checking the parameter HOLIDAY_FOUND.
Example: HOLIDAY_CHECK_AND_GET_INFO
data: ld_date like scal-datum default sy-datum,
lc_holiday_cal_id like scal-hcalid default 'CA',
ltab_holiday_attributes like thol occurs 0 with header line,
lc_holiday_found like scal-indicator.
CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
EXPORTING
date = ld_date
holiday_calendar_id = lc_holiday_cal_id
WITH_HOLIDAY_ATTRIBUTES = 'X'
IMPORTING
HOLIDAY_FOUND = lc_holiday_found
tables
holiday_attributes = ltab_holiday_attributes
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
HOLIDAY_CALENDAR_ID_MISSING = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
if sy-subrc = 0 and
lc_holiday_found = 'X'.
write: / ld_date, 'is a holiday'.
else.
write: / ld_date, 'is not a holiday, or there was an error calling the function'.
endif.
Checking dates
DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
Converting dates
DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. '28.03.2000' -> 20000328 Can also be used to check if a date is valid ( sy-subrc <> 0 )
Function to return literal for month
he table you want to use is T247. You can also use the function MONTH_NAMES_GET.
You can also try table T015M. It has the month number in it's key.
Formatting
DATUMSAUFBEREITUNG Format date as the user settings
Other
MONTH_NAMES_GET It returns all the month and names in repective language.
Good Luck and thanks
AK -
FUNCTION MODULE FOR ERROR LOG IN BILLING OF SALES ORDER
Hello,
Is there any way through which I can access the error log generated while releasing billing through vfx3?
Is tehre any function module or table for the same?
Regards,
Krutikathe problem resolved myself.
-
I do not know which email i used for the my old apple ID.
I do not know which email i used for the my old apple ID. All I know is that it goes C*****@gmail.com. Is there any way for me to figure out my username or email used for the apple id without having the username or email logged in?
You need to try each one you think it might be, or try using Apple’s iForgot service, or if you’re the device’s original owner, take it and its purchase receipt to a physical Apple Store.
(117341) -
Which trigger to use? Please help!
Hi all,
I am a bit confuse on which trigger to use when you want the trigger to fire as soon as you leave the item. Could anyone help me? Thanks in advance for your help.Harton,
There are a couple of triggers which fire when leaving an item, WHEN-VALIDATE-ITEM, POST-TEXT-ITEM. Depending on what key is being used for navigation, you also have KEY-NEXT-ITEM, KEY-PREV-ITEM. Each of them are slightly variant as in the sequence of firing and hence are useful for specific purposes. The sequence of firing is clearly mentioned in Forms documentation.
To validate any values entered in an item when leaving an item, WHEN-VALIDATE-ITEM is the ideal trigger to use and once the item validation is completed POST-TEXT-ITEM fires.
SEQUENCE : KEY-NEXT-ITEM/KEY-PREV-ITEM
|
WHEN-VALIDATE-ITEM
|
POST-TEXT-ITEM
-Aditya -
How to specify which cert to use for software virt server?
Is there a way to specify which certificate to use for each software virtual server? So, for example a user hitting https://somewhere.com would get the certificate for somewhere.com while the virtual server https://somewhereelse.com would use the certifcate with the name somewhereelse.com in it?
No, this is not possible due to limitations of the underlying protocols.
HTTP requests are sent over TCP connections which deal with IP addresses and port numbers (i.e. hardware virtual server properties), not hostnames (i.e. software virtual server properties). The HTTP protocol adds software virtual server support by allowing a client to identify the hostname (e.g. "www.iplanet.com") of the server it wishes to communicate with. This is achieved by including a "Host:" header with each HTTP request.
Unfortunately, the SSL/TLS protocols require that the web server present its SSL/TLS certificate BEFORE the client sends its HTTP request. Since the software virtual server information is contained in the HTTP request, it is not possible for the server to select different certificates for different software virtual servers.
You will need to use hardware virtual servers (i.e. virtual servers that have different IP addresses and/or port numbers) if you wish to use distinct SSL/TLS certificates. -
I'm using two displays and several desktops on my Mac (OS X 10.9.4).
When I need to restart Firefox, it remembers to open windows from last session in correct display, but does not remember which desktop was used for each window. So when the application starts, it opens all windows on a desktop which is currently active instead of reopening them on desktops used during the last session. How to fix the issue?Hi Nerva,
Thank you for your question, there is a add on I have been recommended to custom set up of opening windows in new monitors. It's called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master].
However, in regards to the session remembering which monitor the window was open in, in the profile folder there is a file that stores window positions and dimensions. It is called localstore.rdf.
Please stay tuned for more investigation, as there are definitely bugs on file for similar issues. Pinpointing it is the hard part. -
I am trying to enter the No. Of my VISA card (which I normaly use for payments) in the billing info of my account and it is not accepted. Does anyone have any idea why?
JarleEkanger wrote:
How about this? Use Delete array subset to extract chunks for averaging, and a shift register to retain the remaining array.
It is typically not advisable to use "delete from array" in a tight loop. The constant memory reallocations due to array resizing are probably inefficient.
Here's one simple way to do it..
(If the number of points is not divisible by 10, the excess tail is discarded. You can easily modify that behavior if desired.)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
averages of 10.png 5 KB
averages of 10.vi 9 KB
Maybe you are looking for
-
Create a PDF file that can be opened in PS
Hello, I a cartographer that is creating a map with thousands of contour lines (among many other layers) in .ai. Unfortunately, I can't open this map in PS. PS will think for upwards of 10 hours trying to rasterize this file (and at that point it w
-
Changing the page size in smart form
hi to all experts, im printing barcode of size 1x3 how can i change the page format from A4 size to 1x3
-
Problems launching sql developer
I must be missing something somewhere. I downloaded the version for Solaris and unzipped it with no problems, but when I go to run it, I get: ./sqldeveloper: local: not found ./sqldeveloper: local: not found ./sqldeveloper: local: not found ./sqldeve
-
hello I have downloded the XML parser Xalan how can one instal xalan with tomcat ?? danke
-
IPhone 5 stuck cycling through turn on procedure
I have had an iPhone 5 32gb for about a week, this morning when trying to use some apps they were crashing instantly on upening so i decided to turn the phone off for a little while to see if it cleared this problem but now the phone is stuck trying