Pending purchase orders fields required

Hi all,
For purchase orders, I need the below mentioned fields.
purchasing organization,
purchasing group,
purchasing document number,
purchasing document date and
item delivery date.
Can any one give me the Table Field Names related to this fields.?
If anyone already did work on it then please send me the code for the report as well.
Thanks in advance.
Raj

purchasing organization, - EKKO-EKORG
purchasing group,EKKO_EKGRP
purchasing document number, EKKO-EBELN
purchasing document date and EKKO-BEDAT
item delivery date. EKET-EINDT
Check the below program :
REPORT ZMM_OPEN_PO_REPORT no standard page heading
                          line-size 255
                          message-id zwave.
======================================================================
Program Name : ZMM_OPEN_PO_REPORT                                    *
Description  : This report displays all Open PO Items and output     *
               would be PO Number,Material number and so on          *
Author       : Seshu                                                 *
Date         : 01/24/2007                                            *
MODIFICATION HISTORY                                                 *
DATE    | AUTHOR   | CHANGE #   | DESCRIPTION OF MODIFICATION        *
--|||--
01/24/07| Seshu    | DEVK921979 | Initial                            *
D A T A  D E C L A R A T I O N   P A R T                         ***
type-pools
type-pools : slis.
Tables
tables : ekko, " Purchase order Header
         ekpo, " Purchase order Item
         marc. " Material with Plant data
Internal table for output.
data : begin of i_output occurs 0,
       ebeln like ekko-ebeln,
       matnr like ekpo-matnr,
       end of i_output.
ALV Data declaration.
data : v_repid like sy-repid.
  ALV Function Module Variables
DATA: gs_layout type slis_layout_alv,
      g_exit_caused_by_caller,
      gs_exit_caused_by_user type slis_exit_by_user.
DATA: gt_fieldcat    type slis_t_fieldcat_alv,
      gs_print       type slis_print_alv,
      gt_events      type slis_t_event,
      gt_list_top_of_page type slis_t_listheader,
      g_status_set   type slis_formname value 'PF_STATUS_SET',
      g_user_command type slis_formname value 'USER_COMMAND',
      g_top_of_page  type slis_formname value 'TOP_OF_PAGE',
      g_top_of_list  type slis_formname value 'TOP_OF_LIST',
      g_end_of_list  type slis_formname value 'END_OF_LIST',
      g_variant LIKE disvariant,
      g_save(1) TYPE c,
      g_tabname_header TYPE slis_tabname,
      g_tabname_item   TYPE slis_tabname,
      g_exit(1) TYPE c,
      gx_variant LIKE disvariant.
data : gr_layout_bck type slis_layout_alv.
Ranges
ranges r_eindt for eket-eindt.
initialization.
v_repid = sy-repid.
start-of-selection.
Get the data from EKKO ,EKPO and MARC Table
perform get_data_tables.
end-of-selection.
display the data in the form of ALV
perform display_data.
*&      Form  get_data_tables
      Get the data from EKKO,EKPO and MARC Table
FORM get_data_tables.
clear : i_output.
refresh : i_output.
fill the dates in ranges
r_eindt-low = sy-datum - 7.
r_eindt-high = sy-datum + 14.
r_eindt-option = 'BT'.
r_eindt-sign = 'I'.
append r_eindt.
Get the data from EKKO,EKPO and EKET Tables
select aebeln bmatnr into table i_output
                       from ekko as a inner join
                            ekpo as b on aebeln = bebeln
                            inner join marc as c on cmatnr = bmatnr
                            inner join mara as d on dmatnr = bmatnr
                            inner join eket as e on eebeln = aebeln
                                           and   eebelp = bebelp
                            where c~beskz = 'E'
                            and   c~werks = '1000'
                            and   d~mtart = 'FERT'
                            and   b~loekz = space
                            and   b~elikz = space
                            and   e~eindt in r_eindt.
