Application Development 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: 

I've created a MODULE in PBO of the screen but doesn't effect the table

0 Kudos
389

I've created a MODULE in PBO of the screen which we fill values and fill the required field with values. But when I've done with maintaining, i am saving . It doesn't saving the values from the module. But if I select with search help, It gets the values.

PROCESS BEFORE OUTPUT.
MODULE liste_initialisieren.
LOOP AT extract WITH CONTROL
tctrl_zqm_dof_dprtmn CURSOR nextline.
MODULE liste_show_liste.
MODULE getmail.
ENDLOOP.

MODULE getmail OUTPUT.

IF zqm_dof_dprtmn-kullanici_adi IS NOT INITIAL.

DATA : lv_uname TYPE syuname.
DATA : ls_user TYPE qisrsuser_data.
CLEAR : lv_uname,ls_user.
lv_uname = zqm_dof_dprtmn-kullanici_adi.
CALL FUNCTION 'ISR_GET_USER_DETAILS'
EXPORTING
id_user_id = lv_uname
CHANGING
is_user_data = ls_user
EXCEPTIONS
user_not_found = 1
OTHERS = 2.

zqm_dof_dprtmn-mail_adres = ls_user-e_mail.


IF zqm_dof_dprtmn-ad IS INITIAL OR zqm_dof_dprtmn-soyad IS INITIAL.
zqm_dof_dprtmn-ad = ls_user-firstname.
zqm_dof_dprtmn-soyad = ls_user-lastname.
ENDIF.

ENDIF.

IF zqm_dof_dprtmn-dep_no IS NOT INITIAL.

SELECT SINGLE dep_adi FROM zqm_dof_dep_u
INTO zqm_dof_dprtmn-departman_adi
WHERE dep_no EQ zqm_dof_dprtmn-dep_no.

ENDIF.

ENDMODULE.


2 REPLIES 2

raymond_giuseppi
Active Contributor
339

Did you define structue zqm_dof_dprtmn in the global data (TOP include for example) in this case the TABLES statement is suggested (for dynpro-program exchange)

  • You posted part of the PBO logic (from program to dynpro) are the data (enhanced) from internal table
  • Also you speak of SAVE the input modified data, so what did you code in the PAI (move data from dynpro to program) what did you code in the PAI LOOP AT extract part.

abityildiz
Active Participant
0 Kudos
339

Hello,

Where is the save user-command?

If you want to save data,you should save zqm_dof_dprtmn for record table.

Like this:

MODULE user_command_0100."save button 

MODULE user_command_0100 INPUT.
CASE sy-ucomm .
 WHEN 'SAVE'."save button 
  insert zqm_dof_dprtmn.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT