2010 Nov 16 1:05 PM
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
2010 Nov 16 3:05 PM
Hi,
Did you check the screen layout ( 1322 ) ( Input field / output field check boxes ) ?
2010 Nov 16 1:27 PM
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
2010 Nov 16 1:29 PM
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.
2010 Nov 16 3:05 PM
Hi,
Did you check the screen layout ( 1322 ) ( Input field / output field check boxes ) ?
2010 Nov 16 3:09 PM
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.
2010 Nov 16 3:16 PM
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.
2010 Nov 16 3:17 PM
May be you can globally find all the loop at screen statements and check what is happening to your field.
2010 Nov 16 3:57 PM
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
2010 Nov 17 7:50 AM
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?