if sy-subrc ne 0.
message e000(zwave) with 'No open purchase order found'.
endif.
ENDFORM.                    " get_data_tables
*&      Form  display_data
      text
FORM display_data.
Fill the Fiedlcat
  PERFORM fieldcat_init  using gt_fieldcat[].
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
   I_INTERFACE_CHECK                 = ' '
   I_BYPASSING_BUFFER                =
   I_BUFFER_ACTIVE                   = ' '
     I_CALLBACK_PROGRAM                = v_repid
   I_CALLBACK_PF_STATUS_SET          = ' '
    I_CALLBACK_USER_COMMAND           = g_user_command
   I_CALLBACK_TOP_OF_PAGE            = ' '
   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
   I_CALLBACK_HTML_END_OF_LIST       = ' '
   I_STRUCTURE_NAME                  =
   I_BACKGROUND_ID                   = ' '
   I_GRID_TITLE                      =
   I_GRID_SETTINGS                   =
   IS_LAYOUT                         = gr_layout_bck
      IT_FIELDCAT                       = gt_fieldcat[]
   IT_EXCLUDING                      =
   IT_SPECIAL_GROUPS                 =
   IT_SORT                           =
   IT_FILTER                         =
   IS_SEL_HIDE                       =
   I_DEFAULT                         = 'X'
    I_SAVE                            = g_save
    IS_VARIANT                        =
   IT_EVENTS                         =
   IT_EVENT_EXIT                     =
   IS_PRINT                          =
   IS_REPREP_ID                      =
   I_SCREEN_START_COLUMN             = 0
   I_SCREEN_START_LINE               = 0
   I_SCREEN_END_COLUMN               = 0
   I_SCREEN_END_LINE                 = 0
   IT_ALV_GRAPHICS                   =
   IT_ADD_FIELDCAT                   =
   IT_HYPERLINK                      =
   I_HTML_HEIGHT_TOP                 =
   I_HTML_HEIGHT_END                 =
   IT_EXCEPT_QINFO                   =
IMPORTING
   E_EXIT_CAUSED_BY_CALLER           =
   ES_EXIT_CAUSED_BY_USER            =
    TABLES
      T_OUTTAB                          = i_output
   EXCEPTIONS
     PROGRAM_ERROR                     = 1
     OTHERS                            = 2
  IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " display_data
*&      Form  fieldcat_init
      text
     -->P_GT_FIELDCAT[]  text
FORM fieldcat_init USING  e01_lt_fieldcat type slis_t_fieldcat_alv.
  DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Purchase order number
  CLEAR LS_FIELDCAT.
  LS_FIELDCAT-FIELDNAME    = 'EBELN'.
  LS_FIELDCAT-ref_fieldname = 'EBELN'.
  LS_FIELDCAT-ref_tabname = 'EKKO'.
  LS_FIELDCAT-TABNAME    = 'I_OUTPUT'.
  ls_fieldcat-seltext_L = 'Purchase Order'.
  ls_fieldcat-seltext_M = 'Purchase Order'.
  ls_fieldcat-seltext_S = 'Purchase Order'.
  APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material #
  CLEAR LS_FIELDCAT.
  LS_FIELDCAT-FIELDNAME    = 'MATNR'.
  LS_FIELDCAT-ref_fieldname = 'MATNR'.
  LS_FIELDCAT-ref_tabname = 'EKPO'.
  LS_FIELDCAT-TABNAME    = 'I_OUTPUT'.
  ls_fieldcat-seltext_L = 'Material'.
  ls_fieldcat-seltext_M = 'Material'.
  ls_fieldcat-seltext_S = 'Material'.
  APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM.                    " fieldcat_init
Thanks
Seshu

