2007 Jul 31 7:34 AM
hi all
Our requirement is to display available stock details corresponding to warehouse No,, transfer order no, material no ,etc..
We are retrieving data from LTAP AND LTAK join and then we want available stock (VERME) data from LQUA,
We want to know how do we retrieve data from LQUA based on LGNUM & LQNUM.
We were able to get LGNUM from LTAP but we tried LTAP- VLQNR,/LTAP-NLQNR,/LTAP- RLQNR and compared the same with LQUA-LQNUM.
But the values were different and hence the query didnt return any result.
Could anyone please help me to get the unique record from LQUA for each record retrieved from LTAK and LTAP join. Please let me know any link between the above tables.
points guaranted
2007 Jul 31 7:58 AM
hi vijay
After selecting data from ltak and ltap, you can use query on lqua as shown below
Select * from LQUA
Where lgnum = ltap-lgnum
And lqnum = ltap-vlqnr its a quant in any transfer order
It will give you desired value of available stock.
regards
asha
hi all
Our requirement is to display available stock details corresponding to warehouse No,, transfer order no, material no ,etc..
We are retrieving data from LTAP AND LTAK join and then we want available stock (VERME) data from LQUA,
We want to know how do we retrieve data from LQUA based on LGNUM & LQNUM.
We were able to get LGNUM from LTAP but we tried LTAP- VLQNR,/LTAP-NLQNR,/LTAP- RLQNR and compared the same with LQUA-LQNUM.
But the values were different and hence the query didnt return any result.
Could anyone please help me to get the unique record from LQUA for each record retrieved from LTAK and LTAP join. Please let me know any link between the above tables.
points guaranted
2007 Jul 31 7:39 AM
Hi ,
Try with matnr field in both LQUA and LTAP
<b>Regards,
Azhar</b>
2007 Jul 31 7:41 AM
2007 Jul 31 7:44 AM
Hi,
Use LGNUM on both tables
and LQUA-LGTYP = LTAP-VLTYP and LQUA-LGPLA = LTAP-VLPLA
and get the records from LQUA
If needed use MATNR,WERKS, CHARG and VBELN fields also. for joining the two tables
rEGARDS
2007 Jul 31 7:44 AM
LTAP -> chk this table value or initial. if table is null as funcation people.
do this steps.
LQUA
LGNUM
LQNUM
LTAK
LGNUM
TANUM
LTAP
LGNUM
TANUM
TAPOS
using inner join two table LQUA LTAK -> store result it_first.
uing for all entries it_first where LTAP ->it_first LGNUM
2007 Jul 31 7:52 AM
Hi
Link the table LTAP and LQUA with the following fields
LGNUM
LQUA-LQNUM = LTAP-VLQNR (quant)
and if you want use the other common fields like
MATNR,WERKS,CHARG and
LQUA-LGTYP = LTAp-VLTYP and
LQUA-LGPLA = LTAP-VLPLA
<b>Reward points for useful Answers</b>
Regards
Anji
2007 Jul 31 7:58 AM
hi vijay
After selecting data from ltak and ltap, you can use query on lqua as shown below
Select * from LQUA
Where lgnum = ltap-lgnum
And lqnum = ltap-vlqnr its a quant in any transfer order
It will give you desired value of available stock.
regards
asha
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |