Probelm in  addition of line item in ME21N

Hi,
I am working on a requirement where after providing the data for line item 1 of a PO (ME21N),  when the User presses enter, based on certain conditions a new line item should get added to the PO.
Using the BADI ME_PROCESS_PO_CUST and Method Process_ITEM but are not able to get the same.
Any pointers on this will be helpful.
Best regards
Saurabh

Hi,
Try to do in Method  FIELDSELECTION_ITEM
Thanks & Regards
Prashant Gupta

Similar Messages

  • Manual addition of line item allowed in Outbound delivery

    Dear Experts,
             In the "Outbound delivery" document created with reference to "sales Order" if we tried to add one more line item manually then, system is accepting that line item without any warning / error message.
                but as per our requirement system should not allow to add manual line item in the delviery document. So can any body give some suggestion on this to solve the problem.
    In the copy control from Sales Order to delivery we maintained the following setting.
    In the header level,
    Conditions
    Order requirements     001    Header
    Combination requirmt   051    Combination
    Data Transfer
    Header Data            001    Header
    In the item level,
    Conditions
    Order requirements     101   Item
    _Data Transfer_
    Item data              101   Item
    Item Ext. System
    Business data          2     Business Data
    Warm Regards,
    Vel

    Hi Lakshmipathi Sir,
    A related question on this:
    Lets say I have an STO of 100 EA. When I create the Replenishment OBD, system will automatically copy 100 EA into the delivery.
    Now user wants to split this line into 2 lines into 60 EA and 40 EA.
    User will change the first line from 100 to 60. So far so good!
    Now I want to add the additional line with the remaining open quantity. Is there a way to do that?
    Regards
    Siddharth

  • Passing delivery date from line item in ME21N to VOFM

    Hi to all,
    I need to modify pricing on the purchase order (ME21N), so that the pricing condition PB00 would use the delivery date (EEIND) from the line item instead of the document date.
    Working with the functional analyst, we decided to create a condition value through transaction VOFM (we created 600). I found the which date to override (komk-prsdt). My problem is that I can't find the line item delivery date. I found structure KOMP, which seems to have other line item info, but not delivery date. I have gone through every other condition out there, but if they use L/I info, they get it from KOMP. I can't find the delivery date anywhere. I'm running in 'debug' with a specific date so I could tell if I found it.
    Can someone tell me how to pass EEIND to the routine, or find where it is? Thanks in advance.

    thanks

  • Ristrict line items in me21n

    Hi,
    Is there any BADI or user exit to ristrict the number of line items while creating purchase order by transaction me21n.

    Hi,
      Implement the BADI  ME_PROCESS_PO_CUST in SE19.In the method PROCESS_ITEM write the following logic:
    1)get the details of the PO.
      DATA:wl_mepoitem     TYPE mepoitem.
      wl_mepoitem = im_item->get_data( ).
    get the item no in wl_mepoitem-ebelp.
    check whether the no of items exceeds the limit.
    If so give a warning msg.

  • Customer Clearing with additional open line item

    Dear All,
    Pl. consider the following scenario:
    A customer open line item is created wilth Billing Document/outgoing invoice. Alongwith this one more open line item is generated. Eg Accrued Sales Commission. Now, we need to clear this line item (with Accrued Sales Commission) alongwith the customer whenever the payment is received. We tried to look for enhancement/user exit, but  could not fine one.
    Can you pl. suggest the solution in SAP for the above scenario?
    Thanks & Regards,
    Raja

    Hi,
    If you manually clear customer open items then:
    1) Execute t-code F-32;
    2) Enter customer account, company code and other required fields;
    3) Press "process open items" button;
    4) Press "Res. items" tab;
    5) Select line items that you want to clear;
    6) Simulate it;
    7) Post the document;
    Residual payment  means it clears the  invoce amount for incoming payment.and ceate  line time for remaing outstanding amount.
    If you select "Part payment" tab then the payments that can be posted to an account without open items being cleared.orginal open items (credit invoice amount)and partly payment remains in open item category.
    Cheers!
    Martins

  • Addition of line item details in offfline mail using BBP_OFFLINE_APP_BADI

    Hi,
    I am using the BADI BBP_OFFLINE_APP_BADI ,METHOD MAIL_DATA_GET to add the SC line item details in the offlne approval mail which is sent out from SRM system to approvers external  mail id.
    However when i try to insert the line item details in the table  CT_MAIL_TEXT,the data gets truncated.i.e. All the fields im inserting are not displayed in the mail.The data type of the table CT_MAIL_TEXT is SOLI_TAB,so the text field length is 255 char.Then why is it not displaying all the fields which I am inserting?ANy clues...

    Hi,
    I could partly answer my question , when i am trying to debug the report foreground i had to put values in the
    Work Item Creation Date From field and only then the debugger stops at the implementation otherwise not , but when we schedule the job in the background we would not be giving the from date there so I am a little skeptical about that , please can someone throw some light on it.
    Also I am awaiting response on the second question.
    thanks

  • Addition of line item values in KP06

    Friends,
    We are using LSMW to load cost center planning for KP06. My user wants to know if he can give same cost center and cost element combination twice in the excel file with different values and will LSMW totals up the values. Usually it will overwrite with the latest entry of the cost center and cost element combination.
    Is there a solution?
    Thanks in advance

    Hi,
    I think if you go thru excel upload instead of LSMW, you should be able to upload 2lines i.e. same combination of coste center element with different amount and should aggregrate the figure.
    hope this helps.
    Assign points if useful.
    Regards,

  • ME21N add new line item when creating a PO

    Hi guys,
    I am new to badi & oop.
    I want to add a PO line item after clicking the save button in ME21n.
    I found the BADI IF_PURCHASE_ORDER_MM.
    I have coded in the method POST by using method create_item.
    However, it still does not work? Any ideas how to use this method to create the new line item or any sample code?
    Please help! points will be rewarded.
    Many thanks...

    Hi Sen,
    You mean by executing the BAPI call? Maybe you did understand my question wrongly.
    What my requirement is that, user will be keying in details for PO and its line item in ME21N.
    And upon saving, need to auto add in an additional line to the PO. Eg user key in 3 line items, the BADI/userexit suppose to add a new line item to it.
    The bapi that you proposed, creates PO from d scratch right?
    I guess it can't just create an PO item with that bapi unfortunately.
    Any other help? I need a help in coding this create_item method in interface class IF_PURCHASE_ORDER_MM.
    Please help.. I have an urgent requirements.
    Many thanks in advance.

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • Tax line items when travel expenses are posted to intercompany

    Hello Experts,
    We are posting a expense report  to a different cost center other than the Master cost center(IT0001). In this case system understanding as intercompany transaction and posting the travel expenses to different cost center and different company code. But the problem is when there is a tax calcualted, this tax is initially getting posted to original master cost center and again transfering the taxes to the intercompany cost center. this is creating an additional FI documents and also additional tax line items which is becoming very difficult for reconcilation.
    can any one suggest me where could be the correction required in order to post the taxes to intercompany cost center in the first instance itself.
    Thanks&Regards
    Srinivas

    Hi Srinivas,
    Profit center was not picking for tax line item when we were doing multiple cost center in a TRIP. So we have activated "not deductible" in VST and it got worked.
    Later when we got a Cross company employee vendor posting, tax line items are posting in both company codes.
    So we have deactivated "not deductible" in VST and activated "set expense company code" in table T706K (to allow cross company code postings in TM)
    And defined a new solution in New GL config for the first prblem.
    We have not changed anything in "posting indicator" in OBCN, it was 2 (Separate line item) only. You should not change this.
    All postings went fine.
    Regards
    SM

  • Prob. with addiational line items when clearing Cust/Vendor

    Hi Experts,
    I've a serious issue with Account Clearing (F-32, F-44, F-03).  SAP generates unwanted additional line items when clearing customer/Vendor or GL accounts.  I've studied almost all the relevant SAP notes but couldn't found the solution of this issue.......   
    Company Code:               Single          1000
    Segments:               Two               1000, 2000
    Document Splitting:                         Active
    Splitting Method:                         0000000012
    Level of Detail;                              Inheritance
    Zero Balance Clearing Account;                    Defined
    Document Splitting Characteristic:                      Profit Center and Segment, both are defined as required characteristics and balance to zero in document splitting.
    Issue:
    1.     T-Code F-32 Creates additional unwanted clearing line items in Customer Subledger/Account
    2.     T-Code F-44  Creates additional unwanted clearing line items in Vendor Subledger/Account.
    3.     T-Code F-03  G/L Account Clearing also creates unwanted additional clearing line items in GL account.
    An immediate help in the above mentioned problem will be highly appreciated.
    Regards,

    Please check the following Scenario.....
    1.  Enter a customer invoice of USD 1000 from FB70.
    2.  Enter a Credit memo of the same customer of USD 1000 from FB70
    In both documents all the information should be same.
    If you look at the customer account in FBL5N, it'll balance to zero, with two open items i.e an invoice and a credit memo of same amount.
    3.  Now clear that customer from F-32.
    The clearing document contains two line items.
    1. Customer Dr. with PK 07 Amount USD 1000
    2. Same customer account is credit with PK 17 Amount USD 1000
    the above two line items are undesired.
    When we analyze the transactions of this customer by FD10N, it shows Dr. during the period USD 2000 and Cr. during the period USD 2000.   Although the actual Dr. amount of Invoice was USD 1000 and Credit amount of Credit memo was USD 1000.
    Due to Account clearing F-32, the system shows high turnover of transactions in the customer account.  Same thing happens with Vendor and GL clearing.........................
    I hope i am able to clear the problem,  please feel free to ask me, if any further details required.
    Regards,

  • PO line item table EKPO-TECHS?

    Dear Gurus,
    Kindly inform me what is this EKPO-TECHS (Parameter Variant/Standard Variant) field?
    The F1 doucmentaion does not explain the business process how it is used.
    Also, where can we find this field in PO line item detail (ME21n)?
    We have Zero entries in this field and we want to use this field for some other purpose.
    Kindly share your inputs.
    Thanks & Best Regards,
    Mohan

    Hi,
    As far as I could research this field (TECHS) has to do with PP and could lead to problem in the BOMs if it is not filled. Please read note 791750 with this information.
    I hope this helps!.
    Best Regards,
    Arminda

  • BAPI for Ordered Quantity updation for PO after PO line item cancellation

    Dear Experts,
            I am trying to cancel a line item in ME22N for a particular Purchase Order. When I cancel an item, the ordered quantity is updated in the Status Tab for Header Details. I want to know how is this quantity getting updated and which BAPI is triggered for cancellation. Is it simply adding up the quantities for all line items?

    Header values are addition of line items at run time. I doubt any BAPI specifically calculates it at the header

  • How to remove a service line item from a service related PO

    Guys,
    I am doing a report thro' which a user can upload the details for a Service related PO. If the PO contains more Service Line Item than the upload file, then I want to remove those Service Line Items. I used BAPI_PO_CHANGE to upload the details. But I am trying to remove those additional Service Line Items using BDC in ME22 transaction. But it is not working correctly. Is there any program(s) thro' which I can remove those Service Line Items? Any expert thoughts....
    Advance Thanks
    Ramesh

    I did it through BDC.

  • Adding line items in to a PO and PR using a Bapi

    I need to change PO and PR and add several line items to each of them .
    Can addition of line items to Pr and PO be achieved via a Bapi .
    Please suggest.
    Many Thanks

    Hello Aditi,
    About Purchase requisition, unfortunately you cannot add new item with BAPI_REQUISITION_CHANGE,
    you have to create a your own bapi, but this is a long process to do (I think could take 2-3 days or more).
    About Purchase Order ( BAPI  BAPI_PO_CHANGE ) you just have to specify all the data for the          
    new line including the item number.  Be sure to put the new item number in the field PO_it in tables POITEM, POITEMX POSCHEDULE...
    Regards,
    Mauro

Maybe you are looking for

  • Error ORA-01403: no data found

    Hi, I'm working in a form application, i fill some text boxes when i press create i'm getting this error. I don't know what i maybe chage since before works fine. Thanks in advance. Edited by: user11334290 on Jul 13, 2009 1:06 PM

  • Help! I created a form using Adobe Acrobat X Pro

    I created a form with fields, then closed it for editing.  However, one of the fields is in the wrong font and I need to change it, as well as the order in which the fields are tabbed, but I cannot get Adobe to allow me to edit the form again.  I've

  • Document attachment to PO

    Dear Friends, Is there a log, that is maintained to log all the activities (who add and who delete) perfomed to the PO attachement. Tks Sujith

  • How can i delete one of my 5 computers from itunes? i need to rigistre a new computer...

    How can i delete one of my 5 computers from itunes? i need to rigistre a new computer...

  • Yet another EL post (I apologize in advance)

    I've tried searching the forums before asking this question, but haven't found anything to solve my problem. Initially, the issue is the same many others have: EL expressions are being ignored. So I added in the page directive, and this was the respo