08-20-2007 12:47 PM
Hi everyone,
I created a standard text using SO10.
I want to perform a call to a form from a program but it is not doing it.
Is it possible to do it like in SE71 ?
Thanks.
regards.
08-20-2007 1:22 PM
Hi,
It is not possible to call a FORM from a Standard texts,
but you can use a program, in that program use the READ_TEXT to read this text then you can have a option to call the form
Regards
Sudheer
08-20-2007 12:51 PM
08-20-2007 12:55 PM
Hi,
Here is what I wrote in SO10 :
/: DEFINE &D_KEY&
/: PERFORM GET_LONG_TEXT IN PROGRAM /TTT/ZSU_DOCS_ARCHIVE
/: USING &D_KEY&
/: CHANGING &D_STRING1&
/: ENDPERFORM
The form is never called.
Thanks,
08-20-2007 1:04 PM
Hi..
Normally subroutine must be called even if it is inside a Standard Text.
Have you called this Text in SE71 using INCLUDE command.
Open the Text elements of the window.
Menupath: INSERT->TEXT->STANDARD
Enter the Standard Text Name.
Even then if it is not called Try Debugging the Form.
SE71 Menu path: Utilities->activate Debugger.
And Lastly have you defined this Subroutine in the program mentioned in PERFORM.
<b>Reward if Helpful</b>
08-20-2007 1:09 PM
Hi,
I am not using SE71 but SO10.
The purpose of my application is to create a WORD file using standard text.
It works good.
Now I need to call a form from that Standard Text.
Thanks
08-20-2007 1:22 PM
Hi,
It is not possible to call a FORM from a Standard texts,
but you can use a program, in that program use the READ_TEXT to read this text then you can have a option to call the form
Regards
Sudheer
08-20-2007 1:30 PM
Hi,
I think that maybe I wasn't clear enough about my issue.
The form I want to call is a form from a program (not a form from SE71).
For example :
<code>
FORM get_long_text TABLES inttab STRUCTURE itcsy
outtab STRUCTURE itcsy.
DATA: lv_key(30).
READ TABLE inttab WITH KEY name = 'D_KEY'.
MOVE inttab-value TO lv_key.
MOVE 'hello ' TO outtab-value.
MODIFY outtab TRANSPORTING value WHERE name = 'D_STRING1'.
ENDFORM. " get_long_text
</code>
I need to call that form from SO10 .
Thanks.
Regards.
Message was edited by:
David Fryda
08-20-2007 1:50 PM
David,
Take a look at the function modules in function group STXE - these give functionality to expand includes, parse symbols, replace symbols.
You could probably use these to achieve the result you want, but with the ABAP program controlling the flow rather than the perform being in the text.
Andrew
08-20-2007 4:09 PM