2020 Nov 18 5:24 AM
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
2020 Nov 18 5:26 AM
2020 Nov 18 9:34 AM
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!
2020 Nov 19 7:18 AM
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 .