Purchase requsition number BANFN

Hi,
The purchase order number is created with ref of purchase question but  the PR is not updated in the EKPO table . what would be the reason for this? I need to display the PR in the PO output but i couldnt get the PR number from the table.
Regards,
Renuga.A

Hi Renuga,
Check it table EKET whether the PR number is updated.
Also let us know whether the PR is not updated for this PO or for every PO created w.r.t to PR.
Sometimes system take time to update the tables.
Just check it once again.
Regards
Ramesh Ch

Similar Messages

  • 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 Requsition Conversion to Schedule lines

    Can any body reply me with the table/view where i can link with the purchase requsition Number and
    Schedule line Agreement number in APO.

    Data is stored in livecache so no direct table .
    you can use FM/BADI to get the details :
    BAPI_POSRVAPS_GETLIST3
    also check structure :/SAPAPO/RRPIO
    Manish

  • Auto trigger of Purchase requsitions in Sales Order in case of Third party

    Hi,
    In a third party sales scenario, where do we set the automatic creation of Purchase requsitions when we create a third party sales order. I checked the Item category configuartion but couldn't figure it out anywhere.

    Hi Ronaldo,
    In Scheldule Line Category, for the Purchase Order Type,Please select the Options Related to Purchase Requestion.So that we you create the Order automatically the Purchase Requisation Number will get generated.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • 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

  • Urgent:regarding purchase requsitions

    HI,
    i am making purchase requsition report in which i have to display that these are the person who released the purchase requsition at dese dates.
    plzzzz help me out as i am able to display only release requsitions but not the person who had released it. i am using table eban.
    IF ANYBODY HELP ME OUT HE OR SHE WILL BE DEFINATELY REWARDED.
    Regards,
    ric.s

    Hi,
    Go through this program, you have answer
    It is possible to generate a complete list of purchase document releases with the purchase document number (requisitions and orders), releaser, release date and release time. * First, create an Infoset using transaction SQ02 directly reading from table CDPOS and create an additional table: CDHDR. If you are releasing purchase requsitions at the item level, it is convenient to create an additional field (PURPS LIKE EBAN-BNFPO) to capture the item number.
    GO THROUGH THIS CODE
    Mass Display of Purchase Orders
    Submitted by webmaster at www.sap-img.com
    Mass display or print Purchase Order History
    You can request report by :
    1. Change date
    2. User Name
    3. Purchase Order Number
    4. Vendor Code
    Written by : SAP Basis, ABAP Programming and Other IMG Stuff
    www.sap-img.com
    REPORT ZPOCHANGE LINE-SIZE 132 NO STANDARD PAGE HEADING
    LINE-COUNT 065(001)
    MESSAGE-ID VR.
    TABLES: DD04T,
    CDHDR,
    CDPOS,
    DD03L,
    DD41V,
    T685T,
    VBPA,
    TPART,
    KONVC,
    EKKO.
    SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
    XNAME FOR CDHDR-USERNAME,
    XEBELN FOR EKKO-EBELN,
    XLIFNR FOR EKKO-LIFNR.
    SELECTION-SCREEN SKIP.
    TEXT-001 - Sorting Sequence
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
    SNAME RADIOBUTTON GROUP R1,
    SOBID RADIOBUTTON GROUP R1.
    SELECTION-SCREEN END OF BLOCK BLK1.
    DATA: WFLAG,
    WCHANGENR LIKE CDHDR-CHANGENR.
    DATA: INDTEXT(60) TYPE C.
    DATA: BEGIN OF ICDHDR OCCURS 50.
    INCLUDE STRUCTURE CDHDR.
    DATA: END OF ICDHDR.
    DATA: BEGIN OF ICDSHW OCCURS 50.
    INCLUDE STRUCTURE CDSHW.
    DATA: END OF ICDSHW.
    DATA: BEGIN OF EKKEY,
    EBELN LIKE EKET-EBELN,
    EBELP LIKE EKET-EBELP,
    ETENR LIKE EKET-ETENR,
    END OF EKKEY.
    DATA: BEGIN OF ITAB OCCURS 50,
    BEGIN OF EKKEY,
    EBELN LIKE EKET-EBELN,
    EBELP LIKE EKET-EBELP,
    ETENR LIKE EKET-ETENR,
    END OF EKKEY,
    CHANGENR LIKE CDHDR-CHANGENR,
    UDATE LIKE CDHDR-UDATE,
    UTIME LIKE CDHDR-UTIME,
    USERNAME LIKE CDHDR-USERNAME,
    CHNGIND LIKE CDSHW-CHNGIND,
    FTEXT LIKE CDSHW-FTEXT,
    OUTLEN LIKE CDSHW-OUTLEN,
    F_OLD LIKE CDSHW-F_OLD,
    F_NEW LIKE CDSHW-F_NEW,
    END OF ITAB.
    DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
    FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
    SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
    LIFNR IN XLIFNR.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'EINKBELEG'.
    CDHDR-OBJECTID = EKKO-EBELN.
    PERFORM GETCHGDOCS.
    ENDSELECT.
    IF SUDATE = 'X'.
    SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
    EKKEY-ETENR.
    ELSEIF SNAME = 'X'.
    SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
    EKKEY-ETENR.
    ELSE.
    SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
    ENDIF.
    LOOP AT ITAB.
    CLEAR: INDTEXT, EKKEY.
    CASE ITAB-CHNGIND.
    WHEN 'U'.
    INDTEXT(50) = ITAB-FTEXT.
    INDTEXT+51 = TEXT-020.
    CONDENSE INDTEXT.
    WHEN 'D'.
    INDTEXT = TEXT-021.
    WHEN 'E'.
    INDTEXT(5) = ITAB-FTEXT.
    INDTEXT+51 = TEXT-021.
    CONDENSE INDTEXT.
    WHEN 'I'.
    INDTEXT = TEXT-022.
    ENDCASE.
    RESERVE 4 LINES.
    IF WCHANGENR NE ITAB-CHANGENR.
    WCHANGENR = ITAB-CHANGENR.
    EKKEY = ITAB-EKKEY.
    WRITE:/ ITAB-UDATE UNDER 'Change Date',
    ITAB-UTIME UNDER 'Time',
    ITAB-USERNAME UNDER 'User Name',
    ITAB-EKKEY-EBELN UNDER 'PO No',
    ITAB-EKKEY-EBELP UNDER 'Item',
    ITAB-EKKEY-ETENR UNDER 'Sch No',
    INDTEXT UNDER 'Changes'.
    ELSEIF ITAB-EKKEY NE EKKEY.
    WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
    ITAB-EKKEY-ETENR UNDER 'Sch No',
    INDTEXT UNDER 'Changes'.
    ENDIF.
    CASE ITAB-CHNGIND.
    WHEN 'U'.
    ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
    ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
    WRITE: / TEXT-023 UNDER 'Changes',
    <F_OLD>.
    WRITE: / TEXT-024 UNDER 'Changes',
    <F_NEW>.
    WHEN 'E'.
    ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
    WRITE: TEXT-023 UNDER 'Changes',
    <F_OLD>.
    ENDCASE.
    SKIP.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE:/ SY-DATUM,SY-UZEIT,
    50 'P U R C H A S E O R D E R H I S T O R Y',
    120 'Page', SY-PAGNO.
    WRITE: / SY-REPID,
    60 'Purchase Orders Changes'.
    SKIP.
    ULINE.
    IF SUDATE = 'X'.
    WRITE:/001 'Change Date',
    014 'Time',
    024 'User Name',
    038 'PO No',
    050 'Item',
    057 'Sch No',
    065 'Changes'.
    ELSEIF SOBID = 'X'.
    WRITE:/001 'PO No',
    013 'Item',
    020 'Sch No',
    028 'Change Date',
    041 'Time',
    051 'User Name',
    065 'Changes'.
    ELSE.
    WRITE:/001 'User Name',
    015 'Change Date',
    028 'Time',
    038 'PO No',
    050 'Item',
    057 'Sch No',
    065 'Changes'.
    ENDIF.
    ULINE.
    FORM GETCHGDOCS.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    DATE_OF_CHANGE = CDHDR-UDATE
    OBJECTCLASS = CDHDR-OBJECTCLAS
    OBJECTID = CDHDR-OBJECTID
    TIME_OF_CHANGE = CDHDR-UTIME
    USERNAME = CDHDR-USERNAME
    TABLES
    I_CDHDR = ICDHDR
    EXCEPTIONS
    NO_POSITION_FOUND = 1
    OTHERS = 2.
    CHECK SY-SUBRC EQ 0.
    DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
    CHECK NOT ICDHDR[] IS INITIAL.
    LOOP AT ICDHDR.
    CHECK ICDHDR-UDATE IN XUDATE.
    CHECK ICDHDR-USERNAME IN XNAME.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING CHANGENUMBER = ICDHDR-CHANGENR
    IMPORTING HEADER = CDHDR
    TABLES EDITPOS = ICDSHW
    EXCEPTIONS NO_POSITION_FOUND = 1
    OTHERS = 2.
    CHECK SY-SUBRC EQ 0.
    LOOP AT ICDSHW.
    CHECK ICDSHW-TEXT_CASE EQ SPACE.
    MOVE-CORRESPONDING ICDSHW TO ITAB.
    MOVE-CORRESPONDING ICDHDR TO ITAB.
    MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
    APPEND ITAB.
    ENDLOOP.
    ENDLOOP.
    ENDFORM.
    END OF PROGRAM
    Regards,
    Satish

  • Purchase requistion number and line item number linkage with work order opr

    Hello,
    I want to know what is the link between Purchase requisition number along with its line item number with work order operation number.
    For the non stock component assign to Work order operation ( say operation 10) the PR get generated for that component which assign to that operation .
    in which table we can find that PR as input and output as Work order number along with its operation .
    In AFVC table if we put PR as input then it does not show any entry for that PR number?
    Regards
    Vaibhav

    HI Vaibhav,
    If you have the Work Order Number AUFNR, then you can get AUFPL from AFKO.
    Then Pass AUFPL to AFVC table to get BANFN(Purchase requisition number) and BNFPO(Item number of the purchase requisition in the order).
    Regards,
    Ravi

  • Purchase requsition ME53N

    Hi All,
    Can any body tell me what is the cause
    In purchse requsition requisition item is not coming- suppose i am haveing 3 line items in sales order for all items purchase req. is generated in schedule line level i can see the purchase req number and Requsition item 10,20,30.But in ME53N requsition item 20 is missing.
    Thaanks in advance
    Sandeep

    Hi,
    It looks item 20 is already available in the stock. The system might have confirmed the quantity against the available stock. So check in MMBE for the available quantity.
    Regards,

  • Purchase Requsition Data Source

    Dear Consultants,
    I want to extract Purchase Requsition Data from R/3 System.
    But I couldn't find any data source in the R/3 system.
    Is there a standart data source for this?
    Best Regards
    Mehmet

    There is no standard datasource; go in LBWE and include in your transfer structure (of 2LIS_02_SCL)
    MCEKET-BANFN (Purch.req.) and
    MCEKET-BNFPO (Requisn.item).
    These two fields allow to access on the key of EBAN table...here you can find FRGDT field that is release date...
    In the same datasource you can also already find as available the field MCEKKO-EKGRP (Purch. group from T024).
    Hope it helps.
    Regards

  • 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

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Accounting Document number from Purchasing Document Number

    Hi Gurus,
    My Requirement is that i have a Purchasing Document number (EBELN) and i need Accounting Document Number( BELNR_D)  so that i can get the Amount in Document Currency (WRBTR) for that document .

    Hi,
    Check table EKBE.

  • How to trace purchase order number with respect to Purchase requestion numb

    Hi friends,
    Can u please help me how to Trace purchase order number with respect to purchase Requetuion  number. Is there any standard report  available in R/3

    Hi Vamsi,
    Thats what!!!
    Goto SE16 - EBAN - Give PR number in the iput screen.
    In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
    There you choose Purchase Order.
    So the output will display for you POs for the PR that you entered.
    Regards,
    Vishal

  • 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

  • Purchase order number for each postings with FBL3N

    Hello
    With tcode FBL3N, I need to get all the postings on expenses accounts. Additionally it is possible to get more information on the postings from the orginal paper invoice. It shall be also more convenient to get the purchase order number walk trhough SAP with it. Then is it possible to get the purchase order number for each postings with FBL3N?
    thanks for inputs
    sb

    Hello,
    Could you please add field BSEG-EBELN as a special field in FBL3N (from
    menu path Settings -> Special fields).
    Then, select the Purchase order field again from "Change Layout"
    (Ctrl+F8). Now this field is available for display variants, it has the
    technical name 1-U_EBELN and the description 'Purchase Document'.
    The other field has the same description but as technical name
    '1-EBELN'. When you create a display variant be aware that you select
    1-U_EBELN and not 1-EBELN.
    *******Please also refer to attached notes 215798 and 984305.
    Best regards, Hana

Maybe you are looking for

  • Installing Office 2004

    Hi everyone- Figured you guys could help. i recently purchased Office 2004 and am having trouble installing on my MBP. I have removed the Test Drive that came with MBP, inserted the Office 2004 disc, double-clicked on the Office Setup Assistant. Once

  • Contacts & Calendars not updating

    Any additions or changes I make in these areas are not updating on the iPod. I am doing this through iTunes. In one case, I deleted a contact and re-entered that person with the new phone number which was the only new item. Still won't update. When I

  • Add maximumsize icon to title bar in JDialog

    My question is how to add a maximumsize icon to the title bar of JDialog, i want to create a dialog that when user double-click the JDialog's title bar or click the maximumsize icon in the JDialog's title bar the dialog can be displayed as maximum si

  • Rule 11 functionality for India Localization OSP Process

    Hi Can Any one tell us How to implement Rule 11 Functionality for India Localization OSP Process. Pls let us know how to map this functionality either to incorporate it in Purchasing or Order management module Also can any one provide us the document

  • 554 5.4.6 aliasing/forwarding loop broken

    A couple of clients of mine have had their attempts to send email to me bounce back with this error. I have a general idea of what the problem is (a conflict between a user's email address and some alias that I can't find) and I'm pretty sure that I'