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

saving texts in transparent table

Former Member
0 Likes
1,106

HI all,

How can we create a transparent table and save texts in it.

Actually my requirement is to create a button on an ALV and when user clicks that button then a text editor should open and whatever user enter in that window should get saved in a transparent table.

Does anyone have any idea how to do this??

please help me as soon as possible.

regards,

kushagra

HI all,

How can we create a transparent table and save texts in it.

Actually my requirement is to create a button on an ALV and when user clicks that button then a text editor should open and whatever user enter in that window should get saved in a transparent table.

Does anyone have any idea how to do this??

please help me as soon as possible.

regards,

kushagra

6 REPLIES 6
Read only

Former Member
0 Likes
1,021

Hi,

After setting all field catelogs and all

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = ws_repid ---report name

i_callback_pf_status_set = 'GUI_STAT'

i_callback_user_command = 'STAT'

is_layout = gs_layout

it_fieldcat = i_fieldcat[]

TABLES

t_outtab = i_zaw_pol_plan.

IF sy-subrc <> 0.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

ENDFORM. " change_data

**--Setting Status of outout screen

FORM gui_stat USING rt_extab TYPE slis_t_extab.

SET PF-STATUS 'STANDARD' EXCLUDING rt_extab.

SET TITLEBAR text-005.

ENDFORM.

**--Calling the subroutine when button clicked on output

FORM stat USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.

DATA selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN 'SAVE'.

LOOP AT i_zaw_pol_plan WHERE flag EQ c_x.

here you will get the selected data and update the table with this

ENDLOOP.

ENDCASE.

ENDFORM.

double click on PF-STATUS 'STANDARD' in above code in application tool bar add button fcode and text and icon.

Read only

Former Member
0 Likes
1,021

Hi,

there are function modules to save_text,read_text,delete_text,.. for dealing with texts.simply u can use them.

rgds,

bharat.

Read only

0 Likes
1,021

Bharat,

I was having the same idea, but I came across the following. When using these function modules, you have to create a new standard text with transaction SO10. But the problem will be to assign this text object per user of per order, or whatever. Any idea on that because that's were I'm stuck right now.

But I do agree with you, using these function modules would be the way to go.

Read only

0 Likes
1,021

Hi,

u r correct.we have create text object and id from se75 and use these function module.

rgds,

bharat.

Read only

0 Likes
1,021

Ok thanks, this one was new to me.

Read only

Former Member
0 Likes
1,021

take help of standard program

SAPTEXTEDIT_DEMO_3