Skip to Content
avatar image
Former Member

Screen Enhancement (ME23N)

Hi

I have created two new fields using 'MM06E005' exit in header of Tcode 'ME21N'. both the fields are in 'Customer Data Tab'.

I have assigned group as 'G1' in to the screen element.

I am writing below mention code in exit 'MM06E005' and component 'EXIT_SAPMM06E_006'.

IF TRTYP EQ 'A'.

break-point.

LOOP AT SCREEN.

IF SCREEN-GROUP1 EQ 'G1'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

In this only one value is comin in the screen table i.e. 'TAB' and after one loop its coming out of the Loop.

if i write this code in the PBO of sub-screen then cursor is not goin into this.

I want to disable both the fields in Display mode of purchase Order. Plz let me know the procedure for doing enable both the fields or if there is any other exit for this?

Regards

Adams

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    May 03, 2006 at 07:03 AM

    Hey Adams,

    1 . The code to modify the screen is always written in the PBO event.

    2. you can use :

    IF TRTYP EQ 'A'.

    break-point.

    LOOP AT SCREEN.

    IF SCREEN-GROUP1 EQ 'G1'.

    SCREEN-INPUT = 0.

    SCREEN-output = 1.

    ENDIF.

    modify screen.

    ENDLOOP.

    ENDIF.

    Hope this helps.

    Regards,

    Kunal.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 03, 2006 at 07:21 AM

    Hello Adams,

    I think we had lot of exchange during last wk and the problem doesn't seems to have resolved. Can u tell me on which SAP version u r working?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi max

      i m writing the Code in POB of subscreen. but cursor hi not goin in the PBO of subscreen. plz try it if u can and let me know the solution ASAP.

      Regards

      Adams

  • avatar image
    Former Member
    May 03, 2006 at 07:28 AM

    HI

    GOOD

    HEREWITH I AM GIVING SOME OF THE OTHER USEREXITS OF ME23N,YOU CAN TRY THEM OUT.

    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

    THANKS

    MRUTYUN

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 03, 2006 at 08:19 AM

    Hello Adams,

    Can u atleast check if the program is reaching the IF statement as I am not sure if TRTYP is available. What I would suggest is set break point on the

    IF TRTYP EQ 'A'. and also if u could set breakpoint on the screen exit. I hope u are using 0101 screen.

    Also set a break point on the line 6 in CL_FOREIGN_APPLICATION_VIEW_MMCM009 (method) and c if it is calling screen 0101.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Abhi

      TRTYP is not avaiable in the PBO of subscreen. Instead i am using

      if Sy-tcode eq 'ME23N'.

      but the thing is that cursor is not goin in the PBO of the the Subscreen. Its not readin the values of subscreen.

      Regards

      Adams

  • avatar image
    Former Member
    May 03, 2006 at 08:51 AM

    Did u set the break-points as indicated and checked?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      If you're managing your custom fields for header you have developerd the subscreen 0101 of program SAPLXM06, so you have to insert your code in it.

      Max