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: 

add new fields in PO

Former Member
0 Kudos

hi there

I have added 2 new fields at item level in a PO, using the exit MM06E005 but I want the fields to appear for only certain PO types

so in screen painter, I assigned the attributes 'Groups' to ZDM(which is the new PO type) but that field is getting displayed for all PO types

is there somthing ive missed out?

1 ACCEPTED SOLUTION

asik_shameem
Active Contributor
0 Kudos

Hi

In the exit EXIT_SAPMM06E_016,

SET PARAMETER ID 'ZBSART' FIELD i_ekpo-bsart.

In PBO of SAPLXM06, Screen number 0111,

GET PARAMETER ID 'ZBSART' FIELD gv_bsart.

IF gv_bsart NE 'ZDM'.
  LOOP AT SCREEN.
      screen-invisible = 1.
      MODIFY SCREEN.
  ENDLOOP.
ENDIF.

4 REPLIES 4

former_member182354
Contributor
0 Kudos

add code in the exit in such a way that the fields are displayed only for certain type of PO..

Raghav

Former Member
0 Kudos

Hi sia,

Write ur code in the exit between

if <tablename>-BSART = 'ZDM'.

endif.

Regards,

Amit

0 Kudos

sorry for that

but do u know in which exit, I should insert the code and what I should code?

asik_shameem
Active Contributor
0 Kudos

Hi

In the exit EXIT_SAPMM06E_016,

SET PARAMETER ID 'ZBSART' FIELD i_ekpo-bsart.

In PBO of SAPLXM06, Screen number 0111,

GET PARAMETER ID 'ZBSART' FIELD gv_bsart.

IF gv_bsart NE 'ZDM'.
  LOOP AT SCREEN.
      screen-invisible = 1.
      MODIFY SCREEN.
  ENDLOOP.
ENDIF.