How to trigger two Actions at a time in a break function(Boolean)
Hi All
I am using three sequential Blocks.First Block is to enter the data and send to second Block. When second sequential Block accepts it should sent to third Block. If Second Block rejects the form then I want to stop (Terminate) the process and I want to send the notification.
I am using Pre-conditional block and checking check box in the second block to accept or reject the initial form. If I use Boolean function it automatically declare two functions one is Continue and another is Break. If I select break then I am not able to send any notification or any callable object as this break function will break the process at instant and it wont allow any further actions.
Thanks & Regards,
Syed Nawaz.S
I think you just need to use 2 sequential blocks. Seq Block 1 will contain your data input form. Seq Block 2 will contain 5 actions - 1st action is a Decision Dialog (that will have Continue and Break), 2nd Action is whatever needs to be done on Continue, 3rd Action is Terminate, 4th Action is Send Notification and 5th Action is Terminate. Set the target for Continue to Action #2 and target for Break is Action #4. Once 2 is executed it will execute Action #3 and the process will terminate. If the Break situation is executed, a notification will be sent and the process will terminate.
Thanx,
Mahesh
Similar Messages
-
Hello,
I need help to find out how to trigger an Action (Action Definition) from an ABAP program. The program should trigger the Action used to create a follow-up transaction from an existing Contract.
Thanks in advance,
JonasHi! Every one
I am using codes mentioned in this tread but getting one exception at the time when SAP is trying to save the changes for the change process action data. I am able to run the change process action programmatically ( successfully ) and when i enter some data for the change process action and press the execute button, I am getting one exception. I have attached the exception in this text. Can any one please give any clue why this exception is coming and what else I need to do?
Thanks
Yogesh
Runtime Errors UNCAUGHT_EXCEPTION
Except. CX_OS_OBJECT_NOT_FOUND
Date and Time 13.03.2007 16:14:30
Short dump has not been completely stored (too big)
Short text
An exception occurred that was not caught.
What happened?
The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_METHODCALL_PPF=============CP' has to be
terminated.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
caught in
procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Could not find the referenced object with the OID
"00000000000000000000000000000000" (instance GUID) and
"BECA3BF12720D411AB61009027C3C00A" (class GUID)
Missing RAISING Clause in Interface
Program CL_METHODCALL_PPF=============CP
Include CL_METHODCALL_PPF=============CM009
Row 1
Module type (METHOD)
Module Name IF_MEDIUM_PPF~EXECUTE
Trigger Location of Exception
Program CL_METHODCALL_PPF=============CP
Include CL_METHODCALL_PPF=============CM001
Row 32
Module type (METHOD)
Module Name IF_OS_STATE~HANDLE_EXCEPTION
Source Code Extract
Line SourceCde
2 ***BUILD 020501
3 " importing I_EXCEPTION type ref to IF_OS_EXCEPTION_INFO optional
4 " importing I_EX_OS type ref to CX_OS_OBJECT_NOT_FOUND optional
5 ************************************************************************
6 * Purpose : Handles exceptions during attribute access.
7 *
8 * Version : 2.0
9 *
10 * Precondition : -
11 *
12 * Postcondition : -
13 *
14 * OO Exceptions : CX_OS_OBJECT_NOT_FOUND
15 *
16 * Implementation : If an exception is raised during attribut access,
17 * this method is called and the exception is passed
18 * as a paramater. The default is to raise the exception
19 * again, so that the caller can handle the exception.
20 * But it is also possible to handle the exception
21 * here in the callee.
22 *
23 ************************************************************************
24 * Changelog:
25 * - 2000-03-07 : (BGR) Initial Version 2.0
26 * - 2000-08-02 : (SB) OO Exceptions
27 ************************************************************************
28 * Modify if you like
29 ************************************************************************
30
31 if i_ex_os is not initial.
>>>>> raise exception i_ex_os.
33 endif.
34
35 endmethod. -
How to trigger so action when ServerletOuput stream writes all data as byte
Hi ,
I have a servlet which accepts the index , size of a .3gp file in bytes as input parameters.
If index=0 ...i am reading whole file into buffered input streame and writing to client as Servlet output steam as bytes.
If index !=0 , or index=100 ...say suppose
im ommiting first 100 bytes and rading101 byte to till the end of file in to buffered input streame and writing to client as Servlet output steam as bytes.
Here i would like to trigger some action when the servlet writes entire bytes to the client .
But im not able to notify exactly when the connection can close between client and server.
Can any one help me to overcome this.
Thanks in advance.Hi ,
Thanks for reply..
But reallu i couldnt get you.
please go though the code snippet i have...and suggest me.
try{
File fFile = new File (fileName);
BufferedInputStream bif = new BufferedInputStream(new FileInputStream(fFile));
bif.skip(Integer.parseInt(((DownloadFileForm)o).getIndex()));
int byteSize = (bif.available() < Integer.parseInt(((DownloadFileForm)o).getSize())) ? bif.available() : Integer.parseInt(((DownloadFileForm)o).getSize());
byte[] b = new byte[byteSize];
bif.read(b, 0, byteSize);
sosStream = response.getOutputStream();
sosStream.write(b);
// here i have to do something
sosStream.close();
logger.info("file has been downloaded from Server is sending out to client");
}catch(Exception e)
// e.printStackTrace();
logger.info("Exception :"+e.toString());
regards, -
How to submit two forms at same time?
Have a client that requires their members to update their profile information and some of the details from that form need to also populate a WebApp.
I've seeded the CRM with basic (first name, last name, email address, Your ID, and EntityID) member data.
Members would log in and be asked to update their profile. [action="/MemberProcess.aspx"]
This submission should update their CRM record *AND* create a WepApp record at the same time.
I tried the AJAX + jQuery method, including the second WebApp form [action="/CustomContentProcess.aspx?...] fields as type="hidden", and using {tag_FIELD NAME}; but this isn't working for me, I'm admittedly not a real programmer.
Any thoughts? Thank you very much, in advance for any and all help!
p.s. the reason for wanting to do this, is so that members do not have to update their CRM profile and then also input their data specific to the WebApp form (it's a member listing) as a separate task.
p.p.s. after I get through the above hurdle... how can I ensure that a CRM user has one and only one WebApp item (their listing) and that they can edit it? Another issue I'm having now is that users create a new listing in the WebApp if they submit another record and in the future I fear that simply editing their CRM profile will create new WebApp listings too. This site is like a phone book, there should only be one listing for each unique email address (in this case).
-WillYou can use Jquery + AJAX to submit as many forms as you want to as many places as you want. Don't use the HTML to submit and have a second javascript submitter as the Javascript might not have time to complete before the page is submitted.
I wrote this quickly just now, this wont work on the JSfiddle site because you can't form POST / GET anything on it (AJAX included it seems). it will submit to other URLs the same data. It is done in parallel and because we don't know which one will finish quicker, both calls check if all calls are complete before confirming everything is complete. I have not tested it but it would get you 99% of the way there.
<form id="signup_register" action="" method="post">
Firstname<br/><input type="text" name="firstname"><br/>
Lastname<br/><input type="text" name="lastname"><br/>
<button onclick="formsubmit(this);">Save</button>
</form>
<script>
var url1='http://google.com';
var url2='http://gmail.com';
var complete1=false;
var complete2=false;
FinishedTwoFormSubmits=function(){
alert('Finished submit - redirect or whatever you need to do.');
formsubmit=function(el){
var data = $('form#signup_register').serializeArray();
PostSubmit(url1,data, function(){ complete1=true; if (complete1 && complete2){ FinishedTwoFormSubmits() } });
PostSubmit(url2,data, function(){ complete2=true; if (complete1 && complete2){ FinishedTwoFormSubmits() } });
PostSubmit=function(url,data,cb){
var ret=false;
var noerror=false;
$.ajax({
type: 'POST',
url: url,
cache: false,
data: data
}).done(function(msg) {
try{ noerror=true; }
catch(e){ alert(e+'\n\n'+msg); }
if (noerror){ cb() }
return ret;
</script> -
How to start two threads at a time
hi to all,
can any one tell me how we can start two or more threads at a time
this is my req in the application i want to check that
can any body help me in this regard.
ashokIf you are starting a whole bunch of threads, and want them to be eligable for execution at about the same time (i.e. dont get staggered due to the overhead of starting), then you can use locking / waiting.
I've not really had / wanted to do this before, but I suppose something like the following might work:
import EDU.oswego.cs.dl.util.concurrent.Latch;
import EDU.oswego.cs.dl.util.concurrent.Sync;
public class StartupTest {
private void test() {
Latch startGun = new Latch();
// create and start some threads - I'll just create one
Thread t = new Thread(new TestRunnable(startGun));
t.start();
// all started? Ok - fire the start gun to release them
startGun.release();
private class TestRunnable implements Runnable {
private Sync startGun;
TestRunnable(Sync startGun) {
this.startGun = startGun;
public void run() {
waitForStart();
// what ever you were going to do here......
private void waitForStart() {
try {
startGun.acquire();
} catch (InterruptedException e) {
// what ever... I'll just bharf.
throw new RuntimeException(e);
}Even with this, your threads aren't going to actually start working all at exactly the same time - but they'll all be eligable to start working at the same time. -
How to trigger Condition Access sequence multiple times for one line item?
Hi,
We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
Logic goes like this:
1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
3.we have enhanced the tkomp structure to hold the sale deal.
Challenge:
As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
Functional team maintained diffrent access tables in the access sequence!!!
Fnds, please help me to get some clue
Thanks,
Sunil YHi Eduardo , Thanks for the response.
I am trying to explain again, this is the requirment given by the functional guys.
we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP. We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items. Line item 10 may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
Please help me ...
Thanks,
Sunil Y -
Hello All,
I have the below scenario where i have Two Facts Fact Quarterly and Fact Yearly but one Time Dimension which has Quarter grain.
So my question is how do i Establish relationship from Fact Yearly to Time Dimension??
Ex:Hi naveej,
According to your description, you want to know how to build the relationship with time dimension and fact tables. Right?
Based on your screenshot, it's better to have only one fact table for sales and build the relationship with time dimension. To determine quarterly or yearly data only depends on how you slice the time dimension. However, I notice that the Revenue for year
is different from the aggregated Profit for quarters. If the Revenue and Profit are different measure, you need to have two fact tables. And you should build the relationship (Regular) between TimeDim and FactYearly on YYYY attribute.
Reference:
Defining a Fact Relationship
Best Regards,
Simon Hou
TechNet Community Support -
How to display two pages at a time in smartform
Hi folks,
I have requirement that i need to display two pages for each record of the output table . the page 1 is not simillar to page 2 . page1 contains few templates and page2 contains other templates not simillar to first one.
my case, it displays only the first page eventhough i tried using command line.
Is there any exact step to followed to over come this problem.
Please suggest the solution.
Thanks ,
Hemum.hi,
can u please tell me how and where u are looping throuhg the internal table
check that.
regards,
Ravi Valluri -
How to place two tables at a time in every page in a smartform?
Hi All,
I have a requirement in a smartform where i need two tables in every page. These tables should repeat on every page with regard to the data thats getting populated in it.If one table has more data it should not push the second table completely from the page.
Can anyone please give me a solution.Hi
If you see in real time printing of Smartform documents like PO or SO or Invoice
we will see two tables data one is header data which will have a single record per document and Item data which will have mulitple records.
So header data is fixed in all pages and the Item data is printed in MAIN window and overflows to other pages depending on the data.
SO Item table data will be printed in number of pages where as the Header table data will pe constantly printed on the header part(top part) of every page.
so you can handle the 2 internal tables data as above
<b>Reward points for useful Answers</b>
Regards
Anji -
How to execute two task at a time?
Hi.
I have made one Generic connector for an Oracle database. This is a simple connector (application tables) which inserts the user row into the database when assigned as a resource to any IdM user.
I have also created an IT resource for the creation of Database User for the same database in which i am inserting user record.
Is it possible 2 merge these 2 steps..? I mean, when i assign the resource to a user the IT resource for DB User creation also gets executed.
For example: I select a user in IdM, assign the database application resource to it which will create the same record in the target database & at the same time i also want that the IT resource for DB user also get executed at the same time/event.
I hope i have clarified the requirement :)
looking forward for some help...
Hannaa.It sounds to me like you want the user provisioned in two places, in the database table with the GTC connector and as a database user. Is that correct?
If so, I am new to OIM so I can't provide that much help but I'm sure others on this forum can. I would add the user to an access policy that grants both resources.
Regards,
Ruth -
How to trigger an action after a FLV has finished playing
I have a FLV file that I am pulling into my SWF and I want to
go to the next scene in the SWF once the video clip is finished
playing... Because it's externally loaded I haven't been able to
figure out how to do this. I tried just importing the FLV to the
stage and putting it in the timeline, but that makes the SWF huge
and the video playback is much slower for some reason.
Does anyone know how to do this?Read in the duration metadata from the FLV so you know how
long the video clip is, then just check to see if the movie's
current time is >= to the total time. Don't use the prebult
media player components, write your own player. Check out
www.gotoandlearn.com for some great easy tutorials on this. -
How to have two actions in the same ResourceAction file?
I have 2 Domino Gateway actiontypes in 1 ResourceAction file. When I import this into IDM, the 2nd action always gets truncated. Can I name each actiontype to differenttiate them to IDM?
You can create a 2nd profile with: firefox -ProfileManager (you have to close all firefox instances to do that)
Then, you can start a 2nd firefox with the new profile: firefox -P <profilename> -no-remote -
hi all,
i am using HR_INFOTYPE_OPERATION to update or insert data in infotype 0000. it has been updated but i am also want to insert data in P0001 for same employee number(pernr) and same data. i want to do this with dynamic action. is it possible?????
thanks
SachinHi Ajay,
When you use BDC or FM to update infotype, you can not call dynamic action as it wont be supported by SAP.
So if you wnat to meet your requirement you have to create one RFC FM inside which you can call from the user exit or after your code had executed the FM operation and got the success message you can call the same FM for updating other infotypes.
The best approach can be to create BDC sessions for updating each infotype after you have done with update of IT0000.
Hope this will help you in resolving your queries.
Regards,
guds -
How to show two canvas at same time
i have a button, click on it to show 2 view. I use show_view to do that but it just show only one.
Could you help me, im working on 12R, form builder 10.1.2better to trim the certain portion of the first canvas and use a show_view function to display the second one.
Regards
Rajat -
Calling more than one action at a time in fault policy file
hi
can any one tell me how to refer two actions at a time in faultpoicies.xml file . To make it clear to you i want to call both rethrow action and human intervention action after retry . please refer below faultpolicy file
<?xml version="1.0" encoding="windows-1252" ?>
<faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy">
<faultPolicy version="2.0.1" id="BpelFaultMechanism"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.oracle.com/bpel/faultpolicy"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Conditions>
<faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
name="bpelx:bindingFault">
<condition>
<action ref="retry-action"/>
</condition>
</faultName>
</Conditions>
<Actions>
<Action id="retry-action">
<retry>
<retryCount>4</retryCount>
<retryInterval>2</retryInterval>
<retryFailureAction ref="rethrow-action"/>
</retry>
</Action>
<Action id="human-intervention-action">
<humanIntervention/>
</Action>
<Action id="rethrow-action">
<rethrowFault/>
</Action>
</Actions>
</faultPolicy>
</faultPolicies>
please reply asap
Regards
sivaHi FRNzzz!! wrote:
hi i am using oracle 10g database.
can it be possible ?
in if condition we can have more than one variable in one condition
if a=100 then
b:=200;
c:=300;
end if; how it will be in case statement ? i have searched lot on internet but didnt get
case
when a=100 then 200, 300 ... ???
thanksnot sure if I got your question correctly, is this what you are looking for?
SQL> ed
Wrote file afiedt.buf
1 declare
2 a number := 100;
3 b number;
4 c number;
5 begin
6 case
7 when a = 100 then
8 b := 200;
9 c := 300;
10 when a = 0 then
11 b := 300;
12 c := 400;
13 else
14 b := 0;
15 c := 0;
16 end case;
17 dbms_output.put_line('a :'||a||' b :'||b||' c :'||c);
18* end;
SQL> /
a :100 b :200 c :300
PL/SQL procedure successfully completed.
Maybe you are looking for
-
How can i use the apps i have downloaded on itunes
how can i use the apps i have downloaded on itunes
-
How to create a 'parallel' extended display through Apple TV Airplay
Dear all, I'm a relatively new Mac user and have not been able to find an answer to my question by looking up key words in Google or here, so apologies if this has been answered before. Basically, I would like to know how I can project a video file o
-
My IPod is not recognized by my computer nor by ITunes I am using Windows 7
Ipod Nano bough a feww years back was initialez on a different computer. I have unsuccessfully tried to syncrhonize on a different PC with Windows 7. Ipod not recognized by either Windows or Itunes. Thanks for supplying a solution to my problem.
-
How to prevent JaxB creation of 2 Interfaces for each Element?
hi, does any body know how to prevent JaxB creation of 2 Interfaces for each Element (The Content Interface and the element interface)? I want to configure JaxB to use only one Interface and only one implementation Class. Thank's,
-
How to select data in a LONG datatype
Hello friends.... We actually store some texts in a long column datatype, but we're facing the need of search this columns some specifics words. I tryed to select but it says me SQL was wiaintg for the NUMBER dt and got LONG. How can I search and sel