2010 Oct 26 9:09 AM
Dear Gurus,
parameters : p_matnr type matnr, p_maktx type maktx.
when i take F4 help on Matnr the corresponding Material Description should also be transferred to P_maktx
I implemented this very long back , i need this to be implemented again, please provide me the required inputs
I damn stuck up here.
Cheerz
Ramchander Rao.K
2010 Oct 26 9:28 AM
2010 Oct 26 9:28 AM
2010 Oct 26 9:28 AM
Hi Ram,
Implement the below logic it will work.
PARAMETERS : p_matnr TYPE matnr,
p_maktx TYPE maktx.
AT SELECTION-SCREEN ON p_matnr.
IF p_matnr IS NOT INITIAL.
SELECT SINGLE maktx INTO p_maktx
FROM makt
WHERE matnr = p_matnr.
ENDIF.
But the thing is you need to press Enter after the Material value is populated through F4 Help.
Regards,
Santosh
2010 Oct 26 9:32 AM
Hi
Have an internal table i_mara as mara. Then at selection scren try the following code :
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_matnr.
SELECT matnr
maktx
FROM mara
INTO CORRESPONDING FIELDS OF TABLE i_mara
WHERE matnr LIKE 'OR%'
AND spras EQ 'EN'.
After completing this, populate it in your function module 'F4IF_INT_TABLE_VALUE_REQUEST'. It works.
Hope this helps you.
Regards
Vinodh
2010 Oct 26 10:12 AM
Hi Vinod,
i am surprised that where u'll find the MAKTX field in MARA table which u have used in the select query. And also the base question is on parameter no select options which u have used in the at selection screen statement.
Regards,
Santosh
2010 Oct 26 10:03 AM
2010 Oct 26 10:47 AM
Hi Santhosh
I tried to explain that you can have a inner join of the tables and move corresponding fields and have it in an internal table.