Similar Messages

  • F-40 Add Purchase Order Field

    Dear All,
    I awant to add purchase order field in T-Code F-40. Following is Scenario.
    Transaction to be processed : Outgoing Payment
    PstKy : 29 (Special G/L Debit)
    Account : (vendor Account)
    SGL IND : J
    uner more data also it is not showing. I have also used T-Code OB41 but still it is not showing PO field in first screen.
    Dinesh

    Hi,
    Following are the steps i have gone through.
    1. T-Code OBXT to search G/L Account, then i gone through the combination AcctypeSGL Ind (KJ). Then Chart of Accounts. Then i Listed all G/L which are in used.
    2. T-Code FS00, Field Status Group.
    3. T-code : OBC4, Then Field Status Group(which is in use of G/L Account) and marked purchase order field as required field under (material management/purchase order)
    Still it is not showing purchase order field in first screen of F-40.
    Dinesh

  • Disabling selected Purchase Order field(s) after released/approved

    Hi Experts,
    I have a requirement to disable specific Purchase Order fields after released via ME29N.
    For example, in Purchase Requisition - I can "Release Indicator - Field Selection Key" to control Purchase Requisition screen layout. However, for Purchase Order - the configuration for "Release Indicator" consist only standard default "Chgable" options.
    Question:
    Is there a way to customize the Purchase Order "Release Indicator" for screen layout based on customer requirements other that using the default as mentioned above?
    Thank you.
    Steven

    Hi Padmasri,
    I understand your explanation on the standard SAP behavior.
    Nevertheless, I'm looking for some flexibility to meet customer requirement. Like in Purchase Requisition, there is option to further customize the screen layout by linking it to the "Release Indicator".
    Therefore, apart from the standard 6 options given by standard SAP, can we add/customize the options? For example, my customer may one to change a field in the Purchase Order even after released.
    Thank you.
    Steven

  • Purchase order field change

    How can i change this length to be appear again

    Hello Mohamed,
    The length is adopted from data element definition in the system for that purchase order field.
    Please ensure you have authorization to change the standard layout of your PO screen. Also check the structure MEPO1211 and the field length of your required fields.
    Regards,
    Amit

  • ME21n - Purchase order field exit??

    Hi
    Does anybody know what the ME21n (enter purchase order) field exit would be so that I can default a particular G/L account (HKONT) when the account assignment group is 'F' & the purchasing org is a particular value?
    If you can also confirm if that is going to be possible with coding in that field exit I would appreciate it....
    Thanks all for your time...

    Screen Exit
    Please remove the TDS-related input fields on the PO entry screen on the customer data tab  (PO line details).
    - TDS account
    - TDS cost code
    - TDS sub code
    1.     Goto Transaction Code Me21n
    Fill the following fields
    Enter
    Give the input values in following fields from  ORGDATA TAB
    Purchasing org
    Purchasing group
    Company code
    Vendor
    Enter
    Select Customer Data tab like following
    USER EXIT  : MM06E005 (Customer fields in purchasing document )
    &#61664;  Goto  : T.Code : SMOD
    &#61664;     Give the Enhacement Name : MM06E005
    &#61664;     Click on Display
    &#61664;     Click on Components Push Button
    &#61664;     Double click on function module EXIT_SAPMM06E_016( Export Data to Customer Subscreen for Purchasing document item)
    &#61664;     Double click on Include ZXM06O01.
    &#61664;     Insert the following coding in that include
    SET PARAMETER ID 'BUK' FIELD g_ekko-bukrs.
      LOOP AT SCREEN.
        IF screen-name = 'EKPO_CI-ISMSUBTITLE1'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    *>>>>>>>>>>>>>>>>>>>>>> Begin of insert CR336/BG1 >>>>>>>>>>>>>>>>>>>>>>
        IF screen-name = 'G_EAN11'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    *<<<<<<<<<<<<<<<<<<<<<<< End of insert CR336/BG1 <<<<<<<<<<<<<<<<<<<<<<<
    *>>>>>>>>>>>>>>>>>> Begin of Changes for K896570/501411945 <<<<<<<<<<<<<
    IF screen-name = 'EKPO_CI-TDSACCOUNT'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    IF screen-name = 'EKPO_CI-TDSCOST'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    IF screen-name = 'EKPO_CI-TDSSUB'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    *>>>>>>>>>>>>>>>>>> End of Changes for K896570/501411945 <<<<<<<<<<<<<
    *>>>>>>>>>>>>>>>>>>>>>> Begin of insert SM1 >>>>>>>>>>>>>>>>>>>>>>
        IF ( screen-name = 'EKPO_CI-TDSACCOUNT'
          OR screen-name = 'EKPO_CI-TDSCOST'
          OR screen-name = 'EKPO_CI-TDSSUB'
          OR screen-name = 'TDS_TXT_1'
          OR screen-name = 'TDS_TXT_2'
          OR screen-name = 'TDS_TXT_3'
          OR screen-name = 'TDSACCOUNT-DESC'
          OR screen-name = 'TDSCOST-DESC'
          OR screen-name = 'TDSSUB-DESC'  ).
          IF g_ekko-bukrs(2) <> 'U6'.       "not a theatrical company
            screen-invisible = '1'.
            screen-input     = '0'.
          ELSEIF g_flag = 0.                "display only
            screen-invisible = '0'.
            screen-input     = '0'.
          ELSEIF g_flag = 1.                "change
            screen-invisible = '0'.
    *>>>>>>>>>>>>>>>>>> Begin of Changes for K896570/501411945 <<<<<<<<<<<<<
           screen-input     = '1'.       "Fharook Syed
            screen-input     = '0'.        "Fharook Syed
    *>>>>>>>>>>>>>>>>>> End of Changes for K896570/501411945 <<<<<<<<<<<<<
          ENDIF.
          IF screen-name = 'EKPO_CI-TDSACCOUNT'.
            screen-required  = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
    *>>>>>>>>>>>>>>>>>>>>>> End of insert SM1 >>>>>>>>>>>>>>>>>>>>>>
    &#61664; save & activate.
    &#61664; Repeat the above process in ME21N to see customer data fileds in CUSTOMER DATA tab
    After the above Modifications CUSTOMER DATA is   displaying like this
    rewars if useful

  • Pls.  tell  place in whole sap where purchase order field can be made req.

    can anyone tell me all those t.codes from where i can make purchase order a required field.
    i want to have control through purchase order.
    is it possible to have control if i make sorting key 014 in vendor recon account. and fsg g067 contains purchase order a required field. plus bank fsg g005 also contains purchase order as compulsory field.
    our problem is that whenever we see any vendors account open items , we are not able to see purchase order no in purchasing document. column.
    what i know is that using ob41 i can make po as required field for posting key 39 used for adv pmnt request, plus make po as sorting key plus, fsg g067 containd po required field.
    can any one help on this?

    question is still not answered.
    problem starts when fi person looks into vendors account.
    if vendor ram is to be paid rs 503456 regarding one of po and rs 503465 regarding any other po.
    but when these balances are being reflected in vendor account, fi person is not able to differentiate which amt relates to which po as no po no. is reflected as result of t,code fbl1n.
    so in that case it is possible that wrong pmnt is made to wrong po.
    my only problem is that how can we see this po no in purchasing document column. where in cofiguration there is problem?.

  • Finding Pending Purchase orders

    Hi Experts,
              Can any body help me for creating Report for pending purchase orders , What tables we need to use. I will give you the maximum points..
                                                                                    Satyendra.

    hi satyendra,
    For pending purchase orders you need to look at the table EKBE which shows the purchase order history.  For a particular purchase order and item this table shows all the goods receipts and invoices posted. The filed EKBE-VGABE shows the type of the posting ( goods receipt = 1, invoice = 2 etc) . Just subtract the already posted quantities for goods receipts and invoices( as per requirement) from the actual purchase order quantity to get the pending quantity for items.
    Please award points if this is helful.
    Regards,
    jaydip

  • Report to view pending Purchase Order for Release

    Hi,
    Is there any sap standard report through which we can view pending Purchase Order for Release.
    Regards,

    Hi,
    you can use transaction ME28, this can give information of pending purchase order for release on release level.
    but this transaction is used for releasing the collective release for purchase order. this is not an report.
    if you want transaction for reporting purpose only, you need to create a report or query on EKKO table. based on release indicator.
    vikas,

  • Purchase order Field LIke Material , Non editable by using Trax code Me22n

    Guru
    How to make Purchase order Field LIke Material , Non editable by using Trax code Me22n
    Thanks

    Hi
    Check this in SPRO- SAP IMG- Material Management - Purchasing- Purchase order- Define screen lay out at document level
    In this select the particular field selection key and change the material field to display.
    Hope it will do
    Regards,
    Raman

  • How to populate Pending Purchase Order.

    Hi,
    Can anyone help me,
    is there any function module to calculate the Pending purchase order.  or  can anyone tell me the logic for calculating the pending po. 
    Thanks & Regards
    Guhapriyan SUbrahmanyam

    Hi,
    Check this.May be it can help you.
    http://www.access-accounts.com/softwareinfo/businessprocesses/buyingandsuppliers.html

  • Purchase order field in Cash Journal

    Hi,
    We want to post expenses with reference to Purchase order in Cash Journal. Purchase order field is not available in the Cash Journal. How to update the purchase order field in Cash Journal.
    Regards,
    Azeem

    Hi,
    In Cash journal, there are fields which are standard from the program SAPMFCJ0 and Control FTCJ_E_POSTINGS.
    So you can see in FBCJ, while you post transaction line at the extreme right, you can see "configuration" there you can see the available fields. If you want to include, contact ABAP consultant or SAP team.
    Regards,
    Ramesh.

  • BAPI or Function Module for getting Pending Purchase Orders Information

    Dear Sir,
    We have input information comprising of  :
    List of Item Codes
    Plant
    WBS Element
    For this input data set , We want to know the list of Pending Purchase Orders information . To get the desired information , we are looking for the suitable  BAPI / Function Module which can provide the desired information .
    I understand that there is ME2L tcode availavle which can give the desired information .
    But as we need to use the information in one of our Z program , so we need the  BAPI / Function Module  .
    Kindly help us to know the suitable  BAPI / Function Module  available for getting the desired information .
    With Thanks and Rgds
    Sonia Agarwal

    Hi
    Check if this is helpfull:
    BAPI_PO_GETDETAIL
    BAPI_PO_GETDETAIL1
    regards,

  • VKM1 Status and Purchase Order Fields

    Hi Everyone,
    I'm new with SD and not familiar with transaction VKM1. I have a task that needs to get the corresponding Status field and Purchase Order field for a corresponding VBELN. To what table can I map these data?
    Please help.
    Many Thanks!

    Hi
    Kindly use the belwo  tables and fields
    VBAK--BSTKD --POurchase order
    VBUP-GBSTAOverall processing status of the SD document item
    Regards
    Damu

  • Purchase order field optional for Movement type

    Hi SAP friends ,
    Please let me know the config path to make the purchase order field as optional for particular mvt types that are used in MIGO transaction to receive the overage stock or reversal of overage stock
    Regards,
    JR.

    Hi John,
    If your posting a 101 movement against a purchase order then there is probably no way of making the PO optional, as this is a designed process
    I guess I need to understand the process in more detail
    In the Interim please look at the following customising settings
    Materials management > Inventory management > Inventory management and PI > Field selection for for goods movement
    Materials management > Inventory management > Inventory management and PI > settings for enjoy transactions > fields for goods movements
    Regards
    Steve

  • Table for picking PURCHASE ORDER field corresponding to accounting document

    Dear All
    Table for picking PURCHASE ORDER field corresponding to accounting document.
    Thanks
    Rahul Jain

    Dear Jayram
    I know that Purchase order field can be picked from BSEG table but i am not able to capture the data into it. Whenever i book a invoice through FB60 or MIRO i give the reference PO number which is not getting updated in BSEG, BSAK and other relevant tables.
    Thanks
    Rahul Jain

Maybe you are looking for