Where condition for reading infotype while using ldb
hi
i want to read info from infotype p0000
using where condition eg: for pernr = ' '.
i am using LDB pnp.
how can i put the where condition while using macro
rp-provide-from-last.
regards
cs
in fact you don't have to get the values, you only need to tell to the program to take them into account :
GET PRPS.
CHECK SELECT-OPTIONS.
Similar Messages
-
Dynamic component in WHERE-condition for LOOP AT ?
i want to make
loop at itab where (dynamic field) > 0
how i can make it...
Edited by: Thomas Zloch on Mar 2, 2010 2:47 PMI thought it's funny.
And the problem can maybe be solved by using a completely dynamic where-condition, not just a dynamic component.
http://help.sap.com/abapdocu_70/en/ABAPLOOP_AT_ITAB_COND.htm#!ABAP_ADDITION_4@4@
Thomas
P.S. meaningless subject enhanced, and please take the time to say hi and please when asking for help. Thanks. -
Tax Conditions for Sales and Distribution using Jurisdiction Code in Canada
Hello everyone,
I would like to share with you a doubt relating taxes for Sales and Distribution in Canada.
The Tax conditions for Sales and Distribution in Canada are the CTX1 (GST - Canada), CTX2 (PST - Canada) and CTX3 (Base + GST). These are the Tax Conditions which appear when creating a Material or a Client for the Canada Region, and are also the ones included in the Canada Standandard Pricing Procedure.
I tried to apply the standard method of creating a Master Record for these conditions, but an error relating the Jurisdiction Code came out while releasing to accounting.
Does anyone one how to procceed? Which are the important issues with Finance Accounting to take in to account?
I would really appreciate any comment relating this issue.
Thank you very much in advanced.
VíctorDear Mr. Lakshmipathi,
In first place, thank you very much for your quick response.
I have tried many different procedures to get the aim, and among others, a new access sequence was created to allow the introduction of the Jurisdiction Code (UTXJ is not available for Sales Conditions) but once the Condition is created, it is not recognized when creating the Order ("pricing error: Mandatory condition CTX is missing"). Maybe it has something to do with the fact that these conditions are not included in the Finance Accounting Tax Procedure, where the conditions, which represent the same taxes but with different condition names, are defined for a certain Tax Code and Jurisdiction code.
Among the different SAP notes for the error relating the Jurisdiction code, there was one proposing to change the Condition Category from "D" (Taxes) to a value between "1 and 4". By doing this a new error appears while creating the order, saying that there are conditions in the Tax procedure (JRC1, JRC2)which are not included in the Sales Pricing procedure. By including this conditions in the Pricing procedure, the Tax Conditions existing in the Finance Accounting Tax Procedure are brought to the Order Conditions, in addition to the Sales Tax Conditions. And there is something more, each Tax Condition from the Finance Accounting Procedure appears twice, one with the application V (Sales) with value zero, and one with application TX (Taxes) with the value existing in the Finance Accounting Taxes Procedure. This is how at the end, the corresponding %value of the taxes is brought to the Invoice with the correct Tax Code, and the proper Jurisdiction Code, which is different for each condition.
Thank you very much for your time.
Víctor Liedo -
Where condition for a column in BMM
Hi Gurus,
I have a requirement where in the BMM(The LTS for this logical table is say 'Fact'), I need a logical column with the following definition.
count(Dim.status) where Dim.status = ' Accepted' (I didnt add the Dim table to the LTS yet, should I?)
I know that we can do a count(Dim.status) in the column source . but for the where Dim.status = ' Accepted' part im not sure what to do.
Should I bring the Dim table as a LTS and define the 'where' condition in the content tab? will that work?
but what if I have another logical column where I need dim.Status = 'Declined'( we have many more status)
Plz helpThe suggest statement as Filter(count(Fact.Dollars) Using("dim.status = 'accepted'))
is based on Answers, this would care about the column is available in Subject Area or not thats it.
The same kind of functionality can get the using rpd.
There you might need to map/add (fact source properties and then map using pencil icon on 11g add button in 10g) the dim table to the fact
so that you can get the expression based on physical columns as
case when dim.status = 'accepted' then Fact.Dollars else 0 end
use Aggregate tab for sum;
Since you are using Fact.Dollars it suppose to be sum, ROW_WIDs go by counts
Hope this helps :) for more Qs send email
If helps mark -
Creating WHERE clause for an outer join using DatabaseFilter
Hi all,
I read a post on thie group about constructing the WHERE clause for a RowSet Controls
SQL Query using the DatabaseFilter and this is what it said:
****************************************************************************The
following example shows adding part of a WHERE clause in an action method of a
page flow:
DatabaseFilter.FilterTerm term = new DatabaseFilter.FilterTerm(); term.sColumnName
= "name"; term.op = DatabaseFilter.opContains; // there are ops for equals, less
than, etc... term.value = form.getPartialName();
// You can also add sort terms for an ORDER BY clause allNames = dbControl.getNames(new
DatabaseFilter(new DatabaseFilter.FilterTerm[] {term}, null));
I am trying to create a where clause which uses a join like this:
Select * from x,y where x.id=y.id (+)
ie. All values from x.id but only corrosponding ones from y.id.
Is there any way to build this outer join query using the DatabaseFilter class
or am i forced to use a String which is contruct in my page flow as the where
clause?like so:
* @jc:sql command-type="grid"
* rowset-name="RFPSRowSet"
* max-rows="1000"
* statement::
* SELECT RFPS.RFP_ID,RFPS.NAME AS RFP_NAME,RFPS.FFO_NUMBER,RFPS.RFP_TYPE,RFPS.CFDA_NUMBER,COMPETITIONS.NAME
AS COMP_NAME,COMPETITIONS.COMPETITION_ID FROM RFPS,COMPETITIONS WHERE {sql: whereClause
} {sql: filter.getOrderByClause ()}
public RowSet getAllRfps(java.lang.String whereClause,DatabaseFilter filter)
throws SQLException;
and in my pageFlow action, i do the following:
StringBuffer whereClause= new StringBuffer();
whereClause.append("RFPS.RFP_ID = COMPETITIONS.RFP_ID (+)");
if ((form.getRfpTitle() != null) &&
(!form.getRfpTitle().equalsIgnoreCase("")))
whereClause.append(" AND UPPER(RFPS.NAME) LIKE %"+form.getRfpTitle().toUpperCase());
if ((form.getCfdaNumber() != null) &&
(!form.getCfdaNumber().equalsIgnoreCase("")))
whereClause.append(" AND RFPS.CFDA_NUMBER ="+form.getCfdaNumber());
if ((form.getFfoNumber() != null) &&
(!form.getFfoNumber().equalsIgnoreCase("")))
whereClause.append(" AND RFPS.FFO_NUMBER ="+form.getFfoNumber());
sortFilterService = SortFilterService.getInstance(getRequest());
DatabaseFilter filter=sortFilterService.getDatabaseFilter(getGridName());
log.debug("***********"+whereClause.toString()+"***********");
allRows = searchRfaAndComp.getAllRfps(whereClause.toString(),filter);
Thanks in advance for your help,
Regards,
Vik.Thanks for your reply. Just one more question....if we indeed are trying to use
a simple query and have a where clause like "select * from x where upper(x) like
{x}", how do we set the UPPER filter on the column using the database filter?
I see a IDENTIFIER.ISUPPER static field on that DatabaseFilter but am unsure how
to use it. Would appreciate any pointers .
Thanks again,
Vik
Eddie O'Neil <[email protected]> wrote:
Vik--
I believe that the approach that you describe below is the best one
for dealing with outer joins
with the DatabaseFilter.
Apologies for the limitation...
Eddie
vik wrote:
Hi all,
I read a post on thie group about constructing the WHERE clause fora RowSet Controls
SQL Query using the DatabaseFilter and this is what it said:
****************************************************************************The
following example shows adding part of a WHERE clause in an actionmethod of a
page flow:
DatabaseFilter.FilterTerm term = new DatabaseFilter.FilterTerm(); term.sColumnName
= "name"; term.op = DatabaseFilter.opContains; // there are ops forequals, less
than, etc... term.value = form.getPartialName();
// You can also add sort terms for an ORDER BY clause allNames = dbControl.getNames(new
DatabaseFilter(new DatabaseFilter.FilterTerm[] {term}, null));
I am trying to create a where clause which uses a join like this:
Select * from x,y where x.id=y.id (+)
ie. All values from x.id but only corrosponding ones from y.id.
Is there any way to build this outer join query using the DatabaseFilterclass
or am i forced to use a String which is contruct in my page flow asthe where
clause?like so:
* @jc:sql command-type="grid"
* rowset-name="RFPSRowSet"
* max-rows="1000"
* statement::
* SELECT RFPS.RFP_ID,RFPS.NAME AS RFP_NAME,RFPS.FFO_NUMBER,RFPS.RFP_TYPE,RFPS.CFDA_NUMBER,COMPETITIONS.NAME
AS COMP_NAME,COMPETITIONS.COMPETITION_ID FROM RFPS,COMPETITIONS WHERE{sql: whereClause
sql: filter.getOrderByClause ()}* ::
public RowSet getAllRfps(java.lang.String whereClause,DatabaseFilter
filter)
throws SQLException;
and in my pageFlow action, i do the following:
StringBuffer whereClause= new StringBuffer();
whereClause.append("RFPS.RFP_ID = COMPETITIONS.RFP_ID (+)");
if ((form.getRfpTitle() != null) &&
(!form.getRfpTitle().equalsIgnoreCase("")))
whereClause.append(" AND UPPER(RFPS.NAME) LIKE %"+form.getRfpTitle().toUpperCase());
if ((form.getCfdaNumber() != null) &&
(!form.getCfdaNumber().equalsIgnoreCase("")))
whereClause.append(" AND RFPS.CFDA_NUMBER ="+form.getCfdaNumber());
if ((form.getFfoNumber() != null) &&
(!form.getFfoNumber().equalsIgnoreCase("")))
whereClause.append(" AND RFPS.FFO_NUMBER ="+form.getFfoNumber());
sortFilterService = SortFilterService.getInstance(getRequest());
DatabaseFilter filter=sortFilterService.getDatabaseFilter(getGridName());
log.debug("***********"+whereClause.toString()+"***********");
allRows = searchRfaAndComp.getAllRfps(whereClause.toString(),filter);
Thanks in advance for your help,
Regards,
Vik. -
Read infotype records using the classes
Hi All,
In my system i can see many classes with cl_hrpa*
Here i want to read a infotype record using these classes. I want finally the data in PA0008 or a record in P0008 format.
i tried using the various classes like
cl_hrpa_masterdata_factory
if_hrpa_infty_bl
hrpad_infty_container_tab
I tried using the sevaral calsses passing one class type to other. finally i get is the class cl_hrpa_infotype_0008_in.
can any one suggest how i should be reading the data for any infotype.
Pls do not suggest the function module HR_READ_INFOTYPE. I want to use these classes to read the data.
Pls suggest
Regards,
Umesh Chaudhari.Hi,
Did you get any replies to this or have you found an answer on your own?
Regards,
LC -
Toggling Location Services for apps to "While Using" not possible in iOS 8
So I've read one of the features in iOS 8 is being able to toggle the location services features of apps as follows:
Never
Always
While Using
I thought this would be useful because it could potentially help saving battery, however, I've only got the "Never" and "Always" options.
Only after opening an app have I found that the "Always" option switches to "While Using" , but then the "Always" option disappears. But this isn't true for all apps.
Is this an app specific "feature", then, as that's not how websites are labelling it.Hello CCC,
It is happening on the following devices:
iPhone5
iPhone5s (two)
each have a "Family" generated iTunes account which has been associated to my iTunes account as the organizer. I would probably like to see it resolved on the iPhone5s (son and daughter) first and then the iPhone5 (wife).
2. I am also experiencing issues with "Mail" using IOS 8 in that email will not delete from my inboxes (same devices as above)...
3. I also have an issue with iCalendar not syncing events to my family members devices (iPhone5 and iPhone5S) using IOS 8. I entered my son's volleyball games into calendar on my macbook which is associated to my apple id as organizer and none of the other devices associated to other family iTunes account received the updates. I have an iPhone5 as well and I received the updates.
4. I am also experiencing issues with Family not recognizing pictures of family members which I have been trying to get fixed up.
I don't think I have ever experienced this many glitches when updating to a new version from Apple before:(. I sure hope this is not going to be the new norm.
I have also noticed that Health kit does not allow you to change the unit of measures within the application that it forces you to use the country's standard. This might be fine for younger individuals but as for me who grew up learning imperial and changed to metric halfway through school I would prefer the option to choose which unit of measure to use.
Thanks for taking the time to respond,
Dregor104 -
Obsolete statements while using LDB PNP
Hi,
I am using LDB PNP, while extended program check it is showing many obsolete statements like-
tables : PERNR.
infotypes
RP_PROVIDE_FROM_LAST.
What is the alternate to all these above statements.
I searched the forum, but could not found anything. Please provide example.
Thanks,That will bevary from system settings, In the standard reports, it will never give you the error/warning/informaton messages. But custom programs it will give as a absolete, But i can see many experts will use the these Macro's, We are doing world largest HR implemetation, Still we are using the same, Not a problem, you can avoid those messages.
Only one way of avoiding is Using Provide statements.
Regards,
Mallikarjuna -
Reading result table using LDB and event get payroll
Hi Technical experts,
I need help regarding reading cluster RT using logical database pnp and event get payroll.
Please help me out.
Best Regards.
PriyaranjanSuresh, I also have one more question.
If I use GET pernr or GET payroll inside a subroutine after start of selection, it gives error saying "Before the statement "GET" , the structure introduced by FORm shuld be ended by END FORM, which is already ended correctly.
When I move the Get events outside the subroutines, i dont get this error.
Does that mean, these events cannot be used in the subroutines? -
Hi all,
Help me here when i try am unable to get a data,Can some one help me with a query to get.
If it cant be done can i know why..
select * from Sys.databases
where owner_sid='0x01'
What am trying is to get a login
names from syslogin
table with respect to Sid.
Select a.name,b.name,a.owner_sid from Sys.databases a
Join Syslogins b
on a.owner_sid = b.sid
where owner_sid like '0x01'
Thanks all in Advance.....Below are a couple of examples of how to accomplish the task. Note that SID is varbinary so the literal should not be enclosed in quotes.
SELECT
a.name AS DatabaseName
,b.name AS OwnerName
,a.owner_sid AS OwnerSID
FROM sys.databases a
JOIN sys.server_principals b ON
a.owner_sid = b.sid
WHERE owner_sid = 0x01;
SELECT
a.name AS DatabaseName
,SUSER_SNAME(owner_sid) AS OwnerName
,a.owner_sid AS OwnerSID
FROM sys.databases a
WHERE a.owner_sid = 0x01;
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
Query on reading infotype 0001 using the macro rp-provide from last p0001
Dear Friends,
I have a question rgarding relating the infotype 0001 when we are using in the program the logical database PNP.
iam using rp-provide-from-last p0001 space sydatum sydatum
if pnp-sw-found eq 1.
append p0001 into i_p0001.
endif.
iam getting a problem in production , in the selection screen iam passing for emloyee subgroup with multiple values option.
i have passed E,H,S -> where E means Executive , H means hourly and S means salaried employee...
one particular scneario is iam having an employee whose
employee subgroup is C (contactor) and on the selection screen if am passing this personnel no and on the selection screen iam only having in the multiple selection option only E,H,S but not C so this record should should fail but it is getting success and appending to internal table i_p0001
which is wrong
, i mean to say the macro is getting success
rp-provide-from-last p0001 space sydatum sydatum
this employee .
my question is will the macro will not check on the selection screen the employee gropu which we have passed and should i exclusively check
if p0001-persk in pnppersk ?? or please let me knwo how to check this wrong employee not getting appended to my internal table.
please let me know
regards
madhuriHi Madhuri
The macro rp-provide-from-last p0001 will not fetch data from the database, it simply extracts the last record from the available internal table P0001[] for the time frame provided(as 3rd and 4th parameters). You can check the definition of the macro from the database table TRMAC, it simply uses the LOOP....ENDLOOP and IF conditions to arrive at the last record and populates the fields pnp-sw-found, pnp-sw-tabix.
And coming to your problem, please check all the IT0001 records of the EE concerned, it can happen that the EE is attached to different employee subgroups in different time frames and hence the LDB is fetching all the available records of the EE (even if the employee subgroup is not among the one's selected in the selection screen). If this is the case, I reckon, u've to perform manual check before appending to the internal table.
Note: The macro rp-provide-from-last p0001 space sydatum sydatum will only fetch the valid IT0001record as on date - sy-datum -
Error while using LDB in HR Program
Hi,
While accessing ALV output in LDB program, when i press the back button, i am getting an error message as:
Personnel numbers skipped by the database driver.
Can someone explain the reason for it and how to rectify.
Thanks,
csPlease check If UR using GET PERNR event .. if so where
UR calling the FM to display ALV ..
it should be in the order ..
start-of-selection.
get pernr.
Populate internal table for ALV ...
end-of-selection.
call FM to display ALV ... -
How to retrieve values from Dynamic Selection screen while using LDB - PSJ
I am having problem in PSJ Logical database. In a custom report which is using PSJ LDB, we are using PROJ and PRPS_R tables.
When I run program it displays one dynamic selection screen, there we are giving selection criteria for PRPS (Master data WBS element) - Created on (giving some range like 2011/01/01 to 2011/01/31).
So I want to display all WBS element which are created during the period (2011/01/01 - 2011/01/31).
How do I retrieve the select-option low and high value of the field Created on Of WBS element if we Select data from any table based on this condition.
Please help me.
Thanks.in fact you don't have to get the values, you only need to tell to the program to take them into account :
GET PRPS.
CHECK SELECT-OPTIONS. -
Special consideration for coding clients while using weblogic clustering
Hi.
I wanted to know whether there are any special consdirations to
be taken while coding clients(servlets in our case) for EJBs when
we are using clustering of App servers.
In our setup, we are following the recommended 2-tier architecture
for Weblogic5.1
thanks and regards,
Amol
Amol wrote:
> Hi,
> adding a couple of points to the previous mail:
> 1. In case of servlet failure after doXXX() method has been
> called and before the method returns, if the app server
> fails, will doXXX() be called again on the servlet in the
> secondary server?
> 2. How much time does it take for the servlet session on
> one machine to be replicated on the second machine when
> using in-memory replication.
It depends on the size of the object and complexity.
-- Prasad
>
> Thanks,
> Amol
>
> "Amol" <[email protected]> wrote:
> >
> >Hi kumar (and everybody),
> >
> >Your opinion resolves the doubt i had in mind, since even
> >WebLogic
> >docs do not say anything about clustering affecting the
> >coding
> >of bean clients.
> >
> >However may I request you to please evaluate the same
> >query with
> >respect to the following conditions:
> >1. The Session bean calls a stored proc on the db. After
> >the call
> >to stored proc and before the stored proc returns with
> >the results,
> >the app server fails.
> >Here there could be two cases of interest, a) Stored proc
> >does
> >a write on db -OR- b) Stored proc does only a read on
> >db
> >2. The Session bean calls an Entity bean which "writes"
> >to the
> >db. The db write is successful, but before the entire
> >call to the
> >session bean is completed(that is before user gets his
> >results)
> >the Server fails. Now permanent changes have been made
> >to the db,
> >but client doesnt get the results.
> >
> >Please note the fact that we are using recommended 2-tier
> >architecture
> >and in this case server failure would imply failure of
> >Servlet
> >as well as the beans.
> >
> >Regards,
> >Amol
> >--------------------------
> >
> >Kumar Allamraju <[email protected]> wrote:
> >>Absolutely not. Make sure the objects you are putting
> >>in the session are
> >>serializable.
> >>
> >>
> >>
> >>Amol wrote:
> >>
> >>> Hi.
> >>> I wanted to know whether there are any special consdirations
> >>to
> >>> be taken while coding clients(servlets in our case)
> >>for EJBs when
> >>> we are using clustering of App servers.
> >>>
> >>> In our setup, we are following the recommended 2-tier
> >>architecture
> >>> for Weblogic5.1
> >>>
> >>> thanks and regards,
> >>> Amol
> >>
> >
Cheers
- Prasad
-
Configuration for extensions filter while using Tomahawk 1.1.6
Hello,
I am using Sun RI 1.1 with tomahawk 1.1.6 and using facelets.
I am stucked with following error:
SEVERE: Error Rendering View[/pages/employees-calendar.xhtml]
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:358)...My web.xml content for filters are as follows:
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
<init-param>
<description>Set the path where the intermediary files will be stored.</description>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>Please suggest, If I am missing any thing. I have tried many link from google but could not get any solution for this.Try mapping the filter by the servlet name, instead of my the URL.
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
Maybe you are looking for
-
Hi, Can we create our own custom item categories in New GL Accounting or should we only use the 18 item categories provided by SAP? If we can create our own, could you please let me know as to how to create them. Thanks.
-
I recently edited a reel on Final Cut Pro 4 and everything looked great when I watched it on Final Cut. Then I exported as a quicktime movie and when we watched it on a tv, the picture was all jumpy. I went back and looked at the footage in FCP and i
-
Bright white speck under screen... HELP?
Its been about 4 days now, I cannot get this tiny speck to go away.. It shows up really bad on a white screen. Will Apple exchange it for a good one with no problem? I love my phone, and this speck is killing me!
-
Hi Friends I couldn't find the Project cycle Tab under the system landscape in SOLAR_PROJECT_ADMIN T.code. Please guide me. Regards Kumar
-
Captions (in Organizer): how do I display them for easy editing?
Hi All, In PSE5, I was able to easily add/edit a caption for any photo while working in the Organizer. It would display a edit box for easy viewing/editing of the caption below each picture. But PSE7 seems to no longer have that feature. Does that me