How to filter the records in the process of loading data into ODS
Hi All,
I am doing some data extraction from R/3 system. But I need to ignore(don't need to load) the records with a date field (Purchase Order date) that is blank.
So how can I filter out the records with the blank date field?
Some one suggested me to write some select statement (looping the data packages) in the start routine but I am not that experianced with the ABAP routines. So can anyone provide some sample format of the routine or can you suggest me some other way to filter out this data.
Ram Kumar,
I used this in the start routine but it gives me an error saying ...
No component exists with the name "TRAN_STRUCTURE-BEDAT"
<b>delete datapak where TRAN_STRUCTURE-BEDAT = '' OR
TRAN_STRUCTURE-BADAT = '' OR
TRAN_STRUCTURE-ERDAT = '' OR
TRAN_STRUCTURE-FRGDT = '' OR
TRAN_STRUCTURE-UDATE = ''.</b>
I have taken out the TRAN_STRUCTURE part and just typed
delete datapak where BEDAT = '' OR
BADAT = '' OR
ERDAT = '' OR
FRGDT = '' OR
UDATE = ''.
This above statement has no syntax errors. but this statement doesn't filter out the records with a the date fields that are blank.
Please help me out here.
This is kind of urgent.
Thanks,
Similar Messages
-
How to identify which record(s) the user hasbeen checked
i have a internal table in which first field is represented as check box in the output .
like bellow
loop at g_it_final into g_wa_final.
write : 5 sy-tabix ,
20 g_wa_final-g_v_check as checkbox,
25 g_wa_final-TRKORR,
40 g_wa_final-AS4TEXT.
endloop.
now the user will select some records from the output checking the check box
NOW the QUESTION is
how to identify which record(s) the user hasbeen checked(selected) ?
so that i can disply only the selected records in the secondary list.Hi,
You will have to use the 'READ LINE' command within a loop to retrieve the data back into your program.
You may want to use the HIDE command to ease the retrieval of the checkbox value.
Check out the online help for both of these.
Darren -
How can I numbered the records in the report
Hi, can anyone please show me how do I number the records in the reports in the Report Builder?
Thank you.Hi,
Follow the following steps:
1. Create a summary column in the data model of the report.
2. Select the function as Count.
3. Select the source for which you want to generate the serial no.
4.Reset the column at Report level.
5. Now create a field in the paper layout of the report and select this summary column as the source. The field should be in the same repeating frame as its source.
This will generate the nos. as reqd.
Swati -
How to get the records of the particluar day when delta laod failed (Urgent
Hello BW Gurus,
We are facing one serious issue. Here is the scenario.
1st time the Delta was init and for next consective two loads delta ran sucessfully... then next time delta got failed and the status is in red..... even though system started next delta loading and it has fetched the records and status is in green but not activated ,,,,,its happening still past one month so almost there are 20 requests which are to be get activatetd.
How to resolve this issue.
<b>And how to get the records of the partilcular day when the delta got failed.
</b>
Anyone have come across with this strange issue then help me out and i will rewarrd the points.
Urs,
Raki.Hi
Can you provide more details about your extractor and data targets.
Are you loading delta to an ODS ??
If you are loading to an ODS, The only solution i can see is to get the missing delta records via FULL UPDATE. Because if you delete the error request from ODS it will also delete the 20 successful requests above it.
Cheers
Praveen
null -
How to get all the records in the RSA3 extratcion
Hi All
i have problem in seeing the records at RSA3. when i load the data im getting around 14k records when i want to see all the records ,i am not able to see that.. but the records are available in tables...
i want to see the the some asset numbers but for RSA3 its getting me upto 1k records..
I want to check my datasource is that working properly or not.
please help me
regards
AKThanks alot Bhanu ,,,,
Actually i was not concentrating on the first screen ...always going to next screen and searching for defferent searching ...
got the records now thanku very much
Rewarded points
Regards
AK -
Keep the record in the view object if deletion failed.
I have a view object which is based on the entity object, when I am trying to delete a row it failed because it has a child record associate with. I know the row is not delete from the database, but the record is deleted fromt the view.
How to keep the record in the View object if delete failed?Hi,
the row is not delete from the database,refresh the view . re-execute query and the view show the row -
Scan through the records in the Form and display the message!
Hello Everyone,
We have a requirement, I do not know how to achieve it.
In a Forms 6i, 2 fields Type, Comment.
Type is a list of Values (1,2,3)
Comment - Free Text Field.
User can enter as much rows of data, but while user saves the data we have to validate that all the records of Same Type(Say 1). If not we have to display a Message.
So how to achieve this? How to scan through the records in the Form. Any comments on it would be great.
Thanks.User can enter as much rows of data, but while user saves the data we have to validate that all the records of Same Type(Say 1). If not we have to display a Message.I am assuming that you want to check from the first record. Suppose in first record the user coosed 1 and you will check for all the entries for 1.
Couple of ways to do this.
1. While user is entering first record. You can keep that selected type value in GLOBAL variable and while he is entering further records you can match type with that global variable. If it is not matching then you can display message.
2. On KEY-COMMIT trigger you can start loop from first record and can check for all the records one by one. Like.
DECLARE
vVal DATATYPE;
BEGIN
GO_BLOCK('BLOCK_NAME');
FIRST_RECORD;
vVal:=:FORM_TYPE_FIELD;
LOOP
IF vVal!=:FORM_TYPE_FIELD THEN
MESSAGE(..);
EXIT;
END IF;
EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
NEXT_RECORD;
END LOOP;
END;I would go for earlier approach and will use WHEN-VALIDATE-ITEM / PRE-INSERT for type field for this purpose. Because in KEY-COMMIT the system is doing same thing again.
-Ammad
Edited by: Ammad Ahmed on May 15, 2010 12:23 AM
changes not equal sign to != -
Hello there,
I am totally green in web development.
my goal is to, for the user will input a date range from and
to and will out put the records in the intranet when they press a
button.
However, the good news is: I have experience in programming.
I have written applications for desktop in VB>NET and I
understand RDBMS /sql concepts .
But CF and WEB development is new to me.
My current projects involves in connecting to DB and testing
it. (it works fine)
And outputting reports by to a intranet page. (records)
i need help on how to start this asap. I will even do some
practice at home.
Tools I have at work
• Development server(test)
• Home site.
• Toad for db connection.
• Html reference guide
• Cf dummies book.
How can start my projects.
(ex. Create cf, outputpage?)
seriously, I am new to this.
Thanks.Well, I had a really nice response with some concepts and
ideas for you to practise on etc, but these dumb forums timed out
and I lost it all
If you want to pop me an email we could probably do a few
exercises together that way - or even by MSN Messenger if you want. -
Update the source record while loading data into target
Hello Friends,
I am loading data from "staging info object" into "target info object".
I have the validation code in 'start routine' in the transformations.
During validations, if the conditions are met, I would like to load the record into target and at the same time, update one specific field of this record ( e.g. say - LoadFlag ) in the source infoobject.
I am successfully able to load the records in the target info objects.
I would like to know, how to update the record in the source-infoobject.
Can anyone please let me know the ABAP syntax for this one.?
I promise to award points.
Thank you for your time.
Pramod.Instead of ABAP you can:
a) connect the update rule to the target also to the source object as input. In this updaterule you can simple set the load indicator with a constant.
b) use an APD (TR RSANWB). -
Error while saving the records in the database
Hi,
I am running into a wierd error.
I have built a new page which contains the information about the employees. Some of the fields are updatable fields. The page shows the details of the person who logs into the page.
I am not using EO in this page. The data is queried from the database from VO and displayed in the page and when the records are updated, they are saved in the databased using pl/sql procedure which is
being called from AM. So i am basically not using VO to save the records in the database.
The error which i am getting is,
If 2 users are trying to update the page at the same time, user A's details are updated in user B's page.
This is really causing the issue. Any help is greatly appreciated.
Thanks in advance.
PKI have posted the code used along with the dialog page. Please review.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Pavan, Start1",OAFwkConstants.STATEMENT);
if (pageContext.getParameter("XYZBack")!=null)
pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE"// OAWebBeanConstants.RETURN_TO_MENU_URL also tryed this , same error
,null
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null //not needed as we are retaining menu context
,null // no parameters are needed,true //retain AM,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
,true
,null
,OAWebBeanConstants.IGNORE_MESSAGES);
if(pageContext.getParameter("XYZUpdate") !=null)//The fields and their values are loaded as soon as the update button is clicked. We do this before calling the oadialog page so that the values are not lost
OAViewObject EmpDetailsVO3 = (OAViewObject)OAAppl.findViewObject("XYZPersInfoVO");
OARow EmpDetailsRow3 = (OARow)EmpDetailsVO3.first(); //Bringing the control over to the first row which is nothing but the displayed row.
if(EmpDetailsRow3 !=null)
s_workphone = EmpDetailsRow3.getAttribute("WorkPhone").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is: "+s_workphone,OAFwkConstants.STATEMENT);
s_fax = EmpDetailsRow3.getAttribute("WorkFax").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Fax is: "+s_fax,OAFwkConstants.STATEMENT);
s_building = EmpDetailsRow3.getAttribute("Building").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Building is: "+s_building,OAFwkConstants.STATEMENT);
s_room = EmpDetailsRow3.getAttribute("Room").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Room is: "+s_room,OAFwkConstants.STATEMENT);
s_box = EmpDetailsRow3.getAttribute("Box").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Box is: "+s_box,OAFwkConstants.STATEMENT);
s_preferedname = EmpDetailsRow3.getAttribute("KnownAs").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Preferred name is: "+s_preferedname,OAFwkConstants.STATEMENT);
OAException OAExcep1 = new OAException("PER","XYZ_UPDATE_DETAILS");
OAException OAExcep2 = new OAException("PER","XYZ_UPDATE_MESSAGE");
OADialogPage OADialogPG1 = new OADialogPage(OAException.WARNING,OAExcep1,OAExcep2,
OADialogPG1.setOkButtonToPost(true);
OADialogPG1.setNoButtonToPost(true);
OADialogPG1.setOkButtonLabel("Yes");
OADialogPG1.setNoButtonLabel("No");
OADialogPG1.setOkButtonItemName("DoOk");
OADialogPG1.setNoButtonItemName("DoNo");
OADialogPG1.setPostToCallingPage(true);
pageContext.releaseRootApplicationModule();
pageContext.redirectToDialogPage(OADialogPG1);
else if(pageContext.getParameter("DoOk") != null)
OAApplicationModule EmpDetailsAM = pageContext.getApplicationModule(webBean);
Class[] paramtypes = {String.class, String.class, String.class, String.class,String.class,String.class,String.class};
Serializable[] params = {s_personid,s_workphone,s_fax,s_building,s_room,s_box,s_preferedname};
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"personid is :"+s_personid,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is :"+s_workphone,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workfax is :"+s_fax,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"building is :"+s_building,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"room is :"+s_room,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"preferredname is :"+s_preferedname,OAFwkConstants.STATEMENT);
pageContext.releaseRootApplicationModule();
OAAppl.invokeMethod("TransactionCommit",params,paramtypes);
OAAppl.invokeMethod("initDetails");
throw new OAException("The Building and Phone Information have been saved successfully"
,OAException.INFORMATION);
thank you -
Why is the recording on the cd not playable in itunes?
I inserted a cd with a recording. the recording with the ending .WAV is not playable.
can anyone help?
I appreciate your responseI get the same problem. I moved the backup files (B1) to another drive and then itunes generated new backup files (B2) for my iPhone. They seem to be of similar size. Due to my running out of space on my system drive, I've linked the backup folder to another drive. This is where I moved my original backups (B1). After I did that, the iPhone seems to sync but once again, the date of the backup did not change. I have no idea what the issue is. I'll save both B1 and B2.
To be sure you've got an up to date backup, I recommend changing the name of the original backup folder to backup2 and then forcing itunes to make a new backup from scratch.
On a windows machine, the backup folder is found at:
C:\Users\(Username)\AppData\Roaming\Apple Computer\MobileSync\Backup -
Loading data into essbase - can't stop the loading process
Hello Everyone
I have built an interface which loads data into essbase.
The interface was working great until last night, don't know why it got stuck in the stage of loading data into essbase
(This is my bonus question, why? does it have anything to do wit hte fact that I have refreshed the database via planning)
Any way, we have tried to kill the loading process by clicking stop on the interface execution in operator, and even after we killed the
session in essbase it was still there in essbase.
Does anyone know why?
ThanksHi,
I can't answer your questions but ...
I'm really familiar with the fact that trying to stop an execution fail.
The only solution I found is to pass by an agent for all my executions.
With an agent if I have a problem, as an emergency I can stop the agent it will stop the execution...
I'm sure that it is a bit dirty but it works...
And that is better than nothing...
The ugliest and only way I found without agent to stop an execution was to drop a table used by the job (like a I$ table) it forces the failed...
Sorry no more clue.
Regards,
Brice -
BAPI containing the recording of the Tcode XK01
Hi,
We need to create a BAPI containing the recording of the transaction XK01 with all mandatory and required parameters being passed to the code via import parameters and tables. Could anyone please help me out in developing this...
Regards,
Ramesh.Hi Ramesh,
Use BAPI_VENDOR_CREATE.
Also refer the programs RFBIKR00 and RFBIDE00.
Check this links too.
http://help.sap.com/saphelp_47x200/helpdata/EN/01/a9b53e455711d182b40000e829fbfe/frameset.htm
Regards,
Susmitha
Dont forget to reward for useful answers -
R12: How to filter Open Item Revaluation Report based on GL Date
Hi,
Anybody know how to filter Open Item Revaluation Report based on GL Date from and GL Date to in R12?
Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
We need to run the report only for specific date only. Please share with me if anyone know about this.
Thanks.Pl do not post duplicates - R12: How to filter Open Item Revaluation Report based on GL Date
-
Steps for loading data into the infocube in BI7, with dso in between
Dear All,
I am loading data into the infocube in BI7, with dso in between. By data flow looks like....
Top to bottom:
InfoCube (Customized)
Transformation
DSO (Customized)
Transformation
DataSource (Customized).
The mapping and everything else looks fine and data is also seen in the cube on the FULL Load.
But due to some minor error (i guess), i am unable to see the DELTA data in DSO, although it is loaded in DataSource through process chains.
Kindly advise me, where did i miss.
OR .. Step by step instructions for loading data into the infocube in BI7, with dso in between would be really helpful.
Regards,Hi,
my first impulse would be to check if the DSO is set to "direct update". In this case there is no Delta possible, because the Change log is not maintained.
My second thought would be to check the DTP moving data between the DSO and the target cube. If this is set to full, you will not get a delta. It is only possible to create one DTP. So if you created one in FULL mode you can't switch to Delta. Just create the DTP in Delta mode.
Hope this helps.
Kind regards,
Jürgen
Maybe you are looking for
-
How can i change Apple id on the administrator account?
I recently got an imac with the mac mini. I am switching over to mac from being a lifelong pc user, so this is new to me. When i first set up the computer i put in the apple id with my email address, but it was the same one that i use for my ipad. I
-
i am facing a real trouble to use British Library apps , i have done all possible ways to rectify but invain. i bought one month subscription as well.
-
I have figured out the ICHAT VIDEO PROBLEM!!!
For all of you people like me who are having problems connecting your Ichat with another Ichat user, even when you have tried all those helpful tips like unblocking your fiewall and changing your quicktime settings and you ichat settings to what they
-
Selecting Tabs and Arrow Key Tab Switching
Older versions of Firefox had this feature. Pre 3.0, Firefox let you select the text around a tab by middle clicking, which allowed you to scroll through tabs using the arrow keys. After 3.0, you could do this by left clicking and then immediately ri
-
I have used notes to save various items and I keep losing them. I have had them for months when one day I check to retrieve one I've placed in notes and they are all gone! What am I doing to lose all of my "notes"? Thanks