on 2025 Mar 10 2:58 PM
Hi everyone,
I'm facing an issue with a query that is supposed to retrieve data from the MARM table, specifically the UMREN field. However, the query consistently returns the value 10, which is incorrect. Below is the code I am using:
DATA: lv_umren_ea TYPE P. CLEAR lv_umren_ea. SELECT SINGLE MARM~UMREN INTO lv_umren_ea FROM MARM JOIN MARC ON MARM~MATNR = MARC~MATNR JOIN CAUFV ON MARC~WERKS = CAUFV~WERKS WHERE MARM~MEINH = 'EA'. Z_EA = lv_umren_ea.
Could anyone help me identify what might be wrong with this code? Any suggestions or insights would be greatly appreciated.
Thank you!
Request clarification before answering.
You are right. I have adjusted the code, but I am still not getting the desired result. The result remains the same.
DATA: lv_umren_ea TYPE P,
lv_matnr TYPE MARM-MATNR.
CLEAR lv_umren_ea.
CLEAR lv_matnr.
SELECT SINGLE MATNR
INTO lv_matnr
FROM MARM
WHERE MARM~MEINH = 'EA'.
SELECT SINGLE MARM~UMREN
INTO lv_umren_ea
FROM MARM
JOIN MARC ON MARM~MATNR = MARC~MATNR
JOIN CAUFV ON MARC~WERKS = CAUFV~WERKS
WHERE MARM~MEINH = 'EA'
AND MARM~MATNR = lv_matnr.
Z_EA = lv_umren_ea.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.