PO line item delete with the customised message type

Hi,
My requirement is...In a Multiple line item PO if all the line items are deleted than it should not send any print to the vendor though the message option is set to Print immediatelly(NAST-VSZTP = 4).
These message type are customised output type like ZNEU.
I have tried to stop the print program which is calling the smartfrom.I am successful in stopping it by taking the deletion flag from the table ekpo table.But not able to make the traffic signal light to red.Because after the print program it is going to the RSNAST00 program and taking the value NAST-VSZTP = 4 and make its status to green and as well as processed.
Can any body suggested how to change this traffic signal light to red.
Regards,
Partha

Hi Raghavendra,
                       I understand that you are facing problems due to non-availibility of Header data in PROCESS_ITEM. But the same can be pulled live from the program. Sample pseudo code and reference link provided below. Hope it helps your ABAPer gain an insight.
REF: Getting Header Data in ITEM_PROCESS
DATA: ls_item TYPE mepoitem,
ls_header TYPE mepoheader,
ls_header_obj TYPE REF TO if_purchase_order_mm.
*Get PO Header data
CALL METHOD im_item->get_header
RECEIVING
re_header = ls_header_obj.
CALL METHOD ls_header_obj->get_data
RECEIVING
re_data = ls_header.

Similar Messages

  • How to make plant default on the line item along with the item category

    Hi All,
    I want to default Plant on the line item along with the item category.In order to meet the following scnario.
    1. I have two plants,first plant is maintained for the valuated item and the second plant is maintained for the non valuated item (Free Goods).
    Whenever user is entering an item in the sales order for which corresponding free goods item is maintained in the master record.System is proposing two lines items in the sales order.
    First line item is the main item which appears along with the Plant 1 which contains valuated items
    Second line item is for the Free of charge item which is being proposed from Plant 2, which contains the non valuated items.
    I want that the system should always propose Plant 1 with main item and Plant 2 with the Free of Charge item by default. (Along with the item category TAN and TANN)
    Rahul

    Delivering Plant is determined in the following order
    1. Customer material info record.
    2. Customer master
    3. Material master.
    Use one of them an default your plant.
    I think in your case you can use the materila master which will give an item level plant different. The other two will default the plant at the header level.
    regards
    jude

  • Query of GL line items along with "the other side of the JEs"

    Hello All,
    I am trying to create an ABAP program or SAP query that would allow me to create an output of all line items posted to a general ledger account for a particular fiscal year(s) along with the other side the journal entry.
    Said another way, I want all documents posted to a general ledger account along with the rest of the line items included with those journal entry.
    For example, if I wanted to do this for Bad Debt Expense (P&L acct), I would like to see all those bad debt write off postings that were (credit Trade AR and Debit Bad debt Expense) vs. adjusting the bad debt reserve or any other posting in there.
    Rather than looking at each transaction individually, I think this query would allow me to see the big picture of all posting to a particular account.
    Any help is appreciated.

    Rob,
    I appreciate the insight. I think you answered my questions, but could you provide me with a little more detail so I am on the same page as you.
    For the BSIS and BSAS, I am assuming I can just use a FI  t-code FBL3N to obtain the information.
    Could you explain to me how to get the output in such a way and how to include it in the BSEG to get the complete journal entries for all of the document numbers I would get from the FBL3N. Or can I perform this in one function.
    Thank you.

  • Line item deletion in the PO once GR & IR is done

    Hi experts,
              I have a scenario that once the GR & IR is created for the PO it should not allow us to delete the line items of the PO for which GR & IR is created. I came to know that we want to activate the Badi(ME_PROCESS_PO_CUST) for this Process. can any one tell me how to use & activate this badi. Thanks In Advance...
    Thanks & Regards
    Raman T S

    In this BADI you have to enter the logic like system will check in table EKBE for each line item (EBELP) for each PO (EBELN) whether any Material document (BELNR) exist...here you can identify the GR number & IR number wrt PO history cat.(BEWTP)...here GR is identified as E & IR as Q...If system finds such document then will not allow to process the deletion & a customized message will pop up...take help with your ABAP person
    Regards,
    Indranil

  • Acting as router and partner with the same message type

    Hi All
    Let A and B be two companies communicating with each other
    via a company called R. Some MSCONS messages will just be
    routed, some MSCONS messages will be kept by R, processed
    and then routed on. The only way to know if it should be
    processed or not is to read some of its fields and compare
    them with current state in the database owned by company
    R. If company A sends a MSCONS to B via R, the sending and
    receiving identification id in the message will belong to
    A and B, not R.
    To make it more complicated, there are about 200 companies
    communicating via R in the same way as A and B. Further
    more, MSCONS is only one out of about 15 types of message
    routed under these conditions.
    Any suggestions on how to apply B2B to this use case is
    most appreciated.
    Best regards
    Pär

    Hi
    I have a hard time to get following use case to work.
    If company A sends an MSCONS to company B and C via R, is there a
    way to configure B2B in R so that only one agreement is needed even though
    company B and C have different interchange id's?After sending a MSCONS from A to R (host) and I look in reports, I find
    that the sender, receiver, exchange protocol, document protocol, and business
    action has been identified, but state is set to error. When looking into the log
    I find following.
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup Enter
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = InterchangeReceiverQual, val = [ZZ]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [ZZ]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = InterchangeSenderID, val = [27700]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [Emix]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup Value and doc parameter don't match
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = InterchangeReceiverID, val = [10001]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [null]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup Value doesn't match, doc parameter is null
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = Standard, val = [EDIFACT]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [EDIFACT]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = InterchangeControlVersion, val = [2]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [2]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = ec_DataNodeName, val = [Interchange]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = InterchangeSenderQual, val = [ZZ]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [ZZ]
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup return = false
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup return = false
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:getValue Param Name = TPName
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:getValue Value = Actor
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit Enter
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit getLookUpError Key = key = [InterchangeSenderID] value = [27700] param = [Emix] Value = null
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit getLookUpError Key = key = [InterchangeReceiverID] value = [10001] param = [null] Value = null
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit NodeGUID = {7DDD0E19-7D9E-40AC-8DAC-A10BDB9AFB9E} position = 0
    2007.09.25 at 17:32:47:516: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit Leave
    2007.09.25 at 17:32:47:526: Thread-20: B2B - (DEBUG) iAudit report :
    I do not want to add interchange sender id's 10001 and 27700 to
    Document Protocol Parameters because then I make the document
    protocol partner sensitive.
    Any help is most welcome.
    Best regards
    Pär

  • PO Line Item Deletion

    Dear Gurus,
    I wanted to delete a PO line item permanently from PO.
    is it possible or not???  If yes how can i achieve this.
    Regards
    Girish Kavital

    Hi,
    This is Prathap, regarding PO line items.
    I have one PO with line item is enter by Manually,without sequence.
    if i want to enter one more LINE ITEM manually with the same PO,i need to raise a message like "this line items are not in sequence".
    Can anybody tell me, is it possible?If possible Please tell me ASAP.
    Thanks,
    Prathap kumar K.

  • I have accidently deleted all the text messages ive ever had with somebody, is there anyway I can get it all back?

    I have accidently deleted all the text messages i have ever had with somebody, is there anyway I can get them all back?

    Hi
    I have similar problem. I deleted contents of an iMessage from a spcific contact.
    I tried to restore them from backup however, it restored to certain date and it still lacks about 2 months. Is there a way to get those important 2 months?
    Thanks to advise me

  • DISPLAY/PRINT MY EXPENSE REPORTS UNDER TERA FAILS WITH THE ERROR MESSAGE

    Hi Techies,
    When i click on "Display/print" button under my expense report ( Employee --> Travel & expenses --> Manage Expenses (TERA) --> My trip reports), it opens up a new window with the error message "SOAP Framework error: SOAP Runtime Exception: CSoapExceptionTransport : HTTP send failed with exception communication_failure(100,101)."
    This behaviour is noticed in the new upgraded system NW 701 SP7 (portal) and backend ECC 6.0 EHP4; However it works perfectly fine with our non-upgraded system NW 70 SP10 (portal) and backend ECC 6.0.
    When i ran the trace on this functionality, i could notice that in the non-upgraded system, after pulling all the values, it calls the RFC function module "PTRM_WEB_FORM_HTML_GET"; however the upgraded system calls "PTRM_WEB_FORM_PDF_GET".
    For the "PTRM_WEB_FORM_PDF_GET", I believe we need to configure the "ADS" rfc pointing to the ADS service on a j2ee server which am not planning for.
    MY QUESTION IS:-
    IS THERE ANY OPTION TO CHANGE THE FORM BEING CALLED FROM "PTRM_WEB_FORM_PDF_GET" TO "PTRM_WEB_FORM_HTML_GET" WHICH I BELIEVE WILL RESOLVE THE PROBLEM AM FACING?
    Kindly assist with your thoughts!1
    -GK

    Read the steps on note 1032311 on how to achieve it,
    In Web Dynpro, the Parameter for Formula is Defaulted to PDF file. If
    you don't want to use the ADOBE Form in ESS, you have to follow 2 steps:
    Solution
        o  Check the Homepage framework configuration.
      In IMG (transaction SIMGH) go in Travel Management->Employee Self
    Service->Homepages Framework->Ressources
    Delete the URL parameter "sap.xss.tra.UsePdf=true" of the ressource
    "EMPLOYEE_TRAVEL_TRIPFORM_SRV05".
      Check that the field URL for PCD file is filled with
    ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_fol
    der/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/
    com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_trave
    l_expenses/com.sap.pct.erp.ess.tripform
      Normally if it is not filled in your client, the system should use the
    one from client 000, that is the SAP delivered customizing.
        o  Check the Portal PCD configuration
      Logon on to your SAP portal as Administrator.
      In the Content Administration - Portal content, select Content
    provided by SAP->end User Content->Employee Self Service->iViews->Travel
    and Expenses->Display Trip Form
      Right Click on Display Trip Form and Select Object->Open
      In the field Application Parameters, you will find a parameter
                                                                     Page 2
    sap.xss.tra.UsePdf=true . Delete this line completely.
    When this configuration is done, the PDF form is desactivated and the
    HTML form is used.
    This is the issue with ADOBE set up
    Firstly, I would ask you to check the customizing steps from 944221
    to ensure no issue with the ADS configuration for the pdf form.
    to review OSS note 925741 as there can be a issue with the
    platform validity and version.

  • Exit / badi for individual service line item detail with internal orders.

    Hello guys,
    <b>Issue 1.</b>as per our scenario we want to get the individual service line item details with Internal Orders.
    Please provide me any exit/badi with each item level with individual service line item Internal Orders.
    <b>Issue 2:</b> Remain same for issue 3 for blocking status. We want to delete item level for particular line what about the service rows which assigned in particular item.
    point will be rewarded for the suitabel answers.
    please give me response  ASAP.
    With Regards
    yogesh

    Hey Yogesh,
    I have the same scenario... Could you please drop a mail to [email protected] with the details of BADI and other details that you implemted for the same.
    Thanks a lot in advance.

  • PO Line Item Delete

    Hi,
    we had created a PO for two items with 2pc each. then we deleted the line items and saved the PO. again we added same two items  2pc each. now when we see the print preview we are seeing the deleted items as well with the readded items.
    also at header level conditions we are seeing the total for 4 items instead of 2.
    .. at item level we can see only the basic price for deleted items and basic price with taxes for readded items.
    i want the total at header level to be of only of the readded items and at item level i wana see the conditions for only the readded items
    .. can anyone help??
    thank you

    HI
    If you block the material (lock symbol) the print preview will have both  the blocked item and active item and price accordingly.
    If you delete the material then the print preview will have only active item.
    Regards
    Reddy

  • Post-processing ends with the error message

    Hi
    when i try to run a report, i am getting the below error.
    Beginning post-processing of request 5947956 on node RWS60160REMS at 15-MAR-2012 04:13:48.
    Post-processing of request 5947956 failed at 15-MAR-2012 04:13:51 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    i check the OPP and the error stack is:
    [3/15/12 4:13:51 AM] [2103265:RT5947956] Output file was found but is zero sized - Deleted
    [3/15/12 4:13:51 AM] [UNEXPECTED] [2103265:RT5947956] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:677)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:425)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:244)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:6032)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 12, Column 34>: XML-22047: (Error) Invalid instantiation of 'xsl:with-param' in 'DPHEVD' context.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
    The error is : Caused by: oracle.xdo.parser.v2.XSLException: <Line 12, Column 34>: XML-22047: (Error) Invalid instantiation of 'xsl:with-param' in 'DPHEVD' context.
    I checked my XSL template and corrected that line.
    even after the correction it the error still remains. In fact i deleted the line12. But it still shows that the line exists.
    I updated the template many times but it keeps picking a wrong template.
    Need help on this issue.
    Thanks

    Please post the details of the application release, database version and OS.
    I checked my XSL template and corrected that line.
    even after the correction it the error still remains. In fact i deleted the line12. But it still shows that the line exists.
    I updated the template many times but it keeps picking a wrong template.Please create a new template and check then. Also, bounce the OPP.
    Thanks,
    Hussein

  • Sales order line item delete error for MTO sales order

    Dear Experts
    iam facing below error for MTO sales order line item deletion
    "For reasons of cost management, item 000040 cannot
    be deleted"
    Please help
    Regards,
    KEdar

    It looks you try to delete the sales order line item and you get this error message.
    Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
    You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
    Regards,

  • TS1627 Please Help. I received 4 emails from 1 person with the same message heading. The emails were automatically grouped by Mail. I replied to the latest mail in the conversation. Once sent the other messages in the conversation disappeared. I NEED THEM

    Please Help. I received 4 emails from 1 person with the same message heading. The emails were automatically grouped Apple Mail. I replied to the latest mail in the conversation. Once sent the other messages in the conversation disappeared. I NEED THEM BACK! They all had very important attachments. I have tried looking for them in deleted items, even though I didn't throw any of them away, still cant find them. Never had this problem before. I'm pretty sure its a setting somewhere. Also tried expanding all conversations, no luck. Searching for the mails under the sent email address, no luck.
    I'm sure they are not deleted but have somehow been hidden by Mail. Very frustrating.
    Thanks in advance for any help.
    Kash.

    I have found found out what has happened. I had requested a statement dating back to April 2012 from a supplier. They replied back with the latest statementof 2013 only but used the same subject heading as the previous monthly statements. Apple Mail automatically grouped these and I thought that they were sent altogether. As soon as I replied to the last email all other the previous emails ungrouped from the conversation leaving me lost as to where they had gone. They were all still sitting in my inbox but no longer part of the trcked conversation. I searched under the subject heading and all individual mails were all still there. (feeling stupid - )

  • Customer line item report with GL account display

    Hi
    Please guide some customer reports for the following
    Client need a Customer Line item reports with Customer number and repective gl account for each line items.
    for ex: Product A/c xxxxxx
              To Sales A/c xxxxxx(recon A/c)
    Thanks in advance

    Hi
    1.FBL5N -  Customer Line item Display (Customer Line item reports with Customer number )
    2.FBL1N - Vendor Line item Display
    3.FBL3N - General Ledger Line item Display
    The sales entry will be
         DR  Customer - to view this entry FBL5N
               CR Sales - to view this entry FBL3N
    Hope this will be usefull

  • FI line items up to the current date

    Hi all,
    I read the SAP note 485958 "BCT-FI:Extracting FI line items up to the current date" and I have some doubts here:
    1. After I've set parameter BWFIOVERLA to 'X' and extract delta at 6PM, will FI data that is changed before 6PM for example a gl entry at 5PM, goes into my delta extraction?
    2. What does BWFITIMBOR mean by having default value 02:00:00?
    3. Is this note applicable if my R3 PI release is at 2003_1_46C?
    Please advise.
    Thank you.
    Celeste

    Hi Celeste,
       Pls go through this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/af/16533bbb15b762e10000000a114084/content.htm
    Excerpts from this link regarding your doubt:
    BWFIOVERLA: The logic of this parameter prevents records with the previous day as their CPU date from still being in the update at the time of extraction.
    If X is set for this parameter, selection is made up to the previous day if the time limit is not reached.
    If <space> is set for this parameter, selection is made up to the day before the previous day if the time limit is not reached.
    BWFITIMBOR: This parameter designates 02.00 (2 A.M.) as the time limit for extraction. If this limit is not reached, the system uses a security interval of one day to determine the To-value of the selection. If extraction is started before 02:00 therefore, the selection takes place only up to the day before the extraction run.
    Hope it helps you!!!!
    Regards,
    Amit

