2022 May 23 7:03 PM
Did anyone work with fetching dynamic ALV data from any dynamic program. Looking for alternatives for using SUBMIT (program) with (spool)
Did anyone work with fetching dynamic ALV data from any dynamic program. Looking for alternatives for using SUBMIT (program) with (spool)
2022 May 23 7:20 PM
This question has been answered so many times. Please search CL_SALV_BS_RUNTIME_INFO.
2022 May 23 7:51 PM
I have used the class CL_SALV_BS_RUNTIME_INFO. But to use the internal table acquired from the class, we need to know the structure of the internal table we are using. In my case, the internal table received can be anything.
The structure of the output table can be anything in this case. I am unable to use the output structure <lt_pay_data> here without knowing which structure to it should be assigned.
cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false metadata = abap_false
data = abap_true ).
SUBMIT <program_name> USING SELECTION-SET 'Variant'
AND RETURN.
IF sy-subrc IS INITIAL.
TRY.
cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_pay_data ).
ASSIGN lr_pay_data->* TO <lt_pay_data>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
ENDTRY.
IF <lt_pay_data> IS NOT INITIAL.
ENDIF.
ENDIF.
In the above case, the structure of the output table can be anything. I am unable to use the output structure <lt_pay_data> here without knowing which structure to it should be assigned.
2022 May 24 7:27 AM
This question also has been asked already, one hundred times (at least). Search the Web for
LOOP AT <lt_pay_data> ASSIGNING FIELD-SYMBOL(<structure>).
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <structure> TO FIELD-SYMBOL(<component>).
IF sy-subrc <> 0.
EXIT.
ENDIF.
" here, process each <component> value
ENDDO.
ENDLOOP.
2022 May 24 7:32 AM
2022 May 24 7:45 AM
I'm as old as Google search
"ASSIGN COMPONENT sy-index OF STRUCTURE" site:sap.com
result:
About 1,060 results (0.49 seconds)
2022 May 24 2:14 PM
sandra.rossi : Google was founded on September 4, 1998, by Larry Page and Sergey Brin
you have a lot of experience and wisdom for a 24 year old 😉
2022 May 24 4:26 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |