Handling the failures of more than one step..

OK,
So I have a package it has several steps, all of which run independtly. They are concerned with the generation of text files.
The steps work, but I want to include good error handling.
This is one of four Groups I have created, each with similar tasks inside.
Lets take an example, of one group, I have attached a picture of the kind of failure I am trying to Trap.
It seems it goes at the end of this post.
Anyway, what I would like in the below example is, an email is sent to support stating:
 - The TaskName(s) that failed.
 - The ErrorDescription(s).
For instance, in my example I deliberately set the overwrite to false, but I know there is a file there, so it would always fail.
I tried some OnError logging for the job but it doesn't work.
I also tried OnTask failure logging for the job but it doesn't work.
The best I ever managed is an email with ONE of the failures on it, but I want one email with both failures on, (or all failures on, or 1 failure on, depedendent upon what fails).
If that is 100% not possible, then I guess it might be OK (but it isn't really what I want) to get individual emails for each component. What is the best way to meet this requirement? fyi, if scripting is involved I use Visual Basic.

Hi,
I am creating a job that handles errors, using Event Handlers - On Error (see below).
The point is that the dataflow task basically outputs the error message into a Variable (with Type Object).
Then later, I include this on an email, saying the job has failed and this was the error we got.
That all works fine, but as you can see I want to point more than one step into the error email.
We can do so with an Or for OnError's.
This is OK, but what I've noticed is that results are variable when more than one step fails:
 - For instance, I've set the job up on purpose so that two steps fail > the result is that you
might get 1 email, but you might get more than one email. It's unpredictable; I wondered if there is a way round this!

Similar Messages

  • On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else on top of it.

    On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else over the top of it. Some pages will run text and pictures together, like a car rear-ending another or a train pile up. Other pages will cut an image or text short, i.e. it will display a portion of the top of the image or text but not the rest. This happens on Amazon for example, the section where it says "Customers who looked at this also looked at" will allow only a certain amount of the upper portion of the description immediately below the picture of the product but below that section everything is fine until I get to another section displaying more products and their descriptions and then it cuts the bottom portions off again. I've noticed this behavior mostly in the sections with product photos, the text sections seem okay. YouTube also displays this behavior. It's even doing it on this page right now. Below this box I can read "The more information you can provide the better chance your question will be answered " , but directly below that in the next sentence I can see the start of it with "Troublshootin" and the "Automatically Add" in a green field covering the "g". The next clear text is "A window will open in the top corner. Click Allow, and then click Install. If the automated way doesn't work, try these manual steps." I tried turning of pre-fetching, clearing history, cookies, and cache, scanning for malware with Avast and Windows Defender all to no avail. It began when I upgraded from dial up to DSL via AT&T Uverse. I have a Motorola NVG510 modem. The modem was replaced an hour ago along with new dedicated lines and DSL/Phone splitter from the box by an AT&T technician to make sure my incoming lines were up to par. He ran a connection test and verified everything is up to standards. IE does not display this behavior. I am running Firefox20.0.1 and all previous versions have acted the same way since I upgraded to DSL about 3 months ago.

    If you have increased the minimum font size then try the default setting "none" in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with text not being displayed properly.
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • More than one step BC sets approval for PO's

    Good day All.
    I would like to know the bc set for more than one step of approvals for the Purchased Order. We know the without tha approval and one step approval for PO.
    /SAPSRM/C_PO_600_000_SP04     Purchase Order Without Approval
    /SAPSRM/C_PO_600_001_SP04     Purchase Order with One-Level Manager Approval
    You speedy response would be appreciated.
    Regards
    Makoro Manyathela

    Hi,
    You can configure many approval steps based on your business requirements.
    The BCSets /SAPSRM/C_PO_600_001_SP04 is just a sample configuration.
    Please go to IMG.
    SRM -> SRM Server -> Cross-Application basic Settings -> Business Workflow -> Process-Controlled Workflow -> Business Process Configuration -> Define Process Levels.
    Regards,
    Masa

  • Get the data with more than one of the desired value

    Hi,
    I need to pull the records with more than one value of 'Other' on the delivery days fields.
    The delivery fields are mon,tue,wed,thu,fri and sat that tells the where the item will be delivered. The value can be Home, Work, or Other.
    Here is the Sample data:
    cust_id: 123
    item: newspaper
    mon: Home
    tue:Work
    wed: Other
    thu: Home
    fri: Other
    sat: Other
    And here is my query so far.
    select
    cust_id,
    item,
    mon,
    tue,
    wed,
    thu,
    fri,
    sat,
    sum(case when (del_mon = 'O' or del_tue ='O' or del_wed ='O' or del_thu ='O' or del_fri ='O' or del_sat='O') then 1
    else 0 end) as day_ctr
    from customer
    Could you please help me with the right formula I need to get this?
    Thank you in advance..

    First
    DESC customer
    Second
    Can you explain what you are trying with
    sum(case when (del_mon = 'O' or del_tue ='O' or del_wed ='O' or del_thu ='O' or del_fri ='O' or del_sat='O') then 1 else 0 end) as day_ctr
    Third
    Usually it's helpful a example of the result you want...
    Perhaps you want this
    select DECODE(mon,1,(select distinct mon from customer), 'OTHER') mon,
            DECODE(tue,1,(select distinct tue from customer), 'OTHER') tue,
            DECODE(wed,1,(select distinct wed from customer), 'OTHER') wed,
            DECODE(thu,1,(select distinct thu from customer), 'OTHER') thu,
            DECODE(fri,1,(select distinct fri from customer), 'OTHER') fri,
            DECODE(sat,1,(select distinct sat from customer), 'OTHER') sat from
    select
    COUNT(DISTINCT mon) mon,
    COUNT(DISTINCT tue) tue,
    COUNT(DISTINCT wed) wed,
    COUNT(DISTINCT thu) thu,
    COUNT(DISTINCT fri) fri,
    COUNT(DISTINCT sat ) sat
    from customer
    )

  • Owa_text.vc_arr: can't handle the string with more than 4000 characters?

    In the Oracel Web Application Server 4.0 documment, it says
    about owa_text.vc_arr :Type vc_arr is table of varchar2(32767)
    index by binary_integer.
    I amusing PL_SQL with Oracle8i and OWA4.0 web server.I want to
    use owa_text.vc_arr to pass the multple line texts in my form.
    If the text length is less than 4000 characters, everything works
    fine.However when the texts are longer than 4000 characters but
    less than the max length 32767 characters, I got this error
    message:
    OWS-05101: Execution failed due to Oracle error 2005
    ORA-02005: implicit (-1) length not valid for this bind or define
    datatype.
    Owa_text.vc_arr is supposed to handle the string with more
    than 4000 characters, is it true? Could anyone tell me why? Any
    help will be greatly appreciated!!!
    Thanks very much.
    Helena Wang
    Here is the pl_sql procedure to create my form:
    PROCEDURE myform
    IS
    BEGIN
    htp.p('
    <form action="'||service_path||'helena_test.saveform3"
    method=post>
    <input type=hidden name=tdescription value="X">
    Input1: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    Input2: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    <input type=submit name=WSave value="Save">
    </form>
    END;
    /***** here is the pl_sql procedure which I use to save the
    form***/
    procedure saveform3(tdescription in owa_text.vc_arr,
    WSave in varchar2 default 'No')
    is
    len pls_integer;
    begin
    for i in 2..tdescription.count loop
    len := length(tdescription(i));
    htp.p(len);
    htp.p(tdescription(i));
    end loop;
    end;

    Helena, I think you might get a better response either from the SQL-PL/SQL forum, or perhaps the Portal Applications forum - both of these tend to have folks very familiar with PL/SQL and the OWA packages.
    This forum is on Web services based on SOAP, WSDL and UDDI. These can be PL/SQL based but typically don't use the mod_psql or OWA web solution.
    As a pointer, I suspect you may already be familiar with, but just in case, you can always take a look at chapter 3 of the OAS documentation, "Developer's Guide: PL/SQL and ODBC Applications" where they go through a number of examples using parameters. See:
    http://technet.oracle.com/doc/appsrvr4082/guides/plsql.pdf
    Hope this or folks from the other list can help.
    Mike.

  • Why can't  owa_text.vc_arr  handle the string with more than 4000 characters?

    I am using PL_SQL with Oracle8i and OAS 4.0 web server.I want to
    use owa_text.vc_arr to pass the inputs in serval text areas in the form on a web application.
    If the input string length is less than 4000 characters, everything works fine.However when the strings are longer than 4000 characters but less than the max length 32767 characters, I got this error message:
    OWS-05101: Execution failed due to Oracle error 2005
    ORA-02005: implicit (-1) length not valid for this bind or define datatype.
    In the Oracle Application Server 4.0 documment, it says
    about owa_text.vc_arr :Type vc_arr is table of varchar2(32767)
    index by binary_integer. It means that owa_text.vc_arr can handle multiple strings and each string can have up to 32767 single byte characters, is it right?
    Owa_text.vc_arr is supposed to handle the string with more
    than 4000 characters, is it true? Could anyone tell me why? Any
    help will be greatly appreciated!!!
    Thanks very much.
    Helena Wang
    Here is the pl_sql procedure to create my form on the web:
    PROCEDURE myform
    IS
    BEGIN
    htp.p('
    <form action="'||service_path||'helena_test.saveform3"
    method=post>
    <input type=hidden name=tdescription value="X">
    Input1: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    Input2: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    <input type=submit name=WSave value="Save">
    </form>
    END;
    /***** here is the pl_sql procedure which I use to save the
    form***/
    procedure saveform3(tdescription in owa_text.vc_arr,
    WSave in varchar2 default 'No')
    is
    len pls_integer;
    begin
    for i in 2..tdescription.count loop
    len := length(tdescription(i));
    htp.p(len);
    htp.p(tdescription(i));
    end loop;
    end;

    The maximum size of a VARCHAR2 field in Oracle 8i is 4000 bytes.
    you'll ned to use a LOB type (or LONG if you prefer the old way)

  • Forward the mail to more than one agents in User Decision Step

    Hi All,
    I am referring blog
    http://wiki.sdn.sap.com/wiki/display/XI/User%20Decision%20step%20in%20SAP%20PI%207.1%20-%20Part%20I
    But my requirement is to forward the mail to group i.e. more than one agents in User Decision Step
    How to do this.
    Regards

    Hi,
    Even my requirement is similar one.
    I have to forward the mail to SAP Inbox of a group of user.
    Anyone of the Purchase team can process the message .
    Please suggest how to make our user decision step so that it is forwarded to multiple users for processing.
    Regards
    Henery

  • Check/uncheck record results on more than one step at a time

    I have one hundred plus sequence files and several thousand steps total. Checking and un-checking record results one step at a time takes a long time. I'd like to be able to select several steps at a time then check or un check the "Record Results" option for all those steps at once. How do I do this? I'm using TestStand 2.0

    Hi Kevin,
    Thanks for contacting National Instruments.
    Do you want to disable result recording for ALL sequences on this station? If so, you can turn on this option in the TestStand sequence editor (Configure >> Station Options, turn ON checkbox "Disable result recording for all sequences").
    However, if you only want to do this for selected sequence files, then Ray is correct - you would need to write an external routine that will automate this for you. Attached is a zipfile containing a VBScript that will iterate through one sequence file ("c:\test.seq") and change all steps (all sequences, including Main/Setup/Cleanup) to turn off "Record Results". It first saves a backup copy of the sequence file, makes the changes, then save
    s the modified sequence file. You can enhance this script to work for more than one sequence file by using Microsoft's FileSystemObject.
    The VBScript uses a DLL I created, which exposes the TestStand 2.0 Engine object as an ActiveX DLL. Before you can run the VBScript, you will need to register this DLL:
    regsvr32 TSEngine.dll
    Then, the VBScript can be executed just by double-clicking it. Hopefully this helps get you started toward creating an automated way of solving this problem!
    David Mc.
    National Instruments
    Attachments:
    ts2seqfiles.zip ‏4 KB

  • How to display(binding) values in the table from more than one node?

    Hi,
    I have two nodes (TRIPS & AMOUNTS)in the context. How to bind these values into the table control?
    When i bind second one, first one is getting replaced.

    Hi Mog,
    Of course it is possible to create a table from attributes of more than one node, and in some cases this is still necessary, but you have to do this the hard (manual) way.
    If you have a table control, have a look at the properties and the elements belonging to it.
    First of all, there is the property "dataSource", which binds to a multiple node (let's name it TableRootNode). This means that for each element of THIS node, one row is created. In each row the data of exactly one element of this TableRootNode is displayed.
    Then you have columns in this table. Inside of the columns there is a header and an editor. The editor is the interesting part.
    Normally the primary property of this editor is bound to an attribute of the TableRootNode. Then everything works as expected. If it binds to an attribute of a subnode (SUB) of TableRootNode, then in row i the data of the subnode of the i-th element of TableRootNode is displayed. There is no need for SUB to be a multiple node, but it must not be a singleton.
    If you bind a property of the editor to an attribute, which does not lie in the subtree of TableRootNode, then you will see the same value in each row.
    Now it depends on the structure of your context. Take the node, which is relevant for the change in each row (I assume it is TRIPS) and bind the table to the node as you are used to. Then for each additional column, you have to create a new column in the tree, create a new header element with a title and a new editor (e.g. textview or inputfield) and then bind the right property of the editor to the corresponding attribute in node AMOUNTS).
    If these 2 nodes do not have parent-child-relationship, the tip to create a new node, which consists of the attributes of both nodes is the only solution.
    Ciao, Regina

  • Can't use the iPod on more than one computer!!!!!!!

    Ok, This has got me so frustrated! We got an iPod and installed iTunes. We thought we had it figured out - we purchased music from iTunes, played it on the iPod and everything was great. Then plugged the iPod into my other computer to listen to our music and it won't freakin' play! says the computer is "Not Authorized" and suggests that by 'authorizing' the 2nd computer, it will overwrite the songs that are already on the iPod. This is NOT desirable. We've downloaded and installed iTunes onto the 2nd computer and used the same login account that we used on the first computer.
    What gives!?!?! I thought this was supposed to be easy, but it's not! I was hoping for a quick and simple "plug it in and start listening to music." This is definately not quick and simple. Albeit, I'm new to this iPod craze, but this shouldn't be so difficult. I've poked around on the website and cannot seem to find an answer to this.
    HELP!!!!
    Thanks
    oh btw, Is anyone else getting annoyed by Apple's rediculous attempt at monopolizing this market by forcing us to use thier own proprietary software?!?!

    First of all, any computer that plays purchased content must be authorized. This can be accomplished by opening iTunes, then store>authorize computer. If you wish to use your iPod on more than one computer & not have your iPod content erased, you will have to have your iPod preferences set on "manually manage". See the following link.
    http://docs.info.apple.com/article.html?artnum=61675
    Also, it's not only Apple that uses proprietary software. How about Zune players, & several others?
    Message was edited by: StarDeb55
    Message was edited by: StarDeb55

  • Can't turn up the volume on more than one podcast ITunes 11.1.1

    This also happened in Itunes 11.1 but when I am in list view and select all podcasts to set the volume between 95 and 100 percent when I choose Get Info a message comes up, "Your selection contains more than one kind of media.  All items must be the same kind of order to view or edit them together."  I have maybe 1 or two video podcasts but mostly all of them are audio podcasts.  I'd like to be able to turn the sound up on all of them at one time like I used to.

    Yes, it just took some time to build the waveforms for the second track. I went and got a snack, and when I came back from the kitchen the waveforms were there. Thanks!

  • Does BPEL allow partnerlinks where the WSDL has more than one namespace

    Hi
    I have a WSDL where the schema is in a different namespace than the message types. BPEL Designer throws "Exception: Problem building schema" when accessing the variable in the "Assign" activity. Can someone point out if there is a problem with my WSDL file ?
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="ProvWithXSL"
    targetNamespace="http://xmlns.oracle.com/ProvWithXSL"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://xmlns.oracle.com/ProvWithXSL"
    xmlns:tns="http://www.example.org"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         TYPE DEFINITION - List of services participating in this BPEL process
         The default output of the BPEL designer uses strings as input and
         output to the BPEL Process. But you can define or import any XML
         Schema type and us them as part of the message types.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <types>
              <schema attributeFormDefault="qualified"
                   elementFormDefault="qualified"
    targetNamespace="http://www.example.org"
    xmlns:tns="http://www.example.org">
                   xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="EventHdr">
    <sequence>
    <element name="eventType" type="string"/>
    <element name="eventID" type="string"/>
    <element name="eventSrc" type="string"/>
    <element name="objectDN" type="string"/>
    <element name="profileID" type="string"/>
    </sequence>
    </complexType>
    <complexType name="Attribute">
    <sequence>
    <element name="attrname" type="string"/>
    <element name="attrval" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="EventAttrs">
    <sequence>
    <element name="attr" type="tns:Attribute" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <element name="event">
    <complexType>
    <sequence>
    <element name="hdr" type="tns:EventHdr"/>
    <element name="attrs" type="tns:EventAttrs"/>
    </sequence>
    </complexType>
    </element>
    <element name="ProvWithXSLProcessRequest">
              <complexType>
                   <sequence>
                        <element name="parameters" type="string"/>
                   </sequence>
              </complexType>
         </element>
         <element name="ProvWithXSLProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    </schema>
    </types>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         MESSAGE TYPE DEFINITION - Definition of the message types used as
         part of the port type defintions
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <message name="ProvWithXSLRequestMessage">
              <!--<part name="payload" element="tns:event"/>-->
    <part name="payload" element="tns:ProvWithXSLProcessRequest"/>
         </message>
         <message name="ProvWithXSLResponseMessage">
              <part name="payload" element="tns:ProvWithXSLProcessResponse"/>
         </message>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PORT TYPE DEFINITION - A port type groups a set of operations into
         a logical service unit.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <!-- portType implemented by the ProvWithXSL BPEL process -->
         <portType name="ProvWithXSL">
              <operation name="initiate">
                   <input message="client:ProvWithXSLRequestMessage"/>
              </operation>
         </portType>
         <!-- portType implemented by the requester of ProvWithXSL BPEL process
         for asynchronous callback purposes
         -->
         <portType name="ProvWithXSLCallback">
              <operation name="onResult">
                   <input message="client:ProvWithXSLResponseMessage"/>
              </operation>
         </portType>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PARTNER LINK TYPE DEFINITION
         the ProvWithXSL partnerLinkType binds the provider and
         requester portType into an asynchronous conversation.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <plnk:partnerLinkType name="ProvWithXSL">
              <plnk:role name="ProvWithXSLProvider">
                   <plnk:portType name="client:ProvWithXSL"/>
              </plnk:role>
              <plnk:role name="ProvWithXSLRequester">
                   <plnk:portType name="client:ProvWithXSLCallback"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </definitions>

    You can use more than one namespace (done so before), and several ways to do so.
    But first, there's one error in your schema definition:
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://www.example.org"
    xmlns:tns="http://www.example.org">
    xmlns="http://www.w3.org/2001/XMLSchema">
    remove the ">" after xmlns:tns. Btw, this will cause the exception to occur as well.
    Why not put your elements in a new schema, like below, and leave the original ports & messages intact, as you don't change anything in it from the original generation. Just add this schema above/below the schema for the messages and it will work just fine.
    hth,
    Mike
    So, you will have a wsdl that looks like:
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://www.example.org"
    xmlns:tns="http://www.example.org"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="EventHdr">
    <sequence>
    <element name="eventType" type="string"/>
    <element name="eventID" type="string"/>
    <element name="eventSrc" type="string"/>
    <element name="objectDN" type="string"/>
    <element name="profileID" type="string"/>
    </sequence>
    </complexType>
    <complexType name="Attribute">
    <sequence>
    <element name="attrname" type="string"/>
    <element name="attrval" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="EventAttrs">
    <sequence>
    <element name="attr" type="tns:Attribute" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <element name="event">
    <complexType>
    <sequence>
    <element name="hdr" type="tns:EventHdr"/>
    <element name="attrs" type="tns:EventAttrs"/>
    </sequence>
    </complexType>
    </element>
    </schema>     
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/ProvWithXSL"
    xmlns:tns="http://www.example.org"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="ProvWithXSLProcessRequest">
    <complexType>
    <sequence>
    <element name="parameters" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="ProvWithXSLProcessResponse">
    <complexType>
    <sequence>
    <element name="result" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>

  • Can we prevent entering the same condition more than one time?

    Hi friends,
    Can we prevent the user for entering the same condition type more than one time in same sales order?
    Rama rao

    /write codes in Include ZXVVAU05/
    /prgm avbl in one of the msg in forum/
    DATA: BEGIN OF tXKOMV OCCURS 50.
    INCLUDE STRUCTURE KOMV.
    DATA: END OF tXKOMV.
    data : tab_name(40) type c ,
    ld_len type i , ld_len1 type i .
    field-symbols : <tab> type any.
    tab_name = '(SAPMV45A)XKOMV[]'.
    assign (tab_name) to <tab>.
    txkomv[] = <tab>.
    describe table txkomv lines ld_len .
    sort txkomv by kposn KSCHL .
    delete adjacent duplicates from txkomv comparing kposn KSCHL .
    describe table txkomv lines ld_len1 .
    if ld_len1 ne ld_len .
    refresh txkomv .
    message e002(zmm) with ' Please remove duplicate condition in item price' .
    endif .

  • How to get the contents of more than one comments of human task?

    The human task have more than one comments. I use the following functions to get the contents but still only get the first comment. Append function only returns the first comment.
    How to get all conents of comments?
    <while name="While_1"
    condition="bpws:getVariableData('Variable_int_i')&lt;number(bpws:getVariableData('Variable_comment_node'))">
    <sequence name="Sequence_3">
    <sequence name="Sequence_3">
    <assign name="Assign_7">
    <copy>
    <from expression="string(bpws:getVariableData('single_approve_1_globalVariable','payload','/task:task/task:userComment/task:comment'))"/>
    <to variable="Variable_comment_string"/>
    </copy>
    </assign>
    <assign name="Assign_6">
    <copy>
    <from expression="bpws:getVariableData('Variable_int_i')+1"/>
    <to variable="Variable_int_i"/>
    </copy>
    </assign>
    </sequence>
    </sequence>
    </while>

    You also have to test the value:
    REPORT ztest MESSAGE-ID 00.
    DATA: BEGIN OF itab OCCURS 0,
            f1 TYPE i,
            f2 TYPE i,
            f3 TYPE i,
            f4 TYPE i,
          END OF itab.
    DATA: sel_field(20),
          value TYPE i.
    DO 5 TIMES.
      itab-f1 = sy-index.
      itab-f2 = sy-index + 10.
      itab-f3 = sy-index + 20.
      itab-f4 = sy-index + 30.
      APPEND itab.
    ENDDO.
    LOOP AT itab.
      WRITE: /001 itab-f1, itab-f2, itab-f3, itab-f4.
      HIDE itab.
      CLEAR itab.
    ENDLOOP.
    AT LINE-SELECTION.
      CLEAR: sel_field,
             value.
      GET CURSOR FIELD sel_field.
      IF sy-subrc = 0.
        CASE sel_field.
          WHEN 'ITAB-F1'.
            value = itab-f1.
          WHEN 'ITAB-F2'.
            value = itab-f2.
          WHEN 'ITAB-F3'.
            value = itab-f3.
          WHEN 'ITAB-F4'.
            value = itab-f4.
        ENDCASE.
        MESSAGE s001 WITH 'Value of' sel_field 'is' value.
      ELSE.
        MESSAGE s001 WITH 'Invalid field selected'.
      ENDIF.
    Rob

  • Can i take the printout for more than one billing document in SD at a time

    HI ALL,
    The issue is '' i want to take the print out for more than one SD - billing document at a time.
    is there any config settings to be done.
    please guide me if u have the solution ASAP.
    Regards,
    SOMU.

    Yes, it is possible. However you may have to enable a field NAST-ANZAL. This field is available in VV31 when you are maintaining the output records. The field Number of Messages can be filled with the numberof copies youwant.
    However, I think you have to read this in your custom program to trigger n number of copies. If that is done, you can take the printouts as many times as you want in a single trigger.
    The code approx looks like this
    IF nast-anzal EQ 0.
        nast_anzal = 1.
      ELSE.
        nast_anzal = nast-anzal.
      ENDIF.
      nast-anzal = 1.
      nast-dsnam = nast-kschl.
      nast-dsuf2 = vbdkr-vbeln.
      DO nast_anzal TIMES
    If you show this field and talk to your developer, he should be able to help you.
    Hope this helps.

Maybe you are looking for