‎2010 Jul 27 6:44 PM
Hi All,
I have a requirement to launch SO10 transaction by passing the text name, text ID and language dynamically and it should open the text in the word editor by, bypassing the first screen. I have tried the following code , but it does not work I still get the selection screen (the values are populated though).
TABLES: stxh,rssce.
START-of-SELECTION.
rssce-tdobject = 'TEXT'.
rssce-tdname = 'ZTEST'.
rssce-tdid = 'ST'.
rssce-tdspras = 'EN'.
SET PARAMETER ID 'TXT' FIELD rssce.
CALL TRANSACTION 'SO10' AND SKIP FIRST SCREEN.
Can anyone please suggest me how can I bypass the first screen and directly go into the change mode of SO10 t-code (which is when I see the text in a work editor).
Thanks in advance.
Regards,
Vivek
‎2010 Jul 27 8:27 PM
Hi Vivek,
I think so you can directly use the fm edit_text for this purpose, please read the fm documentation or check the where used list .
You must first use read_text, edit_text , save_text & commit_text.
Use init_text in the begining.
or
you can go by the class cl_gui_text_edit,in se38 there will be a example for this program . Search for saptextedit*
link:[http://help.sap.com/saphelp_nw70/helpdata/EN/eb/549e36cf0ecb7de10000009b38f889/frameset.htm],
‎2010 Jul 27 8:27 PM
Hi Vivek,
I think so you can directly use the fm edit_text for this purpose, please read the fm documentation or check the where used list .
You must first use read_text, edit_text , save_text & commit_text.
Use init_text in the begining.
or
you can go by the class cl_gui_text_edit,in se38 there will be a example for this program . Search for saptextedit*
link:[http://help.sap.com/saphelp_nw70/helpdata/EN/eb/549e36cf0ecb7de10000009b38f889/frameset.htm],
‎2010 Jul 27 9:50 PM
Thanks for the help. But if I use Text_EDIT control, I don't think it preserves the formatting.
Is there a control that I can use that preserves the formatting of text that is entered in SO10.
Thanks,
Vivek
‎2010 Jul 27 10:34 PM
if you use a little batch input?
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
PERFORM bdc_dynpro USING 'SAPMSSCE' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RSSCE-TDNAME'.
PERFORM bdc_field USING 'BDC_OKCODE' '=EDIT'.
PERFORM bdc_field USING 'RSSCE-TDNAME' 'ZTEST'.
PERFORM bdc_field USING 'RSSCE-TDID' 'ST'.
PERFORM bdc_field USING 'RSSCE-TDSPRAS' 'EN'.
CALL TRANSACTION 'SO10' USING bdcdata MODE 'E'.
*----------------------------------------------------------------------*
* Start new screen *
*----------------------------------------------------------------------*
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "bdc_dynpro
*----------------------------------------------------------------------*
* Insert field *
*----------------------------------------------------------------------*
FORM bdc_field USING fnam fval.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDFORM. "bdc_field
‎2016 Aug 24 2:44 PM
First use FM READ_TEXT,you'll get the text in table lines.
Pass the same table in EDIT_TEXT along with the header data and also set display flag 'X' and line_editor 'X'.
This would not affect the formatting and also skip the initial screen