on 07-11-2008 12:49 PM
i need to submit a report from webdynpro (this is possible and i am able to do it).
The report produces some list output with some write statements, i need to display this output on a webdynpro view.
i tried submit..exporting list to memory and then list_from_memory and write_list/display_list but it shows a "screen output without connection to user error".
is this possible....
i tried SALV_WD_DEMO_TABLE_MIG component also but it seems it does not work if the output is through write statements.....
any pointers???
Hi Uday
You can not use write statements with Webdynpro ABAP.because it neet SAP GUI to display the list. but webdynpro works on explorer.
Better way is to create a function module from the report and call the function module from the webdynpro and whatever is the export parameters you can display using Webdynpro UI elements .
Regards
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct that the write statements would need the SAPGUI and of course can't work directly in WD. Another possibility however is to use the integrated ITS (SAPGUI for HTML). In this case the write statements can be processed and output. You can navigate from the WD application to an ITS SAPGUI for HTML version of your report and display it just fine.
Hi Rohit,
DATA lf_ref TYPE REF TO data.
FIELD-SYMBOLS <lt_data> TYPE ANY TABLE.
FIELD-SYMBOLS <ls_data> .
SUBMIT rwddownload WITH filia = werks
WITH artnr IN lt_update_matnr_vk11
WITH datum = sy-datum
WITH plu = 'X'
WITH alle = 'X'
EXPORTING LIST TO MEMORY AND RETURN.
IF 1 = 2.
MESSAGE e001(zkd_ap_mess) .
ENDIF.
TRY.
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
ASSIGN lf_ref->* TO <lt_data>.
CATCH cx_salv_bs_sc_runtime_info.
ENDTRY.
Now <LT_DATA> is your internal table. But this functionality will work if you have only list or GRID output.
Thanks
Nishant
Dear Rohith,
Pass the input parameters using submit report, and Instead of printing through the write statement display the output using ALV_GRID_DISPLAY because your reports works at background, so comment all the write statements, pass the output table to ALV GRID function and run it background mode, and Use the above code.
Thanks and Regards,
Nishant
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.