2008 Apr 17 9:17 AM
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
2008 Apr 17 9:47 AM
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.
2008 Apr 17 9:50 AM
Hi,
there are function modules to save_text,read_text,delete_text,.. for dealing with texts.simply u can use them.
rgds,
bharat.
2008 Apr 17 9:56 AM
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.
2008 Apr 17 10:02 AM
Hi,
u r correct.we have create text object and id from se75 and use these function module.
rgds,
bharat.
2008 Apr 17 10:06 AM
2008 Apr 22 6:19 AM