Process Flow - External process - Return status

Did any one know how to capture or get the return value when executing a shell script thru Process flow - User defined - External process?
This is the scenario.
OWB Server on UNIX. Version-10.2, Database-9i
I am executing a simple "whoami" command thru the user-defined process.
How do I capture the return value?
One of my shell script returns a value. Based on this return value I have to send a page or schedule a dependency job on successful completion.
Thanks.

To add a parameter to the process flow, you will have to add a parameter to the start activity in the activity view (lower left corner of the process flow editor), by clicking the Add button.
You can then pass this parameter to the other activity by using the parameter binding - click on the BINDING column of the activity parameter you want to pass it to and select the parameter added to the start activity in the previous step from the drop down list.
When the PF is run, the user will be prompted for a parameter, then it will be passed to the next activity.
Regards:
Igor

Similar Messages

  • On-Demand process: Return status?

    I have a ODP that is called as a application process from an instance of the htmldb_Get object.
    The ODP returns the standard output using htp.p that is injected into the DOM of the calling page as appropriate.
    Along with this, I also need to return a "return status" that would determine further execution in the calling function. 0 for no errors, 1 for error and so on.
    I guess this is where it makes sense to return a structured output from the ODP using either XML or JSON, right? The output stream or "payload" could contain the real output that is consumed by the calling process and the out-of-band status code that I need.
    What is the most elegant, "infrastructure" way to do this sort of thing?
    Are there readymade JSON encoders for PL/SQL that can be used here?
    Thanks

    Vikas,
    I have not tried the package available at:
    http://reseau.erasme.org/Librairie-JSON
    Regards
    Roelie

  • Payment Process Request Status Report - Add Invoice Distribution Section

    Hi,
    I posted this in the E-Business Financial forum, but I think this is the right forum to seek for an answer to my question.
    In R12.1.3, I need to add Invoice Distribution details into "Payment Process Request Status Report" report. I know that function "Get_Docline_Ext_Agg" in package "IBY_FD_EXTRACT_EXT_PUB" needs to be extended, but I do not know how to do it when it involves adding a new level of records into the XML, assuming that an invoice line can have multiple distribution entries, the function return could not simply be an aggregate value but instead needs to be a collection of records, so I can loop throug them in the RTF tempalte using for-each statement.
    Please let me know if this makes sense and/or if you had to deal with a similar issue.
    Thanks,
    Sinan

    Hi,
    Is this the right forum to post this question?
    I would appreciate any comments.
    Thanks,
    Sinan

  • Process Chain Status is Red even though all processes are successful.

    I implement ABAP Code by using standard function module "RSPC_CHAIN_START" for execute process chain and return status of process chain after execute completely as following code:
    Execute Process Chain
    CALL FUNCTION 'RSPC_CHAIN_START'
      EXPORTING
        I_CHAIN             = I_CHAIN
        I_SYNCHRONOUS       = I_SYNCHRONOUS
    IMPORTING
       E_LOGID             = P_LOGID.
      If sy-subrc = 0.
        gt_status = 's'.
        WHILE gt_status = 's'.
    Get Status of Process Chain
          CALL FUNCTION 'RSPC_API_CHAIN_GET_STATUS'
          EXPORTING
          i_chain              = I_CHAIN
          i_logid              = P_LOGID
         IMPORTING
          E_STATUS             = gt_status
          E_MESSAGE            = P_MESSAGE.
    Status G or F - Report that the Chain is Successfully Completed.
    Status A - The chain is Currently running
    Status R or X - Report that the chain has ended with Errors.
        CASE gt_status.
        WHEN 'A'.
    Process chain is running
          gt_status = 's'.
          P_MESSAGE = ''.
        WHEN OTHERS.
    Process chain is completed
          exit.
        ENDCASE.
        IF gt_status = 's'.
           WAIT UP TO 2 SECONDS.
        ENDIF.
    ENDWHILE.
    Display Message
      IF gt_status = 'G' or gt_status = 'F'.
        MESSAGE i162(00) WITH P_MESSAGE.
      Else.
        MESSAGE e162(00) WITH P_MESSAGE.
      ENDIF.
      ENDIF.
    From above code, when execute this function module, sometimes status of process chain is shown as canceled 'X', therefore, output of this function module is shown as "The process chain is canceled". When monitor process chain in RSPC log view, the process chain status is also shown as canceled 'X' and status of all process in process is green, however, after wait for a while, the status changed from canceled 'X' to successful 'G'.
    Why did the status of process chain show as canceled 'X' even though finally process chain status is successful ? If I want to check status of process chain after execute completely, which status should to check in ABAP code?
    Regards,
    Pui

    Using that FM.. u will be providing the Instance and Variant of the failed process.. and hence the reload will start from the failed process but not the entire chain...
    In general the process status shud finish then or based on the link combination  the change from one process to other will happen...
    try to maintain a wait time between the process atleast 2 to 4 secs..
    thanks
    hope this helps..

  • PL/SQL process returning message with more than 4000 chars

    In our apex application we are using a pl/sql process returning a message.
    This message should be shown to the user.
    Our problem is now, that the application items in APEX seem to be limited to 4000 chars and the message can be longer.
    We are also not able to use a collection, because we can't print the content of a collection in the "Process Success Message".
    Here is the content of a page process which is running on page load after header:
    Name - Type:     PL/SQL anonymous block
    Source - Process: :AI_TEST := p0001_pkg.get_text;
    Messages - Process Success Message: &AI_TEST.
    Image from process [https://twitter.com/OliverLemm/status/324058809138032640/photo/1/large]
    If the page is called the result is this error message:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Technical Info (only visible for developers)
    is_internal_error: false
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    component.type: APEX_APPLICATION_PAGE_PROCESS
    component.id: 16433072916569237418
    component.name: get_text
    error_backtrace:
    ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 100
    ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 141
    Edited by: Oliver L on 16.04.2013 09:17

    no an item like P0_TEST on page 0 / global page also does not help.
    But the error is not the application item / page item it's the problem that the "Process Success Message" can't handle more than 4000 chars.
    I tried to paste a string into the process success message, but the error "Error processing row. ORA-01461: can bind a LONG value only for insert into a LONG column" occured even when i filled the textarea and saved the process.
    So there's no problem with the application item or page item.
    Edited by: Oliver L on 16.04.2013 10:00

  • How to process Idoc status file within Sap?

    Hi All,
    We would like to process received status file to update the sent IDOC's. Our current setup is that we send/push  the Outbound Idoc to external EDI sub system and pull the status file for processed Idoc from external EDI system to our R/3 server.
    Sap Documentation explains the scenario, where this process is triggered from external system using startrfc program, whereas our scenario is to trigger the status update process, once the file is pulled to our system from unix using edi_status_incoming function module.
    Your anwers are much appreciated.
    Kind Regards,
    Sandhya

    Hi Sandhya,
    Once the Idocs are sent to the EDI Subsystem, the SAP will have the status that the Idoc has reached the partner sub system. I hope, the workflow should be able to trigger back the status file to the SAP System after the Idoc is processed at the EDI Subsystem.
    Please check with the workflow that is attached.
    Else, if this is using the FM or Message Control, then check the configuration under MN04.
    I'm also trying to find the solution for the same.
    Regards,
    -Syed.

  • Post Operation Processing Initiated status after completion of approvals

    Hi All,
    I have implemented an approval work flow that has two levels of approvals. The two levels of approvals are completed successfully, but the status of the request is not changing to "Request Completed". The status of the request is showing as "Post Operation Processing Initiated".
    Please let me know what needs to be done for the status of the request to be changed to "Request Completed".
    Thanks in advance for your help.

    Check for any manual provisioning task assigned to system admin or any other user according to the configuration you have provided and complete it. "Post Operation Processing Initiated" status comes after operation level approval gets completed and some provisioning task is pending. If everything is completed check for Task to object status mapping and change it to Provisioned as suggested by Rajiv.
    If you still could not find what is the reason then connect to OIM db and query OSI and ORC tables to check the task which is in pending status.
    Edited by: Durgaprasad on Jan 28, 2013 8:58 PM

  • R12 Payment Process Request Status Report adding extra columns to XML data.

    In 11i, we had modified the Preliminary Payment Report to include extra columns ( invoice distributions). In r12 , that report is obsolete and Oracle introduced a new report "Payment Process Request Status Report". This request uses BI Publisher to generate the final report output. I am unable to modify the template since the XML output of the report does not
    contain the invoice distribution account data. We need to know how can we modify the XML data to include the extra columns.
    For Funds Disbursement Process ( Payment Instruction File) , Oracle provides IBY_FD_EXTRACT_EXT_PUB extensibility package to construct custom XML element structure that can be added to the payment XML extract generated by Oracle Payments. Do we have something similar for this report ? Are there any other options available ?
    Thanks

    Hi
    The same package "IBY_FD_EXTRACT_EXT_PUB" works for payment process request status report also. Please add the logic to get the distribution data in this package and you will see the new XML tags in this report also.
    Hope this helps.
    Vinit

  • Error 0x800713ec: Process returned error: 0x13ec when installing message+.exe on xp machine.

    [0C00:0A0C][2015-02-10T11:49:06]i001: Burn v3.7.1224.0, Windows v5.1 (Build 2600: Service Pack 3), path: C:\Documents and Settings\K4MLD.K4MLD-F2F3858A4\My Documents\Downloads\Message+.exe, cmdline: ''
    [0C00:0A0C][2015-02-10T11:49:06]i000: Setting string variable 'WixBundleLog' to value 'C:\DOCUME~1\K4MLD~1.K4M\LOCALS~1\Temp\Message+_20150210114906.log'
    [0C00:0A0C][2015-02-10T11:49:06]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Documents and Settings\K4MLD.K4MLD-F2F3858A4\My Documents\Downloads\Message+.exe'
    [0C00:0A0C][2015-02-10T11:49:06]i000: Setting string variable 'WixBundleName' to value 'Message+'
    [0C00:0A0C][2015-02-10T11:49:07]i100: Detect begin, 3 packages
    [0C00:0A0C][2015-02-10T11:49:07]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full'
    [0C00:0A0C][2015-02-10T11:49:07]i000: Trying per-machine extended info for property 'State' for product: {F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
    [0C00:0A0C][2015-02-10T11:49:07]i000: Setting numeric variable 'VCRedistx86' to value 5
    [0C00:0A0C][2015-02-10T11:49:07]w120: Detected partially cached package: vcredist_x86.exe, invalid payload: vcredist_x86.exe, reason: 0x80070570
    [0C00:0A0C][2015-02-10T11:49:07]i052: Condition 'VCRedistx86<>2' evaluates to true.
    [0C00:0A0C][2015-02-10T11:49:07]w120: Detected partially cached package: NetFx45Web, invalid payload: NetFx45Web, reason: 0x80070570
    [0C00:0A0C][2015-02-10T11:49:07]i052: Condition 'NETFRAMEWORK45 >= 378389' evaluates to false.
    [0C00:0A0C][2015-02-10T11:49:07]i101: Detected package: vcredist_x86.exe, state: Present, cached: Partial
    [0C00:0A0C][2015-02-10T11:49:07]i101: Detected package: NetFx45Web, state: Absent, cached: Partial
    [0C00:0A0C][2015-02-10T11:49:07]i101: Detected package: VMAApplication, state: Absent, cached: Complete
    [0C00:0A0C][2015-02-10T11:49:07]i199: Detect complete, result: 0x0
    [0C00:0A0C][2015-02-10T11:49:11]i200: Plan begin, 3 packages, action: Install
    [0C00:0A0C][2015-02-10T11:49:11]i052: Condition 'VCRedistx86=2' evaluates to false.
    [0C00:0A0C][2015-02-10T11:49:11]w321: Skipping dependency registration on package with no dependency providers: vcredist_x86.exe
    [0C00:0A0C][2015-02-10T11:49:11]w321: Skipping dependency registration on package with no dependency providers: NetFx45Web
    [0C00:0A0C][2015-02-10T11:49:11]i000: Setting string variable 'NetFx45FullWebLog' to value 'C:\DOCUME~1\K4MLD~1.K4M\LOCALS~1\Temp\Message+_20150210114906_0_NetFx45Web.log'
    [0C00:0A0C][2015-02-10T11:49:11]i000: Setting string variable 'WixBundleRollbackLog_VMAApplication' to value 'C:\DOCUME~1\K4MLD~1.K4M\LOCALS~1\Temp\Message+_20150210114906_1_VMAApplication_rollback.log'
    [0C00:0A0C][2015-02-10T11:49:11]i000: Setting string variable 'WixBundleLog_VMAApplication' to value 'C:\DOCUME~1\K4MLD~1.K4M\LOCALS~1\Temp\Message+_20150210114906_1_VMAApplication.log'
    [0C00:0A0C][2015-02-10T11:49:11]i201: Planned package: vcredist_x86.exe, state: Present, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
    [0C00:0A0C][2015-02-10T11:49:11]i201: Planned package: NetFx45Web, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
    [0C00:0A0C][2015-02-10T11:49:11]i201: Planned package: VMAApplication, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: Register
    [0C00:0A0C][2015-02-10T11:49:11]i299: Plan complete, result: 0x0
    [0C00:0A0C][2015-02-10T11:49:11]i300: Apply begin
    [0CEC:0C1C][2015-02-10T11:49:16]i360: Creating a system restore point.
    [0CEC:0C1C][2015-02-10T11:49:32]i361: Created a system restore point.
    [0CEC:0C1C][2015-02-10T11:49:33]i000: Caching bundle from: 'C:\DOCUME~1\K4MLD~1.K4M\LOCALS~1\Temp\{1ca30da3-9557-44ec-bdf2-e0887854efd9}\.be\Message+.exe' to: 'C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\{1ca30da3-9557-44ec-bdf2-e0887854efd9}\Message+.exe'
    [0CEC:0C1C][2015-02-10T11:49:33]i320: Registering bundle dependency provider: {1ca30da3-9557-44ec-bdf2-e0887854efd9}, version: 1.0.14.0
    [0C00:0484][2015-02-10T11:49:33]w343: Prompt for source of package: NetFx45Web, payload: NetFx45Web, path: C:\Documents and Settings\K4MLD.K4MLD-F2F3858A4\My Documents\Downloads\redist\dotNetFx45_Full_setup.exe
    [0C00:0484][2015-02-10T11:49:33]i338: Acquiring package: NetFx45Web, payload: NetFx45Web, download from: http://go.microsoft.com/fwlink/?LinkId=225704
    [0CEC:094C][2015-02-10T11:49:45]i305: Verified acquired payload: NetFx45Web at path: C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\.unverified\NetFx45Web, moving to: C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\F6BA6F03C65C3996A258F58324A917463B2D6FF4\redist\dotNetFx45_Full_setup.exe.
    [0CEC:094C][2015-02-10T11:49:48]i304: Verified existing payload: VMAApplication at path: C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\{70A85191-F402-4CB5-8AFF-050956C7A9E1}v1.0.14.0\Message+.msi.
    [0CEC:0C1C][2015-02-10T11:49:48]i301: Applying execute package: NetFx45Web, action: Install, path: C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\F6BA6F03C65C3996A258F58324A917463B2D6FF4\redist\dotNetFx45_Full_setup.exe, arguments: '"C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\F6BA6F03C65C3996A258F58324A917463B2D6FF4\redist\dotNetFx45_Full_setup.exe" /q /norestart /ChainingPackage "Message+" /log C:\DOCUME~1\K4MLD~1.K4M\LOCALS~1\Temp\Message+_20150210114906_0_NetFx45Web.log.html'
    [0CEC:0C1C][2015-02-10T11:50:36]e000: Error 0x800713ec: Process returned error: 0x13ec
    [0CEC:0C1C][2015-02-10T11:50:36]e000: Error 0x800713ec: Failed to execute EXE package.
    [0C00:0A0C][2015-02-10T11:50:36]e000: Error 0x800713ec: Failed to configure per-machine EXE package.
    [0C00:0A0C][2015-02-10T11:50:36]i319: Applied execute package: NetFx45Web, result: 0x800713ec, restart: None
    [0C00:0A0C][2015-02-10T11:50:36]e000: Error 0x800713ec: Failed to execute EXE package.
    [0CEC:0C1C][2015-02-10T11:50:36]i351: Removing cached package: NetFx45Web, from path: C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\F6BA6F03C65C3996A258F58324A917463B2D6FF4\
    [0CEC:0C1C][2015-02-10T11:50:36]i330: Removed bundle dependency provider: {1ca30da3-9557-44ec-bdf2-e0887854efd9}
    [0CEC:0C1C][2015-02-10T11:50:36]i352: Removing cached bundle: {1ca30da3-9557-44ec-bdf2-e0887854efd9}, from path: C:\Documents and Settings\All Users.WINDOWS\Application Data\Package Cache\{1ca30da3-9557-44ec-bdf2-e0887854efd9}\
    [0C00:0A0C][2015-02-10T11:50:37]i399: Apply complete, result: 0x800713ec, restart: None, ba requested restart:  No

    Try deleting the downloaded ,exe file and re-downloading and re-installing it.  If you have an AV running, try disabling it just for the installation; it may be preventing some parts from installing properly.
    If that isn't what you need, please ask your specific question; posting the error log may help a tech, but is not very useful to us regular customers.

  • Payment Process Request Status Report - unmask bank account number

    Dears,
    My requirement is to unmask bank account number in Payment Process Request Status Report (short code: IBY_FD_PPR_STATUS_PRT). It is possible to achieve?
    Thanks for any help and suggestions.
    Rgds,
    Marcin

    Sunil wrote:
    Guys,
    Can you please tell me what is the Data Definition name associated with Payment Process Request Status Report.
    Looking forward to your replies.
    Thanks.
    -SunilLogin to (XML Publisher Administrator) responsibility and click on Templates, query "Payment Process Request Status Report" and click on Go and this should show the "Data Definition". You can also click on "Payment Process Request Status Report" link and get all the details (Template Files, File name, Localized/Translatable Template ..etc).
    Thanks,
    Hussein

  • Process Chain Status Red, DTP status yellow, DTP is green from inside

    Hello All,
    I have a problem where the  Process Chain  status is red, but the process(DTP) status is yellow.
    When I right click on the yellow process there is no error message and the DTP is green in Process Monitor.
    But the chain did not complete and the rest of the process steps are grey.
    After 20 minutes the Process Chain ran again(automatically after new data arrived) and this time without errors and it went green.
    My question is, how to proceed with the red Process chain and complete the further process and make it green.
    Regards
    Alex

    hi,
    There are scenarios where you need to change status of a process chain or a particular step in process chain.
    You might need to change the status in the cases where we need mark these steps successful so that dependent steps get processed. There are other scenarios where one needs to change the status of a single step in the process chain or status of whole process chain.
    Step by step instructions on change process chain status
    1. Right click on the failed step in the process chain monitor and go to displaying messages
    2. Go to u2018Chainu2019 tab and note down variant, instance and start date
    3. Go to SE16 and the table RSPCPROCESSLOG and enter variant, instance and start dates from step 2 and note down log_id, type, variant, instance.
    4. Go to SE37 transaction and execute the function module RSPC_PROCESS_FINISH and enter the values from step 3 and enter the new status u2018Gu2019 in status field and execute the FM
    5. This sets the status of the process chain (PC)
    After you set the status using the FM, go to the monitor screen of the process chain, you will notice the changed status. Now dependent steps in the process chain will start running
    Thanks

  • Process Order status CRCR needs to  re read master data

    All,
    I have an issue with re-reading the master data in process order.
    I have an order which was  released and control recipe was also released since we use pi sheet to record shop floor data.
    After releasing the control recipe user  made changes into bom and he wanted to re-read master data , on the master data tab re-read master data button is not activated not  if i go menu path from the header process order-> functions-> re-read master data is active.
    Neither i am allowed to set the deletion flag for the order, i am getting error message process order status CRCR does not alow to set the delection flag.
    Any solution to this issue is appriciated
    Either i should be able to re-read the master data or set the deletion flag...

    In your case Control Recipe is already created, so you need to send a process message to set the status of the control recipe to finished. "CRFI". Follow the steps below,
    Transaction CO57, to trigger manually a process message with message Category PI_CRST for the process order and Control reciepe combination.
    Then use Transaction CO54 to send the Message to the process order.
    You can complete the PI Sheet by clicking the "complete" button in the PI Sheet also.
    Now try to re read master data

  • Monitor Process Server Status

    Hi,
    Recently we had an example of a process sever going into the "unknown" state. We didn't know about the condition and jobs were I assume queued up for execution. Since they were not killed or canceled we did not receive any notification.
    Is there a simple method of monitoring the process server status that we can then leverage to send some notification in the event of a non "running" status. Thanks.
    Kind Regards,
    David Carr

    Hi
    Re: Thanks for the replies. We are on standalone version 6.0.2 SP11
    Not sure if this applies with the standalone version, but our Redwood CPS runs on SAP 700 SP15, but the patches I refered to earlier are found on the main screen of Redwood after logging in, and clicking on the 'Product Information' logo (Big letter i) in the top right hand corner. Should say something like:
    Version: SAP 7.00
    Build: M26.17-31458
    What build are you on?
    Cheers
    Ross

  • What is process returns inventory  to vendor

    Hi can you please help us  for process returns inventory  to vendor.
    if i have purchase 100ltr & sold only 80 ltr how can i have returns balance 20ltr to vendor.

    No need to post in MM forum .
    If you post this in MM forum, it will be rejected.
    Please put some effort in search. You will get many discussions which will explain you the details about return delivery process.

  • Find Process order status

    Hi,
    i  would like to know how  can we find  process order status .
    Example OPEN -COR3 TCODE - Enter PO---
    list of fields
    PO            -
    MATERIAL -
    STATUS   -
    BESIDE this  status icon is there, if we click it it displays list of status.
    i want this data where it was stored.
    Thanks
    Ramakrishnaiah

    Hi Rama,
    check this table AUFK
    Order status - AUFK-ASTNR
    Regards,
    Sachin

Maybe you are looking for