08-23-2006 10:54 AM
Hi All..
I have a custome screen, where user inputs text of length 250 Char.
How to pass this value to Z-table, where i have created a Field with CHAR type and 250 Length..???
Pavan
08-23-2006 11:06 AM
Hi,
Use below logic.
data itab like ztable occurs 0 with header line.
itab-text = screen-text.
append itab.
insert ztable from table itab.
Regards,
Amole
Regards
Amole
08-23-2006 11:00 AM
As defined in the screen design the value (text) is assigned to a variable so you can simply move that variable to ztable field and update it.
scr_text is the screen variable.
update ztable set field = scr_text
where key fields.
Regards
Anurag
08-23-2006 11:00 AM
First, create an internal table with the structure of ztable. then pass the text value into the internal table.
then use modify ztable from itab.
08-23-2006 11:00 AM
If it is a normal input field(not a text control), then you can just move that value into the ztable
ztab-<keyfield> = <key value>.
ztab-field = v_field. "screen field
modify ztab where <keyfield> = <key value>. "v_field is the screen field
08-23-2006 11:06 AM
Hi,
Use below logic.
data itab like ztable occurs 0 with header line.
itab-text = screen-text.
append itab.
insert ztable from table itab.
Regards,
Amole
Regards
Amole