Error status on validating PO Item tcode ME22N is always displayed at last

Hi Gurus,
I am using the method  IF_EX_ME_PROCESS_PO_CUST~CHECK to validate a line item.
I have say 20 line items and the 5th line item has an error on validating.
I am able to display the correct error message with correct line item number,
however in the status column, the red block is shown only in the last item and not in the 5th line item.
Please suggest how to get this red block indicator of error in the erroneous line item.
I have already searched the forum but could not get any relevant solution.
Below is the example of my code.
LS_HEADER = IM_HEADER->GET_DATA( ).
        LS_ITEM = IM_HEADER->GET_ITEMS( ).
        LOOP AT LS_ITEM INTO LINE_ITEM.
          PO_ITEM = LINE_ITEM-ITEM->GET_DATA( ).
          SELECT SINGLE NETPR FROM EKPO INTO L_NETPR
                        WHERE EBELN = LS_HEADER-EBELN
                        AND EBELP = PO_ITEM-EBELP.
          IF L_NETPR <> PO_ITEM-NETPR.
     L_EBELP = PO_ITEM-EBELP.
             SELECT * FROM EKBE INTO CORRESPONDING FIELDS OF TABLE I_EKBE1
               WHERE EBELN = LS_HEADER-EBELN
               AND   EBELP = L_EBELP
               AND   BWART = '101'.
        DESCRIBE TABLE I_EKBE1 LINES LIN1.
        SELECT * FROM EKBE INTO CORRESPONDING FIELDS OF TABLE I_EKBE2
                  WHERE EBELN = LS_HEADER-EBELN
                  AND   EBELP = L_EBELP
                  AND   BWART = '102'.
        DESCRIBE TABLE I_EKBE2 LINES LIN2.
        IF LIN1 > LIN2.
          CONCATENATE 'No price change possible as GRN exists for PO' LS_HEADER-EBELN  'AND item' L_EBELP into g_msg SEPARATED BY space.
           MESSAGE g_msg TYPE 'E'.
          CH_FAILED = 'X'.
        ENDIF.
          ENDIF.
        ENDLOOP.

Hello,
then we need to do another way to collect message rather flushing in task bar
rather than statement message, call method 
call method cl_message_mm=>create
it has message parameters, please pass require value
this method collect messages in message collector...
after that call method 
CALL METHOD im_item->invalidate( )
Please try and let me know your feedback
Thanks
Krish

