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

select options in screen exit

Former Member
0 Likes
1,229

Hi All,

My requirement is to put Custom fields in ME21N at item level. I am able to put custom fields under customer data tab using exit MM06E005. Now, I want to put a select-option for a field in customer tab.

Can I create a report with selection-screen as subscreen and can I call it in the screen.

if so how to capture the select-option values?

Thanks all,

Uday Madhav

Hi All,

My requirement is to put Custom fields in ME21N at item level. I am able to put custom fields under customer data tab using exit MM06E005. Now, I want to put a select-option for a field in customer tab.

Can I create a report with selection-screen as subscreen and can I call it in the screen.

if so how to capture the select-option values?

Thanks all,

Uday Madhav

7 REPLIES 7
Read only

Former Member
0 Likes
944

Uday

Have a look at following link:

[http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html|http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html]

Thanks

Amol Lohade

Read only

Former Member
0 Likes
944

Hi Uday,

If the user is seeing a report with respect to ME21N then all the data should be passed from ME21n ideally

Can I create a report with selection-screen as subscreen and can I call it in the screen.

We can do it here to get a selection screen in the customer tab...we can also create 2 fields as

s_date-high and s_date-low as screen fields as a simple alternative

if so how to capture the select-option values?

Even if fields of date are provided..some user action is required like click of a button..once user action is captured, we can get the date fields in the custom tab..and call a custom transaction using submit program or call transaction and passing the date range to the report....Other data to the selection screen can also be transported in the same way to custom program

If more data like item details and fields not in selection screen are required to run the report ...we can do an EXPORT/IMPORT memory->press F1 for syntax

data : int_seltab type table of rsparams.

data : wa_seltab type rsparams.

wa_seltab-selname = 'P_XXX' . selection screen field name like S_ABC/P_XXX in capitals

wa_seltab-kind = 'P'. P => parameters/S => select options in capitals

wa_seltab-low =..... value...

append wa_seltab to int_seltab.

submit program via selection-screen with selection-table int_seltab

and return.

Hope it helps

Regards

Byju

Read only

0 Likes
944

Hi Bijyu,

Thanks for your reply. Instead of calling a report in the customer tab , Can I declare selection-screen as subscreen in top include of ME21N?

Read only

0 Likes
944

Can I declare selection-screen as subscreen in top include of ME21N?

dont modify the standard .......try to declare it sep......

Read only

0 Likes
944

Hi Uday,

Instead of calling a report in the customer tab , Can I declare selection-screen as subscreen in top include of ME21N?

Yes,we can do it ..but please consider the following observations

(1) we are adding fields in selection screen but not filtering the standard code anywhere and it is used only for the report to be shown in custom tab -> Recommended

**Reason : ** The standard logic is not affected

(2) we are adding fields in selection screen but filtering the standard code -> Not Recommended

**Reason : ** try to anlyse where all the filters need to be added(this is a hard task)...

If for instance we added it in selection screen using enhancements and standard logic needs to be modified...throughout the code we need to analyse and insert the code

Eg:the code (where date in s_date) in required in more than one place.....What if an implicit enhancement is not availble at a particular location?..the code will remain as good as it is without the selection screen dates or the addition will not have any logical effect..or worse... the standard logic may be affected

Hope it helps

Regards

Byju

Read only

0 Likes
944

Hi Byju,

my requirement is to put a range (select-options) for licence number(yyfield) at item level of purchase order using the screen exit MM06E005.

secondly after defining the select-option I have to store PO, vendor item no, license nos into a Z table.

how?

Read only

0 Likes
944

Uday,

Go to SMOD -> enter MM06E005 -> Click on "documentation" radio button -> display...

Detailed documentation is given to add field to item tab..please go through it in detail and revert back if any help is required....

Hope it helps

Regards

Byju