Maybe you are looking for

  • How to find out where my code is running

    Our software can run in EJB or Web Container. Based on its environment it does things differently, For example connection pooling, Transaction Management, etc. Problem is that I cannot figure out a way to make my software smart enough to find out whe

  • User - Internal User Concept in Portal

    I’m wondering it it is possible to configure sap portal in the following manner: -          User “Kris_unni” logs into the portal by Credentials “KU” / password - Behind this userobject there are 2 fields defined (user, internal_user) with values (“K

  • Literoom 5.3 download problems

    We just got new computers at work and now my new one can handle Literoom program. We work on windows not mac. Google Chrome request an extern protocol: Text: Google Chrome have to start an extern application for handling links from aam:., The link th

  • ITunes 11/10 question

    Hello! I have 2 user accounts on my Mac on OS X 10.8. I have on the 2 iTunes 10. I want to update it to iTunes 11 on one and keep iTunes 10 on the other. If I update iTunes on one, will it be automatically updated on the other? Thanks!

  • Depreciation on revaluated assets

    Dear Sap Gurus Senario:- 1. We have purchased an asset for 10,000 as on 01.04.2006 2. Revaluation has been done for same asset 5000 as on 01.10.2006     Now total asset cost is 10000+5000. 3. Run depreciation as on 31.03.2007 for that asset. here sys