2007 Dec 18 6:32 AM
Hi all,
I am using edit_text (also using create text and save text) ..and put some text for example 2-3 lines and after if i press save at this time its comming back on the first screen, even if i tried separetly with se37 EDIT_TEXT and pass some required parameters, its opening the editor but if i press save its come back the previous screen
My requirement is if i press save, It should not be saving at that time and also should not back to the previous screen it should back when i press the back and save only when the save in first screen is pressed it shud save
Can anybody help me on this....its urgent
thanks,
Hi all,
I am using edit_text (also using create text and save text) ..and put some text for example 2-3 lines and after if i press save at this time its comming back on the first screen, even if i tried separetly with se37 EDIT_TEXT and pass some required parameters, its opening the editor but if i press save its come back the previous screen
My requirement is if i press save, It should not be saving at that time and also should not back to the previous screen it should back when i press the back and save only when the save in first screen is pressed it shud save
Can anybody help me on this....its urgent
thanks,
2007 Dec 18 6:47 AM
Hi,
If standard functionality is like that then we can't do anything on it..what u can do is copy it to zfunction module and change the code according to ur requirement.
Regards,
Nagaraj
2007 Dec 18 7:01 AM
Hi,
No it will come out after pressing the Save Button.Pls check the below code
tables:
stxh.
parameter :
p_tdname like stxh-tdname,
p_tdid like stxh-tdid,
p_tdobj like stxh-tdobject.
data:
v_head like thead,
v_itcer like itcer.
data:
i_text like tline occurs 0 with header line.
select single * from stxh where tdname eq p_tdname
and tdid eq p_tdid
and tdobject eq p_tdobj
and tdspras eq 'EN'.
if sy-subrc eq 0.
move-corresponding stxh to v_head.
call function 'READ_TEXT'
exporting
id = p_tdid
language = 'E'
name = p_tdname
object = p_tdobj
tables
lines = i_text.
if sy-subrc <> 0.
endif.
else.
v_head-tdname = p_tdname.
v_head-tdobject = p_tdobj.
v_head-tdspras = 'EN'.
v_head-tdid = p_tdid.
endif.
v_head-tdlinesize = '072'.
call function 'EDIT_TEXT'
exporting
header = v_head
save = 'X'
importing
result = v_itcer
tables
lines = i_text.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
2007 Dec 18 8:23 AM
yes u r correct its opening the editor, but if i press save its coming back to previous screen like what ever the programcode you given in the above mail in this case its comming back to selection screen, but i want if i press save it should be stay that screen only(means on the editor text only) and if i press back then it should back on the selection screen.
Please help me on this issue, its very urgent.....
2007 Dec 18 9:14 AM
Hi,
Its worKs perfectly.I am not sure why it is behaving like that.could you pls paste your code over here.
Thanks
Krishna
Edited by: krishnaraj Baskar on Dec 18, 2007 4:14 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |