How to use break point in workflow to check
hi there,
how to use break point to check the values in debug mode.
if i keep one break point in method..can the conttrol will be stop there?
when work flow triggered??
hi nag,
thanks for ur fast responce.
this FM will check very begining of the work flow..then it goes to aprover..then status will be updated to active.(for first time mm01 will not allow them to create mat in active status..as i configured user exit..after approving only these mat get active status). but in the case of extending materials they can create the views in active mode itself. after they r saving the material getting inactiv status in db tables...
if u want i can provide the code where mat status is updating to active for new materials.
My Q: i want to exit wf from where fm finds that the material is extending
code is:(checking for both sales and pur views--i guess!)
SELECT * INTO TABLE t_marc
FROM marc
WHERE matnr EQ objkey.
DESCRIBE TABLE t_marc LINES records.
IF records GT 1. "CHECK FOR MATERIAL EXTENSION
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 010 RAISING
check_failed.
ELSE.
LOOP AT t_marc.
IF t_marc-mmsta EQ 'G5'. "CHECK PURCHASING BLOCK
SELECT * FROM moff INTO TABLE t_moff
WHERE matnr EQ objkey AND
( werks EQ plant OR
bwkey EQ plant ).
DESCRIBE TABLE t_moff LINES records.
IF records GT 0.
SELECT SINGLE * FROM zam_mat_wf_conf
WHERE mtart EQ t_mara-mtart.
IF sy-subrc EQ 0.
LOOP AT t_moff.
FIND t_moff-statm IN zam_mat_wf_conf-pstat.
IF sy-subrc EQ 0.
DELETE t_moff.
ENDIF.
ENDLOOP.
DESCRIBE TABLE t_moff LINES records.
IF records GT 0.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 009 RAISING
check_failed.
ENDIF.
ENDIF.
ENDIF.
ELSE.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 013 RAISING
check_failed.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ELSEIF mstatus EQ 'V'. "FOR SALES VIEW
SELECT SINGLE * FROM tvko
WHERE vkorg EQ salesorg AND bukrs IN r_bukrs .
IF sy-subrc NE 0. "CHECK SALES ORG CONFIGURED FOR WORKFLOW
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 005 RAISING
check_failed.
ELSE.
SELECT * INTO TABLE t_mvke
FROM mvke
WHERE matnr EQ objkey.
DESCRIBE TABLE t_mvke LINES records.
IF records GT 1.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 012 RAISING
check_failed.
ELSE.
LOOP AT t_mvke.
IF t_mvke-vmsta EQ '10'.
ELSE.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 014 RAISING
check_failed.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ELSE. "NO SALES or PURCHASE RELATED VIEW'S CREATED
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 003 RAISING
check_failed.
ENDIF.
Similar Messages
-
How to use secondary method in workflow?
Hi friends,
can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
thanks and regards,
Arun.SHi Arun Kumar,
The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
In order to execute a method along with user decision step execution use secondary methods (amodal call.)
Let me know if you have any queries.
Regards,
Raj -
How to keep break point in back ground scheduling Report
Hi,
how to keep break point in back ground scheduling Report?
Regards,Hai ,
One more way to debug in the back ground is , pur some infinite loop condition and execute the job and in SM50 you can see the job which is running place the cursor on the job and go to the program in the menu and go to debugging from there .
Example code for infinite loop .
i=1 .
loop at itab .
if i > 5 .
end loop .
Regards,
K.Vinaykumar -
How to use self-signed Certificate or No-Check-Certificate in Browser ?
Folks,
Hello. I am running Oracle Database 11gR1 with Operaing System Oracle Linux 5. But Enterprise Manager Console cannot display in Browser. I do it in this way:
[user@localhost bin]$ ./emctl start dbconsole
The command returns the output:
https://localhost.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ... ...
I open the link https://localhost.localdomain:1158/em/console/aboutApplication in browser, this message comes up:
The connection to localhost.localdomain: 1158 cannot be established.
[user@localhost bin]$ ./emctl status dbconsole
The command returns this message: not running.
[user@localhost bin]$ wget https://localhost.localdomain:1158/em
The command returns the output:
10:48:08 https://localhost.localdomain:1158/em
Resolving localhost.localdomain... 127.0.0.1
Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
ERROR: cannot verify localhost.localdomain's certificate, issued by `/DC=com/C=US/ST=CA/L=EnterpriseManager on localhost.localdomain/O=EnterpriseManager on localhost.localdomain/OU=EnterpriseManager on localhost.localdomain/CN=localhost.localdomain/[email protected]':
Self-signed certificate encountered.
To connect to localhost.localdomain insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
A long time ago when I installed Database Server Oracle 11gR1 into my computer, https://localhost.localdomain:1158/em in Browser comes up this message:
Website certified by an Unknown Authority. Examine Certificate...
I select Accept this certificate permanently. Then https://localhost.localdomain:1158/em/console/logon/logon in Browser displays successfully.
But after shut down Operating System Oracle Linux 5 and reopen the OS, https://localhost.localdomain:1158/em/console/logon/logon in Browser returns a blank screen with nothing, and no more message comes up to accept Certificate.
My browser Mozilla Firefox, dbconsole, and Database Server 11gR1 are in the same physical machine.I have checked Mozilla Firefox in the following way:
Edit Menu > Preferences > Advanced > Security > View Certificates > Certificate Manager > Web Sites and Authorities
In web sites tab, there is only one Certificate Name: Enterprise Manager on localhost.localdomain
In Authorities tab, there are a few names as indicated in the above output of wget.
My question is: How to use self-signed certificate and no-check-certificate in Mozilla Firefox for EM console to display ?
Thanks.Neither problem nor solution do involve Oracle DB
root cause of problem & fix is 100% external, detached, & isolated from Oracle DB.
This thread is OFF TOPIC for this forum. -
How to use two tasks in Workflow
Hi Everybody !
Can Any one tell me, How to use two tasks in one activity step type of Workflow CRM?
My requirement is... I have to execute two tasks in single activity step in Workflow. Is it possible.if it is possible tell me the flow Please.
Thanks in advance.
Raghava Vakada.You can define one as a "Before" or "After" method if that is usable for you. (defined in tab Methods for Activity steps)
Otherwise there is also the step flag "Advance with dialog" (tab Details on Activity steps, but the tab it is found on depends on your version) which allows one user to seamlessly execute two consecutive tasks.
So depending on your real need there may be several options available. If all that is needed is that the same user can execute the two tasks then Advance with Dialog is perhaps the best choice. If the user then cancels execution of the second activity the work item is available for execution. If you define an After method and the user cancels execution the work item has still been completed since its (main) method has been completed. -
How to put break point in the update routine
I am trying to create a break point in update routine. I can do that in the start routine but I would like to know how I can include a break point in update routine in Q.
ThanksGo to Monitor Screen of the data load -> Details tab -> data processing -> right click on Data Packets -> select simulation -> select update rules and give no.of records you want to debug and then system will display the code where you can debug by giving break points.
Hope it helps.. -
How to use Save Point in Batch Execution of java transaction updates .
HI.. ALL
This is going to be very important to all and if needed history should be rewritten...
Does any one.... Any one has ever thought of Execution of a Batch - jdbc using Save Points Concept ???
If this has been ever implemented than I am sorry for my comments..
If NOT---
Then any one has idea or code or any thoughts or alternatives for this... This goes like this-->
If we have a batch file which has All Inserts , Updates and delete statements and we are reading that file in java program and executing the file in a batch execution.. Now java provides only 2 option 'START AND END' for batch execution. But ever dreamed about having Save Points in execution of a batch ?
You might be thinking why Save points needed in batch? if any one wants to have save points then they can go with normat step by step execution of the jdbc calls Why in batch ?
Trust me this is very important in various areas of development which will bring an ease of writing the program efficently..
Does any one have any idea in this regard of having SavePoints in batch execution is highly welcome.
Thanks
wahed
Edited by: wahed on Aug 8, 2008 12:53 AMIf your database supports SAVEPOINT savepoint_name sql and ROLLBACK [WORK] [ TO [ SAVEPOINT ] savepoint_name] sql, you can try to add those sqls into your sql batch.
-
How to use the rule in workflow
Hi ,Guy ,
I am implementing the workflow project nowaday ,and when I use the rule to determine the step's agent , I often come across all kinds of strange problem and I do not know how to slove it goodly ,for example I do not know how to get the agent from orgainization unit etc .
can anybody give me some advices or some relevant docments(I have read the SAP standard material BIT601/BIT603/BIT610) .thank a lot .
Jialiang.QiuYes , you can define your own rule. You need to populate the table of type SWHACTOR with whatever agents you want to maintain . See the below code :
function z_cvwf_dwnam_approver_get.
""Local Interface:
*" IMPORTING
*" VALUE(ACT_PLVAR) LIKE P1208-PLVAR DEFAULT SPACE
*" VALUE(ACT_ISTAT) LIKE P1208-ISTAT DEFAULT '1'
*" VALUE(ACT_BEGDA) LIKE P1208-BEGDA DEFAULT SY-DATUM
*" VALUE(ACT_ENDDA) LIKE P1208-ENDDA DEFAULT SY-DATUM
*" TABLES
*" AC_CONTAINER STRUCTURE SWCONT
*" ACTOR_TAB STRUCTURE SWHACTOR
*" EXCEPTIONS
*" NO_ACTIVE_PLVAR
*" OBJTYP_NOT_VALID
*" NO_ACTOR_FOUND
data: l_user like draw-dwnam, "User
l_dokar like draw-dokar, "Document type
l_doknr like draw-doknr, "Document number
l_dokvr like draw-dokvr, "Document version
l_doktl like draw-doktl. "Document part
data: xausp like ausp.
*Data for AUSPC_V1 selection
data: xatinn(12) value 'APPROVER',
xklart like ausp-klart value '017',
xobjek like ausp-objek.
include <cntain>.
swc_get_element ac_container 'DOCUMENT' l_doknr.
swc_get_element ac_container 'DOCUMENTPART' l_doktl.
swc_get_element ac_container 'DOCUMENTTYPE' l_dokar.
swc_get_element ac_container 'DOCUMENTVERSION' l_dokvr.
Create objek from DRAW key fields
write: l_dokar to xobjek,
l_doknr to xobjek+3(25),
l_dokvr to xobjek+28(2),
l_doktl to xobjek+30(3).
Get Approver number
call function 'CONVERSION_EXIT_ATINN_INPUT'
exporting
input = xatinn
importing
output = xatinn.
From table AUSP
clear sy-subrc.
select single * from ausp
into xausp
where objek = xobjek
and atinn = xatinn
and klart = xklart.
Assign ATWRT to USER RESPONSIBLE FOR APPROVAL
if sy-subrc > 0.
raise no_actor_found.
endif.
actor_tab-otype = 'US'.
actor_tab-objid = xausp-atwrt.
append actor_tab.
endfunction. -
How to use PLSQL CLOB IN WORKFLOW
Dear all,
I have follwoing query with workflow.
I have developed FYI WF.
1) In my WF mail, I am getting click here to respond.
I want to hide this.
Pl. let me know how to do that?
2) I have developed a workflow with Document type.
I am calling a PL/SQL CLOB procedure to pass my values( 4 columns from a table)
I need to pass approximately 70 to 100 rows to clob.
when I pass 14 rows, I am not getting any error.
where as if I pass morethen 15 rows, I am getting follwoing error
"ORA-06502: PL/SQL: numeric or value error ORA-06512: at "APPS.WF_NOTIFICATION", line 5046 ORA-06512: at line 5 "
Pl. let me know, do I need to setup any thing in workflow from my sideHi,
I'm not sure whether it is because of the length of variable.
However, did you use concatenation (||) to store the value in the varchar variable before putting it into the CLOB variable?
If so, perhaps you forget to reset the varchar variable inside the loop, thus making it longer and longer each loop.
You should empty the varchar variable by
loop
l_string := '';
-- your code, perhaps concat the variable
l_string := l_string || 'blah blah';
end loop;For the FYI Notification, perhaps you should check the Notfication in the Workflow Builder, whether it has an Attribute with Respond type on the Notification.
If you didn't put anything (only the message body) in the Notification, the message will suppose to be a FYI one.
Regards,
Buntoro -
How to use structure pointer with « Call Library Function node » in LabVIEW
I use GetTimeZoneInformation from kernel32.dll. It definition is :
DWORD GetTimeZoneInformation( LPTIME_ZONE_INFORMATION lpTimeZoneInformation );
Where
lpTimeZoneInformation
[out] Pointer to a TIME_ZONE_INFORMATION structure to receive the current time-zone parameters.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/gettimezoneinformation...
I don't know how to set this parameter with my cluster based on the TIME_ZONE_INFORMATION structure.
Your help will be appreciate
Thanks
INKSPECINKSPEC wrote:
I use GetTimeZoneInformation from kernel32.dll. It definition is :
DWORD GetTimeZoneInformation( LPTIME_ZONE_INFORMATION lpTimeZoneInformation );
Where
lpTimeZoneInformation
[out] Pointer to a TIME_ZONE_INFORMATION structure to receive the current time-zone parameters.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/gettimezoneinformation...
I don't know how to set this parameter with my cluster based on the TIME_ZONE_INFORMATION structure.
Your help will be appreciate
Thanks
INKSPEC
If creating a wrapper DLL which does the conversion for you is not an option (I think it won't since that would require C programming and if you knew C programming you wouldn't ask this here) then you will have to create a byte array of appropriate length and just configure the Call Library Node to pass this array as an Array of unsigned bytes and as C pointer.
On return you will have to copy out the interesting data at the right position.
First the length of this structure would be:
typedef struct _TIME_ZONE_INFORMATION {
LONG Bias; 4
WCHAR StandardName[32]; 32 * 2
SYSTEMTIME StandardDate; 8 * 2
LONG StandardBias; 4
WCHAR DaylightName[32]; 32 * 2
SYSTEMTIME DaylightDate; 8 * 2
LONG DaylightBias; 4
} TIME_ZONE_INFORMATION
Total 172 bytes
Now the fun part will be to actually get out the information. There are a number of difficulties.
First the strings are 16 bit Unicode so if you are interested in them you will have to call a different Windows API function WideCharToMultiByte function to convert the 16bit Unicode string into an ASCII string. For this part there has been a post here:
http://forums.ni.com/ni/board/message?board.id=170&message.id=123821&requireLogin=False
For the LONG values you would pick 4 bytes at the appropriate offset from the array through the Array Subset function and then typecast it into an int32 and pass that through the Swap Bytes and Swap Words functions to reverse the LabVIEW Big Endian byte swapping in the Typecast function.
The SYSTEMTIME is a structure with eight 2 byte integers so it would be best to use Array Subset again to extract 16 bytes at the correct offset, typecast this into a cluster with eight int16 numerics and pass it through Swap Bytes too.
You see accessing such API functions in LabVIEW directly can get easily quite a mess and that is the reason why creating a wrapper DLL to convert properly between LabVIEW datatypes and C datatypes gets soon the easier solution if you need to interface with more than one or two functions taking such complicated data structures.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
How to use BDC recording in Workflow.
Hi experts,
Anyone kindly help me for the following case...
If sales order gets created, mail has to be sent to every user. Also for that sales order, delivery should be created in background and again mail has to be sent to all users...
I m clear with sending mail. but i m struggled while creating delivery in background. i dont know how to do this. I hav an idea that it can be created using BDC recording and this recording program can be called in our method which is created in our business object.
How to create a single BDC recording to create sales order as well as creating delivery in background... Is it possible to do like this. Or is there any function module to create delivery in background with respect to sales order number?
kindly give some suggestion and step by step procedure to do this...
Thanks in advance...
Regards
Raaams...Hi Ram
Check this BAPI once BAPI_OUTB_DELIVERY_CREATE_SLS.
If this doesnt help do BDC recording and create a FM with the help of BDC recording. Please note that Call Transaction should happen in background otherwise your BDC wont work.
Please revert back if you have any queries.
Regards,
Gautham Paspala -
I set up cue points as events in my flv. I want a button
press to take the video to a specific named cue point. The
documents I'm finding in Adobe seem to be from Flash 8, but the flv
player I'm using is AS3. I get compiler error when I try to test
it. If anyone can point me to the right documentation, that would
be great.Al,
Select the text, and in the Text Inspector, List tab, choose your desired format.
It shouldn't matter if you are using more than one column, as in this example:
Jerry -
Am I using the break statment and the corrosponding
peranthesis in a way that is causing a logic error.
* Return true if this set and the parameter contain
* exactly the same elements
public boolean equals(SetADT setADT)
boolean result=true;
if(this.size()!=setADT.size())
result= false;
Iterator scan=setADT.iterator();
while(scan.hasNext())
if(!(this.contains(scan.next())))
result= false;
break;
return result;
}If you write the method and indent the code you'll see that the break is outside of the if statement. The code will always hit the break statement on the first pass through the while loop and exit the loop.
Instead of a break you may want to put a return statement just after setting result to false.
public boolean equals(SetADT setADT)
boolean result=true;
if(this.size()!=setADT.size()) { result= false; }
Iterator scan=setADT.iterator();
while(scan.hasNext()) {
if(!(this.contains(scan.next()))) {
result= false; }
break; //Will always hit this line and exit while loop
}//End While
return result;
} -
How to use break&skip to skip in certain condition?
Hi there,
I have a question as following.
drop table tbl;
create table tbl (
field1 varchar2(10),
field2 varchar2(10),
field3 number,
field4 varchar2(10),
field5 varchar2(10)
insert into tbl values('1','aaa','111','AAA','!!!!');
insert into tbl values('2','bbb','222','BBB','@@@@');
insert into tbl values('3','ccc','333','CCC','####');
insert into tbl values('4','ddd','444','DDD','$$$$');
insert into tbl values('5','eee','555','EEE','%%%%');
commit;
--@&title
spool 1.lst
break on field1 skip 2 on report
compute sum of field3 on report
compute count of field2 field3 on field1 report
--compute count of field3 on field1 report
select * from tbl;
spool off
ed 1.lst
RESULT:
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5
1 aaa 111 AAA !!!!
count 1 1
2 bbb 222 BBB @@@@
count 1 1
3 ccc 333 CCC ####
count 1 1
4 ddd 444 DDD $$$$
count 1 1
5 eee 555 EEE %%%%
count 1 1
count 5 5
My question is if we want to add 3 empty lines between record 3 and record 4, how can I do it?
Thanks in advance.
Philkumar0828 wrote:
<font color="#FF0000"> ... </font>
REPLACE (agx_drug.medicinalproduct, '''', '''') AS "MEDICINALPRODUCT",
<font color="#FF0000"> ... </font> <pre>
REPLACE (agx_drug.medicinalproduct, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
With the above statement you are replacing single quote with another single quote
(which is nonsense).
<font color="#FF0000"> ... </font>
AND agx_drug.medicinalproduct = REPLACE ('*-qVAGX_DRUG.MEDICINALPRODUCT*', '''', '''')
In the above query last line '-qVAGX_DRUG.MEDICINALPRODUCT' is a dynamic variable which may or may not contain the single quotes.This is not a dynamic variable but a string value:
<pre>
AND agx_drug.medicinalproduct =
REPLACE (<font style="background-color: #FF3D55">'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
*-qVAGX_DRUG.MEDICINALPRODUCT* <pre>
AND agx_drug.medicinalproduct =
REPLACE (<font style="background-color: #FF3D55">q'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
-qVAGX_DRUG.MEDICINALPRODUCT q'[a]' => a
q'[a']' => a'
q'[a'']' => a''
q'*a*' => a
q'*a'*' => a'
q'*a''*' => a''
A variable also cannot contain a dot (.):
<pre>VAGX_DRUG<font style="background-color: #FF3D55">.</font>MEDICINALPRODUCT</pre>
Ex: ABC's or just ABC.
The query has to support both single quote and without quote in it.
I wanted everything to be done in the sinlq query on not a PL/SQL Block.
Please help me ASAPTry this:
<pre>
AND agx_drug.medicinalproduct = MY_VARIABLE
</pre> -
ESS: Leave Request - How to use a custom Leave Workflow?
Hi Experts,
I am implementing ESS 1.0 for mySAP ERP05. I have a custom workflow for Leave Request which I want to use for the ESS Leave Request. Can someone tell me what are the configuration steps required for this?
I have already performed the following activity:
SPRO --> Personnel Information --> ESS --> Service Specific Settings --> Working Time --> Leave Request --> Specify Processing Processes for Types of Leave
Here I have defined the WF ID of New Request as the custom Workflow ID.
Now when I trigger the Leave Request from EP-ESS, the message comes that the request was sent successfully.
But in the backend no workflow gets triggered. I even tried to write an implementation for the BADI PT_ABS_REQ to trigger the custom workflow event, but still no activity in the ECC workflow upon submitting thwe portal request.
Can some one please advise.
Thanks,
ShobhitOhh.. So the standard WF also doesnt get triggered??
Are you sure u have done SWU3 config??
If u have, Try using SWU_OBUF to refersh the workflow buffer.
Try swi1 to check what is happening with ur WF.
Try login to requesters login ... SBWP ... check the outbox. Is there a WF with Error here.
Cheers!!
Ashutosh
Maybe you are looking for
-
Writing selections in alv list header
Hi, in alv list header i have to show the values entered in selection screen. ex. Current year : 2008 current period : 03 report ID : R_123 company code : I BT AA to BB I BT CC to DD I EQ
-
How to suppress n0: default Namespace prefix in Transformations
Hi, I use Simple Transformations for serialization of deep structured data. In the XML File the whole tree needs to use a special namespace. Therefore i use the attribute xmlns="ABC.de" without a namespace prefix in my root element. During serializat
-
I am capturing video using a Sony HDR-SR12 Handycam, converting the video using QT in a MPEG4 format, so can use the file with imovie. Once I transfer over to imovie the video quality is very bad. Playing the video out of the camera on to the TV the
-
Logic Pro - Massive response delay / freeze in mountain lion
hi there, ive read quite a lot of people are having problems with Logic in ML on other forums and wondered if anyone knows if theres an accepted problem with Logic 9.1.7 in ML? My problem seems to relate to the graphical interfaces of logics naitive
-
Hi when I add two tables in a page, in jsc, the generated javascript defines initAllRows() twice. this produces javascript errors. I think the element's name should be a parameter. function initAllRows() { var table = document.getElementById("form1