‎2009 May 30 8:43 AM
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
‎2009 May 30 10:09 AM
Hi,
Please avoid using select for HRP* table try to use FM for Psotion text use FM "HRWPC_RFC_PLANS_TEXT_GET".
‎2009 May 30 10:09 AM
Hi,
Please avoid using select for HRP* table try to use FM for Psotion text use FM "HRWPC_RFC_PLANS_TEXT_GET".