Autorization object for veiwing log of process chain
Hi,
I am looking out for an authorization object or role which will give only access to view the log generated on a day due to the execution of process chain.
Thanks in advance.
Regards,
Naveen
Hi,
This is a good and interesting Question.
I too am not aware of the same. Could you check the followoing Link and find if you get anything here.
http://help.sap.com/saphelp_bw31/helpdata/en/52/671126439b11d1896f0000e8322d00/frameset.htm
Hope it helps,
Keen to the answer here,
Pradip Parmar.
Similar Messages
-
BW: Not getting Dump For Program error in Process Chain
I have one issue regarding Master data loading issue in BW(3.5).
My business flow like we have received data from server A and Server A extract data from Server B and
Server B which is extract data from source(R/3).
Flow like this R/3-->Server B-->Server A(ETL) -
> My Server.
We have a mater data process chain and that chain we have have the source system Server A but in the process chain one process is there which is fethces data like global transport e.g UOM,factory calender etc through Custom program directly from Server B.
Oneday what happened On that process the process chain Yellow since more than 16 hrs.Once nextday process chain trigger the process chain runs sucessfuly.
But lastdays process chain paticular process stills remains yellow?
We are not getting any dumps and even if from Server A there is no logs then anyone could please tell me what is reason and how to solve it.
Note: it will be helpful for me if any one know how to check dump for program errors in Process chain as narated issue.Guys, I am also facing the same issue.
When DTP is completed successfully, it has the job log blow :
Job started
Step 001 started (program RSPROCESS, variant &0000000391261, user ID BWREMOTE)
Performing check and potential update for status control table
Status 'Executable' (user BWREMOTE)
Status 'Active' (user BWREMOTE)
Program RSBATCH_EXECUTE_PROZESS successfully scheduled as job BIDTPR_335754_1 with ID 06532200
Job finished
When it fails or remain yelllow for long time and then turn into red.
Job started
Step 001 started (program RSPROCESS, variant &0000000391306, user ID BWREMOTE)
Performing check and potential update for status control table
Status 'Executable' (user BWREMOTE)
Status 'Active' (user BWREMOTE)
EXTRACTION OF DATAPACKAGE 000001
EXTRACTION OF DATAPACKAGE 000002
Job finished
The question is, why the program RSBATCH_EXECUTE_PROZESS is not scheduled. Is it because there is no free resource? Or poor response from SAP ECC?
Finally what does "EXTRACTION OF DATAPACKAGE 000001" mean? Its not scheduled?
Regards
MultiABAP
Edited by: MultiABAP on Oct 6, 2010 10:32 AM -
Invalid DataStore object name error when running process chain after EHP1
Hello,
We recently upgraded our BW Dev platform to NW7.01 EHP1 SP6. I noticed that the layout for "Delete PSA Request" process in the Process Chain has changed after the upgrade. We can no longer specify the actual PSA table to delete eg, /BIC/B0001645. Instead we need to specify the Datasource name and the Source System.
Now after the upgrade when I run one of my process chains, it fails at "Delete PSA Request" step with error message "Invalid DataStore object name /BIC/B0001645: Reason: No valid entry in table RSTS". This datasource is based on the flat file source system and the PSA table for this Datasource is /BIC/B0001653.
Unfortunately the process chain is picking up an older PSA table for this datasource and there is no way for me to specify the current PSA table name after this change in layout with EHP1 upgrade. Any suggestions on how to resolve this issue.
Many Thanks,
AlHi,
Please implement OSS 1345331.
If this does not help try the below steps:
1. Run the report 'RSAR_PSA_CLEANUP_DIRECTORY/_MS' in check mode for a
particular PSA table for finding the inconsistencies.
2. After that please analyze the logs and if there is any problems related to partition, you need to correct them using the report u2013
3. 'SAP_PSA_PARTNO_CORRECT' in repair mode for the
PSA tables. Run the report again after this
4. 'RSR_PSA_CLEANUP_DIRECTORY/_MS' in check mode to
double check that the invalid partitions are
corrected.
Once this is done you can execute the report
'RSR_PSA_CLEANUP_DIRECTORY/_MS' in repair mode.
-Vikram -
HOW TO VIEW DATA IN LOG VIEW - PROCESS CHAIN?
HAI FRIENDS,
I SIMULTANEOUSLY LOADED DATA INTO ODS AND INFOCUBE....I USED THE PROCESS CHAIN TO LOAD DATA.. BUT AFTER ACTIVATING, I COULD N'T VIEW THE DATA IN THE LOG.AFTER THAT I FOUND OUT DATA IS NOT LOADED INTO THE ODS ..SO I ACTIVATED IT AGAIN.. DID THE PROCESS CHAIN ACTIVATE.. EVEN AFTER THAT I COULD NOT VIEW DATA IN LOG VIEW AND ALSO WHEN I CLICK ON LOAD DATA PROCESS(ODS) NO DATA IS FOUND.. PLS HELP OUT
WITH REGARDS
APPUHi,
Go to the manage screen for that ODS. See teh relevent request and find how many records were transferred and how many added.
If it is zero added records, then check for any rules.
Arun
Assign pts if useful -
Problem delete chang log from process chain BW 7.01
We have upgrade BW from 3.5 version to 7.01 version two month ago.
Now I realized that the process chain running one a week to delete PSA and change log don't work well after upgrade.
The process chain end without errors (status is green), but the change log are not deleted.
In the test system I try to delete the Change Log in 2 mode:
1-with the variant "Deletion of Requests from the Change Log " and the datastoreobject = myods and all the option (correct request, incorrect request and "Delete Activation Requests Only"). In the log i see this messagge
The following excluded selections will be processed:
No excluded selections found
The following included selectiosn will be processed:
Pattern: DataStore = 0FIGL_O06, InfoArea = *
The following reqeust selections were set:
Number of days = 0000000010, Successful = X, Incorrect = X, Curr. Requests =
The following change logs were selected:
2-with the variant "Deletion of Requests from PSA " and the datasource= 8myods and all the option (correct request, incorrect request). In the log i see this messagge
The following excluded selections will be processed:
No excluded selections found
The following included selectiosn will be processed:
Pattern: DS = 80FIGL_O06, LS = BWTCLNT100, IS = , AC =
The following reqeust selections were set:
Number of days = 0000000015, Successful = X, Incorrect = X, Load requests =
The following PSAs were selected:
In both case the change log is not deleted.
I can delete the change log only using Manage screen of my ods and then using Menu -> Environment ->Delete Change Log Data.
Anna MariaI see that this topic is still active/unanswered...
We're having the same problem, but not just changelogs, also for PSAs. We have a weekly process chain that does housekeeping on our BW system, cleaning up PSAs and changelogs, compressing cubes, realigning time-dep masterdata and renewing indexes.
The PSA chain runs fine and about 90% of all PSAs get deleted, but there are some datasources (all of them are of type 8* datamart datasources) that don't get their PSAs deleted. It says "The following PSAs were selected:" and then nothing happens...
I tried all tickbox combinations and checked that there are no PSA entries blocked by invalid partitions. Manual deletion (via "manage" in the datasource) works fine, but is tedious and time consuming.
Also, most of the 8* datasource PSAs do get deleted. Just a handful (+/- 25) get skipped somehow.
Any ideas?
Thanks,
Eduard
PS: We're still running 3.5-style backend dataflow, but will eventually get converted to transformations and DTPs. But that's not on our agenda (yet). -
Error log in Process chains...
hai friends,
am getting this error log messages while running the process chains...
There is a discrepancy between the confirmation and deletion of qRFC-LUWs
Message no. RSQU016
Diagnosis
When data was confirmed and deleted in the qRFC queue, the system found a discrepancy between the number of newly confirmed LUWs ( 2282) and the number of LUWs to be deleted ( 3424).
Where more LUWs are to be deleted than were previously confirmed, a previous delete attempt was terminated.
The LUWs were confirmed but not completely deleted from the qRFC and tRFC tables. The confirmation already ensures that the data is not transferred into the BW again with a subsequent request.
Delta extraction was continued.
Procedure
You do not need to do anything urgently.
If the message also arises during all subsequent delta requests, contact SAP Support with the message number at hand. In this case, there is a danger that the qRFC and tRFC tables run at full capacity, which may also affect other applications.
please help me friendds...Refer to the OSS note: 583086
Also you can refer to the smililar kind of discussion in this link:
Discrepancy between the confirmation and deletion of qRFC-LUWs
Hope this helps.. -
Parallel processing for ABAP prorams in Process chain.
Hi All,
In one of the process chain, we have added the ABAP program. In Backend,the job is running as "BI_PROCESS_ABAP".
I just want to know, same like DTP, can we keep parallel processing for the ABAP programs also. Please suggest.
Thanks.Hello Jalina
Also check with BASIS if the memory allocated to run this program has not overflowed and the selections you have in your ABAP program is in small chunks and use variants to run them in parallel OR series
Thanks
Abhishek Shanbhogue -
Table for infopacakges used in process chains
Hi,
Can any one disclose me the table name for the infopackages used in process chains??
RajAnother one:
RSLDPIO Links datasource to infopackages
RSLDPIOT InfoPackage Text Description
RSLDPRULE ABAP source code for InfoPackages
RSLDPSEL Hardcoded selections in InfoPackages
RSMONICDP Contains the request-id number by data target
RSPAKPOS List of InfoPackage Groups / InfoPackages
RSSELDONE InfoPackage selection and job program
From: table that contains the name of infopacks
Lot of info already available on this in SDN.
Hope it helps.
AT -
Can I delete 'Initialization Options for Source System' in Process Chain?
Hi All,
Can I automate the process of deleting the 'Initialization Options for Source System' for Delta Init package? I need to include this step in a process chain, rather than deleting the init request manually.
Thanks,
Naveen.Naveen,
As far as I know, nope. And it's logical, considering the Initialization is a "one time" process and not a repetitive one (unless you have to reinitialize, of course...)
Regards,
Luis -
Wait time for 5 min in process chain
hi Guru,
how to add in the process chin for wait time 5 min.
two flat files are there, once the complete of first flat file wait for another 5 min for the second flat file load.
my question how to add a condition for 5 min wait time , the flat file load after 5 min(means second process is trigger after 5 min).
Thanks in advance
Edited by: priya das on Sep 29, 2008 5:02 AMSee if below threads are useful -
waiting time in process chain
Set delay for process in process chain (BI7) -
Transacton codes for production support and process chain
hi guys,
please any one tell me the Transacton codes for production support and process chainFor event creation - SM64
For Job - SM36 to Define . However for process chains you can define job in Start Process maintenance itself.
Regards.
Sanjay -
"Still waiting for replays Issue In process chain please help me"
Hi Xpertz
Could any one clarify me in the following aspect .I have a process which is having
4 infopackages updating to a single ods and then in to a cube I copnverted it in to
a process chain evry thing seems to be fine how ever one issue is ther .I am not
getting any repeat option on the failed infopackage .But if the ods activation fails
then am able to see the repeat option on that activation process.
How can we get the repeat option on the failuere info package .
Other than segis weblog is ther any other option to restart the process chain.3
ITs in BW 3.5
Thanx in advance
Regards
R M K
No need to say good answers willl get full pointz***Hi..
I have worked on process chains..and I too have seen this..that when chain fails..often repeat option does not appear at infopackage step..
but then this does not cause an issue..as I simply double click on the step..open the infopackage and run it..
Siggi's blog is very useful..I havent found another method to kick off a chain from the failed step..(other than repeat)..
sometimes..u manually correct the failure..but the process chain step remains RED..
as per the blog..change the field on the table..so that step goes GREEN and kicks off further steps of the chain..
Vishvesh -
Searching for ABAP to Download Process Chain Definition
Dear all,
Has somebody an ABAP to download BW Process Chain definitions as a TXT or XLS file (to local PC)?
(and want's to share it...
Best regards,
Joshi,
process chain are stored in tables RSPC*
RSPCCHAINT store the text.
hope this helps. -
Hi All,
In my project we maintain an load status excel sheet to document all the timings of process chain running in our window.
We were maintaining only the start time of process chain (we get from RSPCM), now the requirement has changed and customer wants us to mention the end time of each process chain.
Since we have good amount of process chain running it is becoming really hectic to take timings for each PC.
Procedure we are following to take the end time is that through RSPCM we go to every PC and take the timing of last process in the PC.This takes lot of time.
Please suggest from where we can exact log of start and end time of every PC.Are there any table from where we can see the start and end time???
I am waiting for the valuable inputs......
Regards,
Kshitijtry following ABAP...
*& Report ZBI_PROCESS_CHAIN_STATUS_EMAIL *
Program uses parameters and selection options to analyze and/or *
email the status of the BI process chains. *
Selection-screen help: *
1) Process Chain (ID) *
Enter the name of process chain to analyze. *
If you leave this field blank, all the process chains will *
be picked up. *
2) Process Chain Date Selection *
Enter the Process Chain Date. *
3) Status of Process Chain *
Enter the Status of Process Chain to analyze. *
If you leave this field blank, all the status will *
be picked up. *
4) Send email? *
Mark this checkbox, if you want to send email notification *
5) Email recipients *
The list of people to be notified is entered here. At least *
one email address is required. *
*Modification Information: *
Date Mod User ID CTS Number Description *
*05/01/08 Shalin Shah Original Coding Date *
REPORT ZBI_PROCESS_CHAIN_STATUS_EMAIL
NO STANDARD PAGE HEADING MESSAGE-ID 00
LINE-SIZE 255
LINE-COUNT 55.
Variable Declaration for selection screen *
DATA:
gs_RSPCLOGCHAIN TYPE rspclogchain, "PC ID
gs_RECEIVER TYPE SOMLRECI1-RECEIVER, "Email ID
gs_BATCHDATE TYPE RSPCPROCESSLOG-BATCHDATE, "Date
gs_RSPC_STATE TYPE RSPC_STATE. "PC state
Selection-Screen *
SELECTION-SCREEN BEGIN OF BLOCK om1 WITH FRAME.
SELECT-OPTIONS p_CHAIN for gs_RSPCLOGCHAIN-CHAIN_ID default 'ZBWC_MAIN' NO INTERVALS. "Process chind ID
SELECT-OPTIONS p_datum for gs_BATCHDATE default sy-datum. "Process chain date
SELECT-OPTIONS p_Status for gs_RSPC_STATE NO INTERVALS. "Process Chain status
SELECTION-SCREEN END OF BLOCK om1.
SELECTION-SCREEN BEGIN OF BLOCK om2 WITH FRAME.
PARAMETERS: p_Email AS CHECKBOX. "Send email?
SELECT-OPTIONS: s_mail FOR gs_RECEIVER lower case NO INTERVALS. "Email address
SELECTION-SCREEN END OF BLOCK om2.
AT SELECTION-SCREEN.
If Send email is checked, makes sure at least one email address is entered.
if p_Email = 'X'.
READ TABLE s_mail INDEX 1.
if sy-subrc <> 0.
MESSAGE e001 WITH 'Please enter at least one email address'.
ENDIF.
ENDIF.
loop at s_mail.
if not s_mail-high is initial.
MESSAGE e001 WITH s_mail-high 'is not valid. Please enter with no intervals'.
endif.
endloop.
START-OF-SELECTION.
END-OF-SELECTION.
Variable Declaration *
for composing email object
DATA: OBJCONT LIKE SOLI OCCURS 10 WITH HEADER LINE. "Email object
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE. "Email address
DATA: DOC_CHNG LIKE SODOCCHGI1. "Data of an object which can be changed for email
DATA: ENTRIES LIKE SY-TABIX. "Count
DATA: NAME(15). "Sapce for email name
DATA: temp_message(120) type c. "temp message space
DATA: psubject(72) type c. "Email subject
DATA: temp_time(27) type c. "temp space to PC start and end time
DATA: pc_end_time(8) type c. "PC end time
DATA: pc_start_time(8) type c. "PC start time
DATA: pc_run_date(10) type c. "PC run date
DATA: pc_duration(8) type c. "PC duration time
DATA: pc_temp_end_time type TIMS. "temp space for pc end time
DATA: pc_temp_end_date type DATS. "temp space for pc end date
DATA: pc_temp_duration type TIMS. "temp space for pc duration
DATA: pc_status(72) type c. "PC status
for report format
DATA: iColor TYPE i VALUE 0,
iCount TYPE i VALUE 1.
for saving log of the process chain.
DATA: I_RSPCLOGCHAIN LIKE RSPCLOGCHAIN OCCURS 0,
WA_RSPCLOGCHAIN LIKE LINE OF I_RSPCLOGCHAIN,
I_RSPCPROCESSLOG LIKE RSPCPROCESSLOG OCCURS 0,
WA_RSPCPROCESSLOG LIKE LINE OF I_RSPCPROCESSLOG.
Report Logic *
Create email subject for report header
CONCATENATE SY-SYSID ' - BI load status ->' SY-DATUM4(2) '/' SY-DATUM6(2) '/' SY-DATUM0(4) ' @ ' SY-UZEIT0(2) ':' SY-UZEIT2(2) ':' SY-UZEIT4(2) INTO psubject.
report header
FORMAT INTENSIFIED COLOR = 1.
write / .
write / '*****************************************************************************************************************************************'.
Write: / '* ', psubject, ' *' .
write / '*****************************************************************************************************************************************'.
write / .
*Fill the header
OBJCONT-LINE = '****************************************************************************************************************'.
APPEND OBJCONT.
OBJCONT-LINE = psubject.
APPEND OBJCONT.
OBJCONT-LINE = '****************************************************************************************************************'.
APPEND OBJCONT.
Get the log id of the process chain.
SELECT *
FROM RSPCLOGCHAIN
INTO TABLE I_RSPCLOGCHAIN
WHERE DATUM in p_datum
AND CHAIN_ID in p_CHAIN
AND ANALYZED_STATUS in p_Status.
Loop at all the selected process chains
LOOP AT I_RSPCLOGCHAIN into WA_RSPCLOGCHAIN. "Loop at all the process chaing log
CLEAR: temp_time, pc_start_time, pc_end_time.
Get the run date, start time and end time of process chain form RSPCPROCESSLOG table.
SELECT *
FROM RSPCPROCESSLOG
INTO TABLE I_RSPCPROCESSLOG
WHERE LOG_ID = WA_RSPCLOGCHAIN-LOG_ID.
Converts PC time to a given local timezone
CALL FUNCTION 'STU3_ALERTS_CONV_UTC_2_LOCAL'
CHANGING
TIME_T = WA_RSPCLOGCHAIN-ZEIT
DATE_D = WA_RSPCLOGCHAIN-DATUM.
Convart date and time to MM:DD:YYYY HH:MM:SS
CONCATENATE WA_RSPCLOGCHAIN-DATUM4(2) '/' WA_RSPCLOGCHAIN-DATUM6(2) '/' WA_RSPCLOGCHAIN-DATUM+0(4) INTO pc_run_date.
CONCATENATE WA_RSPCLOGCHAIN-ZEIT0(2) ':' WA_RSPCLOGCHAIN-ZEIT2(2) ':' WA_RSPCLOGCHAIN-ZEIT+4(2) INTO pc_start_time.
sort all the process chaing log. Because we just want to get the end time of the last log.
sort I_RSPCPROCESSLOG by ENDTIMESTAMP descending.
loop to get the end date and end time for the process chain
LOOP AT I_RSPCPROCESSLOG into WA_RSPCPROCESSLOG. "Loop 1 for pc_end_time
CLEAR temp_time.
temp_time = WA_RSPCPROCESSLOG-ENDTIMESTAMP.
pc_temp_end_date = temp_time+4(8).
pc_temp_end_time = temp_time+12(6).
Converts PC time to a given local timezone
CALL FUNCTION 'STU3_ALERTS_CONV_UTC_2_LOCAL'
CHANGING
TIME_T = pc_temp_end_time
DATE_D = pc_temp_end_date.
Convart date and time to MM:DD:YYYY HH:MM:SS
CONCATENATE pc_temp_end_time0(2) ':' pc_temp_end_time2(2) ':' pc_temp_end_time+4(2) INTO pc_end_time.
Get PC end-time and duration
IF pc_temp_end_time = 000000.
pc_end_time = '??:??:??'.
pc_duration = '??:??:??'.
ELSE.
pc_temp_duration = pc_temp_end_time - WA_RSPCLOGCHAIN-ZEIT.
CONCATENATE pc_temp_duration0(2) ':' pc_temp_duration2(2) ':' pc_temp_duration+4(2) INTO pc_duration.
ENDIF.
Exit form the loop once we get end-time and duration
EXIT.
endloop. "Loop 1 for pc_end_time
Based on process chain status assign color and create message
CASE WA_RSPCLOGCHAIN-ANALYZED_STATUS. "Case pc status
WHEN 'R'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Ended with errors on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
CONCATENATE ' Ended with errors - ' pc_duration INTO pc_status.
iColor = 6.
WHEN 'G'.
Check if duration = '00:00:00' mark as **Error**
IF pc_duration = '00:00:00'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Successfully completed on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
CONCATENATE ' Successfully completed - ' pc_duration INTO pc_status.
iColor = 3.
ELSE.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Successfully completed on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
CONCATENATE ' Successfully completed - ' pc_duration INTO pc_status.
iColor = 5.
ENDIF.
WHEN 'F'.
Check if duration = '00:00:00' mark as **Error**
IF pc_duration = '00:00:00'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Completed on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
CONCATENATE ' Completed - ' pc_duration INTO pc_status.
iColor = 3.
ELSE.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Completed on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
CONCATENATE ' Completed - ' pc_duration INTO pc_status.
iColor = 5.
ENDIF.
WHEN 'A'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Active on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
CONCATENATE ' Active - ' pc_duration INTO pc_status.
iColor = 3.
WHEN 'X'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Canceled on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
CONCATENATE ' Canceled - ' pc_duration INTO pc_status.
iColor = 6.
WHEN 'P'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Planned on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
CONCATENATE ' Planned - ' pc_duration INTO pc_status.
iColor = 3.
WHEN 'S'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Skipped at restart on -' pc_run_date ' (Start->' pc_start_time ' End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
CONCATENATE ' Skipped at restart - ' pc_duration INTO pc_status.
iColor = 3.
WHEN 'Q'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Released on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
CONCATENATE ' Released' ' ' INTO pc_status.
iColor = 3.
WHEN 'Y'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Ready on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
CONCATENATE ' Ready' ' ' INTO pc_status.
iColor = 3.
WHEN 'J'.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Framework Error Upon Completion on -' pc_run_date ' @ ' pc_end_time ' **Error**' INTO temp_message.
CONCATENATE ' Framework Error' ' ' INTO pc_status.
iColor = 3.
WHEN OTHERS.
CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Undefined on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
CONCATENATE ' Undefined' ' ' INTO pc_status.
iColor = 6.
ENDCASE. "Case pc status
Append pc log to email object
OBJCONT-LINE = temp_message.
APPEND OBJCONT.
change color and write log
FORMAT INTENSIFIED COLOR = iColor.
Write: / iCount, ' ', temp_message .
iCount = iCount + 1.
CLEAR temp_message.
ENDLOOP. "Loop at all the process chaing log
Create email subject
clear psubject.
CONCATENATE SY-SYSID ' load - ' pc_status INTO psubject.
Fill the subject
DOC_CHNG-OBJ_NAME = 'URGENT'.
DOC_CHNG-OBJ_DESCR = psubject.
DOC_CHNG-SENSITIVTY = 'P'.
Cheeck send email checkbox.
IF p_Email = 'X'. "Check if send email is checked
DESCRIBE TABLE OBJCONT LINES ENTRIES.
READ TABLE OBJCONT INDEX ENTRIES.
DOC_CHNG-DOC_SIZE = ( ENTRIES - 1 ) * 255 + STRLEN( OBJCONT ).
Get recipients
loop at s_mail.
RECLIST-RECEIVER = s_mail-low. "recipient
RECLIST-EXPRESS = 'X'.
RECLIST-REC_TYPE = 'U'. "internet email
append RECLIST.
endloop.
Send email
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_TYPE = 'RAW'
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
Write email status.
WRITE: /.
CASE SY-SUBRC.
WHEN 0.
WRITE: / '*** Email sent to following recipient(s) ***'.
Loot to get email id's.
LOOP AT s_mail. "Loop s_mail to get email address
NAME = s_mail-low.
IF RECLIST-RETRN_CODE = 0.
WRITE: / NAME, ': succesfully sent'.
ELSE.
WRITE: / NAME, ': error occured'.
ENDIF.
ENDLOOP. "Loop s_mail to get email address
WHEN 1.
WRITE: / 'Too many receivers specified !'.
WHEN 2.
WRITE: / 'No receiver got the document !'.
WHEN 4.
WRITE: / 'Missing send authority !'.
WHEN OTHERS.
WRITE: / 'Unexpected error occurred !'.
ENDCASE.
ENDIF. "Check if send email is checked
Shalin Shah -
Process chain Logs are not able to view...
<i>Hi Friends,</i>
We are facing a typical problem like this... We are loading master data weekly thru process chain.. The problem is dat for 5 weeks back we have kept back ground scheduling dat this chain needs to get run for every week.. So for the first week it runned successfully and for the second and third and fourth week also itz runned successfully..
But on the fifth week we got the process chained failed for some errors in Process chain.. We analyzed the errors and But yet to be rectified.. So for 6th week it needz to get runned.. But when am going to check the logs of dat process chain..
It was not showing any logs on the chains which have runned successfully for the past 4 weeks also, which have runned successfully... And I tried it in logs with givng today and yesterday and One week and This month and last month and tried it with free date also... BUt am not able 2 see the logs..
Can anyone help me out from this issue..
<i><b>Thanks & regards
Aluri</b></i>
<b></b>Have you tried adding the chain to the RSPCM transaction?
If the chain has run you should be able to see the logs there by selecting the date.
~Nathaniel
Maybe you are looking for
-
Hey guys, I've been hard at work on creating a custom deployment for our company to allow us to start rolling out Windows 7 at the first of next month. I demonstrated it to the brass today and they were blown away. All they asked for was two changes
-
FM to create Pallet HU's with Object reference
Hi all, Is there any FM which can be used to create a Pallet HU and assign it to Delivery or shipment. I am able to create Pallet HUs using the BAPI: "BAPI_HU_CREATE" but then I am unable to assign them to shipment or delivery. I tried using "HU_ASSI
-
How to specifiy locator for pending product lots ?
Hello i'm using this API : gme_api_pub.create_pending_product_lot it works perfectly , but , how can i pass a specific locator ? ( other than the batch material locator ) to that created pending line ?
-
Help isn't displaying because JavaScript is turned off. You can enable JavaScript in your browser's preferences or settings. Then refresh this page to try again. I've followed instructions to remove problem, still exists, how do I get Iphoto to open?
-
Hi, Kindly tell me the process to develop a report to display the Shipping points and the route performance based on the sales organization, shipping point and the route performance based on the Sales organization, shipping point, route and delive