[sap-bw] Sending errors to monitor from ABAP in Infopackage
Posted by
Admin at
|
Share this post:
|
0 Comments
| | Posted by kenguyette on Jan 27 at 12:52 PM |
I am new to BW so apologies in advance if this message is too cryptic.
We are on BW 7.0. I have an ABAP routine on the data selection page of my Infopackage. I want to abort the load and generate a "meaningful" error to the monitor when we hit a particular issue. In this case I am pulling data from a table to determine the date range to pull from a non-SAP system. I want to generate an error if my "delta safety" period is too large.
Right now the logic sets p_subrc if the delta is too large and this creates a rather generic message in the monitor. ("Routine for characteristic EACTIMESTAMP with sy-subrc 1 terminated"). I would like to produce a message that indicates it is the delta safety is the problem. The code is below.
Any suggestions?
Thanks,
Ken
Concatenate Sy-datum Sy-Uzeit into end_TMSTP.
Start_TMSTP = /BIC/PWEDELTACR-/BIC/CRDELTAEN.
If /BIC/PWEDELTACR-/BIC/CRDELTASF GT '86400'.
W_INVALID_DELTASF_FOUND = 'Y'.
ELSE.
Sec = /BIC/PWEDELTACR-/BIC/CRDELTASF.
endif.
if W_INVALID_DELTASF_FOUND = 'Y'.
P_subrc = 1.
__.____._ We are on BW 7.0. I have an ABAP routine on the data selection page of my Infopackage. I want to abort the load and generate a "meaningful" error to the monitor when we hit a particular issue. In this case I am pulling data from a table to determine the date range to pull from a non-SAP system. I want to generate an error if my "delta safety" period is too large.
Right now the logic sets p_subrc if the delta is too large and this creates a rather generic message in the monitor. ("Routine for characteristic EACTIMESTAMP with sy-subrc 1 terminated"). I would like to produce a message that indicates it is the delta safety is the problem. The code is below.
Any suggestions?
Thanks,
Ken
Concatenate Sy-datum Sy-Uzeit into end_TMSTP.
Start_TMSTP = /BIC/PWEDELTACR-/BIC/CRDELTAEN.
If /BIC/PWEDELTACR-/BIC/CRDELTASF GT '86400'.
W_INVALID_DELTASF_FOUND = 'Y'.
ELSE.
Sec = /BIC/PWEDELTACR-/BIC/CRDELTASF.
endif.
if W_INVALID_DELTASF_FOUND = 'Y'.
P_subrc = 1.
Copyright © 2010 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Related Content
In the Spotlight
White Papers
In the Spotlight
Share Knowledge About SAP Scripting. Join the New Discussion Group
View this thread online
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion