2008 Nov 06 11:01 AM
Hi All, In PAI of screen i have the following code, BUt when i press enter , the conttrol did not go in the following case .
case sy-ucomm
WHEN 'ENTR' OR ''.
IF b_unit IS NOT INITIAL.
CLEAR wa_tbgl.
SELECT SINGLE * FROM zf112409gl_map INTO wa_tbgl
WHERE b_unit = b_unit.
glaccount = wa_tbgl-l_gl_acc .
gldesc = wa_tbgl-desc_lgl .
b_unit = wa_tbgl-b_unit .
sapglaccount = wa_tbgl-saknr .
SELECT SINGLE txt50 FROM skat INTO txt50
WHERE saknr = sapglaccount
AND spras = 'EN'.
sapgldesc = txt50.
else .
MESSAGE 'Please enter the required field' type 'I'.
endif.
Please give me the step to follow.
rgds,
Premraj
2008 Nov 06 11:08 AM
Hi All, In PAI of screen i have the following code, BUt when i press enter , the conttrol did not go in the following case .
case sy-ucomm
WHEN 'ENTR' OR ''.
IF b_unit IS NOT INITIAL.
CLEAR wa_tbgl.
SELECT SINGLE * FROM zf112409gl_map INTO wa_tbgl
WHERE b_unit = b_unit.
glaccount = wa_tbgl-l_gl_acc .
gldesc = wa_tbgl-desc_lgl .
b_unit = wa_tbgl-b_unit .
sapglaccount = wa_tbgl-saknr .
SELECT SINGLE txt50 FROM skat INTO txt50
WHERE saknr = sapglaccount
AND spras = 'EN'.
sapgldesc = txt50.
else .
MESSAGE 'Please enter the required field' type 'I'.
endif.
Please give me the step to follow.
rgds,
Premraj
2008 Nov 06 11:03 AM
Hi,
Remove the OR after the ENTR in When
and conclude using Endcase with others.
and check.
Regards,
Nandha
2008 Nov 06 11:08 AM
2008 Nov 06 11:13 AM
Hi Prem,
Have you created the FCT code for activating your ENTR pushbutton or not check back once. And replace '' with SPACE.
Cheers!!
VEnk@
2008 Nov 06 11:23 AM