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

set dynamic value in a table using maintenance using screen module

muhammad_sohail
Participant
0 Likes
454

Dear All,

I have a customized table named "ZHR_ESS_TABS". In which I want to modify the entry of its field position_description, when user enter the position_id in maintenance mode.

I have write the following module.

module GET_POSITION output.

TABLES: hrp1000.

data: p_desc(40).

SELECT SINGLE stext FROM hrp1000 into p_desc

WHERE otype = 'S'

AND plvar = '01'

AND objid = zhr_ess_lv-pos_id

AND endda = '99991231'

AND langu = 'E'.

zhr_ess_lv-p_desc = p_desc.

endmodule. " GET_POSITION OUTPUT

But it doesn't updating the position_description when i enter the position_id.

The screen program is as under:

PROCESS AFTER INPUT.

MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.

MODULE LISTE_BEFORE_LOOP.

MODULE GET_POSITION. """" My module calling

LOOP AT EXTRACT.

MODULE LISTE_INIT_WORKAREA.

CHAIN.

FIELD ZHR_ESS_LV-BTRTL .

FIELD ZHR_ESS_LV-PERSK .

FIELD ZHR_ESS_LV-SEQNR .

FIELD ZHR_ESS_LV-P_DESC .

FIELD ZHR_ESS_LV-POS_ID .

MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.

ENDCHAIN.

...............

................

...............

Will anyone pls. tell me what's the problem

Thanks and Regards,

Sohail

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
418

Hi,

Please avoid using select for HRP* table try to use FM for Psotion text use FM "HRWPC_RFC_PLANS_TEXT_GET".

1 REPLY 1
Read only

Former Member
0 Likes
419

Hi,

Please avoid using select for HRP* table try to use FM for Psotion text use FM "HRWPC_RFC_PLANS_TEXT_GET".