2024 Mar 04 9:47 AM
Hello Freinds,
After using SUBMIT i got error, please check and help me.
DATA: lr_pay_data TYPE REF TO data,
itab TYPE REF TO data.
FIELD-SYMBOLS: <lt_pay_data> TYPE table.
cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
SUBMIT zj3rflvmobvedh
USING SELECTION-SCREEN 1000
WITH so_bukrs EQ '1100'
WITH so_budat IN s_budat
WITH so_werks IN s_werks
WITH so_matnr IN r_matnr
AND RETURN.
TRY.
cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_pay_data ).
ASSIGN lr_pay_data->* TO <lt_pay_data>. "Standard report output is available in <lt_pay_data>
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
BREAK-POINT.
LOOP AT <lt_pay_data> ASSIGNING FIELD-SYMBOL(<line>).
ENDLOOP.
2024 Mar 04 10:03 AM
Perhaps you'd like to share what the error was?
Also, when you're putting code into a question, click on the ... to open up trhe options, and choose "HTML". Then your code will be nicely formatted.
2024 Mar 04 10:11 AM
Here is the Error message.
Category ABAP programming error
Runtime Errors GETWA_NOT_ASSIGNED
ABAP Program ZFORMIV_REPORT_INGOTS
Application Component Not assigned
Date and Time 04.03.2024 15:24:12 (CET)
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Short Text |
| Field symbol has not been assigned yet. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|What happened? |
| Error in the ABAP application program. |
| |
| The current ABAP program "ZFORMIV_REPORT_INGOTS" had to be terminated because |
| it found a |
| statement that could not be executed. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Error analysis |
| An attempt was made to access a field symbol that has not been assigned |
| yet (data segment number "-1"). |
| |
| That error occurs if |
| - a typed field symbol is addressed before it has been set with ASSIGN, |
| or |
| - a field symbol is addressed that points to a row in an internal table |
| that has been deleted, or |
| - a field symbol is addressed that was previously reset using UNASSIGN, |
| or that pointed to a local field that no longer exists, or |
| - a parameter of a global function interface is address, although the |
| corresponding function module is not active (is not in the list of |
| active calls). The list of active calls can be taken from this short |
| dump. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Trigger Location of Runtime Error |
| (Program) ZFORMIV_REPORT_INGOTS |
| (Include) ZFORMIV_REPORT_SEL_INGOTS |
| (Row) 455 |
| (Module Name) START-OF-SELECTION |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Source Code Extract |
----------------------------------------------------------------------------------------------------
|Line |Code |
----------------------------------------------------------------------------------------------------
| 425|* LOOP AT it_xtext. |
| 426|* IF sy-tabix >= 1. |
| 427|* SPLIT it_xtext-fields1 AT '|' INTO lv1 lv2 lv3. |
| 428|* ENDIF. |
| 429|* ENDLOOP. |
| 430| |
| 431| |
| 432| DATA: lr_pay_data TYPE REF TO data, |
| 433| itab TYPE REF TO data. |
| 434| FIELD-SYMBOLS: <lt_pay_data> TYPE table. |
| 435| |
| 436| cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false |
| 437| metadata = abap_false |
| 438| data = abap_true ). |
| 439| |
| 440| SUBMIT zj3rflvmobvedh |
| 441| USING SELECTION-SCREEN 1000 |
| 442| WITH so_bukrs EQ '1100' |
| 443| WITH so_budat IN s_budat |
| 444| WITH so_werks IN s_werks |
| 445| WITH so_matnr IN r_matnr |
| 446| AND RETURN. |
| 447| TRY. |
| 448| cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_pay_data ). |
| 449| ASSIGN lr_pay_data->* TO <lt_pay_data>. "Standard report output is available in <lt_|
| 450| CATCH cx_salv_bs_sc_runtime_info. |
| 451| MESSAGE `Unable to retrieve ALV data` TYPE 'E'. |
| 452| ENDTRY. |
| 453| cl_salv_bs_runtime_info=>clear_all( ). |
| 454| BREAK-POINT. |
|>>>>>| LOOP AT <lt_pay_data> ASSIGNING FIELD-SYMBOL(<line>). |
| 456| |
| 457| ENDLOOP. |
| 458|* End - Details from Tcode : zj3rflvmobvedh - on 26/Feb/2024 |
| 459| |
| 460| SELECT 'I' AS sign, |
| 461| 'EQ' AS option, |
| 462| low |
| 463| FROM tvarvc |
| 464| WHERE name = 'ZSSI_INWARD' |
| 465| INTO TABLE @r_ssingot_labor_type. |
| 466| |
| 467| IF r_ssingot_labor_type[] IS NOT INITIAL. |
| 468| SELECT matdoc~matnr, |
| 469| matdoc~bwart, |
| 470| matdoc~budat, |
| 471| matdoc~werks, |
| 472| matdoc~lifnr, |
| 473| matdoc~lgort, |
| 474| mara~labor, |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Active Calls/Events |
----------------------------------------------------------------------------------------------------
|No. Ty. Program Include Line |
| Name |
----------------------------------------------------------------------------------------------------
| 1 EVENT ZFORMIV_REPORT_INGOTS ZFORMIV_REPORT_SEL_INGOTS 455 |
| START-OF-SELECTION |
----------------------------------------------------------------------------------------------------
2024 Mar 04 12:38 PM - edited 2024 Mar 04 5:59 PM
The error seems to be triggered in a custom program (zj3rflvmobvedh)
CHECK <lt_pay_data> IS ASSIGNED.