on 2014 May 12 9:44 AM
Hello Experts,
i have a question i want to ask you for you for your urgent assistance.
A customer wants to see the G/L account code and Name on the outgoing payment report when they do payments on doctype='A', that is on account.
I want someone to help me with a query that will automatically pick the G/L account code and name on a UDF i have created on the title of the payments.
So that i use the OVPM to bring out the Account code and name.
Please urgent help is needed.
Thanks
Hello Experts,
below is a query i did, but i need some touches to this query to update my UDF.
declare sapupdate cursor for SELECT T1.[AcctName]
FROM OVPM T0 INNER JOIN VPM4 T1 ON T0.[DocEntry] = T1.[DocNum]
WHERE T0.[DocType] ='A'
declare @ucc varchar(20)
open sapupdate
fetch sapupdate into @ucc
while @@FETCH_STATUS =0
begin
if @ucc <>''
begin
update OVPM set u_ActName =(@ucc )
end
fetch sapupdate into @ucc
end
close sapupdate
deallocate sapupdate
Regards
Justice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nagarajan,what you have showed in the pic is what i want .
I want the account code and name to be automatically filled in the UDF at OVPM title.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I'm not able to understand your requirement fully.
Try below mentioned query and give your feedback as well as detailed explanation of your requirement.
replace UDF field name if this query is okey for you.
SELECT T0.[DocDate],T0.[DocNum],T1.[AcctCode]'Expense Acct', T1.[AcctName] 'Expense Acct name',T0.U_BP_DocNr[UDF GLAcct], T0.U_BP_Seque[UDF GLAcct Name], T0.[CashAcct], T0.[CashSum], T0.[CheckAcct], T0.[CheckSum], T0.[TrsfrAcct], T0.[TrsfrSum], T0.[DocTotal]
FROM OVPM T0
INNER JOIN VPM4 T1 ON T0.DocNum = T1.DocNum
Regards
Unnikrishnan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
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.