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

error in submit program 'rqmell20'.

Former Member
0 Likes
955

Hi All,

I have called program rqmell20 for Tcode 'QM12' using submit. It is working for notification, date fields but when I pass the values to check boxes in notif. status block (Outstndng , Postponed ) it gives me error: '

No objects were selected

Message no. IH047

System Response

No objects could be selected that met your selection criteria.

'.

Below is my code.

TABLES: rqmqmel.

data: DY_IAR value 'X'.

SELECT-OPTIONS: qmnum FOR rqmqmel-qmnum NO-DISPLAY,

                qmdat FOR rqmqmel-qmdat NO-DISPLAY.

**parameters : DY_IAR as checkbox.

**DY_IAR = 'X'.

qmnum-low = '2000014'.

qmnum-high = ''.

qmnum-sign = 'I'.

qmnum-option = 'EQ'.

APPEND qmnum.

qmdat-low = ''.

qmdat-high = ''.

qmdat-sign = 'I'.

qmdat-option = 'BT'.

APPEND qmdat.

SUBMIT rqmell20 WITH qmnum IN qmnum

                with qmdat in qmdat

                with DY_IAR eq 'X'

    AND RETURN.

Kindly help.

Thanks n Regards,

Ashmita.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
866

Check this Code .

TABLES: RQMQMEL.

DATA: DY_IAR VALUE 'X',

  P_REPID LIKE SY-REPID .

SELECT-OPTIONS: QMNUM FOR RQMQMEL-QMNUM NO-DISPLAY,

                 QMDAT FOR RQMQMEL-QMDAT NO-DISPLAY.

P_REPID = 'RQMELL20' .

SUBMIT (P_REPID) WITH QMNUM IN QMNUM

                  WITH QMDAT IN QMDAT

                  WITH DY_IAR EQ 'X'

                  WITH TASKOPEN EQ ' '

     AND RETURN.

Regard's

Smruti

6 REPLIES 6
Read only

Former Member
0 Likes
866

Hi Ashmita,

QMDAT you are not passing any values. Just comment these lines.

qmdat-low = ''.

qmdat-high = ''.

qmdat-sign = 'I'.

qmdat-option = 'BT'.

APPEND qmdat.

Now It will work because when you are not passing anything to QMDAT then the system automatically passes blank range and no need for us to create one and pass it explicitly.

Let me know if the problem still exists.

Thanks,

Tooshar Bendale

Read only

0 Likes
866

HI Tooshar,

When I run qm12 alone the date comes by default which i have to clear from z program, that is why I am passing null values to those.

Regards,

Ashmita

Read only

0 Likes
866

Hi Ashmita,

In background when you execute the program rqmell20 the dates are passed blank so the default dates do not appear. I have tried this and remove the QMDAT code it works..

Thanks,

Tooshar Bendale

Thanks,

Tooshar Bendale

Read only

0 Likes
866

Hi,

in Tcode it is having null value means you doesn't have to pass anything and doesn't mean that you manually have to pass NULL values.

thanks.

Read only

Former Member
0 Likes
867

Check this Code .

TABLES: RQMQMEL.

DATA: DY_IAR VALUE 'X',

  P_REPID LIKE SY-REPID .

SELECT-OPTIONS: QMNUM FOR RQMQMEL-QMNUM NO-DISPLAY,

                 QMDAT FOR RQMQMEL-QMDAT NO-DISPLAY.

P_REPID = 'RQMELL20' .

SUBMIT (P_REPID) WITH QMNUM IN QMNUM

                  WITH QMDAT IN QMDAT

                  WITH DY_IAR EQ 'X'

                  WITH TASKOPEN EQ ' '

     AND RETURN.

Regard's

Smruti

Read only

0 Likes
866

Solved!