‎2007 Jun 25 4:43 PM
Hi,
I am getting data(LABST) from MARD. I am entering the Matnr, werks.
And also i have to compare with LGORT(it is also Key field). if Storage location first Char 'M' or 'G', it has to retreive data. How can i compare matnr wrks and lgort
regards,Ajay Ram
‎2007 Jun 25 5:51 PM
Hi
Use below code.
Select matnr LGORT WERKS LABST from mard into table itab
where matnr = P_matnr and
Werks = p_matnr and
Lgort = 'M' or lgort = 'G'.
Reward me if its helpful.
Regards
Ravi
‎2007 Jun 25 4:51 PM
Hi,
In WHARE Class write like this:
whare LGORT like 'M%' or LGORT like 'G%'.
Regards,
Bhaskar
‎2007 Jun 25 4:51 PM
Hi,
Please try this.
PARAMETERS: P_MATNR LIKE MARD-MATNR,
P_WERKS LIKE MARD-WERKS.
DATA: WA_LGORT LIKE MARD-LGORT.
SELECT SINGLE LGORT INTO WA_LGORT
FROM MARD
WHERE MATNR = P_MATNR
AND WERKS = P_WERKS
AND ( LGORT LIKE 'M%' OR LGORT LIKE 'G%' ).
Regards,
Ferry Lianto
‎2007 Jun 25 5:49 PM
HI Ferry,
I want to retrieve the LABST (Total Stock ) from MARD.
regards,Ajay Ram
‎2007 Jun 25 5:51 PM
Hi
Use below code.
Select matnr LGORT WERKS LABST from mard into table itab
where matnr = P_matnr and
Werks = p_matnr and
Lgort = 'M' or lgort = 'G'.
Reward me if its helpful.
Regards
Ravi