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

ALV

Former Member
0 Likes
1,420

Hi all,

I am reading contents using a field symbol but i am getting dump.my code is

FIELD-SYMBOLS: <temp_tab> TYPE table, <temp_wa> TYPE ANY, <fs> TYPE ANY.

FIELD-SYMBOLS <temp_wa1> LIKE LINE OF t_output.

CLASS lcl_event_receiver IMPLEMENTATION.

METHOD double_click.

READ TABLE <temp_tab> ASSIGNING <temp_wa1> INDEX es_row_no-row_id.

SET PARAMETER ID '/SAPAPO/VRSIOID' FIELD '000'.

SET PARAMETER ID '/SAPAPO/MAT' FIELD <temp_wa1>-product.

SET PARAMETER ID '/SAPAPO/LOCNO' FIELD s_loc-low.

CALL TRANSACTION '/SAPAPO/RRP3' AND SKIP FIRST SCREEN .

ENDMETHOD. "DOUBLE_CLICK

the field symbol <temp_tab> is getting values but i am not able to passit to my work area <temp_wa1> .And its giving dump.Does anyone know why it is so.

thanks and regards

mohammed Ahasan

Hi all,

I am reading contents using a field symbol but i am getting dump.my code is

FIELD-SYMBOLS: <temp_tab> TYPE table, <temp_wa> TYPE ANY, <fs> TYPE ANY.

FIELD-SYMBOLS <temp_wa1> LIKE LINE OF t_output.

CLASS lcl_event_receiver IMPLEMENTATION.

METHOD double_click.

READ TABLE <temp_tab> ASSIGNING <temp_wa1> INDEX es_row_no-row_id.

SET PARAMETER ID '/SAPAPO/VRSIOID' FIELD '000'.

SET PARAMETER ID '/SAPAPO/MAT' FIELD <temp_wa1>-product.

SET PARAMETER ID '/SAPAPO/LOCNO' FIELD s_loc-low.

CALL TRANSACTION '/SAPAPO/RRP3' AND SKIP FIRST SCREEN .

ENDMETHOD. "DOUBLE_CLICK

the field symbol <temp_tab> is getting values but i am not able to passit to my work area <temp_wa1> .And its giving dump.Does anyone know why it is so.

thanks and regards

mohammed Ahasan

10 REPLIES 10
Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,384

HOW U R STORING VALUES IN <TEMP_TAB>. ALSO SEND THAT CODE, MAY BE HELPFULL TO SOLVE PROBLEM.

READ TABLE <temp_tab> <b>ASSIGNING</b> <temp_wa1> INDEX es_row_no-row_id.

instead of above statement

READ TABLE <temp_tab> <b>TO</b> <temp_wa1> INDEX es_row_no-row_id.

NO NEED TO ASSIGN FIELD-SYMBOL TO ANOTHER FIELDSYMBOL ABOVE.

Message was edited by: Hymavathi Oruganti

Read only

Former Member
0 Likes
1,384

Hi,

The table you are read <temp_tab>, there is no ASSIGN statement. Are you assining to the table T_OUTPUT?

Also, introduct a SY_SUCRC check after the READ statement, it will avoid the short dump.

Do you have this statement somewhere.

ASSIGN T_OUTPUT TO <TEMP_TAB>.

The other thing that you can do, before the READ is to see of the <TEMP_TAB> has been assigned to some table.

CHECK <TEMP_TAB> IS ASSIGNED.

Regards,

Ravi

note : Please mark the helpful answer

Message was edited by: Ravikumar Allampallam

Read only

0 Likes
1,384

hi ,

the code for assing is

CREATE DATA wa_ref LIKE LINE OF <temp_tab>.

ASSIGN wa_ref->* TO <temp_wa>.

LOOP AT t_output.

MOVE-CORRESPONDING t_output TO <temp_wa>.

APPEND <temp_wa> TO <temp_tab>.

CLEAR <temp_wa>.

CLEAR t_output.

ENDLOOP.

Read only

0 Likes
1,384

how u r getting data to <temp_tab>?

i think u might have used <b>create dynamic table</b> method.

any way,

the problem is u already assigned the <temp_wa> using

ASSIGN wa_ref->* TO <temp_wa>.

and now again u r trying to reassign it with READ....ASSIGNING.

SO REMOVE ASSIGNING WITH READ AND PUT A 'TO' THERE

Read only

0 Likes
1,384

Hi,

I still can't see the ASSIGN for <temp_tab>.

Just like ASSIGN wa_ref->* TO <temp_wa>, where is the ASSIGN for <temp_tab>.

It probably will help if you can give the entire code. If its too big, you can mail me the code. The email address is in the business card.

Regards,

Ravi

Read only

0 Likes
1,384

Hi Hymavathi,

Do u Know BALA Muthhu RAJA.

Regards

Ahasan

Read only

0 Likes
1,384

yes.

Read only

0 Likes
1,384

hi Hymavathi,

This is his coding that i am modifying and his last object he has not done with real interest.

Read only

0 Likes
1,384

hi All,

I am sorry for my remarks against Bala.

Regards

ahasan

Read only

0 Likes
1,384

Hi ALL,

I am really Sorry Against my remarks.

regards

Ahasan