on 04-18-2018 2:38 PM
Hi guys. I'm working with MDG specifically creating materials on NWBC. When i go top the next screen i fill some fields automatically moving data in GET_DATA method and it works fine. My problem is: Some fields when filled by the user and click on this field after trigger an event that fill the next field with text. 1-When i fill the fields by get_data the enter no more works.(Is there a reason?) 2-Is there a way I can trigger this event from my get_data method?thanks
this is part of get_data i fill cs_data
ASSIGN COMPONENT 'MATKL' OF STRUCTURE <fg_data> TO <fg_matkl>.
IF <fg_matkl> IS ASSIGNED.
<fg_matkl> = er_valores_default-matkl.
ev_data_changed = abap_true.
ENDIF.
ASSIGN COMPONENT 'MEINS' OF STRUCTURE <fg_data> TO <fg_meins>.
IF <fg_meins> IS ASSIGNED.
<fg_meins> = er_valores_default-meins.
ev_data_changed = abap_true.
ENDIF.
ASSIGN COMPONENT 'MTORG' OF STRUCTURE <fg_data> TO <fg_mtorg>.
IF <fg_mtorg> IS ASSIGNED.
<fg_mtorg> = er_valores_default-mtorg.
ev_data_changed = abap_true.
ENDIF.
ASSIGN COMPONENT 'MTUSE' OF STRUCTURE <fg_data> TO <fg_mtuse>.
IF <fg_mtuse> IS ASSIGNED.
<fg_mtuse> = er_valores_default-mtuse.
ev_data_changed = abap_true.
ENDIF.
Hi,
Check input field is assigned with event round trip? if it assigned, FPM event automatically trigger as soon as you change value of input field and your feeder class will derive text automatically.
after MDG7, We dont really need to write logic to derive text of text table. SPI framework will be taking care of reading text table and value readily available for output. Please check UOM text table label field and bring it as part of output(No need to write logic in feeder class to derive text).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like you are trying to set the values in feeder class of the FPM UIIB - it is not good idea,
try to use one of the derivations BAdI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.