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 )
  Goto  : T.Code : SMOD
     Give the Enhacement Name : MM06E005
     Click on Display
     Click on Components Push Button
     Double click on function module EXIT_SAPMM06E_016( Export Data to Customer Subscreen for Purchasing document item)
     Double click on Include ZXM06O01.
     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

Similar Messages

  • Purchase order screen exit SAPMM06E,screen number 0111

    Hi
    I am working on purchase order screen exit SAPMM06E and screen number 0111
    i am able to see customer screen in transaction but program control is not going to flow logic
    due to that i couldn't able to fetch data into custom fields.pls suggest me wat to do.
    Thanks & Regards
    Vinay

    Hi Vinay ,
    I think you are implementing the screen exit with the enhancement component 'MM06E005'.
    if thats the case you add your fiels in the screen area provided
    in the screen 'SAPMM06E' 0111 by creating the subscreen in the SE51 with the name space 'SAPLXM06' 0111 with then will be reflected (fields added) in the ME21n transaction .
    You have to write your logic in the EXITS provided in that enhancement component
    You have to write your logic in the exit 'EXIT_SAPMM06E_008'
    as it imports data from screen field which you placed in the tcode.
    Revert back to me for any queries.
    Reward points if useful.
    Thanks ,
    Surya Pydikondala.

  • 221 movement type with Purchase Order Field mandatory in MIGO

    Hi,
    When i enter , 221/261 movement type in SAP in MIGO screen .
    What is the way to make purchase order field should displayed  ? in SAP
    Regards,
    Rajendra D. Sawant

    can you please explain the business need of getting a Purchase order number for while issuing the material with 221 /261
    i have also checked in OMJJ eventhough the field EBELN is available in field catalouge but by adding it in OMJJ in 221 the screen does not appear there & probably the reason is that SAP does not support the need of that field there
    IF at all you want to get a PO field in Screen then first copy 221 to create a new movement type and then look for some screen exit and enhance the table of MSEG/MKPF with a custom field by appending a structre.
    Edited by: Sap: IN on Oct 17, 2011 11:45 AM

  • 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

  • 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

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

  • 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

  • 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

  • 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

  • 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

  • Purchase Order User Exit (ME21N)

    Hello experts,
    I have a request to enhance SAP for authorization when a user creates a PO (ME21N)that all of the line items have the same purchasing group as the what is in the header, or it cannot be created.
    Anybody have any idea what exit this would be in?
    Thanks.

    Hi Tom,
    Here are the user exits available for ME21N.
    AMPL0001 User subscreen for additional data on AMPL
    LMEDR001 Enhancements to print program
    LMELA002 Adopt batch no. from shipping notification when posting a GR
    LMELA010 Inbound shipping notification: Transfer item data from IDOC
    LMEQR001 User exit for source determination
    LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001 Customer-Specific Source Determination in Retail
    M06B0001 Role determination for purchase requisition release
    M06B0002 Changes to comm. structure for purchase requisition release
    M06B0003 Number range and document number
    M06B0004 Number range and document number
    M06B0005 Changes to comm. structure for overall release of requisn.
    M06E0004 Changes to communication structure for release purch. doc.
    M06E0005 Role determination for release of purchasing documents
    ME590001 Grouping of requsitions for PO split in ME59
    MEETA001 Define schedule line type (backlog, immed. req., preview)
    MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
    MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1 Enhancement to Document Overview ME21N/ME51N
    MEVME001 WE default quantity calc. and over/ underdelivery tolerance
    MM06E001 User exits for EDI inbound and outbound purchasing documents
    MM06E003 Number range and document number
    MM06E004 Control import data screens in purchase order
    MM06E005 Customer fields in purchasing document
    MM06E007 Change document for requisitions upon conversion into PO
    MM06E008 Monitoring of contr. target value in case of release orders
    MM06E009 Relevant texts for "Texts exist" indicator
    MM06E010 Field selection for vendor address
    MMAL0001 ALE source list distribution: Outbound processing
    MMAL0002 ALE source list distribution: Inbound processing
    MMAL0003 ALE purcasing info record distribution: Outbound processing
    MMAL0004 ALE purchasing info record distribution: Inbound processing
    MMDA0001 Default delivery addresses
    MMFAB001 User exit for generation of release order
    MRFLB001 Control Items for Contract Release Order
    For your case, please check <b>MM06E005</b> or you can try BADI <b>ME_PROCESS_PO_CUST</b>.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Personal Settings in ME21n Purchase Order

    Hi frnds,
      In Me21n -- create purchase order screen i have a tab called as Personal settings where i can go and assign some default fields like Plant , StrLoc ............. .
    Now i want to deactivate it for some particular users .
    How to to it ? At configuration level should i do it .Or can the Basis person go and remove the object or field from that particular list.If yes what is that object or field which the Basis person should deactviate ??
    Regards
    Rakesh

    Hi
    This can be done through user specific settings.
    For the particular user click on the user settings and remove the default values and save.
    It will not display.
    REgards,
    Raman

  • Create Purchase Order : User Exit

    Hi,
    When creating a Purchase Order, before saving it, I want to check the line items for certain conditions and want to check or uncheck the Goods Receipt indicator based on the condition.
    Could someone please let me know the user exit for this. I would really appreciate your help.
    Thank You,
    Rekha

    Here is a program which shows you user exits by transaction code.  Implement the program, run it, and enter the transaction code, hit F8.  This will give you a listing of exits.  Look thru them, look at the function modules tied to them and look at the FM signature to see if your data is available.  I don't know for sure if any will actually update a value.
    report z_find_user_exit no standard page heading.
    tables: tstc, tadir, modsapt, modact,
            trdir, tfdir, enlfdir, tstct.
    data : jtab like tadir occurs 0 with header line.
    data : hotspot(30).
    parameters : p_tcode like tstc-tcode obligatory.
    at line-selection.
      get cursor field hotspot.
      check hotspot(4) eq 'JTAB'.
      set parameter id 'MON' field sy-lisel+1(10).
      call transaction 'SMOD' and skip first screen.
    start-of-selection.
      perform get_data.
      perform write_list.
    *       FORM get_data                                                 *
    form get_data.
      select single * from tstc
                  where tcode eq p_tcode.
      check sy-subrc eq 0.
      select single * from tadir
                where pgmid = 'R3TR'
                  and object = 'PROG'
                  and obj_name = tstc-pgmna.
      if sy-subrc ne 0.
        select single * from trdir
                 where name = tstc-pgmna.
        if trdir-subc eq 'F'.
          select single * from tfdir
                         where pname = tstc-pgmna.
          select single * from enlfdir
                         where funcname = tfdir-funcname.
          select single * from tadir
                         where pgmid = 'R3TR'
                           and object = 'FUGR'
                           and obj_name eq enlfdir-area.
        endif.
      endif.
      select * from tadir into table jtab
                 where pgmid = 'R3TR'
                   and object = 'SMOD'
                   and devclass = tadir-devclass.
      select single * from tstct
              where sprsl eq sy-langu
                and tcode eq p_tcode.
    endform.
    *       FORM write_list                                               *
    form write_list.
      format color col_positive intensified off.
      write:/(19) 'Transaction Code - ',
      20(20) p_tcode,
      45(50) tstct-ttext.
      skip.
      if not jtab[] is initial.
        write:/(95) sy-uline.
        format color col_heading intensified on.
        write:/1 sy-vline,
        2 'Exit Name',
        21 sy-vline ,
        22 'Description',
        95 sy-vline.
        write:/(95) sy-uline.
        loop at jtab.
          select single * from modsapt
          where sprsl = sy-langu and
          name = jtab-obj_name.
          format color col_normal intensified off.
          write:/1 sy-vline,
          2 jtab-obj_name hotspot on,
          21 sy-vline ,
          22 modsapt-modtext,
          95 sy-vline.
        endloop.
        write:/(95) sy-uline.
        describe table jtab.
        skip.
        format color col_total intensified on.
        write:/ 'No of Exits:' , sy-tfill.
      else.
        format color col_negative intensified on.
        write:/(95) 'No User Exit exists'.
      endif.
    endform.
    Regards,
    Rich Heilman

  • Regarding Purchase order User-exit

    Hello friends,
    Here is the situation.
    when we create purchase order ... I need to modify the planned delivery field value under delivery tab at item level.
    For this I found user exit. 'EXIT_SAPMM06E_016' and I have written the logic in the include program.
    when I tested in debbugmode... the cursor is not at all comming to that point. It was failing always at the function module 'MODX_FUNCTION_ACTIVE_CHECK'.
    I don't know alwys active field showing blank. I think we need to activate the user exit some where. how to do and where to do?
    plese help me ..
    extract the code --from include program MM06EF0C_CUSTSCR1_ITEM_SET_D03
    User-Exit für Positionsfelder versorgen (PBO)
    FORM custscr1_item_set_data_pbo USING im_no_screen LIKE fc_call.
      DATA: l_enj_call TYPE c.
      STATICS: first_call(1) TYPE c VALUE 'X',
               active        LIKE sy-calld.
      IF NOT first_call IS INITIAL.
        CLEAR first_call.
        CALL FUNCTION 'MODX_FUNCTION_ACTIVE_CHECK'
          EXPORTING
            cprogname  = 'SAPMM06E'
            funcnumber = '016'
          IMPORTING
            active     = active
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
        IF NOT sy-subrc IS INITIAL.
          CLEAR active.
        ENDIF.
      ENDIF.
      CHECK NOT active IS INITIAL.         ==========================> always active sowing blank
      IF fc_vorga EQ cva_en.
        l_enj_call = 'X'.
      ELSE.
        l_enj_call = space.
      ENDIF.
    *-Define Fields:
      DATA: l_ci_ekpo LIKE ekpo_ci,
            lt_usr_tekpo LIKE bekpo OCCURS 0,
            lt_usr_teket LIKE beket OCCURS 0,
            lt_usr_tekkn LIKE ekknu OCCURS 0,
            lt_usr_tkomv LIKE tkomv OCCURS 0.
    *-Copy Tables:
      MOVE-CORRESPONDING ekpo TO l_ci_ekpo.
      lt_usr_tekpo[] = pot[].
      lt_usr_teket[] = ett[].
      lt_usr_tekkn[] = knt[].
      lt_usr_tkomv[] = tkomv[].
    *-User Exit
      CALL FUNCTION 'EXIT_SAPMM06E_016'
        EXPORTING
          i_ekpo      = ekpo
    ===============
    thanks in advance
    Regards
    Raghu

    Hi Raghunath
    I hope you have included your enhancement in a project and activated the project.
    1-Needed help
    2-SMOD and CMOD
    Hope it is helpful.
    Regards
    Neha

