Skip to Content
0
Jan 18, 2011 at 12:46 PM

Infotype screen update

69 Views

Hi everyone.

I created a customer infotype 9*** It worked 100% correctly, but now I added a new Custom Container to the screen, and there is a Text Edit in the COntainer.

The problem is that when the user saves the infotype, then the record wasn't updated in the databse.

PAI module

MODULE CONVERT_COMMENT INPUT.
  DATA: lv_string_pai TYPE STRING,
        lv_modified TYPE I,
        lv_comment TYPE P9051-z_comment.


  CALL METHOD gr_text->GET_TEXTSTREAM
    EXPORTING
      ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>FALSE
    IMPORTING
      TEXT                   = lv_string_pai
      IS_MODIFIED            = lv_modified
    EXCEPTIONS
      ERROR_CNTL_CALL_METHOD = 1
      NOT_SUPPORTED_BY_GUI   = 2
      OTHERS                 = 3.

  <pnnnn>-z_comment = lv_string_pai.
  psave-z_comment = lv_string_pai.
  move_pnnnn_to_cprel.
  move_psave_to_csave.

ENDMODULE.                 " CONVERT_COMMENT  INPUT

This happens when only the Z_COMMENT field is changed by the user. If I cahne any other field beside the z_comment, then bot of the fields are updated.

What can be the problem here,

Please help.

Thanks.

N.G.