on 03-04-2008 9:54 AM
Hi Experts,
i have a problem in scripts,
i am writing the code like below in program and form. i am taking the employee responsible name in one window. but here that window is skipping when the employee responsible field is empty.
in program.
WHEN 'ZM'.
MOVE tvbpa-pernr TO tparvw_ZM.
IF tparvw_ZM NE space.
PERFORM get_pa0002 USING tparvw_ZM.
endif.
FORM get_pa0002 USING personel_no.
*SELECT * FROM pa0002 WHERE pernr = vbpa-pernr.
SELECT * FROM pa0002 into table it_tab WHERE pernr = personel_no .
SELECT * FROM pa0002
WHERE pernr = personel_no.
ENDSELECT.
LOOP AT IT_TAB.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'PERSON_RES'
WINDOW = 'DELTWT'
EXCEPTIONS
element = 1
window = 2.
IF sy-subrc NE 0.
PERFORM protocol_update.
ENDIF.
in form.
/E PERSON_RES
/: BOX FRAME 10 TW
/: <SB>Dealt with by
<SB>Contact reference
/* &TVTWT-VTEXT(3)&/&PA0002-VORNA& &PA0002-NACHN& &TVGRT-BEZEI&
CT &TVTWT-VTWEG(3)&/&IT_TAB-VORNA& &IT_TAB-NACHN&/ &USR03-NAME1&
&USR03-NAME2&/&TSPAT-VTEXT&
could any body read the above stuff and help me how to solve this problem.
i need to get that window and print the space in the place of emp responsible
thanks,
hi ,
this is may be problem in the data of the itab and check
if it_itab[] is not initinal . then loop the data.
may be useful for it.
regrads,
venkat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.