Maybe you are looking for

  • Struggling with the language as a whole.

    I'm in college and studying Computer Science. After a full semester studying Python, I feel good enough to do a bunch of different things with Python. I am now in a Java only CSC course and I'm just not understanding the concepts. When our professor

  • WS TO IDOC STILL not resolved

    HI all, This question remains unresolved I have Provided the trace contents as asked by XIans. I am Again sending the contents of the trace.   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Response   --> - <SAP:Trace xmlns:SAP="htt

  • Use dynamic ORDER BY with DISTINCT in SQL SERVER

    DECLARE @OrderBy VARCHAR(100) SET @OrderBy='DealerCode ASC' SELECT DISTINCT TOP (10)         d.Id, d.DealerCode,d.AffiliationCode,d.LegalName,d.ShipperCode,d.PrimaryUserId,d.PrimaryContactId,d.Zip,                   d.Address1,d.Address2,d.IsActive,u

  • Tabular: set measure to blank() for certain dimensions

    Hi, I know there is no scope() equivalent in dax but i'm hoping there's some other combination of functions that will give me the same result I have a stock movement fact table and I have two running totals on it. One is is a 'stock to date' value wh

  • ACE - TCP Options for Proxy-Connections

    Hi all, I have the issue that my ACE does not seem to allow tcp options with L7 proxied connections to the servers. For the client side connection I see the TCP option timestamp for example, but unfortunately the ACE itself does not put the timestamp