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

Calling SAPscript editor dynamically in ABAP

Former Member
0 Likes
671

There is a layout in which the footer is to be written by the end-user while executing a report. Now, how do i call the 'FOOTER WINDOW' in the sapscript so that he/she can write directly in the sapscript itself and it appears in the final layout.

3 REPLIES 3
Read only

Former Member
0 Likes
546

Hi Ganesh,

I have another proposal.

In the FOOTER WINDOW put an include to a text item (using INCLUDE &...-TDNAME& OBJECT &...-TDOBJECT&... as per a normal SAPScript).

Then call the function module EDIT_TEXT from within your custom report to capture the users text and then the function module SAVE_TEXT to save the text (with the text object etc as specified in your FOOTER WINDOW).

This saved text should have a unique name (based on some object id, like sales order number, or whatever the SAPscript is for).

That way you get dynamic content without having to edit the SAPscript every time.

Hope that helps.

Brad

Read only

0 Likes
546

Could you plz send me a sample code bcos am not able to visualize what u have told

Read only

0 Likes
546

Hi Ganesh,

Igor has done a great <a href="/people/igor.barbaric/blog/2005/06/06/the-standard-text-editor-oo-abap-cfw-class that explains exactly how you can capture text from the user and save it.

So, use his method, and just use INCLUDE to include the text in your SAPscript.

Cheers,

Brad