Application Development and Automation 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: 
Read only

Infotype screen update

Former Member
0 Likes
394

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.

1 REPLY 1
Read only

Former Member
0 Likes
325

THe problem is that only the <pnnnn> field symbol shuld be modified in the PAI