How to pass Idoc number to workfow

Hi all,
How to pass triggered Idoc number to the workfow ?
I wanna to display the Idoc number in mail, when error occur in posting, but workflow is trigarring but I am not able to get the Idoc number, even I given key element as idoc reference to the EDIDC-DOCNUM in the Business object ( z object).
Please let me know how to solve this...
Thanks yaar..
HP

Hi Hp,
Check the Workflow log or the event log?
Check the binding between event container to workflow container?
Thanks and Regards
Balaji E.

Similar Messages

  • How to Pass personal number(pernr) to the ESS Webdynpro ABAP Application

    Hi,
    How to pass personal number of employee to the standard ESS webdynpro ABAP application as application parameter of iview.
    Thanks
    Srikanth

    Hi
    For WebDynpro application in iView there is a property to set Parameter for WebDynpro application.
    Handel these passed parameters in Default plug of Interface Controller.
    Note string passed as parameter in iview is case sensitive.
    Try this code to get URl of Deployed application
    String appURL = null;
    try {
         WDDeployableObjectPart currentAppPart =wdThis
                                  .wdGetAPI()
                                  .getComponent()
                                  .getApplication()
                                  .getDeployableObjectPart();
    appURL = WDURLGenerator.getApplicationURL(currentAppPart);
    } catch (final WDURLException ex) {
    wdComponentAPI.getMessageManager().reportException(
                             new WDNonFatalException(ex),
                             false);
    Mandeep Virk

  • How to get IDoc number using sdata records

    Hi Experts,
    I have executed a report program in background. Its generating few IDoc's. I can view those idoc's in WE05 also. But now i want to display those idoc number in the result output of the report. One of the segment having materrial number and plant details in the IDoc. Using this details i want to display the IDoc number in the output screen. Even i have tried with EDID4 table its taking huge time to get a single IDoc. Is there is any simplest way is there to get those idoc's .
    Otherwise how to achive this?
    Thanks and Regards,
    Mohana

    Hi,
    1.)If you want the ouput in the same report program which triggers the idoc, it is better to use the control record information.
    You will get IDoc Number from XEDIDC(check the below code) and you can store the idoc number into an internal table if more idoc is expecting to be triggered.
         call function 'MASTER_IDOC_DISTRIBUTE'
              exporting
                MASTER_IDOC_CONTROL        = EDIDC
              tables
                COMMUNICATION_IDOC_CONTROL = XEDIDC
                MASTER_IDOC_DATA           = XEDIDD
              exceptions
                others                     = 5.
       read table xedidc index 1.
      append xedidc-docno to it_docno.
    And finallly use this to display in the output.
    2.) if u want it in a seperate report, then select based on date, idoctype, messagetype
    Regards,
    Sajith

  • AS2- How to display Idoc number in ACK MDN

    Hi ,
    I have an requirement where I have to send the Idoc number in MDN which is sent as an acknowledgement after AS2 system has received an INVOIC Idoc .
    Scenario is like below:
    Part I: R/3(Invoic idoc)>PI>(Idoc xml)AS2 
    R/3 system will send an Idoc to PI. PI will do the mapping and sent to AS2 system with the Idoc number in AS2 subject. This is done by an udf. Part I is working fine. 
    Part II: AS2(MDN)>PI>R/3(ALEAUD Idoc)
    After receiving the idoc xml, AS2 system will send an MDN. This MDN does not contain idoc # which has been processed successfully in the part I. PI is receiving the MDN message like below
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <DtReport xmlns="http://uri.seeburger.com/dt/master/schema">
      <clientId>000</clientId>
      <correlationId>dbeb6ed9-2cbe-11e1-c7f1-000007ec0f66</correlationId>
      <category>DeliveryReport</category>
      <state>SUCCESS</state>
      <finalReport>true</finalReport>
    - <specificData>
      <key>messageID</key>
      <value><[email protected]></value>
      </specificData>
    - <specificData>
      <key>subject</key>
      <value>Message Disposition Notification</value>
      </specificData>
    - <specificData>
      <key>channelID</key>
      <value></value>
      </specificData>
    - <specificData>
      <key>channel</key>
      <value>CC_SND_AS2_MDN_XX_PKI</value>
      </specificData>
    - <specificData>
      <key>originalchannel</key>
      <value>CC_RCV_AS2_XXX_EDI_SEEBURGER_INVOIC_PKI</value>
      </specificData>
    - <specificData>
      <key>to</key>
      <value>PARTY_XX</value>
      </specificData>
    - <specificData>
      <key>from</key>
      <value>PARTY_YY</value>
      </specificData>
    - <reportAttachment refID="dffd66c0-2cbe-11e1-9654-af0c1a5b180a">
      <ns1:objectInfo charset="binary" creation="2011-12-22T17:03:31.116+00:00" location="MEMORY" size="3391" type="INLINE" xmlns:ns1="http://uri.seeburger.com/bisas/message/schema" />
      </reportAttachment>
      </DtReport>
    Can anyone please let me know how can I get the idoc number in received MDN from AS2? So that we can easily identify which has been received the MDN and processed successfully.
    Thanks,
    Arivarasu S

    Hi Prateek,
    This is my code:
    FUNCTION ZPI_PICK_IDOC_NUM .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IN_GUID) TYPE  SXMSMGUID
    *"  EXPORTING
    *"     VALUE(IDOC_NUM) TYPE  EDI_DOCNUM
    *"  EXCEPTIONS
    *"      KEYSTRING_EMPTY
    *"      RETURNFIELD_EMPTY
    *"      KEYFIELD_DOES_NOT_EXIST
    *"      INVALID_DATA
    TYPES: BEGIN OF ty_itab,
           GUID     type SXMSMGUID,
           IDOCNUMBER type  EDI_DOCNUM,
           END OF ty_itab.
    DATA:  it_itab TYPE TABLE OF ty_itab,
           wa_itab type ty_itab.
    SELECT GUID IDOCNUMBER FROM IDXSNDPOR INTO table it_ITAB
             WHERE GUID = IN_GUID.
      IF sy-subrc EQ 0.
        loop at it_itab into wa_itab.
         move wa_itab-IDOCNUMBER to IDOC_NUM.
         exit.
        endloop.
      ELSE.
        RAISE invalid_data.
      ENDIF.
    ENDFUNCTION.
    I guess this is giving one of the exception which I have added in exception tab.
    Thanks,
    Arivarasu

  • How to save IDOC number in BPM to use in ALEAUD

    Hi Experts,
    I am doing IDOC - BPM - sync SOAP scenario, i am using async to sync bridge in BPM, how can i get original IDOC number so that i can use it in webservice response message to ALEAUD mapping??

    hi
    you have to use Configurable Parameters in the ccBPM. in runtimeyou assign the IDOCNUM field value to the parameter and then use it in the response mapping (WSDL-ALEAUD).  you have to define the parameter in the Message Mapping under the Signature Tab.
    Also you have to bind the parameter in the Operation Mapping. to do this,define a new parameter in the Operation mapping and then bind it with the parameter defined in the message mapping.
    see this blog to know how:
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    rgds
    RP
    Edited by: Rodrigo Alejandro Pertierra on Nov 3, 2011 3:49 PM

  • How to pass serial number read from a PCB.

    Hi,
    I have a question:
    How do I pass serial number read from a PCB so it will be embedded in Test Report file name for that test sequence. I am running Sequence in “New Execution" - Single Pass.
    My test report file after I run test does not have serial number: “TEST_Rev6_Report[NO_UUT_SERIAL_NUM0][2 32 24 PM][4 26 2013].xml” but my Report Header has serial number present.
    Thank you,
    Henry

    The attached screenshot shows how to set your report options, make sure you have the <TestSocket> and <UUTStatus> macros included in the Report File Path otherwise the serial will not be filled in the filename (Generate path is called a second time from the Single Pass -- Test Socket Entry Point sequence).
    I used the ParallelModel.seq to test it.
    The attached sequence file shows how to set the serial number.
    Search for "Specifying Report File Paths by Expression" in the help for more macros.
    Attachments:
    Sequence File 2.seq ‏5 KB
    Screenshot.png ‏57 KB

  • How to pass po number to API

    Hi All,
    Can you please let me know how to pass po_number(Purchase Order Number) while creating an assignment. i'm using hr_asignment_api to create assignments. Or do we have any other way to pass PO_NUMBER value to any API.
    Thanks,
    Anil

    Hi jackytam  ,
    /people/yeusheng.teo/blog/2008/01/05/ordering-unit-vs-order-pricing-unit-in-srm-sus
    you make get some pointers
    regards,
    Neelima

  • How to pass variable number of parameters to a FORM.

    Hi,
    What is the correct syntax to pass variable number of parameters to a subroutine?
    PERFORM TEST TABLES BRETURN USING TEST_NAME CHANGING MY_OUTPUT.
    FORM TEST TABLES RETURN STRUCTURE BAPIRET2
              ITAB STRUCTURE ITABLE_LINE OPTIONAL
              USING VALUE(NAME) TYPE STRING
              CHANGING VALUE(OUTPUT) TYPE STRING.
    The above code does not work. How can we specify an optional parameter?
    Thanks and Regards,
    Sheetal
    Message was edited by: Sheetal Pisolkar

    Hi,
    I am trying to use a subroutine instead of function.A FUNCTION understands optional keyword.
    How can this work for a FORM?
    CALL FUNCTION 'TEST'
         EXPORTING
              MY_OUTPUT = 'output'
         IMPORTING
              TEST_NAME = 'mytest'.     
    FUNCTION TEST
    *     EXPORTING
    *          VALUE(OUTPUT) TYPE STRING
    *     IMPORTING
    *          VALUE(NAME) TYPE STRING
    *     TABLES
    *          RETURN STRUCTURE BAPIRET2 OPTIONAL
    *          ITAB STRUCTURE ITABLE_LINE OPTIONAL          
    ENDFUNCTION.
    PERFORM TEST USING TEST_NAME CHANGING MY_OUTPUT.
    FORM TEST TABLES RETURN STRUCTURE BAPIRET2 OPTIONAL
    ITAB STRUCTURE ITABLE_LINE OPTIONAL
    USING VALUE(NAME) TYPE STRING
    CHANGING VALUE(OUTPUT) TYPE STRING.
    ENDFORM.
    Is this be possible?
    Thanks
    Sheetal.

  • How to get IDOC Number in XI?

    hi,
    i have a scenario (IDOC->XI->SOAP) wherein i have to delete the specific IDOC that is sent and only after getting a successful  confirmation from the receiver.
    Is there a way to get the IDOC number?
    Thakns,
    tirumal

    Hi Tirumal,
    There will be a EDI_* segment in the Idoc . It will be having field called DOCNUM - is nothing but Idoc number.
    Please close other threads, if it is solved
    Thanks,
    Moorthy

  • How to pass version number from source location to records center?

    When designing our record management approach, one of the requirements from business is to pass the version number from the source location to records center. They need to know which version has been declared as a record for the same document.
    Is there a way to implement this (OOB)? Thank you.

    Hi,
    Based on your description, my understanding is that when you sent a document to records center, you want to pass version number from source location to records center.
    When a document is sent to the records Center, we keep its version number as assigned in its original document library as metadata that is submitted along with the document to the Records Center (in the “Properties” sub-folder of the document library in
    the Records Center).
    Automatically synchronizing that version number directly into the versioning system in the Records Center is something we should probably consider for a future version, but even in the current version we definitely don’t lose that information.
    Hope this helps clarify.
    Refer to the following article:
    http://blogs.msdn.com/b/recman/archive/2006/08/24/715883.aspx
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to pass more number of parameters in procedure

    How can we send 1000 parametrs in a procedure?
    is there any other method to pass parameters without defning 1000 parametrs
    Any example really helpful

    I know it's a hint, but have you ever known it to be ignored? Can you provide a working example showing it being ignored?Well it is not hard to demonstrate it being ignored, but these restrictions, while not obvious, are relatively well documented.
    What does not appear to be documented is the behaviour when calling from 3GLs (or does this qualify as an external procedure call?) where I believe the hint is also ignored.
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2261
    "The use of NOCOPY increases the likelihood of parameter aliasing. For more information, see "Understanding Subprogram Parameter Aliasing".
    Remember, NOCOPY is a hint, not a directive. In the following cases, the PL/SQL compiler ignores the NOCOPY hint and uses the by-value parameter-passing method; no error is generated:
    1. The actual parameter is an element of an associative array. This restriction does not apply if the parameter is an entire associative array.
    2. The actual parameter is constrained, such as by scale or NOT NULL. This restriction does not apply to size-constrained character strings. This restriction does not extend to constrained elements or attributes of composite types.
    3. The actual and formal parameters are records, one or both records were declared using %ROWTYPE or %TYPE, and constraints on corresponding fields in the records differ.
    4. The actual and formal parameters are records, the actual parameter was declared (implicitly) as the index of a cursor FOR loop, and constraints on corresponding fields in the records differ.
    5. Passing the actual parameter requires an implicit datatype conversion.
    6. The subprogram is called through a database link or as an external procedure."
    For example, consider rule #2 above and compare output of first block (with unconstrained NUMBER datatype) with second (with constrained NUMBER datatype).
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> SET SERVEROUTPUT ON;
    SQL> <<anonymous_block>>
      2  DECLARE
      3     variable_name NUMBER := 0;
      4
      5     PROCEDURE procedure_name (
      6        parameter_name   IN OUT NOCOPY   NUMBER)
      7     IS
      8     BEGIN
      9        dbms_output.put_line ('#2 variable_name => ' || variable_name);
    10        parameter_name := parameter_name + 1;
    11        dbms_output.put_line ('#3 variable_name => ' || variable_name);
    12     END procedure_name;
    13  BEGIN
    14     dbms_output.put_line ('#1 variable_name => ' || variable_name);
    15     procedure_name (variable_name);
    16     dbms_output.put_line ('#4 variable_name => ' || variable_name);
    17  END anonymous_block;
    18  /
    #1 variable_name => 0
    #2 variable_name => 0
    #3 variable_name => 1
    #4 variable_name => 1
    PL/SQL procedure successfully completed.
    SQL> <<anonymous_block>>
      2  DECLARE
      3     variable_name NUMBER (10) := 0;
      4
      5     PROCEDURE procedure_name (
      6        parameter_name IN OUT NOCOPY NUMBER)
      7     IS
      8     BEGIN
      9        dbms_output.put_line ('#2 variable_name => ' || variable_name);
    10        parameter_name := parameter_name + 1;
    11        dbms_output.put_line ('#3 variable_name => ' || variable_name);
    12     END procedure_name;
    13  BEGIN
    14     dbms_output.put_line ('#1 variable_name => ' || variable_name);
    15     procedure_name (variable_name);
    16     dbms_output.put_line ('#4 variable_name => ' || variable_name);
    17  END anonymous_block;
    18  /
    #1 variable_name => 0
    #2 variable_name => 0
    #3 variable_name => 0
    #4 variable_name => 1
    PL/SQL procedure successfully completed.
    SQL>

  • How to pass idoc parameters in a validation script? (10gR3 site studio)

    Obviously idoc won't work in the actual validation script, so I'd like to use it to generate the parameters to pass to a custom function.
    If I add <!--$siteId--> as a parameter in design mode, it'll be added as: &amp;lt;!--$siteId--&amp;gt; which doesn't work.
    If I manually add <!--$siteId--> to the parameter code in Source mode, this works just fine. However, once I enter design mode, Designer strips it out and now I have no parameter.
    Is there any way to somehow escape the less than/greater than symbols in Design mode?
    It's really unfortunate how the contributor windows are static HTML pages that don't retain what site they're on. Maybe this has changed in the 10gR4.

    Sorry I don't have an answer for you, but I wanted to say that we have had problems with Design mode in general and don't use it anymore. Switching between Source and Design has cause multiple errors in our Site Studio template. We do all of our Designer editing in Source mode. Any actual design work is done in an external editor and the HTML source is then brought over into Site Studio in Source mode.
    I was disappointed when 10gR4 came out and Oracle said they did no significant changes (improvements) to Site Studio Designer application.

  • How to pass version number of process using API's

    Locator locator = new Locator("default","bpel");
         IDeliveryService deliveryService = (IDeliveryService) locator.lookupService(IDeliveryService.SERVICE_NAME );
         // Construct a normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage();
    nm.addPart("payload", xml);
    // Initiate the BPEL process
    deliveryService.post("AsyncProc1", "initiate", nm);
    When I run this code, I get the following error:
    09/03/31 15:07:46.953 workflowform: Servlet error
    ORABPEL-02178
    Process not found.
    The BPEL process "AsyncProc1", revision "" has not been loaded. Either the process was not initialized properly or the process has
    been disabled.
    Please consult your administrator regarding this error. The application server logs may provide more information regarding this error
    I had created many versions of the same process. I need to use version 4.0 of this workflow. Is it possible to pass the version number while initiating the process?
    Thanks.

    Hi Badri,
    I think you can identify the bpel with different versions as follows:
    bpelprocessName_1.1 or bpelprocessName_v1.1
    either one of these should be correct.
    Thanks
    Saikrishna

  • How to pass Employee number of MSS - Employee Search to Start Process

    Hi All,
    Just like HR admin role, Employee Information number is getting passed in Display Processes, Start Processes, and Personnel File, we have to make same scenario working for MSS also.
    In MSS, General Information Page, when manager selects the Employee, then that Employee Number should get passed in Display Personnel File and also in Start Process.
    I am new to HR module so I have not explined the requirement properlly, but Experts may be knowing this. Please help.
    Regards,
    Nikesh

    Hi Siddharth Rajora,
    I have actually 2 doubts..
    1. You mean to say this can be done and is already implemented, but I think it will only work if we put "Display Personnel File and Start Process" under "Related Activities" area right ?
    2. But user wants these views in the Detailed Navigation, so if he selects PERNER from general Information Page, and then if he clicks on "Start Process (under Detailed Navigation)" , then it shud show list of processes for that Employee.
    Can you please guide me properly.

  • How to pass Employee number of MSS - General Information to Start Process.

    Hi All,
    Just like HR admin role, Employee Information number is getting passed in Display Processes, Start Processes, and Personnel File, we have to make same scenario working for MSS also.
    In MSS, General Information Page, when manager selects the Employee, then that Employee Number should get passed in Display Personnel File and also in Start Process.
    I am new to HR module so I have not explined the requirement properlly, but Experts may be knowing this. Please help.
    Regards,
    Nikesh

    Hi Siddharth Rajora,
    I have actually 2 doubts..
    1. You mean to say this can be done and is already implemented, but I think it will only work if we put "Display Personnel File and Start Process" under "Related Activities" area right ?
    2. But user wants these views in the Detailed Navigation, so if he selects PERNER from general Information Page, and then if he clicks on "Start Process (under Detailed Navigation)" , then it shud show list of processes for that Employee.
    Can you please guide me properly.

Maybe you are looking for