Application Development 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: 

How to pass Text Lines to z-table..?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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