Skip to Content
0
Former Member
Sep 10, 2013 at 04:43 AM

Changing values of z table in table control and updating

354 Views

Hi experts,

I am trying to change the value of Z table into table control with wizard and update it to Z table but while debugging i found that even after i change certain values in table control the same are not updated in internal table but the previous values of Z table is there.

Following is my screen flow logic

PROCESS BEFORE OUTPUT.

*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TC_100'

MODULE tc_100_change_tc_attr.

*&SPWIZARD: MODULE TC_100_CHANGE_COL_ATTR.

LOOP AT it_final

INTO wa_final

WITH CONTROL tc_100

CURSOR tc_100-current_line.

* MODULE append_data.

*&SPWIZARD: MODULE TC_100_CHANGE_FIELD_ATTR

ENDLOOP.

MODULE status_0100.

MODULE screen_fields.

PROCESS AFTER INPUT.

*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC_100'

LOOP AT it_final.

CHAIN.

FIELD wa_final-prctr.

FIELD wa_final-gsber.

FIELD wa_final-gjahr.

FIELD wa_final-zperfro.

FIELD wa_final-zperto.

FIELD wa_final-hkont.

FIELD wa_final-ztrbal.

FIELD wa_final-zcurrent.

FIELD wa_final-zncurrent.

ENDCHAIN.

FIELD wa_final-mark

MODULE tc_100_mark ON REQUEST.

ENDLOOP.

*&SPWIZARD: MODULE TC_100_CHANGE_TC_ATTR.

*&SPWIZARD: MODULE TC_100_CHANGE_COL_ATTR.


MODULE user_command_0100.

MODULE exit AT EXIT-COMMAND.

I want to update values of ZCURRENT and ZNCURRENT into Z table.

Regards,

PS