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

'No data' message with submit in new session

jogeswararao_kavala
Active Contributor
0 Likes
823

Dear Experts,

In a report program, I am calling a standard program in a new session which is working fine when data exists. (New window opens with data).

In the other case where there is no data, nothing happens in the selection screen,

Here I want to have an info pop-up, viz.,

message 'No data exists for this selection criteria' type 'I'.

I'd tried by adding few lines after program calling lines (submit), but without success.

Please help.

kind regards

Jogeswara Rao



1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
706

Create an implicit enhancement point in the called program and write you code there

Dear Experts,

In a report program, I am calling a standard program in a new session which is working fine when data exists. (New window opens with data).

In the other case where there is no data, nothing happens in the selection screen,

Here I want to have an info pop-up, viz.,

message 'No data exists for this selection criteria' type 'I'.

I'd tried by adding few lines after program calling lines (submit), but without success.

Please help.

kind regards

Jogeswara Rao



3 REPLIES 3
Read only

Former Member
0 Likes
707

Create an implicit enhancement point in the called program and write you code there

Read only

Azeemquadri
Contributor
0 Likes
706

You can use import_list_from_memory and check if something is returned.

If nothing is returned you can populate your message.

http://www.se80.co.uk/sapfms/l/list/list_from_memory.htm

Retrieves a list from ABAP Memory exported using 'LIST_TO_MEMORY' or SUBMIT... EXPORTING LIST TO MEMROY and places it in the internal table LISTOBJECT.

Read only

0 Likes
706

Thank you Azeem,

Trying in these lines to solve the problem.

kind regards

Jogeswara Rao