Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with SUBMIT report

Former Member
0 Likes
2,259

My requirement to get the Pricing document number from the transaction WVN0 and fetch the Landing price with the pricing document number from the WKBP table and send the amount to the remote system through the BADI for the DRFOUT in Retail ECC system.

For this I have created a custom report that SUBMITs the report and fetch the resultant ALV.

The report first provides a POP UP with the list of messages and on clicking enter the ALV report with the Pricing document number for the selection criteria will be displayed.

The problems I am facing are as below:

1) While trying with SUBMIT report with EXPORTING TO LIST MEMORY is that I am getting the details of only this POP UP and not the final Report details

2) With the  cl_salv_bs_runtime_info=>set and  cl_salv_bs_runtime_info=>get_data_ref - the pop up icon field names from the standard are getting populated with the % symbol and hence while executing  cl_salv_bs_runtime_info=>get_data_ref short dump occurs.

The POP UP after executing is as below:

The Final output is

Could you please provide me suggestions for fetching the Final ALV report details.

8 REPLIES 8
Read only

Former Member
0 Likes
1,777

Hi Swetha,

Please find the below my answer.

1. Use submit statement with exporting to list memory.

From above statement the report data is moved to memory.

2..Call the function module LIST_FROM_MEMORY to get the report output from memory.

3. display output from list.

hope it will be useful.

Thanks & Regards,

Polu


Read only

0 Likes
1,777

hi Polu.. Yes I hav done that but with this option the POP UP is getting displayed and not the final output. That is my problem. I need the final output.

Read only

Former Member
0 Likes
1,777

Hi Swetha,

Please find the below sample program:

  DATA: listobject TYPE TABLE OF ABAPLIST.


SUBMIT zconfig_extract_sales EXPORTING LIST TO MEMORY AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = listobject
  EXCEPTIONS
    not_found  = 1
    OTHERS     = 2.


IF sy-subrc eq 0.
  CALL FUNCTION 'WRITE_LIST'
    TABLES
      listobject = listobject
    EXCEPTIONS
      empty_list = 01.

ENDIF.

Thanks & Regards,

Polu

Read only

0 Likes
1,777

Thanks a lot POLU.. This is what i have done but only the POP UP is getting displayed. The final list  will be displayed while clicking on the 'TICK' symbol and that is not getting captured with the SUBMIT.

Read only

0 Likes
1,777

Submit the report in background, the popup calls in the report are enclosed within sy-batch so popup would only be suppressed when called in background.

Read only

0 Likes
1,777

I think it would be better to copy the report or extract relevant select queries/logic and use them in your program

Read only

0 Likes
1,777

Hi Swetha,

yes, now i also tried so the submit is not useful in this case.

so you have only one option to copy to custom program.

suppose if you solve this in any different way then please share the solution.

Thanks & Regards,

Polu


Read only

0 Likes
1,777

Hi Polu,

Yes I solved this only by copy the program and the FM required for my lofic. I dont think there will be any other solution for this one.

If the pop up had ot appreared then the use of ALV class  cl_salv_bs_runtime_info would hav been of some help.

Regards,

Swetha.