2006 Apr 11 7:59 AM
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
2006 Apr 11 8:02 AM
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
2006 Apr 11 8:03 AM
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
2006 Apr 11 8:12 AM
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.
2006 Apr 11 8:16 AM
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
2006 Apr 11 8:19 AM
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
2006 Apr 11 8:30 AM
2006 Apr 11 8:36 AM
2006 Apr 11 8:42 AM
hi Hymavathi,
This is his coding that i am modifying and his last object he has not done with real interest.
2006 Apr 11 9:04 AM
hi All,
I am sorry for my remarks against Bala.
Regards
ahasan
2006 Apr 11 9:12 AM
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |