Table AGR_1251: Search between a range of the field "LOW" and "HIGH
Hello Experts,
i've got a problem by searching all users who have the authority for a transaction.
The transaction was written in a parameter, called p_trans.
I've the Tables AGR_1251, AGR_AGRS and AGR_USERS.
I know what I've to do.
Here is my Join.
SELECT agru~uname
INTO CORRESPONDING FIELDS OF TABLE gt_users
FROM agr_1251 as ag12
INNER JOIN agr_agrs as agrs
ON ag12~agr_name = agrs~child_agr
INNER JOIN agr_users as agru
ON agrs~agr_name = agru~agr_name
INNER JOIN usr01 as us
ON agru~uname = us~bname
WHERE ag12~object = 'S_TCODE' AND
ag12~field = 'TCD' AND
???? parameter p_trans between ag~low and ag~high????
SELECT agru~uname
APPENDING TABLE gt_users
FROM agr_1251 as ag12
INNER JOIN agr_agrs as agrs
ON ag12~agr_name = agrs~child_agr
INNER JOIN agr_users as agru
ON agrs~child_agr = agru~agr_name
INNER JOIN usr01 as us
ON agru~uname = us~bname
WHERE ag12~object = 'S_TCODE' AND
ag12~field = 'TCD' AND
???? parameter p_trans between ag~low and ag~high????
SORT gt_users BY uname ASCENDING.
DELETE ADJACENT DUPLICATES FROM gt_users COMPARING uname.
Here is my question:
In my code are question marks...here i want to say, that my transaction lays between the fields LOW and HIGH.
But how can i say, that in WHERE.
I have to say... Search that agr_name, where object = s_tcode, field=tcd and where my transaction lies between.
For example: low is T and high is X and i have the transaction va21.
So i must find out, in which range lays ma transaction.
I hope somebody understands me
Thanks!
Regards,
Marcel
Hi Marcel,
You are mentioning it as a parameter between having low & high values. Is it a parameter or select option.
If its a parameter, then anyway it will have only single value at any point of time.
If its a select option, then you need to use
select * from
and tcode in s_tcode.
Thanks,
Best regards,
Prashant
Similar Messages
-
Difference between the Field Group and Internal Table.
Hi all,
Can anybody tell me the difference between the Field group and Internal table and when they will used?
Thanks,
Sriram.Hi
Internal Tables: They are used to store record type data in tabular form temporarily in ABAP programming. Or we can say, it stores multiple lines of records for temporary use in ABAP programming.
A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.
Use
The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.
When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.
Regards
Ashish -
If I share an iPhoto library between multiple users, will the Faces, Events, and Places be automatically usable by all users, or will each user have to tag all the photos (e.g. if a user tags a face, will a different user have to do it in their own iPhoto application??
Have you read this Apple document regarding sharing a library with multiple users: iPhoto: Sharing libraries among multiple users?
OT -
When I search a music artist in the itunes store and then click to view all albums the screen is blank. Why is itunes store not showing me all of the Albums?
This can be a problem with the file places.sqlite that stores the bookmarks and the history.
* http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode -
Is it possible to search for multiple folders with the same name and...
Is it possible to search for multiple folders with the same name and then select them all and change the permissions on just those folders .i.e. Search for the budget folders in all client folders and lock them down to just the project managers. Without having to go to each folder and apply the permissions.
user11919409 wrote:
Is it possible to create a Clone database with the same name of source db using RMAN ...
yes
>
DB version is 11.2.0.2
Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
Handle: user11919409
Status Level: Newbie (10)
Registered: Dec 7, 2009
Total Posts: 102
Total Questions: 28 (22 unresolved)
why do you waste time here when you rarely get any answers to your questions? -
recently bought 4S, it keeps searching for network, reads invalid SIM, keeps searching for network, have switched the handset on and off several times, have tried 2 new micro chips, re set the network too ! nothing seems to be working !!! Iam in Delhi
Obvious question... where did you buy your 4S and is factory unlocked?
-
When I go to a search box, i type in the first letter and the whole word comes up.
I type in the first letter of the username and the whole word comes up.
I just type anything and the next time i log, it remembers the whole word.
Please take this out of my system. I do not want it to work this way. I want all memory to be gone.I'm starting to come to this conclusion myself, actually... though, how mom managed to do this on accident without mucking about in terminals or anything more than just a cursory knowledge of the OS X system configurations (behind the scenes), I don't know : |
... on the other hand, her and I tend to be the exceptions to a lot of rules : |
I downloaded and installed TinkerTool, even though it supposedly doesn't work past 10.5.8, in the hoopes that, what it displayed (regardless of what it could change) would be correct as far as my "System" and "System (Headlines)" font settings were (see attached screenshot of the font section of TinkerTool for my system--not mom's).
I've instructed her to install and run the utility (but not to change anything) and then send me a screenshot of the "Fonts" section so I can compare it to my own. If there's something different on her system, since TinkerTool should work on hers, we may be able to fix it that way... though it would, frustratingly enough, remain a mystery to all concerned as to how she managed to stumble upon this in the first place : |
Anyway, I'm still hard at work on it... hopefully others are too and will share what they discover (if anything). -
How to Implement KFF Range (Low and High) in query find form in oracle apps
Hi,
Please provide some sample script for using KFF range LOV (Low and High) in one of the query find form in Oracle apps R12.
I need to customize one of the standard form and add this range functionality for that search form.
Thanks,
PrasannaYuvaraaj,
Your request is unique to the Oracle Enterprise Business Suite (EBS). Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
Craig... -
I am retrieving high and low limits from step results in VB code that looks something like this:
' (This occurs while processing a UIMsg_Trace event)
Set step = context.Sequence.GetStep(previousStepIndex, context.StepGroup)
'(etc.)
' Get step limits for results
Set oStepProperty = step.AsPropertyObject
If oStepProperty.Exists("limits", 0&) Then
dblLimitHigh = step.limits.high
dblLimitLow = step.limits.low
'(etc.)
So far, so good. I can see these results in
VB debug mode.
Immediately after this is where I try to put the limits into the results list:
'Add Limits to results
call mCurrentExecution.AddExtraResult("Step.Limits.High", "UpperLimit")
call mCurrentExecution.AddExtraResult("Step.Limits.Low", "LowerLimit")
(No apparent errors here while executing)
But in another section of code when I try to extract the limits, I get some of the results, but I do not get any limits results.
That section of code occurs while processing a UIMsg_EndExecution event and looks something like this:
(misc declarations)
'Get the size of the ResultList array
Call oResultList.GetDimensions("", 0, sDummy, sDummy, iElements, eType)
'Step through the ResultList array
For iItem = 0 To iElements - 1
Dim oResult As PropertyObject
Set oResult = oResultList.GetPropertyObject("[" & CStr(iItem) & "]", 0)
sMsg = "StepName = " & oResult.GetValString("TS.StepName", 0) & _
", Status = " & oResult.GetValString("Status", 0)
If oResult.Exists("limits", 0&) Then
Debug.Print "HighLimit: " & CStr(oResult.GetValNumber("Step.Limits.High", 0))
Debug.Print "LowLimit: " & CStr(oResult.GetValNumber("Step.Limits.Low", 0))
End If
'(handle the results)
Next iItem
I can get the step name, I can get the status, but I can't get the limits. The "if" statement above which checks for "limits" never becomes true, because, apparently the limit results never made it to the results array.
So, my question again is how can I pass the low and high limit results to the results list, and how can I retrieve the same from the results list?
Thanks,
GriffGriff,
Hmmmm...
I use this feature all the time and it works for me. The only real
difference between the code you posted and what I do is that I don't
retrieve a property object for each TestStand object, instead I pass the
entire sequence context (of the process model) then retrieve a property
object for the entire sequence context and use the full TestStand object
path to reference sub-properties. For example, to access a step's
ResultList property called "foo" I would use the path:
"Locals.ResultList[0].TS.SequenceCall.ResultList[].Foo"
My guess is the problem has something to do with the object from which
you're retrieving the property object and/or the path used to obtain
sub-properties from the object. You should be able to break-point in the
TestStand sequence editor immediately after the test step in question
executes, then see the extra results in the step's ResultList using the
context viewer.
For example, see the attached sequence file. The first step adds the extra
result "Step.Limits" as "Limits", the second step is a Numeric Limit (which
will have the step property of "Limits") test and the third step pops up a
dialog if the Limits property is found in the Numeric Limit test's
ResultList. In the Sequence Editor, try executing with the first step
enalbled then again with the first step skipped and breakpoint on the third
step. Use the context viewer to observe where the Limits property is added.
That might help you narrow in on how to specify the property path to
retrieve the value.
If in your code, you see the extra results in the context viewer, then the
problem lies in how you're trying to retrieve the property. If the extra
results aren't there, then something is wrong in how you're specifying them,
most likely a problem with the AddExtraResult call itself.
One other thing to check... its hard to tell from the code you posted... but
make sure you're calling AddExtraResult on the correct execution object and
that you're calling AddExtraResult ~before~ executing the step you want the
result to show up for. Another programmer here made the mistake of assuming
he could call AddExtraResult ~after~ the step executed and TestStand would
"back fill" previously executed steps. Thats not the case. Also, another
mistake he made was expecting the extra results to appear for steps that did
not contain the original step properties. For example, a string comparison
step doesn't have a "Step.Limits.High" property, so if this property is
called out explicitly in AddExtraResult, then the extra result won't appear
in the string comparison's ResultList entry. Thats why you should simply
specify "Step.Limits" to AddExtraResul so the Limits container (whose
contents vary depending on the step type) will get copied to the ResultList
regardless of the step type.
I call AddExtraResult at the beginning of my process model, not in a UI
message handler, so there may be some gotcha from calling it that way. If
all else fails, try adding the AddExtraResult near the beginning of your
process model and see if the extra results appear in each step's ResultList.
Good luck,
Bob Rafuse
Etec Inc.
[Attachment DebugExtraResults.seq, see below]
Attachments:
DebugExtraResults.seq 20 KB -
Need to set default values for the fields plant and location in ME21N
Hi All,
i need to set default values for the fields plant and location in ME21N tcode.
In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
How to resolve this?
Thanks in Advancehi .
i needed to set default strorage location and plant in personal setting in me21n.
i solve it with this way.
go to program SAPLMEPERS in se38.
create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
in this module write:
if MEPOITEM_PROP-WERKS is INITIAL and MEPOITEM_PROP-LGORT is INITIAL.
MEPOITEM_PROP-WERKS = '1000'.
MEPOITEM_PROP-LGORT = '0032'.
endif.
this is the solution.
best regards.
maryam -
Why when I am resizing a field do the field above and below resize with it too? I need to make them different lengths. This only happens sometimes. HELP! THANKS!
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Characteristic KNDNR is no longer in the field catalog and will be deleted
Hi ,
we are doing System Landscape optimisation project and the issue is as follows
In account based copa when i run the KE30 report , i am getting the message in the target system
'Characteristic KNDNR is no longer in the field catalog and will be deleted'
In the source system (production system), the customer characteristic is available as a variable in the characteristic list as an option and can be selected in the KE32 t code.
the customer is available in the KE30 report (source system) and it can be drilled down on the basis of the customer but it is not possible in the target system
in the Target system (to be production system) the customer characteristic is not available as a variable for selection in the KE32 report under the characteristic list.
i checked the ke3e t code in both the source and the target system and the characteristic KNDNR is not available as a variable
I checked the KEA5 and KEA0 t code in both the source and the target system , the customer characteristic is not available
thanks in advance
kind regards
sap studentHi,
Are you trying to create a report from a Form? When are you getting this information? At the time of creating the form (KE34) or report (KE31)?
I have not seen this message though, can suggest to check if the required characteristic is there in KEA0, KEA5 and also if adding that in KEQ3 helps.
Regards,
R C Sabat -
How far is the range of the Airport Extreme and how much does it boost your Internet speed?
We have a D-link wireless router, and it's worked fine for us, and covers the area around our house easily, but we have lots of other property too, though. I was wondering, what is the range of the Airport Extreme? Besides that, I've seen some communities that say the Airport Extreme is much faster than other routers, but since we have 1 MB per second Internet speed, would that affect speed much? I also was thinking about getting it because we have a USB printer that we'd like to use with our macs, but it would have to be integrated to our network. Our current router has a USB port on the back, but to connect, you have to use Shareport utility, and even then, you can only connect 1 device at a time. It would be nice to be able to convert the USB signal to a network signal.
Hi - it is impossible to know what you are asking without knowing the model of the Dlink - this chart might help you compare - http://www.smallnetbuilder.com/lanwan/router-charts/view - as far as the printer is concerned, the USB port on the Extreme is designed for printers and hard drives - they are recognized when plugged in and seen on your computer so they can be installed - there is no extra utility involved - if you use a powered USB hub you can connect more than one device at a time - http://www.apple.com/airportextreme/features/printing.html - and I recommend that if you decide to try the Extreme that you know what the return policy is in case it doesn't work out in your situation.
-
Clear the field INFOUPDATE and UNLIMITED in Purchasing Order
Hi experts,
I have a request to clear the 2 fields Infoupdate and Unlimited in the Purchasing Order.
I understand that this can be done in the customizing. However I need to have some condition which the customizing cannot be fulfiled.
For example, the request only require to clear the 2 fields, when creating new item and for a particular plant only.
Is there a customer exit, bapi, etc that can someone think of?
Thanks in advance.Hi,
Could you please go through the below link and check the same.
Adding Reusable Fields - Application Enhancement Tool - SAP Library
It may help you.
Regards, -
Find the difference between two dates for the specific month and year
Hi,
I have two dates, start date is 30/12/2012 and end date is 04/01/2013. Using datediff I found the difference of days between two dates. But I find the no of days in January 2013. ie output is 4 instead of 6. I input month and year to find the no of days
for that date. In this case I input Jan 2013. How can I sql this ?I don't understand how most of the answers provided here not analytically solving the problem with many cases possible.
First let me understand you:
You have 2 dates range and you want to calculate day range for specific month and year between the original date range.
declare @for_month int = 1 --January
declare @for_year int = 2013
declare @StartDate date = '2012-12-20'
declare @EndDate date = '2013-01-04'
SELECT
CASE
WHEN (DATEPART(MONTH, @StartDate) = @for_month and DATEPART(MONTH, @EndDate) = @for_month) and ((DATEPART(YEAR, @StartDate) = @for_year or DATEPART(YEAR, @EndDate) = @for_year)) THEN
DATEDIFF(DAY, @StartDate,@EndDate)
WHEN (@StartDate < cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (@EndDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
DATEDIFF(DAY, DATEADD(MONTH, DATEDIFF(MONTH, -1, @EndDate)-1, 0),@EndDate)
WHEN (@EndDate > cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) and (@StartDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
DATEDIFF(DAY, @StartDate,DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, @StartDate) + 1, 0))) + 1
WHEN ((DATEDIFF(DAY, @StartDate, cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) >= 0) and (DATEDIFF(DAY, cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date), @EndDate) >= 0)) THEN
DATEDIFF(DAY, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime), DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime)) + 1, 0))) + 1
ELSE
0
END as [DD]
I don't know how you calculate day range between 01/01/2013 and 04/01/2013
is 4, it is actually is 3 but if that is the case, you can add 1 from the condition.
Maybe you are looking for
-
Forecasting Based planning, consider incoming Sales orders, Consume PIR's
Hello Guys: I am in real Problem about this one: I am implementing forecast-based MRP for our client which is a trading company: buys, keeps in storage and sells goods (R/3 ECC 6). We are using material forecast on a monthly period, and run MRP on a
-
How to find the list of all queries on each and every cube in the system???
Hi All, I need some method to get all the reports(queries)(technical name and description),run on all the infocubes in the system. The number is very huge...roughly...on each cube there are near about 40-50 reports and the number of cubes is also too
-
Pb:reading mail from Outlook
Hi the problem is depended on the reception of a message starting from Outlook. is to say that the message of Content-Type is received: multipart/alternative; in two type one is Content-Type: text/plain; and the other Content-Type: text/html; . Also,
-
Help...how do I reset "Designer View" to what shipped with product. I was using a tutorial and totally messed up the designer default view, and cannot restore it by going to workspace "Designer View" reset...it just resets it to the same corrupted v
-
Hi Experts , I have follwoing requirement .We are using UWL 1. When ever a Task though AdHoc reuqest in (collaberation task) UWL is created then the receiver should get an email notification in OutLook or Lostus Notes or any other email id 2. Email s