Vendor ref No
Hi
Hi
I have defined items batch wise , i want Supplier ref no automatically should come row wise when in goods receipt po i enter items batch wise. These things are required in Create Batches form.
Can anybody help me with the solution or fms query
Thanks
At one of our customers I used a table to transmit the data to the batch creation window. To make the transferred data unique, I stored the value in a line identified by the $\[USER].
- So you can create a user defined table with lines for every user and a field for the supplier reference.
- In the good receipt transaction you can make an FMS which store the production number in this table to the line identified by the $\[USER] value.
- In the batch creation window you can retrieve this supplier reference using the $\[USER] value to identify the appropriate entry.
Similar Messages
-
Aging Report with Customer/Vendor Ref. No. should allow backdate
Aging Reports for Suppliers and Customers.
The current printing of the aging reports using Sales Document tab or the Purchase Document tab does not tie with the GL balances when the dates are backdated. It is important that the detail aging report to show the customer/ vendor ref. no.
There are times when urgent outgoing/ incoming payment are entered into the system for the current period when the vendor detail aging reports or the customer statement with the customer/ vendor ref. no is not ready to be printed for the previous period.
By allow backdating, it gives the users much needed flexibility in creating the transactions into SAP Business One without having to wait till all the previous month financial reporting is finalized. This is especially important during the financial year end.
Current Workaround: None.Hello,
Thank you for your input. The limitation is solved in 2007 A / 2007 B version as a part of new Internal Reconciliation concept.
Regards,
Peter Dominik
Solution Manager
B1 Product Definition Team -
Vendor ref. no. not appearing in print preview of vendor aging report
Dear all,
Vendor reference number is not appearing in print preview of vendor ageing report,we have
customized template AGE3 collection report,we have taken print outs before a month,vendor
reference number get printed in report,now it is not appearing
What could be problem ?
Any one faces this issue ?
We are using SAP Business One 2005 B (7.40.252) SP: 00 PL: 41.
Latest patch upgrade to PL:46 will solve the issue ?
Jeyakanthanhi all,
Thru a workaround i brought up vendor reference number in print preview/print,
Applied formatted search in journal remarks of ap invoice thru query
SELECT $[OPCH.NumAtCard]
,this will populate vendor ref. no in journal remarks
which can be displayed in details in aging report.
Is there any solution other than above to bring vendor reference number in print ?
Jeyakanthan -
Vendor Ref. Number from A/P Invoice & Credit Memo in the Check PLD Form
Hi Guys,
We have standard PLD layout form for the Check Document. In our case the Check Document based on the outgoing payment and outgoing payment referenced on A/P Invoice and Credit Memo documents.
Is there someone who knows how to get "Vendor Ref. Number" (NumAtCard) field from A/P Invoice and Credit Memo in the Cheque form?
Any ideas will be appreciated.
Thanks so much,
SergeyHi Nagarajan,
Thanks a lot for your answer! Yes, you are absolutely right, the variable number for this field was #100.
Unfortunately, this solution worked partially for us. In our case, we also needed to specify a "Document Date" (Tax Date) for the ref. document and there was a problem, because we could not find SAP variable number for this (I don't know if this exists?)
In the final, I just related "OJDT" to "VPM2" table and after that I have got my "TaxDate" field.
So we are good now.
In addition, maybe you know where can I get a variable numbers catalogue or something like that?
Thanks,
Sergey -
A/P Invoice Vendor Ref Number Field updating after adding the Invoice Copy
Hi All,
I am able to change the Vendor Reference number in A/P Invoice Document after adding the Document. I want to restrict this to happen. Plzz help how to do this????
Regards,
Sree.1.The Modify Posted A/P Documents authorization refers to some fields only, e.g. the Due Date or Pay to address.
2. Additional authorization can be defined only for full forms, not for fields.
3. The SP Joseph suggests will refuse those modifications when the Vendor ref is empty.
To avoid modifying the Vendor ref you can use this code:
IF @Object_type = N'18' and @transaction_type = N'U'
BEGIN
declare @li int
set @li=
(select max(t.LogInstanc)
from ADOC t
where t.ObjType=18 and t.DocEntry=@list_of_cols_val_tab_del)
IF
(select isnull(t.NumAtCard,'')
from ADOC t
where t.ObjType=18 and t.DocEntry=@list_of_cols_val_tab_del
and t.LogInstanc=@li-1)
!=(select isnull(t.NumAtCard,'')
from OPCH t
where t.DocEntry=@list_of_cols_val_tab_del)
begin
Set @error = 10
Set @error_message = N'Vendor refernce not modifiable !'
end
END
Or if you want to allow modifying an unfilled reference, then this:
IF @Object_type = N'18' and @transaction_type = N'U'
BEGIN
declare @li int
declare @pref nvarchar(100)
set @li=
(select max(t.LogInstanc)
from ADOC t
where t.ObjType=18 and t.DocEntry=@list_of_cols_val_tab_del)
set @pref=
(select isnull(t.NumAtCard,'')
from ADOC t
where t.ObjType=18 and t.DocEntry=@list_of_cols_val_tab_del
and t.LogInstanc=@li-1)
If @pref !='' and @pref !=
(select isnull(t.NumAtCard,'')
from OPCH t
where t.DocEntry=@list_of_cols_val_tab_del)
begin
Set @error = 10
Set @error_message = N'Filled vendor refernce not modifiable !'
end
END -
Preventing two AP invoices with the same Vendor Ref. No.
The system warns me that there are are other documents already entered into the database with the same Vendor number and Vendor Ref. No. if I try to enter such. Is there a way to tell the system (2007a) to prevent entry of these documents?
Thank you,
SalThis is a Stored Procedure provided by SAP and can be accessed from SQL Server Management Studio
Please look at this NOTE which explains this procedure in detail
https://service.sap.com/sap/support/notes/990343 -
Customer Vendor Ref. No. in Incoming Payment
B1 8.8 PL14 and PL18
Are we able to include the Customer Vendor Reference Number in the Incoming Payment?
1. Open Incoming Payment
2. Select Form Settings
3. Cust./Vendor Ref No is selected as Visible but the Incoming Payment window does not display the Cust./Vendor Ref. No.
I then Deselect Cust./Vendor Ref No in the form settings and Click OK. Then I open the Form Settings window and the Cust./Vendor Ref No. is still set as visible.
What am I missing?This is what I did and is seams to be working.
1. Tools -> Customization Tools -> User Defined Field - Management
2. Expand Payments
3. Click Paid Documents
4. Click Add Button
5. Create a query to auto-populate the field
SELECT T0.[NumAtCard] AS 'BP Reference No.' FROM [dbo].[OINV] T0 WHERE T0.[DocNum] = $[$20.1.0]
6. Save the Query
7. Open the Incoming Payment window
8. Place cursor in the new field and select Tools -> Customization Tools -> User-Defined Values - Setup
9. Select Search in Existing User-Defined Values according to Saved Query
10. Select the Saved Query
11. Select Auto Refresh
12. Select When Field Changes
13. Select Customer/Vendor Code -
Duplicate Vendor ref no in A/P Invoice
Dear Experts,
Kindly suggest the SP Notification to block the duplicate Vendor ref no in A/P Invoice for a Vendor Specific.
SAP has this setting to Block duplicate Vendor ref no in Document setting, but it is for all vendor for same ref no. and not vendor specific.
Regards,
Datta kharatHi Datta...........
Please try this........
IF (@object_type = '18' AND @transaction_type IN ('A','U'))
BEGIN
DECLARE @VendorRefNo AS VarChar (20)
DECLARE @BPCode AS VarChar (20)
SELECT @VendorRefNo = NumAtCard FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
SELECT @BPCode = CardCode FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
IF 1 != (SELECT COUNT(DocEntry) FROM OPCH WITH(NOLOCK) WHERE NumAtCard = @VendorRefNo AND CardCode = @BPCode) AND (@VendorRefNo IS NOT NULL OR @VendorRefNo <> '')
BEGIN
SELECT @ERROR = 1
SELECT @ERROR_MESSAGE = 'Vendor Reference No. Already Exist'
END
end
Or check this.....
Blocking A/P Invoice
Regards,
Rahul -
How to print vendor ref. no. in out going payment.
hi all,
i want to print vendor ref. no in out going payment pld.
hw to get it in pld?
regards,
chetan.Hi Chetan
In the VPM2 Table look for the field DocEntry, Join it on OPCH.DocEntry, and then look for NumAtCard in OPCH to find out the vendor's Ref No
the following query expains it
SELECT dbo.OVPM.CardName, dbo.VPM2.SumApplied, dbo.OPCH.NumAtCard
FROM dbo.OVPM INNER JOIN
dbo.VPM2 ON dbo.OVPM.DocNum = dbo.VPM2.DocNum INNER JOIN
dbo.OPCH ON dbo.VPM2.DocEntry = dbo.OPCH.DocEntry
WHERE (dbo.OVPM.DocEntry = %x%)
I hope this now solves your problem!! Cheers
Regards,
Murtaza -
Vendor Ref No. does not show in Journal Entry for AP Credit
AP Invoice journals show the vendor reference number in field Ref 2. However, when creating an AP Credit memo, the vendor reference number does not show in the journal for the credit memo, instead the field Ref 2 is used for the base document number.
I have two clients who have pointed out that they would expect to see the vendor ref number in the Ref 2 field in the journal when an AP Credit is created, as this is the functionality for Goods Receipts and AP Invoices.
Both clients are currently manually updating the Ref 2 field in the journal for AP Credit, so that in the BP account transactions view they can sort field Ref2 by vendor reference number.
Does anyone have any suggestions on a work around for this?
Thanks,
Lianne PlantHi Lianne Plant,
You may check: Journal Ref2 field : AP credit note
Thanks,
Gordon -
Stored Procedure for checking Invoice Vendor ref No
Hi All
I need a sp for checking a vendor ref no on an invoice if it already exist in the system or the user forgot to include one when trying to add the document.
I get this error on the one that I created
16/03/2010 12:21:54: [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value '24 0' to data type int. (CINF)
Here is my SP :-
DECLARE @Invoice AS VARCHAR(15)
DECLARE @Card AS VarChar (20)
SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice is null
begin
If exists (SELECT T0.cardcode, T0.NumAtCard FROM OPCH T0 where T0.NumatCard is null and T0.cardcode=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Supplier invoice number not entered.'
END
END
SELECT @INVOICE = NumatCard FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice to check if the invoice no exist
begin
If exists (SELECT T0.cardcode, T0.NumatCard FROM OPCH T0 where T0.NumatCard = @invoice and T0.cardcode=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'This invoice number already exist for this supplier.'
END
END
Regards
Bongani DlaminiThis code should be inserted into the original (or already expanded) SBO_SP_TransactionNotification stored procedure after the line
-- ADD YOUR CODE HERE )
Try this full (and a little modified) procedure:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
-- ADD YOUR CODE HERE
if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP invoice
BEGIN ----
DECLARE @Invoice AS VARCHAR(15)
DECLARE @Card AS VarChar (20)
SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
WHERE DocEntry = @list_of_cols_val_tab_del
-- AP Invoice is null
If exists (SELECT T0.cardcode, T0.NumAtCard FROM OPCH T0 where T0.NumatCard is null
and T0.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Supplier invoice number not entered.'
end
-- AP Invoice to check if the invoice no exist
If exists (SELECT T0.cardcode, T0.NumatCard FROM OPCH T0 where T0.NumatCard = @invoice
and T0.CardCode=@card and T0.DocEntry!=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'This invoice number already exist for this supplier.'
end
END ----
-- Select the return values
select @error, @error_message
end -
Duplicate Vendor Ref. No.
Dear Experts,
Is there a way restrict the "Vendor Ref. No." field on the A/P Invoice screen so that the same invoice number from a vendor is not duplicated?
In other words, we want to keep from paying a duplicate invoice.
Any suggestiions?
Also, if any of you have a client with heavy B1 A/P processing, please let me know. I would like to speak with you, especially if you moved a client off batch processing.
Thanks.
JohnDear Jane,
Try this modified Stored Procedure for A/P Invoice in Test Database and then Proceed,
I checked in my database, found working well.
if @object_type = '18'
and (@transaction_type = 'A' or @transaction_type = 'U')
Begin
declare @venno as varchar (100)
declare @vennam as varchar (100)
if (@object_type = '18')
Begin
select @venno = NumAtCard, @vennam = CardCode from OPCH T0 where docentry = @list_of_cols_Val_tab_del
Begin
if (@venno is not null)
Begin
if 1!= (select count (docentry) from OPCH with (nolock)where (NumatCard = @venno) and (cardcode = @vennam))
Begin
select @error = 2
select @error_message = 'Duplicate Vendor Ref Number!'
End
End
End
End
End
Regards,
Bala
Edited by: Balakumar Viswa on Sep 16, 2009 1:03 PM
Edited by: Balakumar Viswa on Sep 21, 2009 10:07 AM -
TransNotif block duplicate vendor ref
Hi experts,
Im using this TransNotif to block duplicate Vendor Ref in the sales order but i only want it for doc series 1 and 6, how can i achieve this.
if @object_type = '17' and (@transaction_type in ('A' ,'U'))
begin
declare @RefNo as varchar (100)
declare @CardCode as varchar (100)
declare @Series smallint
if (@object_type = '17')
begin
select @RefNo = NumAtCard, @CardCode = CardCode from ORDR T0 where docentry = @list_of_cols_Val_tab_del
begin
if (@RefNo is not null)
begin
if 1!= (select count (docentry) from ORDR where (NumatCard = @RefNo) and (cardcode = @CardCode))
begin
select @error = 10
select @error_message = 'Conduce Duplicado'
End
End
End
End
EndHi Leonardo E. Martinez
Try This you can include the series in the where condition
If @object_type = '17' and (@transaction_type in ('A' ,'U'))
begin
declare @RefNo as varchar (100)
declare @CardCode as varchar (100)
declare @Series smallint
if (@object_type = '17')
begin
select @RefNo = NumAtCard, @CardCode = CardCode from ORDR T0
where docentry = @list_of_cols_Val_tab_del and T0.Series IN (1,6)
begin
if (@RefNo is not null)
begin
if 1!= (select count (docentry) from ORDR where (NumatCard = @RefNo) and (cardcode = @CardCode))
begin
select @error = 10
select @error_message = 'Conduce Duplicado'
End
End
End
End
End
Hope Helpful
Regards
Kennedy -
[PLD] vendor ref Number variable in outgoing payment ?
Hello,
How to display the vendor ref Number in PLD on printing outgoing payment document.
We want display the ref in every line.
wath is the variable number ?
Rgds,
ThierryHello Thierry,
On the Outgoing Payments Screen if you check on the
Customer / Vendor Reference Number, you would automatically see the Vendor Reference No in the rows where the invoices are displayed.
This information also carries to the template and when you preview/print the template this information is printed through the <b>Documents paid variable</b>
<b>SYSTEM VARIABLE NO 130</b> This is Field_340 in the
<b>Outgoing Payment (System)</b> template <b>in the End of Report Area.</b>
Best wishes
Suda -
DRQ : Customer / Vendor ref. no. duplication check
Hi Expert,
At present Customer / Vendor ref. no. duplication check is perform on all documents (e.g. A/R Invoice / A/P Invoice)
Where as I believe it should be performed Customer / Vendor wise.
The reason is simple, say in a new year all customer / vendor will generate their respective A/R invoice OR A/P invoice starting from 1. So verifing it accross the documents seems sence less. If is verified that whether the same Customer / Vendor 's same document is entered earlier or not then it makes sence.
Samir Gandhias I reach 10 post, I have to compulsorily close this thread
-
Copy Customer Ref No to Vendor Ref No when create back to back Order
Hi,
I would like to copy Customer Ref No to Vendor Ref No when create back to back Sales Order to Purchase Order. Please suggest a way.
Does i need to do before form add?
If BusinessObjectInfo.FormTypeEx = "65" And BusinessObjectInfo.BeforeAction = True Then
End If
Please help!
Regards,
AnnaHello Anna,
You should update purchase order (copy the customer no ref to the vendor ref) after action (pVal = false), see the sample code here.
Private Sub FormDataEventHandler( _
ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
'Before action = true, start the transation
If BusinessObjectInfo.FormTypeEx = "65" _
And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) _
And BusinessObjectInfo.BeforeAction = True Then
oCompany.StartTransaction()
End If
'Before Action = false,
'Update purchase order
'Succeed, commit, otherwise rollback
If BusinessObjectInfo.FormTypeEx = "65" _
And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD ) Then
If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
Dim objectKey As String = String.Empty
'Get the purchase order key added right now
oCompany.GetNewObjectCode(objectKey)
Dim oPurchaseOrder As SAPbobsCOM.Documents = Nothing
oPurchaseOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
If oPurchaseOrder.GetByKey(CInt(objectKey)) Then
Dim oLines As SAPbobsCOM.Document_Lines = oPurchaseOrder.Lines
Dim salseOrderNum As String = oLines.BaseEntry
'add you code to get the custoemr ref of the sales order and set it the purchase order
lRetCode = oPurchaseOrder.Update
If lRetCode = 0 Then
'update the production tree succesfully,
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
Else
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
End If
End If
End If
End If
End Sub
Kind Regards
-Yatsea
Maybe you are looking for
-
Cannot re-install Creative Cloud on Windows PC
Creative Cloud stopped working on my user desktop. Uninstall and reinstall attempts fail. If I create another USER and logon to that account I can install and use CC fine. How do I completely remove Creative Cloud from my standard USER logon accou
-
Need Help with HTML Batch Processing
Hi, New to this forum so be kind I am trying to work out a way to batch process html's. The html template is used in our eBay listings. All the information I want to change is the same. Eg in my template I have the number "0234" it appears for 6 time
-
Has anyone seen this one....noticed password longon wasn't working ...went to password manager file and it was completely empty. holy c#$%. Hoping that it is still there somewhere and not linked?
-
Referencing of images/graphics (feature enhancement)
Something for the "Feedback" button... I require my students to include references with their slide show presentations, and I try to do the same, but it is often difficult to manage and cite images. Perhaps, an option, a command-I say for images with
-
Database, iAS and iDS installed in one box
I would like to install 9.2.0.1 Database, 9.0.4.1 iAS and 9.0.4.1 iDS all in one box, Does any body have ever had this experience before? please share your experience with me, or at least could advice me where I can find the resource or article. Than