We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-bw] Sending errors to monitor from ABAP in Infopackage

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

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.
__.____._
Copyright © 2010 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251

0 comments:

Post a Comment

T r a n s l a t e to your language