Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Enhancement (ME23N)

Former Member
0 Kudos

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

12 REPLIES 12

Former Member
0 Kudos

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.

Former Member
0 Kudos

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?

0 Kudos

Hi Abhi

I am workin on ECC 5.0. I am not gettin y this is not workin. can u plz try this on ur system and let me the solution. plz try to do this once. its so urgent.

Regards

Adams

0 Kudos

Hi

You should insert your code in the PBO of the subscreen where yuor display your custom fields.

Anyway remember the BADI ME_PROCESS_PO_CUST is released from SAP rel. 4.7 and it can be used instead of that enhancement.

Max

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

i hav set the break-point in tht class. but its not reading the values of Subscreen.

0 Kudos

Hi Abhijit

can u plz giv me ur yahoo id or Gmail Id? so tht we can do online chat.

0 Kudos

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