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: 

new field in Enjoy PO (ME22N) on item level. not changable.

Former Member
0 Kudos
272

I searched the forum for this, but hmmm was kinda flooded with stuff not belonging to my subject. Maybe we should have Search courses...

So dudes this is the first time i have to adopt/enhance SAPLMEGUI.

I Appended include CI_EKPODB.

Since this is included in MEPOITEM i didnt had to append MEPOITEM.

My field is on the business-tab on item level. (Dynrpo 1322).

So i appended MEPO1322.

Then i modified Dynrpo 1322 (as it was already modified) and added my new field.

For testing issues i took a PO and used SE16N and &sap_edit to get some value into my new field for a certain PO-item.

When i then tried ME22N with my PO i saw my field on the right position and even populated with the value i had just set.

The thing is that even tho i´m in ME22N it is not changable.

Are there any documentations on how to modify/enhance/whatever PO items in enjoy scenario?

Having a look at MEPOITEM it has 2 big includes:

MEPOITEM_DATA "according to comments those should be changable

MEPOITEM_TECH "according to comments those should NOT be driectly changable

But since CI_EKPODB is included in MEPOITEM_DATA i get the idea that my field should be changable.

Sorry if i didnt search properly, i tried, maybe you can give me a hint how to imrpove my searches

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos
155

Hi,

Did you check the screen layout ( 1322 ) ( Input field / output field check boxes ) ?

8 REPLIES 8

Former Member
0 Kudos
155

Hi

Try to check the method CL_MODEL_VIEW_MM=>MODIFY_SCREEN

I suppose the attributs of input/output field are set here

U can try to use the BADI ME_GUI_PO_CUST in order to change the fields catalog

Max

0 Kudos
155

ah Thank you Max, i already have an implementation of proposed badi, didnt know i was about to edit field catalogue there, good idea, going for this in my next try.

kesavadas_thekkillath
Active Contributor
0 Kudos
156

Hi,

Did you check the screen layout ( 1322 ) ( Input field / output field check boxes ) ?

0 Kudos
155

Damn man, didnt think of this.

But still after having a look, input & output are both tagged along with dictionary assignment.

The field catalog thing, well sounds cool, but i´m not in a table control. I have a single field on Dynpro 1322 of SAPLMEGUI.

i sense it has something to do with some metafield declaration about which i dont know anything.

0 Kudos
155

Have a look at the field groups from other fields that are enabled for input and try to apply one or more to your own field.

I remember i had to do something similar in the past and needed to use the same field groups for my own field.

0 Kudos
155

May be you can globally find all the loop at screen statements and check what is happening to your field.

0 Kudos
155

Hi

Probably the metafield is missing, this is set by fm MEMFS_BUILD_MAPPING_PO_VIEWS

Here the form mepo1320 is called:

FORM mepo1322 CHANGING ch_mapping TYPE mepo_t_metafield_mapping.
  gf_tabname = 'MEPO1322'.
  map 'AKTNR' mmmfd_promotion.
  map 'ABELN' mmmfd_alloc_tbl.
  map 'ABELP' mmmfd_alloc_tbl_item.
  map 'SAISO' mmmfd_seas_cat.
  map 'SAISJ' mmmfd_seas_year.
  map 'AUREL' mmmfd_at_relev.
  map 'KOLIF' mmmfd_prior_vend.
  map 'BSGRU' mmmfd_reason_ord.
ENDFORM.                               " MEPO1322

Probably you should enhance it

Try to check class CL_MFS_MM, method REGISTER

Max

0 Kudos
155

Great Max,

thanks a lot.

The only thing i wonder is: shouldnt i have been able to pick up a documentation about this on my way?