Regarding ME21N Transaction

Hi Guys,
  Greetings.......
       I need a helping hand of you in my search of code. I want to know the piece of code in ME21N
where SAPScript is called when we click on Print Preview push button.
Thanks in Advance,
Lekha.

Hi ,
If you are looking for the code which invokes "Print Preview ", then read the below,
In the include FM06PE02, there is a form call ENTRY_NEU, this is the entry point to print the form, notice that there is a function module in this form called ME_PRINT_PO. This is the function module that will print the PO.
Hope this helps you.
Reply if you need some more information.
Vikki.

Similar Messages

  • ISSUE REGARDING ME21N TRANSACTION.

    HI,
      IN ME21N TRANSACTON, FOR ONE PO NUMBER THERE WILL BE MULTIPLE ITEMS. MY ISSUE IS THOSE MULTIPLE ITEMS WE ENTER SHOULD BE OF THE SAME PLANT. THAT IS, IN FIRST LINE ITEM ,IF WE ENTER PLANT AS 400,THEN FROM THE NEXT LINE ITEM IT SHOULD ALLOW ALL OTHER ROWS RELATED TO THAT 400 ONLY. IF ANY PLANT IS ENTERED OTHER THAN 400 IN SUBSEQUENT ROWS ,THEN IT SHOULD DISPLAY THE ERROR MESSAGE THAT "ONLY 400 PLANT IS ALLOWED BUT NOT OTHERS."
    PLZ LET ME KNOW THE RELAVANT USER-EXIT AND THE CODE TO DO THIS .
    POINTS WILL BE AWARDED. THIS IS URGENT REQUIRMENT.
    PLZ LET ME KNOW AS SOON AS POSSIBLE.
    THANKING U IN ADVANCE,
    A.SRINIVAS.

    Hi,
    capslock unlocked:
    In me21n transacton, for one po number there will be multiple items. My issue is those multiple items we enter should be of the same plant. That is, in first line item ,if we enter plant as 400,then from the next line item it should allow all other rows related to that 400 only. If any plant is entered other than 400 in subsequent rows ,then it should display the error message that "only 400 plant is allowed but not others."
    Plz let me know the relavant user-exit and the code to do this .
    Points will be awarded. This is urgent requirment.
    Plz let me know as soon as possible.
    Thanking u in advance,
    A.srinivas.
    Look you here:
    In this step, you develop enhancements for Purchasing.
    The following SAP enhancements are available for the Purchasing area:
    AMPL0001
    User subscreen for additional AMPL data (Manufacturer part number)
    LMELA002
    Adoption of batch number from shipping notification at time of posting of a goods receipt
    LMELA010
    Incoming shipping notification: adoption of item data from IDoc
    LMEQR001
    User exit for source determination
    M06B0001
    Role determination for release of requisitions
    M06B0001
    Changes to communication structure for release of requisitions
    M06B0003
    Number range and document number
    M06B0004
    Number range and document number
    M06B0005
    Changes to communication structure for overall release of purchase requisitions
    M06E0004
    Changes to communication structure for release of purchasing document
    M06E0005
    Role determination for release of purchasing documents
    ME590001
    Grouping of requisitions for PO split in transaction ME59
    MEETA001
    Determination of schedule line type (backlog, immediate requirement, forecast)
    MEFLD004
    Determination of earliest delivery date for checking at time of goods receipt (PO only)
    MELAB001
    Generation of forecast delivery schedule: realization via creation profile
    MEQUERY1
    Enhancement for document overview ME21N / ME51N
    MEVME001
    Calculation of default GR quantity and over/underdelivery tolerances
    MM06E001
    User exits for inbound EDI messages and outbound purchasing documents
    MM06E003
    Number range and document number
    <b>MM06E004
    Control of import data screens in purchase orders
    MM06E005
    Customer fields in purchasing documents</b>
    MEREQ001
    Customer's own data in purhcase requisitions
    MM06E007
    Change document for requisitions when converting into POs
    MM06E008
    Monitoring of contract target value in case of release orders
    MM06E009
    Relevant texts for "Texts exist" indicator
    MM06E010
    Field selection for vendor address
    MM06E011
    Activation of requisition block
    MM06L001
    Exits for determination of ratings in vendor evaluation
    MMAL0001
    ALE source list distribution: outbound processing
    MMAL0002
    ALE source list distribution: inbound processing
    MMAL0003
    ALE purchasing info record distribution: outbound processing
    MMAL0004
    ALE purchasing info record distribution: inbound processing
    MMDA0001
    Default values for delivery addresses
    MMFAB001
    User exit for generation of releases
    MRFLB001
    Control items during release creation
    LWBON001
    Enhancement of LIS update through extension of the communication structure MCKONA (business volumes and rebate income)
    LWBON003
    Change settlement data for end-of-period rebate settlement before creation of settlement documents
    LWSUS001
    Customer-specific source determination in Retail
    Regards,
    Clemens

  • Grayout of  component screen  fields in ME21N transaction

    Hi experts,
       I have a problem while creating subcontracting PO i want to gray out the fields of component screen...in ME21N transaction...is it possible through the screen varient or else should i go for exit  ??...could u please help me in finding  the right procedure...........
    Best Regards,
    shanker

    Go to the screen where u want to make the changes.
    Click on System -> Status. Double click on the screen Number (like 1121).
    Then on the PBO module screen click on 'Layout'. You will go to graphical screen painter.
    Then DOUBLE CLICK on the column/field you want to gray out and on Attribute part, Program Input -> Not possible .(save + activate)
    You will need an Access Key to change the standard SAP Screen...
    Fawaz

  • Lsmw for me21n transaction

    Hi ,
    I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
    Thanks & Regards,
    sreehari
    Moderator Message: Search for available information on the web before posting
    Edited by: kishan P on Sep 3, 2010 9:51 AM

    Hi ,
    I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
    Thanks & Regards,
    sreehari
    Moderator Message: Search for available information on the web before posting
    Edited by: kishan P on Sep 3, 2010 9:51 AM

  • How to update Partner function tab in ME21N Transaction

    Dear Guru's,
    I have a requirement to call a selection screen in ME21N transaction which will show list of vendors available. the selected vendor in the selection screen should be updated with parnter function 'CR' in the Parnter function tab of ME21N Transaction and EKPA table also.
    Thanks & Regards,
    Sridhar R Perumalla.

    Hi,
    Use the function module MM_UPDATE_PARTNERS  for updation ....and wite the code in ME_PROCESS_PO_CUST badi in process_header method...
    in PROCESS_HEADER method use GET_DATA to get the entered vendor number in PO.
    Thanks,
    Shailaja Ainala.

  • Error in ecatt testing for me21n transaction.

    Hi All,
    I have created Test script, test data container and Test configuration for ME21N (create purchase order) transaction
    While executing test configuration, I got below error message.
    S00349 Field COBL-KOSTL. does not exist in the screen SAPLMEGUI 0014
    Please help me for further action.
    Many thanks
    Vikas

    Hi Vikas,
    Before running the test configuration, Please check ME21N transaction manually and find out the field
    COBL-KOSTL and check whether it is mandatory or not.
    If it found check your script whether that field is properly recorded or not.
    May be this field is newly added as mandatory for that transaction
    Regards,
    Santosh.
    Edited by: ABAP Santosh on Oct 19, 2009 9:17 AM

  • Item level Info record PO text field in Purchase Order Me21n transaction

    Hello All,
    I have to enter some information in the PO info record text field (which is in Item level Texts tab of ME21n transaction ) using an user-exit at the time of creation/change of purchase Order.
    Does anyone knows the user-exit and how to update the text field ?
    Any help is really appreciated
    Thanks
    Ricky

    Check with : Enhancement : MM06E005
    Function module : EXIT_SAPMM06E_017
    This user exit will trigger when you enter the data in item level(Both creation and change)

  • Read the table row data and dispaly it in the ME21n transaction

    Hi All,
    i'm new to ABAP and OO ABAP .Please somebody help me out for my req. My req is , when i double click on the table row which is having PO details , then that data  should be displayed in the ME21n transaction. please some on tell me how to achive this using SALV class..
    thanks,
    Rajeev.

    Hi rajeev bikkani ,
    you can use the events 'Double_click' in alv. below given the code, try out.
    class lcl_list_event_handler definition.
    PUBLIC SECTION.
    methods on_double_click
          for event double_click of cl_gui_alv_grid
            importing e_row .
    endclass.
    class lcl_list_event_handler implementation.
    method on_double_click.
    call transaction 'ME21N'.
    ENDMETHOD.
    ENDCLASS.
    before executing the method SALV.
    write code    
      set handler obj2(reference for lcl_list_event_handler) ->on_double_click
                    for obj1(referenece for cl_gui_alv_grid).

  • Capture error messages in message log in ME21n transaction

    Hello friends,
    i have a question here.I have created a Z-table which contain data about material groups which will not be used for the particular plant.when we create a PO now ,i am checking for each line item whether the material group entered for each line item exists in Z-table or not.If exists then throw a message 'XXXXXXXX.'
    as this is an enhancement to Me21n transaction , i am using User exit EXIT_SAPMM06E_012 .Now my problem is for each line item i am checking for condition and throwing a message.My requirement is show up all messages(for eg : If more than 1 line item contain errors for the same condition) in the message log of the transaction ME21n screen.I dont think we can do this in the User exit as showing up messages in ME21n is standard functionality
    Could anyone please give any idea how to achieve this??
    Thanks in advance!

    Hi,
    You may write to application error log or call screen to show error log in user exit.
    Cheers.
    ...Reward if useful.

  • Steps to create STO using ME21N transaction

    Hi,
    Can anyone give me the steps to follow to create STO using ME21N transaction. When i try to create it, i am getting the error message : Not possible to determine shipping data for material 3863...
    Please guide me...
    Thanks in Advance,
    Phani Kumar. S

    I got the same error it was because in customizing you specify plant master data that is linked to a customer master record.  You need to make sure the customer master data is set up from a sales perspective.  E.g. customer must be extended to appropriate sales org. and division.  Same with the material master but the customer master was my problem.  This is configuration and you will have to move it through the transport queue so if you have a problem in your production system it will require a transport.
    Jeremy McGurk

  • User_Exit (Condition Class) for ME21N Transaction

    Hello Gurus !!.
    I need one User_Exit for the ME21N Transaction what
    is activate into the moment of Conditions Class input
    (tax), the idea is to take one value of one Z table, make
    one calculate betwen Z table Value and Condition Class tax
    whose result will be return to the Value of Condition.
    Thank Very Much for yours help.

    Hi,
    You can try any one of the user exit;
    MM06E005 - Customer fields in purchasing document
    MEQUERY1 - Enhancement to Document Overview ME21N/ME51N
    Bye,
    Muralidhara

  • ME21n transaction not working in IDES

    Hi All,
    ME21n transaction not working in IDES. when i try to enter a purchase order and display the header data its giving dump.
    thanks,
    Poonam

    when i enter the transaction and press enter its giving dump. how will i debug?
    i am getting this dump:
    Short text
        Inconsistency in the Dictionary for the structure "WB2_MSEG".
    What happened?
        Error in the SAP kernel.
        The current ABAP "SAPLWB2B_HANDLE_WORKAREA" program had to be terminated
         because the
        ABAP processor detected an internal system error.
    Edited by: Poonam Naik on Mar 10, 2009 4:43 AM

  • Regarding CJ02 transaction

    Hi all,
    I am facing a problem regarding CJ02 transaction.
    The problem is when I am saving the classifications of the project it is not reflected back to the corresponding fields of respective table.
    It would be very helpfull if anybody sahres his/her any idea regarding this.
    Thanks in advance.

    Hi
    Is it the field name or the field value which u have given? Did u add custom fields to this table?
    Regards,
    Vishwa.

  • Regarding CS03 transaction

    Hi friends,
    I have a simple query regarding the transaction CS03. When I give the Material Number, Plant and BOM Usage as input, I would get the list of components for this material.
    Inside the transaction, is a CHECKBOX field ASM - this Indicates that the component for this material has its own BOM or has further components).
    Could anyone tell me in which SAP table this information is stored i.e. an indicator to tell us if the component/material has further BOM or not.
    I checked MAST and STPO tables but could not figure out the right field.
    Awaiting your valuable inputs.
    Thank You.
    Regards,
    Gayathri.

    hi gayathri,
    1.
    the bom can exist for HALB or FERT .
    u can dimnish the material not having a bom on this category .
    i.e to say material type 'RAW' dosent hav  a bom .
    2.
    like check out for table "MVKE" (Sales Data for Material) and in here check the fields
    MVKE-MTPOS (Item category group from material master)MVKE-DWERK(Delivering Plant).
    now giv the material and execute for initially dont giv a plant , and execute .
    proceed with parent-matrial in bom  and execute ,
    u'll see the list of materials assigned in a particular sales area now check for MTPOS status this will have a category called LUMF ( this u will hav only for parent)
    now say that the parent have 4 child materials (say)of which one has subassemblies so as u said it will hav a ASM check box ticked in CS03, now take this material and goto mvke and repeat the procedure and check the MTPOS status this will have item category like 'NORM'
    remember for parent it was 'LUMF'
    now for child(having subass;les) we got'NORM'
    now check for same which dosent have a subassemblies from the child items it will be like 'ZATP' or 'XXXX' but not LUMF or NORM.  to tell that it dosent hav further bom.
    generalise the conclusion for all the materials(parent childorphans)if found okay apply this logic.
    second alternative is ,
    check the transaxction cs12.
    give  BOm material and observe that the first field(dglvl) ...
    it indicates the level of that material in thta BOM.
    exact indiaction is whether it has sub assemblies in that Material is the
    field (BOMFL) If it has sub assemblies then it will be' X'.
    see if u can make any hit in the tables using this relation above
    regards,
    vijay.

  • Regarding TEXT display in ME21n transaction

    hi,
    in ME21n tansaction, m getting TEXT ( Explanatory text for line item ) for some purchase order documents n not getting TEXT for some purch. order doc's. For this text Exit "MBCF0002" WAS USED. plz let me know wht to do.

    Hi
    That enanchement should be to updated the item text, so u need to insert a text if it's initial and/or the po is of a certain type: u should give us more detail in order to know when the text has to be updated.
    Max
    Edited by: max bianchi on May 28, 2008 6:35 PM

Maybe you are looking for