Number of PO with Purchase requisition number not null

Hi Experts,
I need to number of PO with Purchase requisition number not null in ECC
T-CODE nse16n and table name =EKPO
But when I make EKPO-BANFN not equal NULL it doesnt work ? how can do that ?
I custom my data source 2LIS_02_SCL with EKET.BANFN I want to check my DS with ECC data .
Thanks and best regards
Ilyaebi

IF you need to check the number of PO's with Purchase requisition number not null then simply open the table EKPO in SE12, click on Contents and against the field BANFN right click on the empty box where you enter values and click on Options. From the pop up window selecte Not Equal to and check the Number of Entries in the table. You will get the desired result even though the volume of data might be large.
Regards,
Arminder

Similar Messages

  • User Exit for ME52N with Purchase Requisition number & line item number

    Does anyone know which user exit I could use to get at the purchase requisition number and line item number when I am trying to change a PR.  I see various exits with im_req_item but when I code a popup in the include it is not appearing.  I am just not finding the right exit.

    You can use enhancement MEREQ001, function exit EXIT_SAPLMEREQ_005. This enhancement description gives impression that it can only be used if you have custom fields but it can be used even when you don't have custom fields.

  • Fetch Sales Order number VBELN from Purchase requisition number BANFN

    Hi,
    I'm not able to find a suitable method to fetch the sales order number(VBELN) from the purchase requisition number(BANFN).
    I tried using VBEP table to fetch the data, but it is giving serious performance issues, as in for fetching one record it is taking approx 20 seconds!!!
    Kindly suggest a suitable method for this.
    I've used the query as folllows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    Scenario in brief described below:
    Whenever a direct delivery sales order is created on a supply chain plant, a dummy purchase requisition without source of supply is created automatically at preferred supplying plant for the customer in the sales order. Direct Delivery Sales Orders which are still in Open status and for the associated dummy purchase requisitions with these sales order, the deletion flag set has to be unchecked.
    in this case, only one sales order is created corresponding to a preq..
    BAPI: BAPI_PR_GETDETAIL is not giving entries for the table as this is a special case of direct delivery from the production plant directly to the customer, bypassing the warehouse / distribution center...
    selection screen has input fields preq, matnr(product) and plant. we fetch entries depending on the data filled in selection screen and also they should be of document type(BSART in EBAN table) ZDD1 and deletion indicator is set(LOEKZ in EBAN).
    then we check if the sales order corresponding to the preq is in open status...
    for this i need to programmatically fetch the sales order number corresponding to the preq...
    this is causing a performance issue as i could find only one way -- fetching sales order number from VBEP table corresponding to BANFN... indexing for easier also didnt work...
    no other way i could find to fetch sales order number corresponding to the preq number....
    there is a bapi: BAPI_PR_GETDETAIL, but this is not fetching entries to the changing tables related to sales order...
    also EBKN table doesnt have any entries as this is a special case of direct delivery preq..
    Guess i couldnt find anyother way...
    Thanks.

    I'm not sure as to why the select query was still throwing performance issues. I could see that the index had been created on only BANFN in the DB. Prior to creating the index, it was taking approx 20 seconds per entry, but after creating the index, it took 13seconds approx.
    I used the select query as follows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    I tried a few other combinations also, but  those also didnt work effectively:
    select vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    without using SINGLE in the select query as the select query would implicitly pickup only a single record,
    select vbeln banfn
    from vbep
    into wa_vbep
    where banfn eq wa_eban_zdd1_x-banfn.
    and another query where the INTO statement was directed directly to a workarea.
    But unfortunately, nothing seemed to be working.
    The index i had created was on BANFN alone in the VBEP table.

  • Purchase Requisition number not changing when sales order item is rejected

    Hi all,
    I have a requirement to change the sales order status to 'TECO' when ever some reason for rejection is selected in the status tab at the item level.The status should change from 'TECO' when i remove the reason for rejection.
    The status change is happening correctly.I have achieved it using user exit.
    CASE 1 : Initially, when a new item is added in the Sales order the purchase requisition number appears in the schedule lines tab of the item level. This is as expected.
    CASE 2 :When the same item is blocked (by entering a reason for rejection in status tab of VA02 ) then the purchase requisition number is not present in the schedule lines tab.This is as expected.
    But i face the following issue.
    CASE3 : Again if the blocked item is unblocked (By removing the reason for rejection in status tab of VA02 ) then the purchase requisition number does not appear again in the schedule lines tab.The purchase requisition number is expected to appear again.
    This happens in case of DROP SHIPMENT scenario. I understand that in case of dropshipment scenario the purchase requisition number is triggered by item category and schedule lines only.
    I tried to make the changes(to change the status ) in user exits 'MV45AFZZ' and also 'MV45AFZB'.But i face the issue in both the exits.Please let me know if there are any means to solve this issue(as mentioned in case 3).
    Regards,
    S.Suba

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • Purchase Requisition number (current number) not seen correctly in OMI2

    Hi All,
    I see purchase requisition number created for the last number in the number range defined for Purchase Req., but i do not see the last number in the "current number" area. What are the possible reason for this ?
    Regards,
    PSS
    Edited by: PSS on May 26, 2011 7:47 PM

    PSS,
    This is not usually considered to be a problem.  Are you using number range buffering?
    https://service.sap.com/sap/support/notes/141497
    Best Regards,
    DB49

  • Purchase requisition  number Range in MRP Run (MD02)

    Hi Experts ,
    When I run the MRP through T-Code MD02 even in test mode the Purchase requisition number getting consumed with out saving the entries.
    for eg:- number range = 100 to 200.
    when I execute the MD02 by selecting the indicator "Display results before they are saved " system showed a Purchase requisition number 100 and exit with out saving the entries.Next time when I execute the same MD02 system is displaying the purchase requisation number as 101, where as i have not used PR number 100 at all.
    Please guide me....
    Regards,
    Sri.

    Sri,
    Nothing is missing.  This is standard behavior.  It appears to me that SAP makes no effort to ensure that all Purchase request numbers are contiguous.
    You can try turning off number range buffering.  This will reduce the number of gaps in your purchase req number sequences.  However, I don't know if it will eliminate all gaps.  Be aware that there is a performance tradeoff when you deactivate buffering.  Making this change is considered to be a system modification, and is not supported by SAP.
    https://service.sap.com/sap/support/notes/62077
    Rgds,
    DB49

  • BAPI_PO_CHANGE me22n add profit center for purchase requisition number

    Hello all,
    I have to add an item line for a specific sales order( p_vbeln ).
    for that i use BAPI_SALESORDER_CHANGE and it works and the item is inserted.
    ( p_posnr = sales order item and ln_etnr = schedule_line = 1 )
    Now I have to maintain the specific po item line and to insert the Profit Center related to the Purchase Requisition Number that was assigned to the above sales order item like using transaction ME22N.
    when i use the transaction all i have to do is to ADD the Purchase requisition number to the PO Order Number and to add the PROFIT CENTER.
    for this i use BAPI_PO_CHANGE.
    i colect the folowing data:
    from table VBFA( vbelv = sales order number vbeln = l_ebeln)
    PO Number = p_ebeln.
    from table VBEP ( vbeln = sales order number, posnr = the previously inserted sales order item )
    Purchase Requisition Number = l_banfn
    Purchase Requisition Item = l_bnfpo
    from table VBAP (vbeln = sales order number, posnr = the previously inserted sales order item )
    Profit Center = l_prctr
    from table EKKN
    select max(  ebelp )
    from ekkn
    into l_ebelp
    where ebeln = l_ebeln.
    add 10 to l_ebelp
    Purchase Order Item = l_ebelp .
    and i move the data:
      i_t_poitem-po_item = l_ebelp.
      i_t_poitem-preq_no = l_banfn.
      i_t_poitem-preq_item = l_bnfpo.
      i_t_poitem-acctasscat = cc_x.
      APPEND i_t_poitem.
      i_t_poitemx-po_item = l_ebelp.
      i_t_poitemx-po_itemx = cc_x.
      i_t_poitemx-preq_no = cc_x.
      i_t_poitemx-preq_item = cc_x.
      i_t_poitemx-acctasscat = cc_x.
      APPEND i_t_poitemx.
      i_t_poaccount-po_item = l_ebelp.
      i_t_poaccount-itm_number = p_posnr.
      i_t_poaccount-SCHED_LINE = ln_etnr.
      i_t_poaccount-profit_ctr = l_prctr.
      APPEND i_t_poaccount.
      i_t_poaccountx-po_item = l_ebelp.
      i_t_poaccountx-profit_ctr = cc_x.
      APPEND i_t_poaccountx.
    then i use the function BAPI_PO_CHANGE:
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder                = p_ebeln
          testrun                          = l_test
       TABLES
         return                            = i_t_return_po
         poitem                          = i_t_poitem
         poitemx                        = i_t_poitemx
         poaccount                    = i_t_poaccount
         poaccountx                   = i_t_poaccountx.
    BUT i get the folowing result ( messages in return table)
    Insert item for PO-order                                                                               
    Message:  Changing of PO using Enjoy BAPI unsuccessful ;                                                
      Message:  Purchase order item 00120 still contains faulty account assignments ;   
      Message:  Enter Profit Center ;                         
    what should i do?
    best regards,
    emilia

    hello,
    i debugged the function.
    first the data from poaccount is copied in lt_account.
    then this happens:
      PERFORM get_current_data
          TABLES    poitem               poschedule               poaccount
                    pocondheader         pocond
                    extensionout
                    poexpimpitem         allversions              popartner
                    potextheader         potextitem               return
          USING
                    l_po                 lf_header_currency
          CHANGING
                    expheader            exppoexpimpheader.
      exppoexpimpheader = poexpimpheader. "foreign trade export workaround
    after this form is executed poaccount-profit_ctr is empty.
    lt_account-profit_ctr in not empty but then it is not anymore.
    in the form this happens:
    item data
      CALL METHOD im_po->get_items
        IMPORTING
          ex_items = lt_items.
      LOOP AT lt_items INTO an_item.
        l_item ?= an_item-model.
        CALL METHOD l_item->get_data
          IMPORTING
            ex_data = ls_mepoitem.
        ls_mepoitem-ebeln = ls_header-ebeln.
        APPEND ls_mepoitem TO lt_item.
    schedules
    accountings*
        CALL METHOD l_item->get_po_accountings
          IMPORTING
            ex_accountings = lt_accountings.
        LOOP AT lt_accountings INTO an_item.
          l_accounting ?= an_item-model.
          CALL METHOD l_accounting->get_data
            IMPORTING
              ex_data = ls_mepoaccounting.
          ls_mepoaccounting-ebeln = ls_header-ebeln.
          APPEND ls_mepoaccounting TO lt_account.
        ENDLOOP.
    item conditions
    foreign trade (item data; EIPO)
      ENDLOOP.
    so it acctualy copies every item from purchase number ebeln in lt_item.
    for each one of them it copies the account data into lt_account.
    so the last loop is for the item that i want to enhance.
    here it copies all the necessary data in lt_account except of course the profit center because that's the one that i need to insert.
    after this loop there is a form:
      PERFORM move_account_out TABLES lt_account
                                                                ext_poaccount
                               USING  header_currency.
    where the ext_poaccount is the poaccount parameter.
    this form:
    clears ext_poaccount.
    copies the data from lt_account into ext_poaccount.
    and returns the ext_poaccount with the empty Profit center field
    and so after performing get_current_data my parameter is deleted.
    then it's almost the end of the function and nothing else related to the poaccount parameter.
    so it's no use for me to insert the field Profit_Center?
    is there another FM that i should use to be able to insert the profit center?
    what should i do?
    Best regards,
    Emilia

  • Restriction for purchase Requisition Number in ME21N

    Hi All,
    I want to raise an error message in ME21N, if the user creating PO without perchase rechase requisition number. For this i choosed one BADI.
    Definition Name: ME_PROCESS_PO_CUST
    Interface Name : IF_EX_ME_PROCESS_PO_CUST
    i have implemented the BADI  ZCHECK_PR
    Method :  IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
    I have written code like this in PROCESS_ITEM method
    DATA: ls_mepoitem TYPE mepoitem,
            ls_customer TYPE mepo_badi_exampl,
            ls_tbsg     TYPE tbsg.
      INCLUDE mm_messages_mac. "useful macros for message handling
    * here we check customers data
      ls_mepoitem = im_item->get_data( ).
    BREAK-POINT.
    if ls_mepoitem-bstyp = 'ZV01'.
       if ls_mepoitem-banfn is INITIAL.
          message 'Enter Purchase Requisition Number' type 'E'.
       endif.
    endif.
    Saved & Activated  this.
    But while testing this in ME21N, it is not at all going to debug mode( I have created PO for ZV01 order type only).
    Is there any thing not finished for BADI?
    Can any one help me.
    Thank You.

    Vishnu,
    Very strange, just try deactivating and deleting your implementation and create a fresh one in the same client where you are testing and assign it to a transport request and check.
    Actually this BADI is already migrated to an Enhance spot in ECC 6 with same name 'ME_PROCESS_PO_CUST' but I still believe that SIMPLE badi implementation is still supported. OR Better do it with the latest way.
    Create an enhancement implementation of Enh spot ME_PROCESS_PO_CUST in SE19 and then for that Enh implementation, create a BADI implementation and an implementing class. Code the required thing in the implementing class methods and then check if it works. It's actually almost same way as implementing a simple BADI. If you need any help, search Forums or get back here.
    Pls note that Enh framework implementations are much faster than conventional BADIs and should always be used.
    BR,
    Diwakar

  • How to add a new line item to a Purchase Requisition number

    Hello All,
    Can anyone please provide me with some FM or BAPI to add a new line item to an existing Purchase Requisition number.
    Can it be done using BAPI_REQUISITION_CHANGE; if yes, then how do I pass the parameters into the BAPI tables..?
    Useful pointers would be appreciated...!!
    Thanks & Regards,
    Tarun Gambhir

    @Gautham,
    Thanks for the quick reply.
    I want to update the table EBAN, so should I use the parameter table XEBAN to put in the new line item and then execute..
    Also to fill up this table I need to pass certain value, so can I use BAPI_REQUISITON_GETDETAIL and pass the same details as found from the same BAPI and create a new line item...
    Regards,
    Tarun Gambhir

  • User Exit for Purchase Requisition Number Range

    Dear Experts,
    I searched on sdn, i got M06B0003 &M06B0004 this 2 user exit for PR Number range.
    I have activated both User exits but while creating PR is not getting effect of that user exit.
    I have checked by putting Break-point in respective user exit but while saving the PR it should go to that break-point but it not going there aslo.
    And also i have checked user exit MM06E003 but it is for Purchase Order number range.And for PO it is working.
    Please help me to solve this issue.Solution will be appreciated.
    Regards,
    Sanket.

    Hi,
    Sorry that badi will not help try this one ...EXIT_SAPLMEREQ_009 in MEREQ001 where the export parameters is purchase requisition number....
    Thanks,
    Shailaja Ainala.

  • In Enhancement MEREQ001 - need to import Purchase Requisition Number

    Hi ,
    I need to import the Purchase Requisition Number and Item Number when the user enters T.code ME52N / ME53N
    From that i need to fetch the data from the Table EBAN , for my Custom Screen which i added using Screen Exit.
    My Question is in Exit MEREQ001 (CMOD) , which Function Module and field  i will use to import that PR Number and Item Field.
    Thanks,
    Prakash K

    Which enhancement component of MEREQ001 is being used ? I could see most of the enhancement components (eg. EXIT_SAPLMEREQ_001) having the importing parameter IM_REQ_ITEM (type ref to IF_PURCHASE_REQUISITION_ITEM).  Extract the PR header data using the interface method IF_PURCHASE_REQUISITION_ITEM->GET_REQUISITION.  This method will return the structure RE_REQUISITION (type ref to IF_PURCHASE_REQUISITION).
    Use the interface methods IF_PURCHASE_REQUISITION->GET_DATA (for header data) and IF_PURCHASE_REQUISITION->GET_ITEMS (for item data) for capturing required information.  If you are using the enhancement components which is having the importing parameter IM_REQ_HEADER ( type ref to IF_PURCHASE_REQUISTION, you can directly use the methods mentioned above.
    Regards, Vinod

  • How can I tell how many licenses are included in a volume license?  I can login, but am unable to see the number included, just says purchased "1", but not the amount in the volume.

    How can I tell how many licenses are included in a volume license?  I can login, but am unable to see the number included, just says purchased "1", but not the amount in the volume.

    Hi networka,
    Please see this page for links to the resources you can use to manage a volume license: Customer resources | Adobe Buying Programs. You should be able to find this information by logging in to the Licensing Website.
    Best,
    Sara

  • Quantities/Dates and Status tab in purchase requisition is not working

    Help!!! In the Quantities/Dates tab of Purchase Requisition is not updating the Quantity Ordered field if a Scheduling Agreement was created, no matter if have a Delivery Schedule or Goods Receipt, and in the Status tab is not updating the Ordered field.

    Ok, but you can create a Scheduling agreement whit reference a PR and the PR show in the Status tab the number of Scheduling agreement created and the total quantity ordered to date, but is not showing the data, and in the Quantities/dates tab of PR __is not showing the Quantity Ordered too_, that is the problem, however that is not happened if you create a PO.

  • Purchase requisitions are not created for Component by MRP

    Hi,
    I have created planned orders for assy. When I run the MRP the purchase requisitions are not created by  MRP for the components. If I check the planned order the components tab is showing all the raw materials list as per the BOM. The master data tab shows the BOM,Routing,Production version etc. But when I run the MRP the components planned orders/purchase requisitions are not created.  There is no stocks available for the components in the plant, still the purchase requisition are not created by MRP.
    I have tried in both transactions MD01 and MD02.
    I could notice one thing. Supoose if I enter 31.12.2009 is the order finish date, the system creates exception mesage 10- Rescheduling in with proposed date 01.12.2009.  Why the system is propsoing rescheduling in with date 01.12.2009 which past date.
    Please sugest.
    thanks and regards
    Murugesan

    Hi,
    I am using MRP type PD  for assy and components. There is no planned orders for assy.
    If I run MD02 the planned orders created for assy and purchase requisition are created for raw materials. But if I run MRP in MD01 neither  the planned orders nor the purchase requisitions created.
    I tried the Control keys NETCH,NEUPL but still the planned order and purchase requisitions are not created if I run using MD01.
    Please suggest.
    thanks and regards
    Murugesan

  • Deleted cell number appears (along with the edited number) when sending a text.  How do I get rid of it?

    Deleted cell number appears (along with the edited number) when sending a text.  How do I get rid of it?

    It has nothing to do with iOS 6. It's always been that way. Given that it's been this way for so long, one assumes that Apple knows about it and has their own reasons for not changing it.
    Restore the phone as new, not from back up to delete the numbers. Or, wait until the cache gets overwritten.
    Best of luck.

Maybe you are looking for

  • How can I remove my iPad from iTunes using my iPad?

    My laptop broke and it had my iTunes stuff on it. I can not afford to repair it o I'm selling it later to my cousin. He likes to mess around a lot and I need to know how to remove my device. Please no commenting on black up because I use iCloud. Than

  • Travel costs not appearing in the sttlement and in standerd form prf0

    Dear Experts. i could'nt get travel costs in the settlement and in the prf0 -standerd form but i could get meals perdiem reimbursement and accomidation reimbursement. could u pls pass some information i have configured reimbursements for travel costs

  • How to save XML timeformat to oracle without loosing "timezone-compensati"

    I hope i post this in the correct forum and I provide enough info for you to understand what I'm looking for... Some time ago I got some help here about how to read a incoming XML-file and insert data into a table, where the Element-tag describes the

  • What's the current framework used to interact with a webcam?

    Hi all, I'd like to know what's the current framework most developers are using to control a webcam (i.e. snap shots, video recording etc). I found information pertaining to JMF, but that framework hasn't been updated since 2004! Any input is much ap

  • End user Quarantine Access

    I have configured our LDAP and turned on the quarantine access for users. I have tested and it works! Yeah..... well for people on the same subnet as he C300. The C300 is on a 10.x.x.x subnet and so is everyone at this location but those that are on