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: 

Problem while saveing in Table Control.

Former Member
0 Kudos

Hi

I am geting error while saving data in table control.

This table contol is pop up window at end of screen .

user enter qty & uom in TC..

Error i am getting is...

Field symbol has not been assigned.

-


Error analysis

The system tried to access an anasigned field symbol (data segment

number 32772).

The field symbol is no longer assigned, because a Unicode program

previously tried to set the field symbol using an ASSIGN statement with

an offset/length declaration. The memory addressed in this offset/length

declaration, however, no longer lay within the valid range.

-


Information on where terminated

The termination occurred in the ABAP program "SAPLOMCV" in

"CONVERSION_EXIT_MATN1_INPUT".

i Have coded like this..

MODULE USER_COMMAND_0112 INPUT.

CASE OKCODE.

WHEN 'BACK' or 'CANCEL'.

SET SCREEN 0.

This iti is contain data which diplay in TC

when 'DISPLAY'.

LOOP AT ITI.

read table iti with key ingr_code = iti-ingr_code

ingr_desc = iti-ingr_desc.

wka1-ingr_code = iti-ingr_code.

wka1-ingr_desc = iti-ingr_desc.

wka1-conc = iti-conc.

wka1-quantity = iti-quantity.

wka1-uom = iti-uom.

append wka1 to itf.

ENDLOOP.

WHEN 'SAV'.

loop at itf where check = 'x' .

update zacg_ns

set ingr_code = itf-ingr_code

col_name = itf-ingr_desc

conc = itf-conc

quantity = itf-quantity

UOM = itf-UOM

ru = itf-ru

where ingr_code = itf-ingr_code

and col_name = itf-ingr_desc.

  • zacg_ns-ingr_code = itf-ingr_code.

  • zacg_ns-col_name = itf-ingr_desc.

  • zacg_ns-conc = itf-conc.

  • zacg_ns-quantity = itf-quantity.

  • zacg_ns-UOM = itf-UOM.

  • update zacg_ns.

endloop.

leave program.

ENDCASE.

ENDMODULE. " USER_COMMAND_0112 INPUT

----


  • MODULE read_table_control INPUT

----


*

----


MODULE read_table_control INPUT.

MODIFY itf INDEX tc-current_line.

.

ENDMODULE. "read_table_control INPUT

-


-


&----


*& Include ZACG_NS_2 *

&----


&----


*& Module STATUS_0111 OUTPUT

&----


  • text

----


MODULE STATUS_0111 OUTPUT.

SET PF-STATUS 'ZNEWSHADE'.

SET TITLEBAR 'ZNS'.

ENDMODULE. " STATUS_0111 OUTPUT

&----


*& Module STATUS_0112 OUTPUT

&----


  • text

----


MODULE STATUS_0112 OUTPUT.

SET PF-STATUS 'ZTC'.

  • SET TITLEBAR 'xxx'.

DESCRIBE TABLE itf LINES lines.

tc-lines = lines.

ENDMODULE. " STATUS_0112 OUTPUt

-


-


PROCESS BEFORE OUTPUT.

MODULE STATUS_0112.

LOOP at itf WITH CONTROL TC CURSOR tc-current_line.

MODULE TC_PBO .

ENDLOOP.

*

PROCESS AFTER INPUT.

MODULE CANCEL AT EXIT-COMMAND.

LOOP at itf .

module read_table_control.

ENDLOOP.

MODULE USER_COMMAND_0112.

Can any one help me..

1 REPLY 1

Former Member
0 Kudos

Hi,

Did you enter that filed later after creating the table control?

You check in the element list whether for that element u have an entry or not..

Regards,

Nishant