on 11-25-2014 9:15 AM
Hi All,
I need to fetch the Vendor,Delivery,Delivery Line Item, Identification, Material,Reference Doc no(PO #), Ref Item(PO Line no), Receiving Plant (Shipping notification), Bill of Lading (Shipping notification Header) from tables LIPS and EKPO where in I have to display the Open items from EKPO.
How to join LIPS and EKPO tables as the length of LIPS-POSNR and EKPO-EBELP are different. Is there any other way to fetch the data?
Awaiting your replies.
Thanks,
Haritha
Hi
Use LIPS-POSNV (Originating item) = EKPO-EBELP.
Thanks
Raju C D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
after seeing this answer for years I am pleased to announce there now finally seems to be a fix for this in 7.50
inner join lips on lips~vgbel = ekko~ebeln and substring( lips~vgpos, 2, 5 ) = ekpo~ebelp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vidya.p ,
I would suggest [ append a zero in front and pass ] you to include the function lpad(ebelp , 6 , '0')
the 6 denotes the length that needs to be there since its std length is NUMC5 as vgpos has NUMC6
'0' => Digit that needs to be appended
Now after this Exact syntax syntax given below EBELP Acts as NUMC6 and the Logic works 🙂
Example :
lips.vgpos = lpad( ekpo.ebelp , 6 , '0')
Regards,
Akash R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have a look at pages 23 and 25 of this relations table (one of my favourites), I think this is what you are looking for:
http://ddd.uab.cat/pub/trerecpro/2007/hdl_2072_5419/PFCLopezRuizAnnex3.pdf
The other recommendation I have is to download ztablescope, which, if I remember correctly is available somewhere here on scn. This really helped me to find table links.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Haritha,
Declare a variable 'X' of char type of length 10.
Then use MOVE statemnt:
MOVE 'POSNR' into X(Character Field).
Regards,
dipti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.