SUBMIT rm07mlbd WITH datum IN so_budat
IMPORTING r_data = ls_data ).
ASSIGN ls_data->* TO <lt_data>.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
LOOP AT <lt_data> ASSIGNING <l_data>.
MOVE-CORRESPONDING <l_data> TO g_t_belege1.
WRITE: / g_t_belege1-mblnr,
Comment by Sougata Chatterjee:
It is possible to get back the metadata (and the data) into the calling program by setting a parameter = 'X' in the SET( ) method as per the code below but it is not possible to return an instance of the ALV Grid object of the called program - please note the difference.
Also, this method does not return the details of the layout variant. As a result it is not possible to construct an internal table dynamically with the same structure as the layout variant itself (that was chosen in the called program RFITEMAP) via the call of the GET_METADATA( ) method. The fieldcatalog does not return specific info in regards to the layout variant but it returns all the fields of the grid into the fieldcatalog after the GET_METADATA( ) method is called.
lr_pay_conf_data TYPE REF TO data,
ls_metadata TYPE cl_salv_bs_runtime_info=>s_type_metadata.
<lt_pay_conf_data> TYPE STANDARD TABLE,
<ls_pay_conf_data> TYPE ANY,
<lv_field> TYPE ANY.
As I pointed out in my last post, the approach here is incorrect and this technique should not be used to meet this requirement at hand. It is a much better approach to copy the standard program into a custom program then apply changes to the business logic as required.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.