Errror: PO has no line items whenI try MIGO_GR

While trying to do goods receipt-purchase order, when I give the PO No. it gives an error saing PO has no line items. Whereas when the PO was created there was one line item.
can anyone guide pl.
rgds

Hello Ajay,
Check the following points, there might one of the reason.
1. If PO is subject to release, but it has not released
2. PO is created with confirmation control key which is for Inbound Delivery and trying to create GR against PO instead of Inbound Delivery
3. PO qty is completely received which has set PO completed indicator automatically
4. Some one has set PO completed indicator automatically.
5. PO is not service PO (item category D)
Hope this helps.
Regards
Arif Mansuri

Similar Messages

  • Error: PO has no line items

    While trying to do goods receipt-purchase order, when I give the PO No. it gives an error saing PO has no line items. Whereas when the PO was created there was one line item.
    can anyone guide pl.
    rgds

    If you raise this question in MM forum, you might get the answer faster.
    Regards,
    Rajesh Banka

  • Sales order has 52 line items but in vbep some are not available

    Hi,
    what could be the reason for the problem;
    Sales order has 52 line items but in vbep some are not available...
    and some has 2 etenr as '0001' and '0002', why 2 lines in vbep for 1 posnr of order.
    Thanks.
    deniz.

    Hi,
    It is possible when some of them dont have valid Schedule lines.
    If they have valid schedule lines some confirmed qty should be available.otherwise we cant find them in VBEP table.
    Pls check by going to sales order  whether Sch.lines are valid or not.
    This you can check Thru
    VA03-->provide Sales Order number -->Select any line Item-->Menu item Goto-->Item-->Schedule Lines
    Thanks
    Parvathi

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

  • How to add a new line item when i click on UPDATE in orderpage B2B webshop?

    Hi Gurus,
    I need to add a new line item based on some condition when i click on update in the order page in b2b web shop. Is there any way to pass some parameters to the BADI crm_isa_basket_items and create a new line item when i update? If so can you please tell the parameters that i need to pass to the badi.
    Any help will be highly appreciated!!!!!
    Thanks in advance,
    Lakshman.

    You can put condition when you call java script function while clicking on "update" button.
    On order.jsp  update button call "submit_refresh()" java script function. You can check your condition over here.
    You can find this function in "orderTools.js" file.
    And when you enter item in last line on order page and click on the update button it will automatically add new empty lines on your order page as per your selected new line items from drop down box.
    Or may be you can call your custome action class when you click on update to check particular condition.
    I hope it will help you.
    Thanks and Regards.
    eCommerce Developer

  • BAPI_GOODSMVT_CREATE Closing scheduling line items when errors

    Hello all,
    I have an issue when running BAPI_GOODSMVT_CREATE.  If someone for instance is in a scheduling agreement when running my code.  I get a locked by user return error from the BAPI.  This is fine but the problem is the line item is closed not allowing for reprocessing when the entry is no longer locked.  When reprocessing I will get a PU Ordered quantity exceeded by 1 EA : MS9556-08 2 error message
    Any advice? Is there a way to reopen a scheduling line item?
    Here is what Im sending the BAPI  Its looped so one Goods receipt per line in my custom z table.
      ls_header-pstng_date  = sy-datum.
       ls_code-gm_code       = c_01.
       LOOP AT i_ztab ASSIGNING <lfs_ztab>.
         IF <lfs_ztab>-zgr_status IS NOT INITIAL.
           <lfs_ztab>-zgr_status  = SPACE.
           <lfs_ztab>-zgr_error   = SPACE.
           <lfs_ztab>-return_code = SPACE.
         ENDIF.
         lv_index = sy-tabix.
         ls_header-doc_date  = <lfs_ztab>-zload_dt.
         lw_goods-material   = <lfs_tab>-ematn.
         lw_goods-plant      = <lfs_ztab>-werks.
         lw_goods-stge_loc   = s_loc-low.
         lw_goods-move_type  = c_101.
         lw_goods-mvt_ind    = c_b.
         lw_goods-vendor     = <lfs_ztab>-lifnr.
         lw_goods-entry_qnt  = <lfs_ztab>-menge.
         READ TABLE li_ekpo INTO lw_ekpo
             WITH KEY ebeln = <lfs_ztab>-ebeln
                      ebelp = <lfs_ztab>-ebelp
             BINARY SEARCH.
         IF sy-subrc = 0.
           lw_goods-po_number  = <lfs_ztab>-ebeln.
           lw_goods-po_item    = <lfs_ztab>-ebelp.
           lw_goods-entry_uom  = lw_ekpo-meins.
         ELSE.
           <lfs_ztab>-zgr_status  = c_f.
           <lfs_ztab>-zgr_error   = TEXT-003. "Contract not found error
           <lfs_ztab>-return_code = c_e.
           MOVE-CORRESPONDING <lfs_ztab> to w_ztab_up.
           APPEND w_tab_up TO i_ztab_up.
           CONTINUE.
         ENDIF.
         APPEND lw_goods TO li_goods.
         CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
           EXPORTING
             GOODSMVT_HEADER               = ls_header
             GOODSMVT_CODE                 = ls_code
           IMPORTING
             MATERIALDOCUMENT              = lv_matdoc
           TABLES
             GOODSMVT_ITEM                 = li_goods
             RETURN                        = li_return.

    Hi Vinod,
            Actually there are two line items in the PO and manually when I try to create a GR for both line items,  it creates a GR but when I pass it thr' BAPI, it is generating a GR only for one Line item.
    Thanks,
    Prasad

  • Documentary Batch Field for Line item when calling BAPI_GOODSMVT_CREATE

    hi all,
    Iam unable to locate the Documentary Batch Field for each line item while posting a Goods Issue using BAPI BAPI_GOODSMVT_CREATE.
    BAPI2017_GM_ITEM_CREATE structure has got no field to enter the DB number against each line item. Although its not a mandatory field while posting a goods issue when calling the BAPI, but there shud be a input field for the same. When doing a similar posting in SAP using MIGO transaction it's mandatory to enter a Documentary Batch number(SAP Field name DOCUBATCH_CHARG). Does anyone have come across this situation. Is there a field with different name in the  BAPI2017_GM_ITEM_CREATE structure ? Appreciate your thoughts !
    Regards,
    Gilmour

    Hi Vindy,
    bapi2017_gm_item_create-batch is the field for the Batch.
    However Iam looking for a field called DB No which is basically a Documentary batch ensure the traceability of a material, without it being necessary for the stock of the material to be managed in batches. If you look at the Item section in MIGO you would have Batch and DB No for each line item and Iam looking for the DB no and not the primary Batch.
    Thanks,
    Gilmour

  • Intercompany billing has 2 line items referring to the same salesorder item

    Hi All,
    I am posting Intercompany billing documents using Idocs. I am using the standard function module that creates INVOICE IDocs, but these Idocs are failing with error text "Document contains same order item more that once".
    The problem lies here, the PO that is been used is a STO (Scheduling Agreement) and the inter company billing the line item has the same material repeated twice but change in the quantity field. So, when I am posting document using Idocs we come across a segment E1EDP01 which has your quantity, weight, line item number and other fields. This segment is getting repeated twice with two different outbound deliveries.
    So, I think the solution is a mixture of both functional and technical....
    So, what I am planning to do here is for this particular material when ever it comes across duplicate entries add all the quantities fields and other numerical fields in the user exit and then refresh the internal table and then enter new entries. This could be done, but I don't know what could be the functional implications if these changes are made.
    Request you all to let me know what exactly needs to done in order to avoid these scenarios.
    Raghuram.

    Hi Raghuram,
    I found a very important SAP Note 103051, details are below.
    An IDoc processed by function module IDOC_INPUT_INVOIC_MM (of category INVOIC01) must not refer to the same purchase order item in several invoice items. This is also valid if for a goods receipt-related invoice verification several delivery notes belong to the same purchase order item.
    Depending on the system settings and the situation, various error messages can occur (for example, FD240 'Order item ... selected more than once' or M8050 'Balance not zero: & debits: & credits: &').
    In this situation module IDOC_INPUT_INVOIC_MRM generates error message M8321 'Document contains same order item more than once'.
    For example, this situation occurs if you work with individual batch valuation and the SD billing document executes a batch split for different batches which belong to the same purchase order item and delivery.
    Other terms
    INVOIC, SAPLIEDI,  M8047, M8, 321
    Reason and Prerequisites
    This is because of the program design.
    Solution
    There is no solution for IDOC_INPUT_INVOIC_MM.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active.
    Owing to this symptom, billing documents for single batch valuation with batch split cannot be settled in MM-EDI inbound processing. The settlement generates exactly the situation described (several invoice items for the same purchase order item). In this case, the only solution is to deactivate the billing of the batch sub-items in SD Customizing and to calculate the main item only.
    Hope this helps.
    Reward if helpful.
    Thanks

  • Delete SC line item when a follow-on document is created

    Hi
    We are working in a classic scenario.
    When a shopping cart is created from a catalog, it automatically creates a Purchase order in ECC.
    However, users are able to delete the line items of the cart when a follow-on document is created and vendor is ready to supply the material.
    How to restrict the users deleting the SC line items?
    PV.

    Hi Azad,
    Thanks for your quick reply.
    We are on to SRM5.0 (SRMSERVER 550 SP11).
    Even though it is standard functionality, still it is behaving the way explained.
    Tried to look for OSS notes and could not find one for my version. We may take up with SAP.
    Meanwhile, as this is causing lot of problem to business, I may have to achieve this by any means.
    Please throw your tips.
    pv

  • Make changes to auto generated line items when posting invoice thru MIRO?

    Hi All,
    My requirement is to make some changes in line items data when posting invoice through MIRO transaction.
    I have written a substitution for the same, The issue is that some line items get automaticaly created (i.e inter company posting). I need to make changes to these line items as well but substitution is not being triggered for these auto generated line items.Is there any way by which I can update in these line items as well ?
    further do we have any internal table which holds all the line items at runtime....to which I can refer and make the changes. I have searched but could not find one.
    Can anybody provide some inputs on this.
    Thanks,
    Lucky.

    Hi Kaushik,
    Thanks for your reply.
    I am using BADI INVOICE_UPDATE but here we will not be having line items which are auto generated.
    When we do inter company posting, line items are automatically created and these are not avaliable in the BADI. I am not sure if we can trap these line items any where.....the possible alternative which I can think of is to use memory reference and modify the internal table which holds all the items but unfortunately I am not able to find any such internal table to refer to at run time ...have u got any idea on this?
    Thanks,
    Lucky.

  • How to assign batch to BOM line item when creating PO

    Hi Experts,
                  Programmatically i am creating PO using BAPI_PO_CREATE, for the line item  material of PO their is BOM, i am able to get the BOM for each material, but  struggling to find where can i assign Batch to the BOM line item material.
    Thanks in advance
    Thanks,
    Nitesh

    Even though the ORDCHG message contains all three line items, it should also contain qualifiers that tell you Supplier whether the line is new, changed, deleted etc. If your Supplier has SAP, it should just work.
    Cheers, Paul.

  • Profit Center on Vendor Line Item - When other line item is Bank

    Dear Experts,
    We have a peculiar problem here.  Recently we went live with SAP ECC6.0.  On the date of migration one cheque was issued to a Vendor who did not presented the same into Bank.  The Cheque is now expired and we need to pass an entry into SAP as -
    Debit 40 Bank Account $100
    Credit 37 Other Clearing Vendor $100
    The Vendor re-invoicing cannot be done as we cannot hit the Expense GL.
    The core problem is that at the time of Vendor line item we cannot manually enter the Profit Center.
    We have Doc Splitting activated and Profit Centers are mandatory.
    If we decide to set the default Profit Centers for the concerned Reconciliation Account ALL of the goin forward postings, would hit this default PC.
    Please Help
    Thanks so much.

    Hi,
    I think you maintained the Document Splitting settings correctly, if the system is not allowing to clear the invoice u directly enter profit center in F-53
    there is a option to enter profit center
    if still system is not allowing to post you post by using F-02 and take document type as KA then it will allow to save the entry. you clear the both transactions by using F-44
    making the default profit centers to reconciliation account is not suggestible, if your company is having operations in one area then you can use this will be possible in IMG - controlling - profit center accounting - assign profit center
    I think it may help u and be careful and take authorizations from your superiors
    All the Best

  • In an infoset 12 line items when there is only one line item in the documen

    I have created an infoset which consists of cube, and 3 ods. in the infoset i displayed the data of the cube for billing document and material. Actual line item is 1 in the document (billing) but displayed as 12 items i.e bIlling document number and material are displayed in 12 lines.
    extraction in r/3 is checked and in the cube data is displayed . everything is ok except the infoset.
    Please provide solution

    The behaviour of infoset depend upon your join conditions. Just check the join conditions.

  • PO formed from SO has inverted line items compared to SO line items

    Dear Friends,
    We have certain cases in EKKN table where the SO line items dont match with PO line items.
    Let me give an example.
    SO  item no   |    item  |                PO item no        |     PO item
    10                 |    A      |                  40                   |    D
    20                 |    B      |                  30                   |    C
    30                 |    C      |                  20                   |    B
    40                 |    D      |                  10                   |    A
    But this does not happen always, there are only certain such cases.
    Please help me to resolve this issue.
    Thanks & Regards
    Amit Sharma

    Hi Raghuram,
    I found a very important SAP Note 103051, details are below.
    An IDoc processed by function module IDOC_INPUT_INVOIC_MM (of category INVOIC01) must not refer to the same purchase order item in several invoice items. This is also valid if for a goods receipt-related invoice verification several delivery notes belong to the same purchase order item.
    Depending on the system settings and the situation, various error messages can occur (for example, FD240 'Order item ... selected more than once' or M8050 'Balance not zero: & debits: & credits: &').
    In this situation module IDOC_INPUT_INVOIC_MRM generates error message M8321 'Document contains same order item more than once'.
    For example, this situation occurs if you work with individual batch valuation and the SD billing document executes a batch split for different batches which belong to the same purchase order item and delivery.
    Other terms
    INVOIC, SAPLIEDI,  M8047, M8, 321
    Reason and Prerequisites
    This is because of the program design.
    Solution
    There is no solution for IDOC_INPUT_INVOIC_MM.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active.
    Owing to this symptom, billing documents for single batch valuation with batch split cannot be settled in MM-EDI inbound processing. The settlement generates exactly the situation described (several invoice items for the same purchase order item). In this case, the only solution is to deactivate the billing of the batch sub-items in SD Customizing and to calculate the main item only.
    Hope this helps.
    Reward if helpful.
    Thanks

Maybe you are looking for

  • IWeb crashing upon opening . . .

    Hi all, I have several sites - one in particular is pretty large (movies, files, etc.) for a class that I'm teaching. I tried adding an additional page with links last night and that sent iWeb over the edge. Now I cannot get it to open at all. I just

  • Burning the highest quality in idvd 9

    Hi, When burning a disk at the highest quality available in idvd 9, what is the final output resolution? I'd like to get as close to 1080i as possible (knowing that I cannot burn HD without a HD burner and equivalent software). I am curious as to wha

  • Configure AE in WDS mode to share NAS in wireless network?

    How do I configure latest airport express in "extend existing network" mode to connect a network hdd (mybook live) LAN/WAN to the wireless network?

  • Fund Management - Issues in Upgrade from 4.6C to ECC6

    Hello, We are upgrading SAP Application for a client who is on 4.6C to ECC6. The client is currently using Funds Management in 4.6C. With ECC6 I understand that this functionality is moved into Public Sector and is available only on activation of IS-

  • How to Instantiate a bean inside a LoginServlet before redirecting toanothe

    Hi there I am writing a Login Servlet where i am validating a user. If he is successful i am redirecting to members page say main.jsp on links to main.jsp page i want to use beans like addressbook and userprofile on other jsp pages like addressbook.j