NOT EQUAL in the InfoPackage Data Selection
Hello,
<u><b>I need to build a NE, NOT EQUAL <> in an InfoPackage</u></b>
I need to exclude some DataSets from beeing loaded.
The DataSets to be excluded can be distinguished by a
certain value of a an InfoObject.
For example:
All DataSets with 0COMPANY_CODE NOT EQUAL "0001" should not
be loaded.
How can I set in the InfoPackage DataSelection a filter
to exclude some DataSets ?
Thank You
Martin Sautter
Hello Chitrarth Kastwar ,
basically it would be a trivial task in SQL ....to code :
<i>
SELECT *
FROM
WHERE 0COMP_CODE not in '0001'
</i>
or
<i>
SELECT *
FROM
WHERE 0COMP_CODE = '0030'
OR 0COMP_CODE = '0040'
OR 0COMP_CODE = '0050'
</i>
.. but thats BW - It generates much turnaround for consultants :).
Thread
/community [original link is broken] threadID=507511&tstart=0
seems to be something like this.
...I get the following Conversion Routine for Type 6:
<i>
program conversion_routine.
Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
InfoObject = ZVPUNITH
Fieldname = /BIC/ZVPUNITH
data type = CHAR
length = 000045
convexit =
form compute_/BIC/ZVPUNITH
tables l_t_range structure rssdlrange
using p_infopackage type rslogdpid
p_fieldname type rsfnm
changing p_subrc like sy-subrc.
Insert source code to current selection field
$$ begin of routine - insert your code only below this line -
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = '/BIC/ZVPUNITH'.
l_idx = sy-tabix.
modify l_t_range index l_idx.
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform.
</i>
Because I have to exclude 1 value out of 5 I can also include 5 values in the
selection criteria connected with OR
This means I have to use an OR only.
Is it possible with l_t_range to state this and how ?
Thank You
Martin Sautter
Similar Messages
-
ABAP Routine in the Infopackage data selection
All,
I have requirement where i need to write a routine on a Date field(Activity Year Month) which has to return values from the first to the last day of the Previous month in the data selection of the infopackage.
I know that on Date there is a STD that can be used but my requirement is on Year Month.
there are 3 vartypes available
5. free temporal selection
6. ABAP routine
7. OLAP variable
when i pick ABAP routine it asks me to create a routine i need some help with the code here
Can someone help.
ThanksHi there
If the Data field is 0FISCPER you can use the OLAP variable 0P_PRFP1. If you have developed the field yourself i think you need to write code. The code could look something like this.
DATA: sysdat TYPE d.
sysdat = sy-datum.
sysdat4(2) = sysdat4(2) - 1.
IF sysdat+4(2) = '0'.
sysdat+4(2) = '12'.
sysdat(4) = sysdat(4) - 1.
ENDIF.
CONCATENATE sysdat(4) '0' sysdat+4(2) INTO l_t_range-low.
MODIFY l_t_range INDEX l_idx.
p_subrc = 0.
This code returns the previous months as a single value.
Chris -
Filed not reflecting in infopackage data selection screen
Hello Gurus,
I have added a time stamp fiield in generic datasource in R3 and selected that field,but when i replicate the data source in BI and go to infopackage data selection screen,i dont see that field.I tried all the possible things but its not working.
Please help me.
Thanks in advance.
Regards,Hi,
Did you select that Time stamp field as Selection field in RSA6? If not then select it as selection field and activate and then replicate the DS in BW and then check if that comes in Infopackage level.
Hope this helps..
Murali -
The data target is not appeared in the Infopackage under datatagets tab.
Hi thanks for your response, i eloboreted my problem below pl see,
In the Info Cube structure i check the Trassactinal check box, In the Infopackage level under the data targets tab i selected the 'Select data targets' radio button icon but the data target is not appeared in the table.pl give me a suggetion in which location can i make a change.
Thanks & Regards
BhaskarThe same question in data source is not appeared in the Infopackage.
-
Routine in Infopackage data selection doesnt give appropriate results...
Hi Gurus,
I need to pull data into PSA (BW 3.5) based on a certain selections in the Infopackage. Selection is based on specific values of Infoobject 0PLANT , however, as these values are multiple and do not fall in a specific range I have written a routine to derive these values.
The routine does the following steps :
- creates an internal table from /bio/mplant and deletes the plant values that I do not wish to consider in the extraction.
- delete data from l_t_range for fieldname = 'PLANT'
- Appends data from the internal table to l_t_range.
However, when I execute the infopackage, the extraction is done for ALL the 0PLANT values i.e it includes the data for 0PLANT value which have been delete from the internal table.
My routine is :
$$ end of global - insert your declaration only before this line -
InfoObject = 0PLANT
Fieldname = PLANT
data type = CHAR
length = 000004
convexit =
form compute_PLANT
tables l_t_range structure rssdlrange
using p_infopackage type rslogdpid
p_fieldname type rsfnm
changing p_subrc like sy-subrc.
Insert source code to current selection field
$$ begin of routine - insert your code only below this line -
TYPES ls_range like l_t_range.
data: l_idx like sy-tabix.
DATA: lt_plant like /bi0/mplant OCCURS 0 with header line.
SELECT PLANT from /bi0/mplant into lt_Plant WHERE objvers = 'A
ENDSELECT.
delete lt_plant WHERE plant = 'W206'.
delete lt_plant WHERE plant = 'WF11'.
delete lt_plant WHERE plant = 'W945'.
DELETE lt_plant WHERE plant = 'W530'.
read table l_t_range with key
fieldname = 'PLANT'.
l_idx = sy-tabix.
DELETE l_t_range where fieldname = 'PLANT'.
Loop at lt_plant.
l_t_range-sign = 'I' .
l_t_range-low = lt_plant-plant.
l_t_range-OPTION = 'EQ'.
append l_t_range.
endloop.
modify l_t_range index l_idx.
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform.
Any bugs in the routines ?try this one:
Loop at lt_plant.
if lt_plant-plant ne 'WF11' or lt_plant-plant ne 'W945' or lt_plant-plant ne 'W530'.
l_t_range-sign = 'I' .
l_t_range-low = lt_plant-plant.
l_t_range-OPTION = 'EQ'.
append l_t_range.
endif.
endloop.
or
don't use a table with header ( use a standard table and use a work area to access the table ) and do an other select like this:
SELECT PLANT from /bi0/mplant
into corresponding fields of table lt_Plant
WHERE objvers = 'A
and plant ne 'WF11'
and plant ne 'W945'
and plant ne 'W530'.
I hope it helps...
Kind regard.
Tobias
Edited by: Tobias Kreuser on Aug 23, 2010 11:34 AM -
Infopackage Data Selection Problem
Hi All,
When i load master data from source system, in Infopackage data selection tab i give some criteria (e.g Customer number = 1000) But in infopackage the data load with all customer.(Not only 1000)
How can i solve this problem??Hello Ozan,
Please check the datasource in RSA3 and make sure that its working for the same selection.
Is there any routine in your infopackage and what is your source system?
[Thanks|http://chandranonline.blogspot.com/]
[Chandran|http://chandranonline.blogspot.com/] -
AP PAYABLES- Not getting all the DUE DATE's in with split schedule payments
Hello All,
We have some issues with AP Data loading's into our DW from EBS 11.5.10 AP - PAYABLES.
One of our customer is using split schedule and share payment into few payment. Our
sql is not reading all the due dates for PAYABLES.
We are using PAYMENT_NUM=1 from ap_payment_schedules_all table as condition to load the Data to avoid duplicate rows coming for Payables.
Some hints: removing the "PAYMENT_NUM=1" from the where clause gives all the due_dates but then we have duplicate rows for Payables.
Please help to modify our query so that it will work for split schedule payment.
select
inv.invoice_num,
inv.doc_sequence_value,
sob.currency_code,
inv.invoice_date,
'EH'||inv.vendor_id vendor_id,
'EH'||inv.vendor_site_id vendor_site_id,
ael.ae_line_number distribution_line_number,
inv.invoice_currency_code,
aeh.accounting_date,
'EH'||ael.code_combination_id code_combination_id,
nvl(ael.entered_dr,0)-nvl(ael.entered_cr,0) accounted,
nvl(ael.accounted_dr,0)-nvl(ael.accounted_cr,0) amount,
fuser.user_name,
fuser2.user_name user_name2,
inv.payment_status_flag,
'PAYABLES' rowtype,
inv.discount_amount_taken,
inv.invoice_type_lookup_code invoice_type,
inv.exchange_rate,
inv.exchange_date,
tax.name,
inv.source,
inv.attribute6 eflow_doc_id,
sysdate transfer_date,
sch.hold_flag,
inv.cancelled_date,
sch.due_date
from
ap.ap_invoices_all inv,
apps.ap_ae_headers_all aeh,
apps.ap_ae_lines_all ael,
ap.ap_tax_codes_all tax,
ap.ap_payment_schedules_all sch,
gl.gl_sets_of_books sob,
applsys.fnd_user fuser,
applsys.fnd_user fuser2
where
aeh.ae_header_id=ael.ae_header_id and
inv.set_of_books_id=sob.set_of_books_id and
inv.invoice_id=sch.invoice_id and
sch.payment_num*1=1 and ---------------------------------------------- *
fuser.user_id=inv.last_updated_by and
fuser2.user_id=inv.created_by and
ael.tax_code_id=tax.tax_id(+) and
ael.ae_line_type_code='LIABILITY' and
inv.invoice_id=ael.source_id and
ael.source_table='AP_INVOICES' and
aeh.gl_transfer_flag='Y'
Thanks,
AmanHello All,
We have some issues with AP Data loading's into our DW from EBS 11.5.10 AP - PAYABLES.
One of our customer is using split schedule and share payment into few payment. Our
sql is not reading all the due dates for PAYABLES.
We are using PAYMENT_NUM=1 from ap_payment_schedules_all table as condition to load the Data to avoid duplicate rows coming for Payables.
Some hints: removing the "PAYMENT_NUM=1" from the where clause gives all the due_dates but then we have duplicate rows for Payables.
Please help to modify our query so that it will work for split schedule payment.
select
inv.invoice_num,
inv.doc_sequence_value,
sob.currency_code,
inv.invoice_date,
'EH'||inv.vendor_id vendor_id,
'EH'||inv.vendor_site_id vendor_site_id,
ael.ae_line_number distribution_line_number,
inv.invoice_currency_code,
aeh.accounting_date,
'EH'||ael.code_combination_id code_combination_id,
nvl(ael.entered_dr,0)-nvl(ael.entered_cr,0) accounted,
nvl(ael.accounted_dr,0)-nvl(ael.accounted_cr,0) amount,
fuser.user_name,
fuser2.user_name user_name2,
inv.payment_status_flag,
'PAYABLES' rowtype,
inv.discount_amount_taken,
inv.invoice_type_lookup_code invoice_type,
inv.exchange_rate,
inv.exchange_date,
tax.name,
inv.source,
inv.attribute6 eflow_doc_id,
sysdate transfer_date,
sch.hold_flag,
inv.cancelled_date,
sch.due_date
from
ap.ap_invoices_all inv,
apps.ap_ae_headers_all aeh,
apps.ap_ae_lines_all ael,
ap.ap_tax_codes_all tax,
ap.ap_payment_schedules_all sch,
gl.gl_sets_of_books sob,
applsys.fnd_user fuser,
applsys.fnd_user fuser2
where
aeh.ae_header_id=ael.ae_header_id and
inv.set_of_books_id=sob.set_of_books_id and
inv.invoice_id=sch.invoice_id and
sch.payment_num*1=1 and ---------------------------------------------- *
fuser.user_id=inv.last_updated_by and
fuser2.user_id=inv.created_by and
ael.tax_code_id=tax.tax_id(+) and
ael.ae_line_type_code='LIABILITY' and
inv.invoice_id=ael.source_id and
ael.source_table='AP_INVOICES' and
aeh.gl_transfer_flag='Y'
Thanks,
Aman -
What this mean? "could not rasterize because the pixel data for this layer is not"
I've taken a color picture and made it black and white by doing the following: Layer>New Adjustment Layer>Hue/Saturation. I brought the saturation down to -100. The pencil is selected and my foreground color is black.
When I try to select the flowers in my picture to bring out their color (within the black and white image), I get a circle with a black line thru it and the error message "could not rasterize because the pixel data for this layer is not directly editable". The steps I followed are working for most of my team but some of us are getting this error message.
Any idea why and/or how to fix it?Ah, thank you! I didn't have the mask selected. So once I did select it, the color came thru like magic.
-
How to debug a ABAP Routine which is in Infopackage Data selection Tab
Hi ,
Please let me know How to debug a ABAP Routine which is in Infopackage Data selection Tab.Hi,
You can try to create infinite loop:
DATA: STOP.
WHILE STOP IS INITIAL. ENDWHILE.
Start InfoPackage and then go to SM50 and swich on debugging for your process. Then in debugger you can change value of STOP variable to skip the loop.
Krzys -
Revision: 7073
Author: [email protected]
Date: 2009-05-19 08:27:59 -0700 (Tue, 19 May 2009)
Log Message:
When looking around a tab group to determine which object to focus on, not only should the object be selected, but it should also be enabled and visible.
QA Notes:
Doc Notes:
Bugs: SDK-19717
Reviewers: Alex
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-19717
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.asRevision: 7073
Author: [email protected]
Date: 2009-05-19 08:27:59 -0700 (Tue, 19 May 2009)
Log Message:
When looking around a tab group to determine which object to focus on, not only should the object be selected, but it should also be enabled and visible.
QA Notes:
Doc Notes:
Bugs: SDK-19717
Reviewers: Alex
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-19717
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as -
Compressed String (GZIPOutputStream) is not equal to the source string
Hello,
I would like to compress the contents of a String (XML data) with the GZIPOutput/InputStream classes. Unfortunately I'm facing a problem - my source and result strings do not equal after the compression and decompression (I hope this is the correct sub-forum for this kind of question).
Here is a example code that reads data from a file (test.xml), compresses it via a GZIPOutputStream into compressed byte array and decompresses it back into a String:
public class CompressedStringTest {
private static final String FILENAME = "test.xml";
public CompressedStringTest() throws IOException {
File file = new File( FILENAME );
String xml = FileUtil.readFile( file );
// COMPRESS
ByteArrayOutputStream out = new ByteArrayOutputStream();
GZIPOutputStream zipout = new GZIPOutputStream( out );
zipout.write( xml.getBytes() );
zipout.close();
out.close();
// DECOMPRESS
byte[] result = new byte[ xml.getBytes().length ];
ByteArrayInputStream in = new ByteArrayInputStream( out.toByteArray() );
GZIPInputStream zipin = new GZIPInputStream( in );
zipin.read( result );
zipin.close();
in.close();
String xml2 = new String( result );
System.out.println( "xml.equals( xml2 ): " + xml.equals( xml2 ) );
public static void main( String[] args ) throws IOException {
new CompressedStringTest();
}The length of the source and result strings are the same, but they are not equal. When I print out the lines which do not equal, I get this:
'</sysConfig>'
'</sxxxxxxxxx'where "x" are those small boxes, characters that can't be printed.
This is the source XML file I use:
<?xml version="1.0" encoding="UTF-8"?>
<sysConfig xid="0" version="0.1" id="1" xmlns:r2="http://....">
<addresses class="java.util.ArrayList" xid="1">
<address xid="2" id="1">
<config xref="0"/>
<addressType xid="3">NURSING_SERVICE</addressType>
<externalId xid="4">0</externalId>
<name xid="5">This is the name containing fourtyeight chars!!!</name>
<street xid="6">street</street>
<city xid="7">city</city>
<zip xid="8">zip</zip>
<telephone xid="9">12345</telephone>
<fax xid="10">(123) 12345612345454597745</fax>
</address>
</addresses>
<lastModified class="java.util.GregorianCalendar" xid="8167">2009-09-17 10:38:59.0 MESZ</lastModified>
<customerNr xid="8168">FB-IK-01001</customerNr>
<customerName xid="8169">A Customer</customerName>
<logProtocolChanges>false</logProtocolChanges>
<useHomeAsStartAddress>false</useHomeAsStartAddress>
<sendMailEnabled>false</sendMailEnabled>
<sendFaxEnabled>true</sendFaxEnabled>
</sysConfig>When I remove just one arbitrary line, the source and result strings do equal. This may have to do with some kind of buffer-length-problem, but I just can't figure out where the problem is.
I really appreciate your help
Thanks a lot!The javadoc reads for "FilterInputStream.read(byte[] b)":I've read it. You're the one who needs to read it.
Reads up to* byte.length bytes of data from this input stream into an array of bytesSo I thought it just reads all available data.Why? That's not what it says, is it?
But when I print the return code of "read", it is not -1, meaning not the whole data has been read.If that is supposed to be 'meaning that the whole data has been read', you are mistaken. What was the return value? compared to the buffer length? You might find it interesting ...
I assume I just do not understand the read method completely.The return value is -1 for EOS, otherwise the number of bytes that were read. Just like it says in the Javadoc actually.
You have to use a loop, increment the offset, etc. -
My carrier is Straight Talk (using ATT network) and they require the user to enter the APN settings in order to access their data network. My Iphone 4s is factory unlocked but I can not get to the Cellular Data Network tab to enter the settings?
Yes ATT hides the APN settings so when you try to use a st sim it automatically reads on AT&T network so the APN settings are hidden and cannot be accessed however you can go to apn.straighttalk.com on you'r phone and select APN/data settings then select AT&T then iPhone and a screen will pop up asking if you would like to install the profile for whatever reason it's not verified but works fine. You can also go to www.unlockit.co.nz and set up a straight talk APN profile that is verified not sure exactly what that means but both work to get the data working on the phone for straight talk but it does not make the MMS work. There are a couple other methods I have read about one is on howardforums using ibackupbot to manually change the files on the phone I haven't been able to get mine to stick using that method but other people have and there is a sim swap method to trick the phone to reveal APN settings using a tmobile sim I have not tried this but other people have with success. The last two methods mentioned will make both data and MMS work
-
Position 1000001 not available for the start date of the infotype record
Dear Experts/Gurus,
I am getting the following error message "Position 1000001 not available for the start date of the infotype record" while trying to upload employees HR Master data in PA40.
I know the reason why because the position is created on 01.05.2009 & employee DOJ is 01.02.2006 both are mismatch & the position date has to be changed earlier date than DOJ but i don't know how to do.
Please let me know how to sort out this issue asap.
Rgds,
VikrantDear Friend,
Use PP02, select the position no, select infotype 1000 (Object), select planning status & validity(date) and then use the copy function to change the start date.
Regards,
Aks -
This is a variation on the issue mentioned in this
post
We are using SP 2010 Content Hub to manage our content types. On the content hub we've created a couple of exteranl lists, and then created some site columns as lookups against these lists. We then added the columns to one of our content types
and set it to publish.
After the publishing job executed, I tried adding the content type (which now appears on the subscriber sites) to one of the document libraries on one of the subscriber sites. When I did that it threw the following error:
Microsoft.SharePoint.WebControls.BusinessDataListConfigurationException: Id field is not set on the external data field
at Microsoft.SharePoint.SPBusinessDataField.CreateIdField(SPAddFieldOptions op)
at Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op)
at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol)
at Microsoft.SharePoint.SPContentType.ProvisionFieldOnList(SPField field, Boolean bRecurAllowed)
at Microsoft.SharePoint.SPContentType.ProvisionFieldsOnList()
at Microsoft.SharePoint.SPContentType.DeriveContentType(SPContentTypeCollection cts, SPContentType& ctNew)
at Microsoft.SharePoint.SPContentTypeCollection.AddContentTypeToList(SPContentType contentType)
at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean updateResourceFileProperty, Boolean checkName, Boolean setNextChildByte)
at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)
at Microsoft.SharePoint.ApplicationPages.AddContentTypeToListPage.Update(Object o, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) b55297ed-717f-466d-8bdc-297b20344d3f
I checked the external content type configuration and it did specify an "id column". Anyone know if what I am attempting to do is possible and if so, what special configurations are required?
ThanksThe issue is not External Content type or external list but the look up column.
It's not possible to publish a look up column via the Content Type Hub.
If you need to do this then an alternate way is to use a Managed Metadata column instead, otherwise you will have to implement this via a feature.
Varun Malhotra
=================
If my post solves your problem could you mark the post as Answered or Vote As Helpful if my post has been helpful for you. -
In the billing section under select payment method it does not give me the option to select none
Did you create a NEW account using the instructions in Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card using an email address you had not previously used with Apple?
You have to.
Maybe that option is not available in your country. It works in the USA
You have to follow the instructions
Maybe you are looking for
-
Lost iTunes Sharing after latest updates
I was sharing my iTunes over an Airport Express/Ethernet network among three Macs (Powerbook G4, iMac G5, G4 DA) and a PC). I updated all 3 of the Macs to iTunes 6.0.4, OS 10.4.5 and latest Security Update. (I did not use Software Update; I downloade
-
Invoice: reading VAT amout per item
Hi there, can anyone tell me how to read the VAT amount for each item while processing an invoice in a form (smartforms)? The print program provides the following structure: LBBIL_INVOICE. This structure includes obviously all information about an in
-
Droplet to Rename Folders and Files
I am an AS newbie and I need some help. Our accounting software creates a folder structure on our server when a job is created with a 6 digit job number. Enclosed in this folder is a set of sub-folders which are generated with a generic name: 0000_Ar
-
Hi I have an emac which I use for more intence work, but like a laptop for basic school work. I have an ibook g3 600 right now that is falling apart, so I need a new laptop. I am looking at both the pismo and tibook. Could you please answer some ques
-
HT1689 how to cancel an automatic renewal
I've set up an automatic renewal weekly payment. The way I am supposed to cancel this is by moving the "automatic renewal" slide to off...but there is no such option on my iPhone?? This is a bit misleading, as now I've needed to pay for yet another w