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

Restrict in select options

Former Member
0 Likes
778

Hi to all experts,

I have a select option in the selection screen my requirement is that the records which have movement type 101 or 105 should only get printed even if the user select as 101 to 105 the remaining (102,103,104) records should not get printed how can we achieve this

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
757

While printing you can add the condition and check for the movement types, if the value is stored as a field in the table.

If, not I will suggest to add it, so it will be easy for you to modify the output as per your requirements.

5 REPLIES 5
Read only

Former Member
0 Likes
757

Hi Mozam

In your select query put

WHERE BWART NOT IN ( '102 , '103', '104' )

Pushpraj

Read only

amit_khare
Active Contributor
0 Likes
758

While printing you can add the condition and check for the movement types, if the value is stored as a field in the table.

If, not I will suggest to add it, so it will be easy for you to modify the output as per your requirements.

Read only

0 Likes
757

Hi Amit,

Im printing from smartform . what are the other ways that we can do this

Read only

0 Likes
757

Hi Mozam,

Based on your select option for movement types get all the valid movement types from the check table for movement types into an internal table and you can print them.

In smart form you can print them using the internal table of the valid movement types.

Hope this may help you.

Regrards,

Phani.

Edited by: phani kiran bondada on Feb 26, 2009 2:04 PM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
757

>

> Hi Amit,

>

> Im printing from smartform . what are the other ways that we can do this

Hello Mozam,

You must have developed a custom driver program for this purpose. And in the SF interface have you must have passed an internal table with the Movement details ?

If yes, you can delete the other movement types from this table & keep only the required ones.

DATA: 
R_BWART TYPE RANGE OF BWART,
WA_BWART LIKE LINE OF R_BWART.

WA_BWART-SIGN = 'I'.
WA_BWART-OPTION = 'EQ'.
WA_BWART-LOW = '101'.

APPEND WA_BWART TO R_BWART.

WA_BWART-SIGN = 'I'.
WA_BWART-OPTION = 'EQ'.
WA_BWART-LOW = '105'.

APPEND WA_BWART TO R_BWART.

CLEAR WA_BWART.

DELETE ITAB WHERE BWART NOT IN R_BWART.

BR,

Suhas

Edited by: Suhas Saha on Feb 26, 2009 9:44 AM