Check calculation through SP
Hi All,
I have a scenario where I have to make sure that the correct lot quantities (udf's) are entered based on the quantity in sales quotations. The user may or may not use all the lot quantities. The requirement is like this:
Quantity - (Lot1Lot2Lot3) = 0 If the value is not zero, the user should get a message so that he could correct the quantities. I have a SP which validatesd it only for one udf. How can I get the calculation checked??
DeClArE @Lotnum1 int
Declare @Lotnum2 int
Declare @LOtnum3 int
Declare @Qty int
IF (@Object_type = '23' AnD @transaction_type IN (N'A', N'U'))
BeGIN
sELECt @Qty= T1.Quantity, @Lotnum1=T1.U_Lot1, @Lotnum2=T1.U_Lot2, @Lotnum3=T1.U_Lot3 from QUT1 T1 where docentry=@list_of_cols_val_tab_del
eNd
if (@Qty != @Lotnum1 )
begin
SET @error = 15
SET @error_message = @list_of_cols_val_tab_del +'Calculation of lots is not correct'
end
Please assist.
Thanks,
Joseph
Dear jyo
As per your Scenario. I am giving you the Exact Query which i have make for our Company . Please Try this .
Create Table #temp
ItemCode varchar(200),
Linenum int,
Docentry varchar(20),
Qty Decimal(19,2),
Lotnum1 Decimal(19,2),
Lotnum2 Decimal(19,2),
Lotnum3 Decimal(19,2),
Lotnum4 Decimal(19,2),
Lotnum5 Decimal(19,2)
Declare @Lotnum1 int
Declare @Lotnum2 int
Declare @Lotnum3 int
Declare @Lotnum4 int
Declare @Lotnum5 int
Declare @ITemCode varchar(200)
Declare @Linenum int
Declare @Docentry varchar(20)
Declare @Qty int
Declare @Status int
Declare @ErrorItm varchar(5000)
Set @Lotnum1=0
Set @Lotnum2=0
Set @Lotnum3=0
Set @Lotnum4=0
Set @Lotnum5=0
Set @Status=0
Set @Qty =0
set @ErrorItm=''
IF (@Object_type = '23' AnD @transaction_type IN (N'A', N'U'))
BEgin
Insert into #temp
Select ItemCode, LineNum,Docentry,Quantity,U_Lot1,U_Lot2,U_Lot3,U_Lot4,U_Lot5 from QUT1 where Docentry =@list_of_cols_val_tab_del
End
DECLARE C1 CURSOR FOR SELECT DISTINCT ItemCode, LineNum,Docentry FROM #temp
OPEN C1
FETCH NEXT FROM C1 INTO @ITemCode,@Linenum,@Docentry
WHILE @@FETCH_STATUS = 0
BEGIN
Set @Lotnum1 =(Select isnull(Lotnum1,0) from #temp where LineNum=@Linenum)
Set @Lotnum2 =(Select isnull(Lotnum2,0) from #temp where LineNum=@Linenum)
Set @Lotnum3 =(Select isnull(Lotnum3,0) from #temp where LineNum=@Linenum)
Set @Lotnum4 =(Select isnull(Lotnum4,0) from #temp where LineNum=@Linenum)
Set @Lotnum5 =(Select isnull(Lotnum5,0) from #temp where LineNum=@Linenum)
Set @Qty =(Select isnull(Qty,0) from #temp where LineNum=@Linenum)
If (@Qty !=(@Lotnum1@Lotnum2@Lotnum3@Lotnum4@Lotnum5))
Begin
set @Status = @Status+1
Begin
Set @ErrorItm = @ErrorItm ' ' @ITemCode
End
End
FETCH NEXT FROM C1 INTO @ITemCode,@Linenum,@Docentry
END
CLOSE C1
DEALLOCATE C1
--Begin
--SELECT @Qty= T1.Quantity, @Lotnum1=isnull(T1.U_Lot1,0), @Lotnum2=isnull(T1.U_Lot2,0), @Lotnum3=isnull(T1.U_Lot3,0), @Lotnum4=isnull(T1.U_Lot4,0)
-- from QUT1 T1
--where
-- docentry=@list_of_cols_val_tab_del
--eNd
if (@Status != 0 )
begin
SET @error = 15
SET @error_message = @ErrorItm ' ''Calculation of lots is not correct'
end
--end
Please try this query I think you get the Solution
Thanks
Dhiraj Dharan Srivastava
Similar Messages
-
Results analysis data is calculated through sales order
Hi All,
I m trying to calculate WIP of one process Order through KKAX. But I am getting the below error
Results analysis data is calculated through sales order 300002423 001000
Message no. KJ112
Diagnosis
The order you selected for WIP calculation or results analysis is assigned to a sales order. A results analysis key was entered for this sales order.
System Response
The system determines results analysis data for orders assigned to sales order items through the results analysis for the sales order.
Procedure
Carry out results analyis on sales order 300002423 001000.
This process Order is related to Sales Order and I have checked the Result Analysis key is attached to Sales Order.
Please help me out in this issue.
Thanks!
Regards,
VivekHi,
I was getting the above error because a RA key was selected ar Sales Order, Now what I have done is I have removed the RA Key from Sales Order, there is already a RA key attached to Process Order. Now When i am calculating KKAX (WIP) I am getting below message
The order is not a WIP element
Message no. KJ148
I have done this because my client is not using KKA3(RA fro Sales Order)
Please help!!!!!!!!!
Thanks!
Regards,
Vivek Srivastava -
Error while check printing through f-58
Error while check printing through f-58 is showing following for company code xxxx
1. Fiscal year variant z4 not defined or maintained for date 01/06/08 .
(Fiscal year variant Z4 not defined or maintained for date 01/09/2009
Message no. GMMASTERDATA108)
2.the payment made is not recorded in the SAP system.
when you see the print preview of check then in plase of amount and invoice date its showing as
Kindly refer tthe payment advice for the invoce details.
Is there any solution to this?
Regards,
Yojana.Hi,
i have check periods are open till 2010.
and parameters for fiscal year variant are also correct.
In FBZP i have check configuration there is no prob in it.
any solution on this?
Regards,
Yojana. -
Automatic Check updation through Payment
Dear Friends,
How to do Automatic check updation through payment please give the process steps and Tcode
with regards
Raghavendra.Hi,
Create Check lot in FCHI
Then make the Payment through F-58.
In Initial screen given company code, Payment Method,house bank, account id check lot then press payment.
Automatically the check number will be allotted from check lot sequentially.
Do not forget to manually fill the assignment field with check number for BRS
Edited by: lolu jo on Oct 28, 2011 3:53 PM -
Find Check number through GL account
I need to find the check number through running the GL.
i have tried to set the check number field in FBL3n but it doesnt work.Any expert have an idea to get the information, i need it once only if we can extract the data from tables then it will be great or comparing two or more table and extracting the data would be a great help!
I have tired running the fbl3n report on GL and ran fbl1n on for all vendors, compared it through excel but it doesnt help because document whose MIRO was done doesnt contain check number on fbl1n.
any help??Hi,
here 2 options are their ,
1. Use FBL1N - select dynamic selection - Reconciliation acct -- give GL account number - and Give vendor number from- to and give Company code - select all cleared items - execute
then select change layout - select check number field - then you can able to view check numbers .
2. Use FCHN - give company code , house bank , account ID - date from - to and execute -
then go to change layout - and add vendor number - G/L Account Number for Our Bank Acct -
then you can able to view - vendor and Bank GL account
Thanking you
Mahesh -
Void multiple PY checks not through off cycle work bench
Hello,
We had a scenario where we had to void nearly 60 regular PY checks in our previous period. The postings to FI did not happen yet. We went to off cycle work bench and voided 60 checks one after the other.
Is there any quicker way to void multiple PY checks (If we know the check number to void). What if we run into a scenario where we need to void few hundreds.
Any advice is greatly appreciated.Hi Priya,
I feel you have got answer of this query.... as it was processed through another thread. I will request you to close this thread as for a question 2 threads are there. And if moderator will see it then they may block the thread.
- Praveen -
Dear Experts,
How to issue a single cheque payment for multiple open item for a single vendor in automatic payment program, normally we issue single cheque for each open item but if we want to issue single for a number of open items then how to cuztomise it.
Thanks in advance.
RaghuHi Raghu,
You can do
Go to FBZP. then choose payment method in company code
then choose the payment method --- in pay method you will find that ther eis a check box (single payment for line item) if it is checked then you have to un-check it.
when you run f110 and when in proposal run it shows that there are some payments which are in exception due to pym method not found . that time go and give payment method and run the payment run it will print consolidated checks.
The payment program always tries to group the open items to be paid if for a vendor if the currency, payment method and the bank through which it is paid is same. u can specify otherwise in payment method.
in addition you can also use grouping key in vendor master to group open items for payment.
Thank you,
Anil -
Check condition through debugger
Dear All,
I have a problem with a condition how can I check this condition within sapscript through debugger.
Can I step in into this statemanet ?
Regards
M.MI hear your frustration. Sapscript is not always a friendly tool.
Did you go into the sapscript debugger. Can you confirm that it is evaluating your condition as false and not that it is an issue with the text element itself?
If you still have the constant in your program, can you check the value of it within your sapscript to see that it came over ok?
One more suggestion, within sapscript, did you run form->check->texts to see if you can find any problems with your form. You may get some false hits, but sometimes you locate problems you didn't realize you had. I've seen more than a few developers spell endif wrong and they never are out of a prior if condition. (probably not the issue, but want to try to be thorough).
Becky -
Automating "check vpn" through C#
Hello,
I would like to automatically check if the VPN is up or down, simple enough, and respond by bumping it, disconnecting and connecting, as needs be (not so simple I think).
This through a C# program using HttpWebRequest and HttpWebResponse.
It's simple enough to login to the VPN page using known credentials. Done deal. And also very easy to check a couple of known patterns in the VPN table.
When I determine I need to bump the VPN, how do we simulate the form submission and/or call to the JavaScript programmatically?
Forgot to mention: we're using a Linksys WRVS4400N router, firmware version V1.1.13.
Thank you...
Best regards,
MichaelThus far I can successfully GET the vpn_summary page for details like I said.
I am making an attempt at a forms POST to do the other direction now, and running into issues.
If I just POST with minimal parameters, I get the following WebException saying Status == ConnectionClosed ("connection closed unexpectedly") and the VPN goes down.
I am setting todo=tunnel_connect and h_ipsec_select=OurVpnNam: "todo=tunnel_connect&h_ipsec_select=OurVpnName", which ends up getting written to the WebRequest through GetRequestStream(), Write() the stream, and Close().
request.ContentType = "application/x-www-form-urlencoded" and request.Method = "POST".
I know that authorization succeeds in general because we can process the request just fine on the front side of the utility.
So actually, my thought is that there are some hidden (or not hidden) form fields that we are missing in order to make the request good to the server? -
Check printing through Payment Medium Workbench
Hi,
Is it possible to print the check through payment medium workbench, just like the classical RFFO*_C program ?
Thanks
Wasim>
Wasim Habib wrote:
> Hi,
>
> Is it possible to print the check through payment medium workbench, just like the classical RFFO*_C program ?
>
> Thanks
> Wasim
Not yet.. per SAP, PMW will gradually phase out the classic payment medium programs (RFFO*).
~Suresh -
Hello All,
Our client has outsourced check printing to our Bank. I am wondering how can I generate an Idoc for check payment with check numbers? We will be providing the check numbers to the Bank and they will be printing them. I tried to use the RFFOEDI1 program, but, it is not printing the check numbers.
Thank You.There is no delivered front end functionality for learners to purchase classes in OLM. There is integration with Order Management however as documented in the OLM User Guide:
<snip>
Using OLM with Order Management
The linkage of OLM with Oracle Order
Management (OM) enables independent training vendors to manage the ordering
and pricing of classes through a standard interface. Your customers can contact your organization’s call center and order a class or enroll a learner just as they would order a chair or a software package. OM then generates invoices and bills the customers through its interface with Oracle Accounts Receivable -
WHT deduction on Check reciept through FBCJ
HI All
I have a scenario of advance receipt which i am doing through FBCJ Check Receipt Option. I am facing a problem that it is not posting an entry of TDS (WHT) at the time of receipt however TDS (WHT) entry is getting generated if am posting through F-29.
Can you please help me with the settings on this?
Regards
Jitender LalwaniHI,
I have check FSG settings but i am not sure how these settings will impact posting of TDS posting from FBCJ because posting from F-29 is working fine.
Regards
Jitender Lalwani -
C3-01 checking email through the day
I have just got a C3-01, have set up email (gmail) and set the phone up to our home network, but we have a small problem.
Through the day the WLAN seems to automatically switch on to check my email, I have looked in the settings and cannot find anything that I may have done by accident, any other time I connect to the network the phone checks with me first on which method to use (either orange internet or WLAN) so that's not an issue, but does anyone have a clue why it's checking seemingly on it's own??.
Thanks in advance
Dave
Solved!
Go to Solution.Hi,
I believe the mail alert is on . So please change it.
Below is the usual settings for Gmail account:
option - > More -> Account settings ->
- Update my inbox =manually /FAst / Very fast
- Alert me for new mail = on/off
- Alert me only during 00.00-00.00 Better on midnight to midnight
I hope this helps.
Br
Mahayv -
Auto check calculating the Average
I do not know how to approach an issue with my form, so any help or quide will be appreciate very much!
For a Performance Form I have 5 sections for the managers to fill in.
Every section includes an Assessment drop down list with 5 items to select from.
Items for DDList (Named:Assessment):
Outstanding
Exceeds Expectations
Meets Expectations
Needs Improvement
Does Not Meet Expectations
Final at the end of the form I have a section named
OVERALL SUMMARY OF PERFORMANCE with 5 check boxes named:
Outstanding
Exceeds Expectations
Meets Expectations
Needs Improvement
Does Not Meet Expectations
Is it possible with a script(Calculating the average?), AUTO to check(one of the check boxes for the Overall sum of performance?
THANK YOU
Hi Niall, I took your advise form your last sample cindle you have send me, I am close but still I have a problem at the end of the line!
Here what I have till now:
On change event for the Area1 the script below:
switch
(xfa.event.newText){
case
"Outstanding":
NumericField1.rawValue
= "5";
break
case
"Exceeds expectations":
NumericField2.rawValue
= "4";
break
case
"Meets expectations":
NumericField3.rawValue
= "3";
break
case
"Needs improvement":
NumericField4.rawValue
= "2";
break
case
"Does not meet expectations":
NumericField5.rawValue
= "1";
break
For a NumericField1(Score for Outstanding) on Calculate event the script:
var vScore=0 ;
for (var i=0; i<5; i++){
if (xfa.resolveNode("optionA[" + i + "]").rawValue=="5")vScore
+=xfa.resolveNode("optionA[" + i + "]").rawValue;}
NumericField1.rawValue= vScore ;
This I am getting(for NumericField1) is for example select Outstanding for all DDL is:55555 than 25 which is the desire!
How I can make it work, where is my mistake?
Thanks Niall -
Mail spell check goes through the ENTIRE email looking for misspellings
Is there anyway when you use spell check in mail that it won't go through the ENTIRE message and just use the part that you have typed. Example: When you respond to an email from someone it spell checks their email as well. Any suggestions?
Hi,
In Preferences under "Composing" you could check "Check Spelling as I type". that will hold it in your reply only. You can either correct it right away (it gets underlined), or wait till later and do them all at the same time by going to Edit> Spelling> Check Spelling ( or the Command-semi-colon keys hit together) they will come up one-by-one for correction.
This is about the easiest way to do it.
Enjoy
Maybe you are looking for
-
When I click on the article, the body text of the article does not show up. The hyper links in the article do show up. and also on the home page for the National Post - http://www.nationalpost.com/ (error in my initial question, it is not the Financi
-
Why is my look and feel grey and not aqua blue
Additional comment: long ago I saw Mac's with friends and the scrollbars were blue. On my MacBook however everything is grey. Quite different from what is shown on Wikipaedia: AQUA Look And Feel. How come? ;JOOP!
-
I have installed an Oracle 11gR2 on Oracle Linux Server 6.6 (Virtualbox). I have the users grid and oracle11g. Add groups and install grid infrastructure first as a grid user and install database as oracle user as in documentation successfully. I hav
-
Hi, I'm unable to display subtotal text in the following report. Kindly help me out. REPORT ZXY NO STANDARD PAGE HEADING LINE-SIZE 255 LINE-COUNT 65(3). TABLES : bsik, bkpf,lfa1 . TYPE-POOL
-
How to implement a table of ordered data ?
This is surely a very common question of database design. Let us say that I am doing a web picture gallery, where I want the pictures to appear in a specific order. I am keeping the reference of the image files in a table, and I specifically want to