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
Similar Messages
-
Get Invoice Number after adding the invoice
Hi,
I am adding a service invoice to SBO using the DI api. I am able to create the Invoice successfully. Immedietly after I execute the Invoice.Add line, I would like to get the Docentry that was assigned to the invoice. What is the bst way to do this? Appreciate any help you can give me.\
See code I am using:
private void CreateSAPServiceInvoice()
SAPbobsCOM.Documents oServiceInvoice;//ChargeBack Invoice.
SAPbobsCOM.Documents oPaymentInvoice; //Orig: Invoice
SAPbobsCOM.Payments_CreditCards pCC;
oServiceInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
SAPbobsCOM.BoObjectTypes.oInvoices);
oPaymentInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
SAPbobsCOM.BoObjectTypes.oInvoices);
oServiceInvoice.DocType=SAPbobsCOM.BoDocumentTypes.dDocument_Service;
oServiceInvoice.CardCode = pmt.CardCode;
int x = pmt.Invoices.Count;
//Get CC Payment Info
pCC = pmt.CreditCards;
for (int i=0;i<pCC.Count;i++)
pCC.SetCurrentLine(i);
this.CBAccountInfo= modcb.cbaccts.Find(pCC.CreditCard);
if (this.CBAccountInfo != null)
//Service lines
oServiceInvoice.Lines.ItemDescription = this.pCBAcct.AccountName;
oServiceInvoice.Lines.AccountCode = pCC.CreditAcct;
oServiceInvoice.Lines.Price = pCC.CreditSum;
oServiceInvoice.Lines.TaxCode="0";
oServiceInvoice.Lines.Add();
//Add the invoice only if any lines have been added to the
//Service Invoice.
if (oServiceInvoice.Lines.Count > 0)
//Add the invoice
int j = oServiceInvoice.Add();
if (j!=0)//If there is an error
int ix; string m;
frmMain.oCompany.GetLastError(out ix,out m);
throw new Exception(ix + ":" + m);
else
j =oServiceInvoice.DocNum;I think this thread might have some useful information for you.
After Save Document: How to get DocNum, LineNum -
UDF at header level will not auto refresh before & after adding the invoice.
Hi All,
I have a FMS query in the UDF at AR Invoice header level. I have set the FMS query to auto refresh when tax rate field changes but the UDF doesn't auto refresh when there is a tax code in the document.
I will need to add the invoice first then open the added invoice and press shift+F2 to get the calculated amount in the UDF to update the invoice.
How to get the UDF to auto refresh whenever the tax code has changed? Or after the invoice has added?
The FMS query:
SELECT sum(T0.[TotalSumSy]) FROM INV1 T0 inner join OINV t1 on t1.docentry = t0.docentry WHERE T0.VatGroup in ('SR','DS','AJS') and t1.docentry = $[OINV.docentry]
Thanks & BR,
LengHi,
I solved the problem following the steps in SAP note 633285 - Printing the total Vat amounts in each Vat group, https://websmp130.sap-ag.de/sap/support/notes/0000633285
In order to print in the order the Vat amount in each vat group Please perform the followed stages:
Go to Tools (in the SBO tool bar ) and chose Manage User Field
In Marketing Documents (Rows) add new fields according to the Num of the vat groups that you are using in Orders (e.g. A1, A2 ,A4) The type : Units and Totals - the Structure: sum in the order each column will represent the vat amounts in the line but only for certain Vat Group
in order that each column will display the vat amount in the line only if it belong to certain Vat group we attach a query to each column: (e.g. we have 3 columns : A1, A2, A4) .the queries are;
SELECT $[$38.82.NUMBER] WHERE $[$38.18.0] = 'A1' FOR BROWSE SELECT $[$38.82.NUMBER] WHERE $[$38.18.0] = 'A2' FOR BROWSE SELECT $[$38.82.NUMBER] WHERE $[$38.18.0] = 'A4' FOR BROWSE Now each column will display the vat amount only if it in the relevant vat group
in the order document printing template you need to add those Vat column in our example we add 3 data fields : the file: Order - Rows , the Field: A1/A2/A4 - you can hide (un visible ) this columns as needed
in the Repetitive Area Footer add a calculation field for each vat groupthe Type: Column Total , the Column: Order; A1/A2/A4 in each calculate field you will get the sum amount of the vat in the relevant Vat group. (in addition you can add text fields with a relevant description for the calculation fields)
Thanks & BR,
Leng -
Cs6 won't update after adding the cloud.
getting error code U44M1P7
Please try to follow the steps given in the help document.
http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html
In addition please aslo try the solution given in the following link.
http://helpx.adobe.com/photoshop/kb/photoshop-cs6-updates-dont-install.html -
Hi All,
I have a senario:
I have Posted A/P Invoice With Vendor XXX, Vendor Reference number is 111. I should be able to post another A/P Invoice using the same Vendor Reference number-111 but Vendor is YYY.
But I should not be able to post same vendor reference number - 111 in two A/P invoices where the vendor is same. (Say Vendor is XXX).
How do I satisfy these two conditions??????
Regards,
Sree.Hi Sree,
SAP Business one will not allow you to to have the same reference number even if it is for another supplier.
This is known SAP validation.
Regards,
Rakesh -
[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 -
Invoice/Goods Receipt number field
Hi kishan,
why you have locked my thread.
I didn't find one,
I just asked, is there any field for invoice number in Purchase order history.
regards
vidyasagar yadav c
Edited by: vidyasagarc on Mar 2, 2012 3:59 PMIf you are referring to this thread: Invoice/Goods Receipt number field, then I have to say that I honestly did not find a question in that post. And since these forums are meant to ask questions, rather than doing a status update, I locked the thread.
pk
PS: Thomas has mentioned some important tips, which you may find very useful for future posting. -
Vendors PAN Number field Mandatory in Vendor Master Data
HI,
I am working in 4.7 EE version. I want to make Vendors Pan Number field mandatory while creating Vendor Master Data. As per my knowledge we cannot use Validation for this purpose.
Regards
SudhakarHi Parag,
In ECC 6.0 you get a tab CIN details in vendor master itself wherein you can maintain PAN no. sales tax no. etc of the Vendor.
you dont need to use any field for PAN no... If this is followed then wht you are saying is correct. But the problem is that we want to make PAN no. in CIN details tab mandatory and that is not possible.
Regards,
SAPFICO -
Account ID (HKTID) is not updating in MIRO after saving the Invoice
Dear Gurus,
While creating invoice in MIRO I have filled the House bank and Account ID fields in the payment tab. After saving the invoice the House bank is getting updated but the field Account ID is emptied so this account ID is not transmitted to the accounting documents.
Please share your ideas to get the Account ID.
Thanks in Advance
Krishna kumar. MHi Mukthar,
Thank you for your reply.
Both House bank and Account ID fields are there in BSEG table and MIRO screen as well. For example I can create manual invoice in F-43 with House bank and Account ID and both are updated in BSEG table. But in MIRO I have problem that document is posting only with House Bank not the Account ID.
In FBZP we have proper house bank configuration settings as well.
Your input is highly appreciated.
Thank you
Krishna kumar. -
Operation number field not appearing in the billing document
Team-
Recently we have done EHP5 upgrade and after that operation number field is available in the sales document but operation number field is not available in the billing document. Any idea why ?
ThanksHi
Check what patches have been put in EHP5.As it is related to field.,its better to check the configuration settings and if everything is fine then,its better to take your technical team help by checking where the operation number field is getting updated in the sales order and check whether the operation number field is coming blank in billing document or not.
Regards
Srinath -
Invoice generated with a different amount than in the invoice plan
Hi All,
I have a problem with the invoice, generated by using transaction MRIS, which is taking an amount other than the amount in the invoice plan (partial invoicing plan).
The invoice plan is till 31.12.2010 in the PO with amount 4000. The invoice generated on 3.2.2011 is for an amount of 5000.
Can any one tell me why an invoice is generated with an amount other than the invoicing plan amount.Hello
Is it entry msitake or else hand written mistake ? If it is entry mistake ,you can check payment document number where that .3 debited to roudning off GL account.
Regards
Mani -
When i was updating i phone version 4 from Itunes. It got stuck in middle of updating, after uninstall the version3. But new version was not installed. Now itunes is not detecting the iphone and iphone is also not working and showing connection cable with itunes. Pls help..
Check your system for possible Malware. But you have to do it in WIndows Safe Mode.
(Do not use your own Anti-virus to SCAN)
Start your computer in "Safe mode with networking", go to this link download a free version of Malwarebyte.
http://www.malwarebytes.org/products/malwarebytes_free
Install and perform update immediately, then do a full SCAN. Remove malware if it indeed finds any. Restart computer to regular windows to let Malwarebyte complete the removal.
To start your computer in safe mode
Press and hold the F8 key as your computer starts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you'll need to try again by waiting until the Windows logon prompt appears, and then shutting down and restarting your computer.
On the Advanced Boot Options screen, use the arrow keys to highlight the "safe mode with networking" option, and then press Enter. Log on to your computer with a user account that has administrator rights.
When your computer is in safe mode, you'll see the words Safe Mode in the corners of your screen. To exit safe mode, restart your computer and let Windows start normally. -
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 -
SRM Vendor product number field populating to PR
Hi,
We are trying to pass "Vendor product Number" value from non-catalog sc to purchase requisition "Vendor Mat" field using BAP_REQUISITION_CREATE. However, the value entered on shopping cart is not coming to PR.
We are on SRM 50. searched oss notes and found couple of them..but it seems they are not relevant for our version.
appreciate any inputs on this.
Thanks
KrishHi Krishna,
In whcih field you are entering vendor mat no in shopping cart
Thnaks
Ravi -
Can anyone please help us finding the field " Vendor Product Number". We have the information that this is a standard field on the shopping cart and is part of the standard content and This field is also available on Catalog Purchase Orders
Please help us recognizing the appropriate field tech name from the shopping cart extractor.
Hints are appreciatedHi Masa,
Appreciate your prompt response. My issue is not Vendor Part Number. We are using Manufacturer Part Number field in our SRM-MDM catalogs. OCI is transferring the data in this field to SRM SC but it is not displaying in Item Data tab in SC. I can see the Manufacturer Part Number value transferred from catalog in Tcode BBP_PD. As per your earlier reply, I added field MANU_PROD (Manufacturer Part Number) in Customer Meta Data for Item fields in Personalization is SPRO. After adding this field here, it should be displayed in SRM SC Item Data tab but it is not displaying there.
We are not facing any problem with field Supplier PArt Number and iit is displaying correctly in the SRM SC.
Thanks
Maybe you are looking for
-
MS SQL server 2008 - Bulk copy from XML to DB table throws bcp_init error
I have MS SQL server 2008 installed , Windows version - Windows 7 Professional with SP1 Doing a bulk copy process using the SQL library function bcp_init function in c++ throws xml error and its not inserting the data into the tables. Error received
-
Back ground execution of t.code with variant !!
Hi Team, I need excute the Z transaction code ( which is assigned to to stnadard program). How can i execute this transaction in back ground with the given specified variant. (program should be executed for every 5 mts). Regards Badari T
-
I am new to my recently installed elements 9-- I imported my photos from iphoto to the organizer--after I select a photo, and go to the fix section, I go to edit photos but the elements workspace won,t open, even though the timer dealy runs Any h
-
I try to open itunes it says that it has encountered a problem
every time i try to open itunes it says that itunes has encountered a problem and needs to close i did this with my original cd and it says quicktime wasnt installed so- i updated itunes and it still has the same problem what do i do?
-
IPod cord charges, but won't show in iTunes.
I'm having a really weird problem with my iPod. I'm not sure if the cord is broken or the data terminal on the iPod is. When I plug my iPod into my computer it doesn't charge or show up in iTunes, but if I push at the cord upwards it'll charge, but n