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

Regarding EDIT_TEXT functional module,when i hit save its coming back ..

Former Member
0 Likes
744

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,

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
655

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

Read only

0 Likes
655

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.

Read only

0 Likes
655

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.....

Read only

0 Likes
655

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