Skip to Content
author's profile photo Former Member
Former Member

Fine-tuning implementation of exit MM06E005 for POs: edit/display new field

Hello experts

I'm in the process of adding a new customer field to the standard PO transactions (ME21N, ME22N, etc.). I've already found and implemented exit MM06E005, and using it I've added a customer field at header level. The new field is also updating to the database when needed. I'm in the process of fine-tuning the new field and making it more user-friendly, and this is where I'm a bit stuck. I'm on NW04, SAP version 640.

My main question is about the edit/display setting of the field . It should be in output-only when viewing the whole document as display, and hopefully it can be hidden when working with a document type that does not need the field.

At the moment, the field is always input-ready no matter which transaction I use. I've been able to make the field update its contents only when in change mode (i.e., although you can input a new value in ME23N, the change will not be registered to the database and will revert back to the original value). I've tried adding a LOOP AT SCREEN on exit EXIT_SAPMM06E_006 (Header screen PBO), however the loop doesn't seem to execute; when debugging the exit simply "jumps" out of the exit code. I also tried validating the transaction code and the transaction type (whether V, H, or A) when switching from display to change mode in a transaction, but these didn't seem to change when I switched views in a transaction.

My second, easier question would be if it is possible to change the title of the tab from "Customer Data" to something else, and if so, how.

I'd appreciate any help you could provide. Thanks in advance.

Regards,

Juan Ramos

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2007 at 03:51 PM

    Juan,

    Are you checking the I_TRYTP (importing parameter) int he exit function. As far as I can see the values do get changed to 'V' or 'A' depending on ME21n OR me22n.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello

      I_TRTYP is a predefined input parameter for the user exits, but only for EXIT_SAPMM06E_006 and EXIT_SAPMM06E_007. If you want to use it in other portions of your implementation, you have to define your new I_TRTYP LIKE T160-TRTYP in the TOP include for the exit function, then populate it in either exit 006 or 007.

      Also, it's usually easier to get a response if you post a new question in its own topic instead of an answered topic.

      Hope this helps!

      Regards,

      Juan Ramos

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.