cancel
Showing results for 
Search instead for 
Did you mean: 

Losing automatically field event when fill nwbc screen field.

ronaldo_aparecido
Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Peranandam
Contributor
0 Kudos

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).

studencp
Participant
0 Kudos

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