Outgoing Payment Transaction notification...
Hi all,
I designed the following Transaction notification for outgoing payment.It is working well If doctype is 'C' or 'S'. I want to do this for Doctype 'A'. But not successful....
Waiting for your replies..
IF @transaction_type = 'A' AND @object_type = '46'
BEGIN
--If exists (SELECT T0.docentry FROM OVPM T0 where t0.docentry = @list_of_cols_val_tab_del and T0.cashsum>=20000000)
-- begin
-- SET @error = 10
-- SET @error_message = N'You cannot Pay Cash More than Rs. 2000/-'
-- end
If not exists (SELECT T0.docentry FROM OVPM T0 where t0.docentry = @list_of_cols_val_tab_del and
(((t0.cardcode like '%%VDLI%%' or t0.cardcode like '%%CDLI%%' ) and t0.Series = '61' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VAHD%%' or t0.cardcode like '%%CAHD%%' ) and t0.Series = '64' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VMUM%%' or t0.cardcode like '%%CMUM%%' ) and t0.Series = '63' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VLDH%%' or t0.cardcode like '%%CLDH%%' ) and t0.Series = '66' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VKOL%%' or t0.cardcode like '%%CKOL%%' ) and t0.Series = '62' and (t0.doctype = 'S' or t0.doctype = 'C' ))
begin
SET @error = 11
SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
end
END
Regards
Deepak tyagi
Hi Deepak,
Try this way:#
if @object_type='46'
BEGIN
IF @transaction_type='A' OR @transaction_type='U'
BEGIN
DECLARE @OPCHDocEntry int
DECLARE @OPCHDocType nvarchar(1)
SET @OPCHDocEntry = CAST(@list_of_cols_val_tab_del as int)
SET @OPCHDocType = (SELECT DocType FROM OPCH WHERE DocEntry=@OPCHDocEntry)
IF @OPCHDocType in ('S','C')
BEGIN
If not exists (SELECT T0.docentry FROM OVPM T0 where t0.docentry = @list_of_cols_val_tab_del and
(((t0.cardcode like '%%VDLI%%' or t0.cardcode like '%%CDLI%%' ) and t0.Series = '61' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VAHD%%' or t0.cardcode like '%%CAHD%%' ) and t0.Series = '64' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VMUM%%' or t0.cardcode like '%%CMUM%%' ) and t0.Series = '63' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VLDH%%' or t0.cardcode like '%%CLDH%%' ) and t0.Series = '66' and (t0.doctype = 'S' or t0.doctype = 'C' ))
or ((t0.cardcode like '%%VKOL%%' or t0.cardcode like '%%CKOL%%' ) and t0.Series = '62' and (t0.doctype = 'S' or t0.doctype = 'C' ))
begin
SET @error = -1000
SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
end
END
IF @OPCHDocType ='A'
BEGIN
If not exists (SELECT T0.docentry FROM OVPM T0 INNER JOIN VPM4 T1 ON T0.DocEntry = T1.DocNum and t0.docentry = @list_of_cols_val_tab_del and
(t1.acctcode like '%%ADLI%%' and t0.Series = '61' and t0.doctype = 'A' and T1.LocCode = '1' )
or (t1.acctcode like '%%AAHD%%' and t0.Series = '64' and t0.doctype = 'A' and t1.LocCode = '2' )
or ( t1.acctcode like '%%AMUM%%' and t0.Series = '63' and t0.doctype = 'A' and t1.LocCode = '3' )
or ( t1.acctcode like '%%ALDH%%' and t0.Series = '66' and t0.doctype = 'A' and t1.LocCode = '5')
or ( t1.acctcode like '%%AKOL%%' and t0.Series = '62' and t0.doctype = 'A' and t1.LocCode = '4')
BEGIN
SET @error=-1001
SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
END
END
END
END
Thanks,
Neetu
Similar Messages
-
Bank Charges on outgoing payment
Currently using SAP 8.8 PL 14
Question: On outgoing payments through Bank or RTGS there is some charges deduct by bank on these services. presently these charges are not showing in bank books.
we are punching service entries extra for bank charges.
is there any solution to charge the same within single entry.
Regards
HumraajHi Humraaj,
please have a look at the article below for a workaround:
[Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b08e828f-f2d0-2c10-41b1-dbb0b9943ee8]
All the best,
Kerstin -
Error in posting of outgoing payment
Dear all,
While I am trying to post outgoing payment (Transaction F-53) I receive message " The entry 222 (My company Code) is missing in table T043G"
Please tell me how to fix it
Thank in advance
MinhHi,
Check the below path, where your company code (222) should be there with or without tolerance group...
IMG > Financial Accounting > Financial Accounting Global Setting > Document > Tolerance group > Define tolerance group for employees..
Here you have to enter the following parameters,
Amount per document
Amount per open item account item
Cash discount per line item
And the permitted payment differences if necessary....
And again execute your transaction.
I hope it works
Saravanan.A -
Hi All
How can i do payment for vendor by using outgoing payment, I will be using check as my payment mean.
I need to print the check also( I need to enter manual check number) in the payment mean window.
Reason for this question is i reported a question with SAP
Detailed problem description:
Hi
Facing a problem while printing "Outgoing Payment", While making out
going payment we make manual cheque and print the same by using Cheque
for payment.In the first print out of Outgoing payment amount and cheque
number will print properly, if i take a second print out of the same
outgoing payment it will print a different Cheque Number
I will give an example
First Printout
Outgoing Payment No:33129
Amount: 9239.95
Cheque Number 602975
Second Printout
Outgoing Payment No:33129
Amount:9239.95
Cheque Number:590078.
Help me
Regards
RashidHi Rashid,
In Outgoing Payment Transaction when making payment through Cheque if you select as manul then then understands it as that you have handwritten the cheque, hence no need for print.
If you are taking the print out again then it will automatically allocate the cheque No Manually(serially) which is defined in" House Banks Accounts " setup screen in Administration-> Setup->Bank
So for you to have a proper cheque No display you define the Next Cheque No in House of Bank setup window. and also while taking the print out, you will get a screen once print of cheque has come stating if the print out is confirmed, not printed or damaged. fill in the correct data, like if you need to print the cheque again fill in as not printed then same cheque No will reflect again.
hope this information helps you out.
regards,
Shreyas -
What are the Transactions for outgoing payment ?
Hi,
i look for the transactions to use for outgoing payment for each payment method
Please advise
Regards.You need to add payment method (ZLSCH) as an additional selection item using T Code O7F1. It will then appear as an addition selection in F-53 (post outgoing payment), when you select radio button 'Others' under Additional Selections. You must be already aware that you can restrict automatic payment program (F110) to certain payment method(s).
-
Missing transactions in outgoing payments / incoming payments
Hello Experts,
My customer operated the year transfer process and created a new DB. From that point , he faces a problem with the outgoing payments and incoming payment forms.
In the new DB there are missing transactions in the forms mentioned above. We tried to analyze it and we got to the conclusion that the transactions who created by journal entry whose type is JE -30, has transfered to the new DB, but these transactions are not displayed in the outgoing payments and incoming payment forms.
This issue making a big problem with payments because you don't know if any transactions are missing.
Does anybody have an idea hoe to solve it ?Hi,
Since only few countries could use this year transfer process, I am afraid you had better log a message to SAP support. That may give your answer faster.
Thanks,
Gordon -
Is there any way to cancel only 1 transaction in an Outgoing Payment?
Dear Experts,
If I have an Outgoing Payment that was already posted, and it consists of 100 invoices. Lets say one day I realized 1 of the invoice was posted wrongly, and I wish to cancel that invoice (with credit memo) and also from the Outgoing Payment. Is there any other efficient way where I can cancel only that invoice in the Outgoing Payment, without canceling the Whole Outgoing Payment?
Because, canceling the Whole Outgoing Payment will mean that I need to re-add the 99 invoices again in a new Outgoing Payment, which is very troublesome. Is there a way to do this? Or is there any efficient workaround this procedures.
Much Thanks in Advance for your advice.
Warmest Regards,
ChinhoChinho,
You may post your request to the following forum, so that it will be a candidate to be developed in future version:
/community [original link is broken]
Thanks,
Gordon -
Transaction F-53 Post outgoing payments
Hi.
I have used BAPI_ACC_INVOICE_RECEIPT_POST for posting of invoice receipt / outgoing payment with success.
But I futhermore want to mark my reference document / received invoice as cleared.
Technically I wants to fill the clearing information on table BSEG with information (AUGDT, AUGCP, AUGBL etc.).
Can any of you give me the name of a BAPI, function module or method which can do this in the right way?
I have tried to do this with function module FI_DOCUMENT_CHANGE, but I am not allowed to do it this way, I think it is also a bit more complicated than a simple update.
Thank you in advance,
and best regards
Søren Holmen, March ITCreate a substitution at line item and substitute the field using an exit.
In the user exit, read the call stack to get the values you want to update and just pass them to the respective field in BSEG. -
Dear All Experts,
I want to write a Transaction Notification that if a particular Outgoing Payment is being added by cheque (Vendor or On Account) then a field in table OVPM should not be blank.
Otherwise it should be added.
Plz help me to do this.Hi,
Your requirement is not clear. To get solution, please explain.
Thanks. -
Approval procedure for Outgoing payment
Dear all expert,
I want to know how to make approval procedures for outgoing payment. So, everytime user create outgoing payment, it can't be printed until it's approved by Chief Acct. Where do i set this approval, because i see in the approval module, there is no outgoing payment document.
ThanksI have checked that, at least until 2007A version PL49 Outgoing payment has not yet added to Approval Template. You may use SP Transaction Notification to block some users for posting.
Thanks,
Gordon -
Stop Outgoing payment from particular users if BP credit balance is less
Hi Experts
Please help me with the following issues
I want to be able to stop 3-4 specific users from generating outgoing payment if the following applies
1. the BP ledger Balance is Less than outgoing payment i.e if there is Rs. 100 credit balance then those users cannot make outgoing payment to BP more than Rs. 100
2. they also cannot make outgoing payments more than a set limit. for ex. if i say that user A has Rs. 50 as limit then he can generate only those payments where the outgoing payment amount is MAximum rs.50 even though the ledger balance is Rs. 150
I feel that this can be done through sp_transaction notification please help me with the SQL code for the same
thanks
regards
PradiptaPlease use the following code as a guideline and test it. In the code below the first select statement gets the User Code of the user adding the Outgoing Payment. this is your starting point to validate this transaction further.
In the first IF statement I am checking if the user code = 1 and checking the outgoing payment total against the BP balance and if it is greater message will be displayed.
In the Second if I am checking if the Outgoing payment amount is great than 100 and displaying a message.
This code does not use your current limit stored at the user table but has been constructed based on your future interest to hardcode values.
Please get the user codes corresponding to the users by running this query either in SQL or in SBO
SELECT T0.UserID, T0.U_NAME AS 'User Name' FROM [dbo].[OUSR] T0
SBO_SP_TransactionNotifiation code is below
IF @object_type = '46' AND @transaction_type = 'A'
BEGIN
declare @usercode int
select @usercode = t0.usersign
from [dbo].[ovpm] t0 where t0.docentry = @list_of_cols_val_tab_del
if @usercode = 1
begin
if exists (select t0.docnum from [dbo].[ovpm] t0
inner join [dbo].[ocrd] t1 on t0.cardcode = t1.cardcode
where t0.doctotal > -1*t1.balance AND t0.docentry = @list_of_cols_val_tab_del)
begin
select @error = 1, @error_message = 'Payment total cannot be greater than BP balance'
end
end
if @usercode = 5
begin
if exists (select t0.docnum from [dbo].[ovpm] t0
inner join [dbo].[ocrd] t1 on t0.cardcode = t1.cardcode
where t0.doctotal > 100 AND t0.docentry = @list_of_cols_val_tab_del)
begin
select @error = 1, @error_message = 'Payment total is greater than permitted limit'
end
end
END
All the very best
Suda -
Stop Cash Outgoing Payments beyond 20000
Dear All,
I want to put a transaction notification where it should stop me from saving an outgoing cash transaction greater than Rs. 20000. Kindly help me with the coding if somebody has handled the scenario. I am on SAP 8.8 PL 11.
Regards
KapilInsert this in your SBO_SP_TransactionNotification stored procedure after the line
-- ADD YOUR CODE HERE
IF @Object_type = N'46'
Begin
If (select CashSum from OVPM
where DocEntry=@list_of_cols_val_tab_del)>20000
begin
set @error = 22
set @error_message = N'Cash payment should not be higher then 20000 !'
end
End -
Table in SQL for Outgoing payments
Hi,
I am creating a SQL Statement to pull some information out regarding outgoing payments to the G/L and I expected to see the transaction lines in the RCT4 table but they don't appear.
Can anyone tell me which table this is stored in please?
thanksHi,
Outgoing payments table are OVPM, VPM1 etc.
Regards,
Jitin
SAP Business One Forum Team -
A/R Invoice - Create two outgoing payments
Hi,
We have issue here regading A/R Invoice Payment.
The A/R Invoice is $100, the payment is $200 with Interact card (Direct account payment) with $100 cash return.
The present does not work in B1; but will be developed in future release.
The present can be solved according to Peter Dominik, B1 Solution Management as follow:
Create two outgoing payments:
- payment to vendor (payment for his bill)
- payment on account reposting balance from Bank Account to some
PettyCash account (cash
withdrawal from bank account)
Now I need to source code for the present solution; because all SDK is 1 A/R Invoice and 1 Payment. Now we have to do 2 outgoing payments. We need your help for this solution.
Please find the code for one transaction below; we need 2 payment transactions.
Thank you,
Rune
oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
oPayments.Invoices.DiscountPercent = 0;
oPayments.Invoices.DocEntry = vmp_DocEntry_Int32;
oPayments.Invoices.DocLine = 0;
oPayments.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;//13;
oPayments.Invoices.SumApplied = vmp_Amount_double;
oPayments.Invoices.Add();
oPayments.CardCode = vmp_CardCode_string;
oPayments.DocDate = DateTime.Now;
oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
oPayments.TaxDate = DateTime.Now;
oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343";
oPayments.TransferDate = DateTime.Now;
oPayments.TransferReference = vmp_CardCode_string;
oPayments.TransferSum = vmp_Amount_double;
vc_Message_Result_Int32 = oPayments.Add();
if (vc_Message_Result_Int32 != 0)hi Vitor,
I need a code sample for Peter's suggestion using the code I provided:
Create two outgoing payments:
- payment to vendor (payment for his bill)
- payment on account reposting balance from Bank Account to some
PettyCash account (cash
withdrawal from bank account)
Thank you,
Rune -
How to post invoices in FI-CA related to outgoing payments
Hi
We need to make payments to vendors for our business. We are creating vendors as business partners in FICA and invoices have to be posted in FI-CA. Can someone tell me the configurations to be done for posting a invoice before making the payments. What would be the main and sub transaction for the invoice and outgoing payments?
Thanks
Santosh
Edited by: Santosh Kolleti on Nov 20, 2008 11:00 PM
Edited by: Santosh Kolleti on Nov 20, 2008 11:00 PMSanthosh,
Are you trying to Post Invoices in FICA or just FICA document with Invoice Refer no?
If former, it is a very big config and you need to sit with Billing Consultant.
If latter, suggest you to populate value in Reference number.
You can use any MT/ST that are used to post Open items like 0010/0030 etc
Hope this helps
Rgds
Rajendra
Maybe you are looking for
-
My PC restarts when I plug in my iPod Nano.
Hi. Can anyone please help? Sometimes when I plug in my iPod Nano my computer re-boots. It doesn't always do a clean re-boot and I have to unplug the Nano and re-set the computer a couple of times. I have seen similar problems on this forum, and no,
-
Text not found for item line in PO
Hi, When creating an item line in ME23N, I get the error message: TEXT ID Z155 language EN not found. When are these texts maintained ?
-
i can see all of the thumbnails in my library but when i click on photo it becomes an ! not all photos do this but wondering if there is a fix
-
How to user Error Trigger for mapping - trying to catch row-based errors
Hello everyone, Has anyone managed to use the error trigger for a mapping? I created a row based map with the right parameters (i set the error trigger procedure which I already created in the database). For this map after run i have 5 warnings which
-
How to add my own order of songs to my iphone
How to add my own order of songs to my iphone