Application Development 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: 

USING SELECT OPTIONS AND DISPLAY REPORTS

former_member709258
Discoverer
616

hai

iam trying to display the MARA and MAKT report in selection screen am tacking two selection options 1. MATNR FOR MARA and 2nd one MATNR FOR MAKT WHEN I SELECT MATNR FOR MARA TABLE THEN DISPLAY ONLY MARA

DONT DISPLAY MAKT TABLE .SAME PROCESS WILL BE APPLICABLE FOR MAKT TABLE

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos
268

That's a requirement. But what is your question?

former_member1716
Active Contributor
0 Kudos
268

rams4u_dreams72,

Before we get into the solution part, I don't understand the need to display fields from tables from MARA and MAKT. To make it clear MAKT is a text table for materials maintained in MARA.

In fact you can navigate MAKT from MARA itself using the below navigation, so before getting into the development kindly understand the need for the business and deliver accordingly.

From what I understand in your question you need to develop a simple report with two fields in the selection screen. Technically you just need to follow below steps:

1) Create two fields in the selection screen, one for MARA and another for MAKT.

2) In the event AT SELECTION SCREEN ensure you validate that only one field is filled and not both are field before processing further.

3) Create two field catalogs one for MARA and another for MAKT.

4) Based on the fields input you can populate the relevant field catalog and process relevant internal table.

5) Display the table in the using FACTORY method in the AT END OF SELCTION event.

The LINK1 and LINK2 should help you get going.

Regards!

former_member429331
Participant
0 Kudos
268

If you have two select options for MARA and MAKT both will have the key field as MATNR, then I dont think you need two fields as SELECT OPTIONS . you can have one field as MATNR and get the input and pass it to MARA and MAKT .