How create a complex process with excpetion handling

i need to modell a complex process which consists of subprocesses
e.g. a shell command as subprocess
now i want informations in the audit browser which process component fails at runtime, for example: think that the shell script fails and returns with exit 3
i have no information in the runtime audit browser that the subprocess failed - it will always displayed as "processed" (without an error)
so how can i make errors/warnings visible in the execution log of the audit browser

Hello,
managed the execution of rscrm jobs in PC as follows:
1. Execute query through RSCRM_BAPI transaction
2. goto sm37 and copy the Jobname (the active one)
3. Create following progromm
*& Report /WST/RSCRM_START *
REPORT /WST/RSCRM_START .
parameter: l_bid TYPE sysuuid_c.
CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
EXPORTING
i_barepid = l_bid
4. Execute Programm and fill the Parameter with the Jobname
5. Save as a new program variant and use in PC as a normal program
Very strange and I think not very nice that sap uses the jobname to control the execution....but with this workararount it works very nice.
I hope that helps.
Regards,

Similar Messages

  • How to Integrate HCM Process with Webdynpro ABAP Application

    hi,
    I have issue regarding how to integrate HCM Process with Webdynpro abap application.
    I had created one HCM process for transfer using Hrasr_dt T code and also created form scenario and work flow.
    How to Integrate HCM Process with Webdynpro ABAP Application
    by
    Parthasarathi

    hi suhasini,
    Thanks for your reply,
    Can u explain in detail.. and Give any documents or links...
    by
    Parthasarathi

  • How to use batch processing with jpg pictures taken with iphone cameras?

    How to use batch processing with jpg pictures taken with iphone cameras?

    Open the editor . Go to file>process multiple files
    Sent from my iPad

  • How Create procedure or function with ADO ?

    Hello,
    How Create procedure or function with ADO?It's my question.
    Thanks.
    Henri

    This message if post by Taiwan-ChangHaw-Oracle-Stored-Procedure-For-Business-Rule-Club
    public bool ConnectDatabase()
    try
    { string strConnectionString =
    "Provider=OraOLEDB.Oracle" +";"+
         "Data Source=" + ConnectionParams.Datasource +";"+
    "User Id =" + ConnectionParams.Username +";"+
    "Password =" + ConnectionParams.Password;
         m_conn=new ADODB.Connection();
         m_conn.ConnectionString=strConnectionString;
         m_conn.Open("","","",0); //i_"YYAOl Open the connection
    catch(Exception e)
    {     System.Windows.Forms.MessageBox.Show(e.Message);
         return false;
    return true; //YYAOl_B>3I9&connected successfully
    public void InsertDescription(string p_product,string p_language,string p_tname,string p_tdescription)
    { string sql="{Call inserttranslateddescription(?,?,?,?,?)}";
    try
    { ADODB._Command cmd=new ADODB.Command();//Create a command object
    cmd.ActiveConnection=m_conn; //Set its active connection to open connection
    ADODB.Properties properties=cmd.Properties;//Get the command properties into ADODB Properties object
    IEnumerator ienum=properties.GetEnumerator();//Get an enumerator on above properties
    ADODB.Property singleprop;
    while(ienum.MoveNext()) //iterate through the enumerator
         {singleprop=(ADODB.Property)ienum.Current;//Get the current property from enumerator
         string propname= singleprop.Name; //Get the name of current property
         if(propname.Equals("NDatatype")) //if the property is 'NDatatype' set its value to true
         singleprop.Value=true;
    cmd.CommandType=ADODB.CommandTypeEnum.adCmdText;
    int pid=Int32.Parse(p_product);
    ADODB._Parameter langid     =cmd.CreateParameter("langid",          ADODB.DataTypeEnum.adChar,ADODB.ParameterDirectionEnum.adParamInput, 100,p_language);
    ADODB._Parameter productid =cmd.CreateParameter("productid",     ADODB.DataTypeEnum.adNumeric,ADODB.ParameterDirectionEnum.adParamInput, 100,pid);
    ADODB._Parameter tname =cmd.CreateParameter("tname",          ADODB.DataTypeEnum.adBSTR,ADODB.ParameterDirectionEnum.adParamInput, 50,p_tname);
    ADODB._Parameter tdescription=cmd.CreateParameter("tdescription",ADODB.DataTypeEnum.adBSTR,ADODB.ParameterDirectionEnum.adParamInput, 50,p_tdescription);
    ADODB._Parameter check          =cmd.CreateParameter("check",          ADODB.DataTypeEnum.adNumeric,ADODB.ParameterDirectionEnum.adParamOutput,100,0);
    cmd.Parameters.Append(langid);
    cmd.Parameters.Append(productid);
    cmd.Parameters.Append(tname);
    cmd.Parameters.Append(tdescription);
    cmd.Parameters.Append(check);
    cmd.CommandText=sql;
    //Execute the command to insert product details in database
    object recs;
    object param=p_language;
    cmd.Execute(out recs,ref param,1);
    ienum.Reset();
    while(ienum.MoveNext()) //iterate through enumerator
    { singleprop=(ADODB.Property)ienum.Current;//Get the current property in to Property object
    string propname= singleprop.Name; //Get the name of current property
    if(propname.Equals("NDatatype")) //if it is 'NDatatype' set its value to true
    singleprop.Value=false;
    IEnumerator iprop=cmd.Parameters.GetEnumerator();//Get the enumerator for command parameters
    while(iprop.MoveNext()) //loop through enumerator
    { //Get the current parameter in enumerator
    ADODB._Parameter checkval=(ADODB._Parameter)iprop.Current;
    if(checkval.Name.Equals("check")) //if the parameter is 'check'
    if(checkval.Value.ToString().Equals("0")) //If check's value is zero data was inserted
    System.Windows.Forms.MessageBox.Show("Product details Inserted successfully");
    else
    System.Windows.Forms.MessageBox.Show("Product Details Updated");//else data was updated
    catch(Exception e)
    System.Windows.Forms.MessageBox.Show(e.Message);//Display any error message
    }

  • How to integrate BPEL process with OSB?

    HI,
    I want to expose a web service from OSB and then after doing the initial validation of request,want the request xml to be forwarded to one of my BPEL process from where i would go for business processing with the request xml data.
    Could any one help me here, what are the steps to be followed to integrate BPEL and OSB such that i'll be able to get rquest xml from OSB and reply back the final response to OSB .OSB will respond back to external world.
    I have already exposed my webservice from OSB,but don't know how to forward this req xml to my BPEl process and finally fetch res from BPEL.

    Hi Arik,
    Thanks for Helping me out here. But my problem is when i m communicationg with the BPEl via default wsdl generated by my BPEl process, Through SAO-Direct from OSB.It's looking for binding tag in that WSDl which is not present when i created the BPEl process.
    for eg.
    In BPEl I have genarated a web service whose input and response is based on existing WSDL .This is the same WSDL which has been referred in OSB to intract with external world ( for upstream component who would be calling my web service).
    The default WSDL geneareted by this BPEl does have portType,message,partenerLincType. But it doesnot have binding tag.
    Now ,When i m trying to connect to this BPEl from OSB by creating new business service, while refering to this BPEl wsdl,It's looking for binding tag which is actually not present in default WSDL genarated by BPEL.
    So considering my explained scenario,will you plz help me, where m i going wrong and in this case what are the correct steps i should follow to fullfill me requirement.

  • How to do parallel processing with dynamic internal table

    Hi All,
    I need to implement parallel processing that involves dynamically created internal tables. I tried doing so using RFC function modules (using starting new task and other such methods) but didn't get success this requires RFC enabled function modules and at the same time RFC enabled function modules do not allow generic data type (STANDARD TABLE) which is needed for passing dynamic internal tables. My exact requirement is as follows:
    1. I've large chunk of data in two internal tables, one of them is formed dynamically and hence it's structure is not known at the time of coding.
    2. This data has to be processed together to generate another internal table, whose structure is pre-defined. But this data processing is taking very long time as the number of records are close to a million.
    3. I need to divide the dynamic internal table into (say) 1000 records each and pass to a function module and submit it to run in another task. Many such tasks will be executed in parallel.
    4. The function module running in parallel can insert the processed data into a database table and the main program can access it from there.
    Unfortunately, due to the limitation of not allowing generic data types in RFC, I'm unable to do this. Does anyone has any idea how to implement parallel processing using dynamic internal tables in these type of conditions.
    Any help will be highly appreciated.
    Thanks and regards,
    Ashin

    try the below code...
      DATA: w_subrc TYPE sy-subrc.
      DATA: w_infty(5) TYPE  c.
      data: w_string type string.
      FIELD-SYMBOLS: <f1> TYPE table.
      FIELD-SYMBOLS: <f1_wa> TYPE ANY.
      DATA: ref_tab TYPE REF TO data.
      CONCATENATE 'P' infty INTO w_infty.
      CREATE DATA ref_tab TYPE STANDARD TABLE OF (w_infty).
      ASSIGN ref_tab->* TO <f1>.
    * Create dynamic work area
      CREATE DATA ref_tab TYPE (w_infty).
      ASSIGN ref_tab->* TO <f1_wa>.
      IF begda IS INITIAL.
        begda = '18000101'.
      ENDIF.
      IF endda IS INITIAL.
        endda = '99991231'.
      ENDIF.
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = pernr
          infty           = infty
          begda           = '18000101'
          endda           = '99991231'
        IMPORTING
          subrc           = w_subrc
        TABLES
          infty_tab       = <f1>
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        subrc = w_subrc.
      ELSE.
      ENDIF.

  • Is it possible to create a complex sound with 12 harmonic partials in Audition

    Hi all,
    I am new to Audition 3. I have an experiment which needs a complex stimuli with 12 partials. Is it possible to create such a stimuli is Audition 3.
    Thank you,
    Varghese

    If you can calculate what all the harmonics you want are, and their relative amplitudes, then this would be relatively easy to do for 12, yes. But I'd be inclined to create them as single tones and import these into Multitrack view - it's then relatively easy to manipulate the levels of each for a mixdown.

  • How to configure quality process with batch management.

    Dear Friends,
                we have a scenario,our client receive goods with 101movement type  into quality inspection stock.
    once stock is passed quality check stock,then we will take into unrestricted stock with 321 movement type.
    failed in quality test will  be rejected.please give me suggestion how to map the scenario.while i am testing
    the process in my sandbox,its asking batch number.its not allowing me to post unrestricted stock with 321
    movement type.how to make batch as optional in this scenario?if batch is mainted for the material,how to
    configure the process.we are not using QM module.
    please suggest me.
    Regards,
    Varun

    In Batch management config in Logistic general, Check for the movement type 101 & 321 whether batch creation has been activated to Manual, Automatic, or no creation. In your case it looks like for mvt 321 batch creation is set to manual & for 101 no creation.
    if batch creation is set to manual, enter a manual batch no & proceed.
    But to cross verify wheter 101 has generated batch or not please check the stocks in MMBE.
    Hope this helps.
    Regards
    Mithun

  • How to start BPEL process with publishing initiation form designed in ADF

    Hii All,
    Can Anyone please tell me how to Start my BPEL process with publishing initiation forms designed in ADF fusion.
    I am using JDevloper 11g and Oracle SOASuite 11g toolset in windows platform.
    Thankx in Advance,
    Deekay.

    Hi,
    I assume you mean the JMS example under the $OH BPEL examples area. Unfortunately, this only shows how to get a BPEL process kicked off by awaiting a JMS message - but there is no test code there! There are specific examples which show off the testing framework facilities but it appears that all the examples which use async type of interactions are in the middle of a process which is kicked off by a normal synchronous client interaction.
    Any further help much appreciated.
    Colin.

  • How : Invoke asynchronous BPM process with callback within loop?

    Hi All,
    I'm currently using the 11g suite to create 2 BPM processes (Validate and Review). Process Validate is asynchronous and has a callback facility. I intend to invoke Validate from Review as a subprocess. My question would be, is it possible to invoke an asynchronous process with a call back? Can this be done in a loop?
    JDev : 111.1.1.4
    Thanks,
    PP.

    Sai,
    Which IDE are you using to build the client? (In fact it doesn't matter)
    Just put the jar files path into the classpath as John told. In order to find which jar files you need in this process, you can use eclipse java - jar class finder (which works with NWDS as well). Give it the class name(in this case commons.bla.bla...) and your jar files' folder, it will show you which jar file you need to put into the classpath.
    Just a little googling may help you with the class finder

  • Creating a daemon process with processBuilder

    Hello,
    This is our problem, we are creating a new process from a java application, with the processBuilder methods. The idea is to launch this process and when the java application is closed the process continues running. But the problem is that when i close the java application, the process die too.
    This is the code that we use:
    ArrayList commandsList=new ArrayList();
    commandsList.add("./test.sh");
    Process pfProcessing = new ProcessBuilder(commandsList).start();
    In the test.sh script, we launch the program with nohup command and the & to start it in background.
    We think that the problem is that when you close the java application, a SIGTERM or SIGINT signal is sent to the process.
    If you need more information, do not hesitate to contact us.
    Many thanks in advance.

    There isn't any way to run a java web start application in "headless" mode (without initializing awt).
    All of the javaws error windows, console, download progress window, and security windows are written in swing, and become part of your application, running in the same VM.
    /Dietz

  • How Create a Role just with EXECUTE grant

    Hi all.
    How can I create a role just with the execute flag.
    The default here at my site is the the select flag is marked.
    I´d like to know this because we have some logical models with more than 1500 procedures and I spend a lot of time waiting the response when I have to add a new procedure to a role then, if I create a role just with execute flag I just need to associate the procedure to the role.
    Thank you
    Darlei

    Hello Rajan,
    You have 2 options now :
    1. You can add the new Transaction codes to the existing profile, then go to the authorization objects and assign the required authorization over objects, regerate the profile and make user comparision. This is sory of composite profile concept.
    2. Go to SE93 , give the transaction code and check the authorization object. then under authorization object add this object manually and rest steps are same.
    BUt you can't find authorization object for all Tcodes via SE93. So its all your choice how you want to proceed.
    Best REgards
    Niraj

  • How to use NAtive process with WriteUTF()?

    pls provide example NAtive process with WriteUTF() method with example.
    i wanto  call my  .js file
    "#import /D/Sunil/Flex_WorkSpace/YSIPrototype/bin-debug/data/PSAction/FinishLayoutToPhotoshop.js'; &quot;;

    Hi Sunil,
    You'll probably get better answers to this over in the Using Flash Builder forum:
    http://forums.adobe.com/community/flash_builder/using_flash_builder?view=discussions
    -Chris

  • How create LOV(select List) with all LDAP users

    Hello,
    I am trying to create a selected list with all the users in my LDAP, note my LDAP is synchronized with my OID.
    Any suggestions, I'm searching the the pl/sql statment?
    Thanks
    Hussam

    Hi Hussam,
    Take a look at my comments in the following two threads -
    Re: LDAP
    Re: Cookie And LDAP
    The two different threads discuss the methods I use to do what you want to do (so you really need to 'combine' the two different threads).
    Hope this helps

  • How can I create a chain process with rscrm_bapi

    Hello
         We have generated a table, as result of the execution of a query with the transaction rscrm_bapi. It's made manually, and now we want to do it in a chain process so that the table will be generated automatically.
         How can I do this?. Are there any manual? or Anyone know how to do it, step by step?
    Thank you very much.

    Hello,
    managed the execution of rscrm jobs in PC as follows:
    1. Execute query through RSCRM_BAPI transaction
    2. goto sm37 and copy the Jobname (the active one)
    3. Create following progromm
    *& Report /WST/RSCRM_START *
    REPORT /WST/RSCRM_START .
    parameter: l_bid TYPE sysuuid_c.
    CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
    EXPORTING
    i_barepid = l_bid
    4. Execute Programm and fill the Parameter with the Jobname
    5. Save as a new program variant and use in PC as a normal program
    Very strange and I think not very nice that sap uses the jobname to control the execution....but with this workararount it works very nice.
    I hope that helps.
    Regards,

Maybe you are looking for

  • Change font color in the Text Field of a Popup Key LOV

    Hello, I have a question concerning Popup Key LOV. I want to change the font color in the Text Field of the Popup Key LOV Item. I searched the forum but I cannot find an answer about this! Although I searched the CSS and the Popup Key LOV Template, b

  • How to disable sessions in CS6?

    InDesign Server CS6 added a mechanic of multi-threading jobs via sessions. Now you can begin session and end session via SOAP web service call. However, the sessions add a huge overhead for those who want to use multi-instance instead of multi-thread

  • How to capture LoginException throwed by Customized JAAS LoginModule?

    I have a customized JAAS LoginModule deployed on WebLogic, when authentication fails, it throws LoginException("Incorrect Password"); At remote fat-client side, I use following code to login to WebLogic: Environment env = new Environment(); env.setIn

  • No login appears for protected pages

    Hi, I have a web application name codeConsole with the following web.xml settings: <!-- Security settings --> <security-constraint> <web-resource-collection> <web-resource-name>AdminPages</web-resource-name> <description> These pages are only accessi

  • Where can i download the oracle applications software for DBA

    Hi, I want to know few things regarding oracle applications. 1) What exactly is oracle applications 2) Where can i download the oracle applications software 3) I am currently working as oracle DBA, so i want to enhance the dba skills to oracle applic