Similar Messages

  • SharePoint Error "The security validation for this page is invalid" when delete an item

    Hi,
    I have SharePoint 2010 setup and works fine until today all of a sudden it throws error "The security validation for this page is invalid" when delete a SharePoint document or list item.
    There is no custom event handler deployed on library/list, and it should not be account issue as the same account works yesterday, and even after I turn off security validation from Central Admin, it still doesn't work.
    The only change I did is turn off Dynamic Compression from IIS, after that I tried enable back Dynamic Compression but it still doesn't work.
    Does anyone know what could be the possible reasons? Thanks in advance.

    hi,
     in the page just try to make this :
    <SharePoint:FormDigest runat="server" />
    PrasadWT

  • CRMXIF_PARTNER_SAVE: Error status 'A ' calling validation service

    I am getting error message while posting BP IDOC
    CRMXIF_PARTNER_SAVE: Error status 'A ' calling validation service
    Regards
    Meghana

    Hi Meghana
    could u advise how you solved it.
    regards
    ranjeet

  • Work item with error status

    Hi,
    I need your help in order to know what shall I do when a work item finishes with error status.
    Thanks in advance,
    Andrea

    look at business workflow -> development -> administration -> workflow runtime .
    here you have several possibilities
    SWPR to restart after error
    SWI2_DIAG for diagnostics
    SWI2_FREQ to see the details
    SWWERRE_DEBUG to debug

  • Facing the error : Status and active flag in one item do not match

    Hi Experts,
    I am getting error : Status and active flag in one item do not match in GOA distribution and while adding item in the item data , following are the relative information :
    I am using SRM 4.0 and Item is free text.
    Please help if you have faced such an error.
    Thanks,
    Atul

    question not clear. you have activate one line item and the same not in ECC contract.
    for ex
    4600001000 - GOA
    item 1 - active
    ecc
    4600001000 - contract
    item - inactivate
    -locked
    muthu

  • Validation check for Tcode FB10 and FB60 - FICO.

    I have an issue in validation check for Tcode 'FB60' and  'FB10'.
    there are two exits coded for these transactions through transaction 'GGB0'.
    details for the two exits.
    exit 1.
      when posting a vendor invoice, the network status is checked whether it is completed or not - if status is completed error message is raised.
    exit 2.
      when posting vendor invoice - for G/L Account in 60000 - 69999 series network should not be posted. if posted error message is raised.
    when these two exits are entered via a prerequisites in code 'KGB' a code is generated automatically to call these exits- when transaction 'FB10' 'FB60' is executed.
    Issue:
    for  code 'FB10' is executed with network with status completed and with G/LP account in 60000 - 69999 series -
    error message is raised in sequence i.e. exit 1 is raised and then exit 2 is raised.
    but for code 'FB60' if condition for exit 2 is  not satisfied then exit 1 message is raised.
    but it should be in sequence in raising the error message i.e. exit 1 and then exit.
    Even though for both the transaction the auto generated code is similar and even exits are similar - but it is execution in raising the error message is diffrent.
    - Since it is auto generated code i am able to figure out the issue.
    i would appreciate if any one could help me out in this issue.
    thank you,
    with dregs,
    Karthik.

    Hi,
    I have tried what you have suggested. But still validation is not working
    I have done the following validation based on your inputs.
    Prerequisite
    Company Code = '1265' AND Transaction code = 'FB60' AND
    Account Type = 'K' OR
    Transaction code = 'F-43' AND Account Type = 'K' OR
    Transaction code = 'F-48' AND Account Type = 'K'
    Check
    Business Place > '' AND Business Place = Section Code
    Message
    E - Error Message
    Still it is not working.
    Please suggest.
    Best Regards
    Shashikanth.M

  • Send Mail Step forced to error status

    Hi,
    In my send mail step, i'm using Expression and passing 'UserComplete' field which is the person who has completed the document in FV60 tcode. But, it ends in error status.
    The error message is,
    Work item 000000399146: Object 000000399146 method SENDTASKDESCRIPTION cannot be executed
    Message no. WL821
    Diagnosis
    The calling of the object method for the work item ended with a return value for which no handling is modeled in the workflow.
    System Response
    The work item was forced into the error status.
    Procedure
    Refer to your workflow system administrator.
    Procedure for System Administration
    Also check the binding between the task container and the method container.
    I want to know wat binding should i give for task and method ?
    Regards,
    JMB

    Hi,
    Just check what your passing in the field "UserComplete".
    You need to pass user id as USXXXXXXXX.
    US refers to USER and XXXXXXX is the user name.
    Reply back if the problem still exist.
    Regards,
    Gautham P

  • Pending Move Transaction ****Error: Status not applicable for this Locator.

    Hi guys,
    Let me know if you have experienced the following error in the pending move tranasctions with Back flush process?
    Message error:
    Status not applicable for this Locator.
    Transaction processor error
    Thanks,

    the receiving with locator works only if there is a valid default locator defined in the system.
    There is no option to enter the Locator manually in the receiving pages of iProcurement.
    Locator and/or serial controlled Items must be received in the Core PO Receipt Form and not in iProcurement.
    Cannot Receive Requisitions For Inventory Items Which Are Locator And/Or Serial Controlled (Doc ID 809408.1)
    Also refer to the below,
    Unable To Receive Inventory Item In iProcurement or Core Apps Receiving Due To Locator Error (Doc ID 819083.1)

  • Sales Document Delta Load Error - Status procedure could not be set

    Hello,
    I am getting the following error message during the sales document delta loads. It errors out in SMQ2 with this message - "Error in Validation (Details: transaction SMW01)"
    In SMW01, I get this message:
    <b>The status procedure CRMORD_I could not be set from item category XXX</b>.
    Message no. CRM_ORDERADM_I503
    Diagnosis
    Possible causes are:
    1. The system administrator has not assigned the status profile CRMORD_I to the object type.
    2. Initial statuses that should be set in the status profile CRMORD_I cannot be set at present.
    3. The current user RFCUSER does not have the authorization to set application statuses.
    Detailed error messages can be found in the following error log for status management.
    System response
    The status profile is not set in the document.
    Procedure
    Set the status profile in Customizing so that these cases do not occur.
    This status profile has been assigned to the item category mentioned and the RFCUSER has full authorization (SAP_ALL)
    Do any of you know what else could be the problem here?
    Thanks,
    MAX

    Dear All,
    I met similar error before, it happens when you change the item category in ECC but there is a status profile assigned to the item
    category in CRM with an active status set.
    In CRM, when the item category is changed, the system can only change (or delete) the status profile if there is no user status set for this item. So for example, if there is already a status set for an item (Say, E0001 'Open' is active) in CRM, so a change of the user status profile is impossible. If you need to change the item type, then you have to make sure that there is no active user status in the item.
    Please see note [1113116] point 2. This is a restriction in CRM. If you try to make the same changes directly in CRM you will also get the same error.
    It is not allowed to change the item category if the document has been saved and the status profile of the new item category is different from the old one.
    That is the reason why the error occurs when the data reaches CRM frm ECC.
    In order to prevent that there are sysfails in the inbound queue you can implement note [1438966] - after this is implemented you will not have the queues failing but you will get the error message in the sales order in CRM.
    You should ensure that the configuration for alternative item categories is R/3 is the same as in CRM and in this case all the alternative item categories should have no status profile or all the same status profile configured.
    I hope this could be helpful.
    Best regards,
    Maggie

  • ApplicationDidReceiveMemoryWarning and exit with "error status 101"

    My application crashed with memory error. It doesn't show any memory leak, but handles a large database and it looks like, its cache causes this problem.
    I fixed it by closing database and reopen it inside "applicationDidReceiveMemoryWarning".
    It works great on the first call to applicationDidReceiveMemoryWarning (actually significantly dropping the memory usage). But the function is never called again, and my application eventually crashes after a few minutes of heavy usage with "error status 101" .
    My understanding is that "error status 101" happens when app doesn't release memory properly on didReceiveMemoryWarning, but in my case, it just crashes without giving me a chance to clean up.
    Any idea on what's going on here?

    Yes, actually, the other answer you got was wrong.
    Just throw an error inside the script, probably (given what you want to do) at the end. For example:
    osascript -e 'error "This is a test." number 9000'
    on the command line will give (on the command line) something like:
    6:22: execution error: This is a test (-128)
    If you read the man page for osascript, you will see that by default script errors are written to stderr; if you have your shell script watch stderr between the start of the script and the end of it, you'll catch the result message.
    A few things to keep in mind:
    --> AppleScript can catch its own errors using a "try" block, similar to in other languages. The basic syntax is:
    try
         (* Do some stuff here *)
    on error msg number num
         (* Process the error here *)
    end try
    --> If you throw an error yourself, try to use an error number which is "safe". Most of the negative numbers are already in use as standard signals. For example, -128 is "User canceled", while -43 is "file not found" (which pops up if you cast a string to an alias and the string does not describe a path to a valid item in the filesystem -- that's actually a very simple way to test for file existence). If you use numbers starting with 9000, which seems to be the consensus starting point, then you have the additional advantage of being able to figure out where things went wrong.

  • Error Status Message

    Hi Vadim,
    Thanks for your help in my previous issue.
    My client wants to setup the error message when the user enter >1 value in input schedule against to each month(Jan,Feb and March etc) it is basically HC planning where as they have average headcount value is 1 (So that the user has to enter the value between 0 to 1). The requirement is when the user enters more than 1 then the system needs to thrown an error message and it has to restricted the user.
    I have found the normal excel function to setup this error status message through data validation in excel. Can you please tell me is there any EPM function available for this kind of setups in SAP BPC 10.0 EPM. So that we can use that option instead of normal excel function.
    Please see my current setup message in the above screen shot.
    Regards,
    Satish

    Hi Satish,
    No EPM functions available, you have to use Excel data validation.
    BPC can validate data only afte data was sent to database.
    Vadim

  • Catch all error information while validating xml content with xsd schema

    Hi experts,
    I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below is a part of my java mapping.
    XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); // schema is my schema name
    parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends DefaultHandler
    parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    // In error handler, I comment all code so as not to throw any exception
    public class ParseErrorHandler extends DefaultHandler
         public void error(SAXParseException e) throws SAXException
              // sSystem.out.println("Error" + e.getMessage());
              // throw e;
         public void fatalError(SAXParseException e)
              // throw e;
              // System.out.println("SAP Fatal Error" + e.getMessage());
    Unfortunately the program always stopped while catching the first error. Check the below log.
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    ERRORS :
    cvc-simple-type : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    cvc-data : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is is not valid with respoct to the corresponding simple type definition.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is associated with invalid data.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]' is not valid with respect to it's complex type definition..
    -> com.sap.engine.lib.xml.parser.ParserException:
    I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error handler logic? Is there any body can make me get out of this?
    Thanks.

    <h6>Hi experts,
    <h6>
    <h6>I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all <h6>error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below <h6>is a part of my java mapping.
    <h6>XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    <h6>parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    <h6>parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); <h6>// schema is my schema name
    <h6>parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends Default Handler
    <h6>parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    <h6>
    <h6>// In error handler, I comment all code so as not to throw any exception
    <h6>public class ParseErrorHandler extends DefaultHandler
    <h6>{
    <h6>     public void error(SAXParseException e) throws SAXException
    <h6>     {
    <h6>          // sSystem.out.println("Error" + e.getMessage());
    <h6>          // throw e;
    <h6>     }
    <h6>
    <h6>     public void fatalError(SAXParseException e)
    <h6>     {
    <h6>          // throw e;
    <h6>          // System.out.println("SAP Fatal Error" + e.getMessage());
    <h6>
    <h6>     }
    <h6>
    <h6>}
    <h6>
    <h6>Unfortunately the program always stopped while catching the first error. Check the below log.
    <h6>
    <h6>com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    <h6>ERRORS :
    <h6>cvc-simple-type : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    <h6>cvc-data : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is is not valid with respoct to the corresponding simple type definition.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is associated with invalid data.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item '/:ShipNotice[1]' is not valid with <h6>respect to it's complex type definition..
    <h6> -> com.sap.engine.lib.xml.parser.ParserException:
    <h6>
    <h6>
    <h6>I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error <h6>handler logic? Is there any body can make me get out of this?
    <h6>Thanks.

  • How to display an error message after validation in Formatted Search?

    Hi SBO experts,
    if an error is detected on validation in a Formatted Search, how to display an error message to the user entering the data?
    Thanks & Regards,
    Raghu Iyer

    i created a formatted search query & attached it to the field 'Quantity' at Line Item level in Sales Order screen. just for testing purpose, i eneterd the following code lines in the query validating 'Quantity'
    if $[$38.11.0] > 50
    begin
    select @error = 1
    select @error_message = 'Vendor code cannot begin to X sign.'
    end
    the system throws the error : Internal error (8180) occurred [Message 131-183]
    actually, i need to display an error message to the user if Quantity is not in multiples of the OITM.SalFactor2
    if $[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode]  = $[$38.1.0]) > 0
    begin
    select @error = 1
    select @error_message = 'Error in Quantity.'
    end
    but, this expression to get the remainder itself seems to have some error
    $[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode]  = $[$38.1.0])
    i guess, % operator is used for modulo (to find the remainder of one number divided by another.) ? am i right ?
    Regards,
    Raghu Iyer

  • Attaching Error Status to Outbound IDOC. ?

    Hello Experts,
    We have a scenario in SAP PI / XI were upon creation of a Sales Order , Purchase Order or Material Master Flow to Non-SAP System through SAP PI/XI , the IDOC shouldn't flow to SAP PI following a validation on Material Group.
    The IDOC is triggered through Output Type , there is a custom Z function module which create outbound communication IDOC. This output type is attached to a Process Code ZSO, ZMPO defined for respective scenarios defined above.
    Currently i am attaching the the status = 07 to control data structure & the IDOC is getting created but is having error.
    Is this the right practice to follow for attaching error message Outbound IDOC.
    Awaiting for your response.
    Best Regards
    Priyesh Shah

    It depends on the business requirement.
    in a previous project, if there was any error during the validation of the data within the iDoc before it is created and sent, i would trigger an error and send the error to the person who created the data with the error for them to correct.  they would then correct the error within the document and save and the iDoc would be triggered and sent correctly.

  • An unexpected error occurred during validation

    Hi Ramesh,
    This is Jaden I work with Shamik :)
    We had the following question we were hoping you could help us with.
    We are trying to recieve a 850 document in the b2b server. We get the following error - An unexpected error occurred during validation
    our document we recieve is below. We use the document analizer and the document validates against the .ecs file fine. We notice that the server is missing the b2b log any thoughts?
    ISA~00~ ~00~ ~ZZ~Allied ~ZZ~UPS ~070721~1459~U~00200~000001008~0~P~+'GS~PO~Allied~UPS~20070721~1459~1008~X~004010'ST~850~1008'BEG~00~SA~60009~86974~20070717'DTM~010~20070717'TD5~~2~000001_DHL_A_2DA'N1~ST~19427~92~7984'N3~500 Oracle Pkwy'N4~Redwood City~CA~96504~US'N1~BT~19427~92~7984'N3~500 Oracle Pkwy'N4~Redwood City~CA~96504~US'PO1~1.1~1~EA~~~VP~50934~~~DV~255154'PID~F~~~~3PL Test Item with Lot Control'PO1~2.1~2~EA~~~VP~50936~~~DV~255155'PID~F~~~~3PL Test Item with Serial Control'PO1~3.1~3~EA~~~VP~50935~~~DV~255156'PID~F~~~~3PL Test Item with Locator Control'PO1~4.1~4~EA~~~VP~50936~~~DV~255157'PID~F~~~~3PL Test Item with Serial Control'PO1~5.1~100~EA~~~VP~50936~~~DV~255158'PID~F~~~~3PL Test Item with Serial Control'SE~21~1008'GE~1~1008'IEA~1~000001008'

    Hello jaden,
    Please edit tip.properties as follows and restart b2b. The log file will be generated at OH/ip/log/b2b/b2b.log.
    oracle.tip.LogType=text
    b2b.oracle.tip.DiagnosticLevel.B2B=DEBUG
    Make sure the delimiter used as part of configuring the document, i.e Document Protocol parameters are appropriate. The document might have validated in the spec builder as the delimter which is defined there might be different.
    Please setup a quick call if you still face issues.
    Rgds,
    Ramesh

Maybe you are looking for

  • Regarding Calling a Report Program

    Hi Gurus, 1. I have an Requirement in which i need to call Program CATSSHOW.     I need to Pass the Selection screen values from calling program by skipping the Selection screen of   Called Program. or 2. Can i call the Transaction CADO(which is T-CO

  • Help on wrong song tempo

    Hello all, here's the problem: I started a new song using an audio drum patterns taked from a cd. Then I created a circle of 4 bars in logic and finded the right tempo. It was about 109 bpm. Then i recorded the whole band on Logic, guitar, bass, horn

  • Ichat windows messenger works for ?????

    i have an account the windows messenger, but it does not work in ichat ???

  • How in Photoshop Touch do I expand an image?

    Please can someone answer this question, it will help and I will appreciate it!

  • The Search Forum "glitch"

    There's a thread going on about the glitch in the Search Forum dialog box. Some users are now going ballistic and having cows over it. It has been around for a very long time now. Why hasn't it been dealt with yet? It's no skin off my nose and I don'