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

Similar Messages

  • 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.

  • Line item status of the PO

    Hi All,
    Could you please let me know once PO line item is deleted in which table this information will be stored.
    Appreciate early action

    HI,
    PO line item deleted information stored in EKPO table and the line item deletion indicator 'L' stored in LOEKZ field name.
    LOEKZ field name description means  'Deletion indicator in Purchasing Document'.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • 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

  • 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.

  • STO line item deletion after  PGI

    Dearr all,
    I have the following cycle,  STO--> VL10B-> Delivery Note creation> Picking -> PGI--> MIGO
    STO has 4 line items and I have done MIGO referring the delivery note. Later I found out that line item 1  material is wrong, now I want to cancell the line item and ammend the STO and put the right Item code.
    I am trying to delete the line item by VL09 , System does not allow, error says "  Deletion not possible for the items partially or fully delivered". How do I proceed as ths type of wrong entry happens reguraly during STO creation. ( For information STK received is not consumed and available in inventory)
    Please guide.
    Thanks
    Sam

    Hi,
    You cannot cancel the material document that is a result of PGI, except using VL09.
    And as it was told you by SAP, you cannot cancel separate items of delivery because when you pushed the PGI button it was valid for your whole delivery - your options: whether you cancel the whole delivery (I mean the GR that comes from the GI) or you do not cancel the PGI of the delivery.
    To be able to delete the item:
    1. Cancel GI - VL09
    2. Cancel the picking (in IM you only have to delete the picking qty, in WM you should use LT0G)
    Regards,
    Csaba
    Edited by: Csaba Szommer on Dec 24, 2008 8:46 AM
    Edited by: Csaba Szommer on Dec 24, 2008 8:54 AM

  • 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,

  • 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

  • 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

  • How to add the line item text in the Ledger line item report

    Hi SAP Gurus,
    I having one requirement from the user. He wants the line item text which we will enter in FB60/FB70/FB50 has to be shown in the Ledger line item report. Right now this field is not available. Is there any possible we can make this line item text in the ledger line item report i.e. FBL1N/FBL3N/FBL5N?
    advance thanks for the help.
    Regards,
    Deva.

    Hi,
    You can do the below to get this. (You can change the names of the function modules as per your wish/ organization naming convention):-
    Step 1:-
    Create function module Z_GET_SGTXT as below:-
    Import:-
    BELNR LIKE BKPF-BELNR
    BUKRS LIKE BKPF-BUKRS
    BUZEI LIKE BSEG-BUZEI
    GJAHR LIKE BKPF-GJAHR
    Export:-
    PRCTR LIKE BSEG-SGTXT
    FUNCTION Z_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(BELNR) LIKE BKPF-BELNR
    *" VALUE(BUKRS) LIKE BKPF-BUKRS
    *" VALUE(BUZEI) LIKE BSEG-BUZEI
    *" VALUE(GJAHR) LIKE BKPF-GJAHR
    *" EXPORTING
    *" VALUE(SGTXT) LIKE BSEG-SGTXT
    SELECT SINGLE SGTXT FROM BSEG INTO SGTXT WHERE GJAHR = GJAHR
    AND BELNR = BELNR
    AND BUKRS = BUKRS
    AND BUZEI = BUZEI.
    ENDFUNCTION.
    Step 2:-
    Then create the Function Modules as below:-
    Z_LINE_ITEMS_GET_SGTXT (Copy of SAMPLE_INTERFACE_00001650)
    FUNCTION Module Z_LINE_ITEMS_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(I_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    *" EXPORTING
    *" VALUE(E_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    Initialize Output by using the following line
    E_POSTAB = I_POSTAB.
    E_POSTAB = I_POSTAB. "<-- important
    CALL FUNCTION 'Z_GET_SGTXT'
    EXPORTING
    BELNR = I_POSTAB-BELNR
    BUKRS = I_POSTAB-BUKRS
    BUZEI = I_POSTAB-BUZEI
    GJAHR = I_POSTAB-GJAHR
    IMPORTING
    SGTXT = E_POSTAB-SGTXT
    EXCEPTIONS
    OTHERS = 1.
    ENDFUNCTION.
    Step3:-
    Transaction FIBF:-
    Settings -> Products -> of a Customer
    SGTXT Text in Line Item Display Active
    Settings -> P/S Module -> of a Customer
    00001650 SGTXT Z_LINE_ITEMS_GET_SGTXT
    Step 4:-
    Create the layout for FBL*N with display of the TEXT.
    Regards,
    Gaurav

  • A List of Customer Line Items according to the *CONTACT PERSON*

    Hi All,
    I'm looking for a report which shows the  List of Customer Line Items according to the CONTACT PERSON data, that I can find in the customer master data.
    Thanks for your help

    Not sure if you can add this field to the selection criteria. Please look at OSS notes 188663, 310886. I remember there were some restrictions as only fields from certain tables are allowed to use in FBL1N, FBL3N and FBL5N transactions.
    Shail

  • How to pass line item values in the table paramer of FM

    Hi all,
    When i will give the import of  the FM as VBELN"sales order number.
    I want to display all the line items for "PO Quantity in the out put of the FM.
    For this i thnk i have to pass the line item values in the table parameter of the FM.
    Can any body please tell me how to pass the values for the line items in the table parameter fo teh FM.
    Please give a example.
    Thanks

    Sub pLoopThroughPivotFields()
    Dim oItem As Excel.PivotItem
    Dim oField As Excel.PivotField
    Set oField = ThisWorkbook.Worksheets("Sheet1").PivotTables("Pivot Table name").PivotFields("field name")
    For Each oItem In oField.PivotItems
    oField.CurrentPage = oItem.Name
    'Put your copy code here
    DoEvents
    Next oItem
    End Sub
    Felipe Costa Gualberto - http://www.ambienteoffice.com.br

  • Line item deletions in opportunity  which has folow up doc quotation

    the problem is that even after deleting the line item in quote which is followup doc and then trying to delete the line item in the opp it is giving the same error message - 010 cannot delete the Line item ## which is same as before deleting the line item in the  quote
    once you save and open the transaction the product column for deleted line item  is in change mode again after selecting the same line item and tying to delete the product cat is getting deleted but the line is visible even after saving but if u open the transaction again then you are able to see the action of deletion completed
    I want to know why its behaving like that.

    Hi Srinath,
    This is because, your updated buffer for the transaction is not in coordination with your output.i.e. UI.
    i.e. before deleting the product from the transaction your UI is being field up with details.. and someUI parameters such as ALV grid which is displaying the data is not updated.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • PO line items delete after GRN

    Hi Experts,
    In any PO if I have done GRN its line items should not be deleted. Means afrer grn po should not be delete only lock and delivery complete indicatior active . If any message is ther please suggest me
    Pooja

    Hi Pooja,
    Standard SAP doesn't allow you to delete the PO line item once you post the GR.  Only after posting the IR for the full quantity of GR, then only system allows you to delete the line item.  If IR is posted for a partial quantity of GR, then system expects a GR/IR clearing document.
    I had a similar requirement like you, once there is a subsequent posting like GR and IR users should not be allowed to delete the line item unless the documents are fully reversed.
    I used the Badi ME_PROCESS_PO_CUST -> method PROCESS_ITEM for this purpose and developed a custom enhancement.  If user deleted any line item, system checks for subsequent document and if any document exists it will throw error message.
    You can also build enhancement similarly.
    This enhancement will not impact the Archiving process.  Archiving program directly updates the deletion indicator at table level.
    Rgds, Mallik
    Edited by: mallik on Dec 28, 2009 1:37 PM

  • LIne item deletion -availability

    Hello Everyone,
    I am in a bit of a pickle. I had 2 KAs for a material/serial number combination say 1 and 2. The material has been confirmed in the schedule line
    in KA 1 but then BP wanted to bring it in using KA 2 so he assigned a reason for rejection for that line item in KA 1 so he could confirm the schedule line
    in KA 2. This didnt work.
    Unfortunately I deleted the confirmed schedule line in KA 1 and then deleted the line time itself in KA 1. This didnt result in the  material being available for a return with KA 2.
    As a result of the above in MMBE the material is still with the customer (KB)(we are using KB and KA for rental process mapping)
    but if look at KA 2 availablity check result for the material that qty is still confirmed against KA 1 line item which we deleted.
    Please assist in bring the material to available
    Regards
    Madan Shetty

    I had 2 KAs for a material/serial number
    What do you mean by KA??  As far as possible, please dont use any abbreviated words and conclude everybody would read your mind.  I presume it is order type.
    When you say rental processing, I don't understand why you were involving delivery.  Ideally, the process should have been Order related billing.  Also are the two lines have same material code? 
    Please share maximum informations both from business perspective and SAP point of view so that suitable suggestions can be given.
    G. Lakshmipathi

Maybe you are looking for

  • Warning Messages in the log file

    Hi, I see following warning message in my log files. Can any one help me what exactly this means? "Skipping grouping rule '(null)' in profile 'Global_Profile_Records_Management_FieldGroup'. The grouped field 'xCategoryID' is a parent " Thanks, Vidya

  • Error Message on WLC5508 'Validation of STAT_PAYLOAD failed'

    Hi, Upon checking the logs, I'm seeing a lot of these messages; *emWeb: Oct 25 14:11:01.345: #LOG-3-Q_IND: spam_lrad.c:10136 Validation of STAT_PAYLOAD failed - AP  00:3a:98:09:4e:d0 Always the same MAC address, which I assume is a Cisco AP trying to

  • OID And Java Hash Algorithm Output Differences?

    Hi, Can anyone tell me why I am not able to recreate the OID ldap password hash algorithm? Or can anyone tell me why I get these subtle differences between my Java created message digest and the one that is read directly from the oracle ldap hint pas

  • Make (RTL) direction function in PS cc 2014 not found!

    u can see this to know what is the problem

  • Nokia E61 system error, phone start-up failure

    Good day I did a software update(RM89) on my E61 phone. After completion and start up my phone gave me a system error and then phone start up failure. How can i reset or go in to safe mode to rective to problem?