Infopackage routine to schedule yesterday's data!
Hi,
I have a infopacakge which has to be included in the Process chain in such a way so as to schedule the IP yesterday always.
How can i write a routine to make the required changes in Info package?
Raj
Hi Raj Karan,
Check this......
call function in abap routine of infopackage
Re: ABAP Routine at infopackage dataselection
ABAP ROUTINE AT INFOPACKAGE FOR DATE RANGE
Re: InfoPackage Scheduling for Uploading FlatFile from Application Server
Regards,
Vijay.
Similar Messages
-
HI experts
My datasource is an external datasource. I want to load only those records with the field 'FECULMOD' like sysdate
To do this I have written an ABAP routine in my Infopackage with the code below:
<i>DATA: va_maxdat LIKE /BIC/ADSPX_0100-/BIC/TDPXMOD.
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = 'FECULMOD'.
l_idx = sy-tabix.
SELECT SINGLE /BIC/TDPXMOD
INTO va_maxdat
FROM /BIC/ADSPX_0100
WHERE /BIC/CHPXTDATM = 'MARG_ART'.
l_t_range-SIGN = 'I'.
l_t_range-OPTION = 'GT'.
l_t_range-LOW = va_maxdat.
APPEND l_t_range.
modify l_t_range index l_idx.
p_subrc = 0.</i>
My SELECT instruction returns values less than sysdate.
When I execute my IP, I got a dump with this message:
For the field FECULMOD, any selection with SIGN 'I', OPTION 'GT' is not autorised
Can anybody help me please.
ThankHi Eric,
you need to specify a upper limit ( high value of 9991231) and use BT as the option. That is what is possible in an infopackage. There is no option available to select for <, >, <=, >=, *. It is only = or bt for a specific value or a range.
regards
Siggi -
CUIC 9.1.1 Report scheduling issue - getting data only for current date
Hi,
CUIC : 9.1.1
ICM: 9.0.3
Description:We have CUIC publisher and Subscriber deployed in Cisco UCS C series server. When we schedule a report in Subscriber, we are getting data of current date even we schedule for old dates. Eg. If I schedule a report for yesterday, getting output as today's data. This is applicable for all the historical reports.
There is no such issue in Publisher.
Regards,
AlagTry this...
{TableName.DateField} < DateAdd("d", -2, CurrentDate)
HTH,
Jason -
Infopackage routine --- Help!!
Hello all,
I am doing daily full loads to a cube.......there is no ODS....so when I do loads daily since its a full load the records are basically duplicating ...I would like to have a routine in my infopackage in such a way that if the request date is not a friday then delete that request and do a reload....I have other infosources also feeding data to that cube...so I cannot delete the whole contents of the cube...
thanks in advance...will assign points for your help......is there another way of doing this ?? like having an ODS and sending only delta records ?? and if this can be done using a routine in infopackage...and if its a yes then would like some help with the code...Hi Bose,
In the infopackage there is a setting in "Data Target" tab where you can delete the overlapping request based on conditions. You can use that.
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/f8/e5603801be792de10000009b38f842/frameset.htm
Re: how to Delete previous request
Bye
Dinesh -
Stop infopackage from background scheduling
Hi experts,
How to stop a delta infopackage from Background scheduling in info package options. I want to stop background scheduling
and keep this infopackage in a process chain.I clicked on Start Data load immediately and saved. But when i again opened the infopackage by default it is on Background scheduling and is asking for cancel job after X runs.How to avoid this ?
Bhadri M.You can kill the Job through SM37. IP if directly scheduled, the name would be BI_BTCH*. If you go tour Schedule Tab for your infopackage you can find the name of the Job.
In SM37, just select the job and delete it.
Please don't delete the job if its already Active. Delete it if its in the Released or Scheduled status.
Then you can simply include your IP in you Process Chain and schedule the Process Chain to run daily.
Regards
Anujit Ghosh -
Backup Schedule missed in Data protector [HPDP]
Hello,
When checked backup status for some groups, the schedule was not started.
So the backup was not running for a long time. I have refreshed the backup specification eventhough the issue persist.
How to fix this issue ?
Note:the schedules are not disabled too.
Thanks for your support in Advance.Hi Lars,
I am using the Data Protector TRANS Option.
See the the cutoff of a Logfile from yesterday.
Data Protector finds the Stage files and wirtes them over a pipe to the LTO Tape Drive.
Greets
Peter
Determining stage files in directory 'E:\sapdb_logsicherung'.
Found directory entry '.'. It is not a stage file.
Found directory entry '..'. It is not a stage file.
Found directory entry 'R3P_LOG.265'. It could be a stage file.
Found directory entry 'R3P_LOG.266'. It could be a stage file.
Found directory entry 'R3P_LOG.267'. It could be a stage file.
Found directory entry 'R3P_LOG.268'. It could be a stage file.
Stage file E:\sapdb_logsicherung\R3P_LOG.265 has label LOG_000000265 and the backup started at 2008-12-01 08:41:16.
Stage file E:\sapdb_logsicherung\R3P_LOG.266 has label LOG_000000266 and the backup started at 2008-12-02 21:15:07.
Stage file E:\sapdb_logsicherung\R3P_LOG.267 has label LOG_000000267 and the backup started at 2008-12-05 10:25:54.
Stage file E:\sapdb_logsicherung\R3P_LOG.268 has label LOG_000000268 and the backup started at 2008-12-09 13:10:46.
Found 4 stage files.
2008-12-10 23:05:20
Filling reply buffer.
Constructed the following reply:
OK
Processed Stage Files 4
Bytes processed 8389394432
Deleted Stage Files 0
Remaining Stage Files 4
Reply buffer filled.
DBA Action ends:
Timestamp: 20081210230520 State: Success -
Update Schedule line Delivery date using Bapi_po_Change
Hi all,
I am using Bapi_po_change to Update the Schedule line Delivery date(EKET-EINDT) for the PO based on the Item and the Schedule line.
I am passing the PO number, Po header, Item structure, Schedule line Structure.
But the Date is not getting updated in the Eket table.
Please suggest.Hi Sukriti,
Thanks for the Response, yes i have used the Bapi Transaction Commit Also .
The point is I am able to Update the Statistical Delivery Date in the Same EKET table using BAPI_PO_Change .I have Checked all the Ways to update the EKET-EINDT(Delivery Date)but no Unable to do it. -
Calculate all days in month from schedule line delivery date for 12 mths
Hi experts,
I am trying to solve a problem and would appreciate any help! Im on BI7.
The user will input a date for the schedule line delivery date via a variable.
From this date I need to go forward 12 months exactly and display a key figure (outstanding value) by months but the first and last months must only use the days in that month i.e not the whole month if not selected by the user.
I.e if the user types in 13.05.2008
The display need to show (columns)
May 08 (13th to end of May 2008)
June 08 (All)
July 08 (All)
August 08 (All)
Sept 08 (All)
Oct 08 (All)
Nov 08 (All)
Dec 08 (All)
Jan 09 (All)
Feb 09 (All)
Mar 09 (All)
April 09 (All)
May 09 (1st to 12)
So I neen to restrict the key figure (Outstanding Value) by Schedule Line Delivery Date and display as above on a 12 month forecast basis from the day (sch line delivery daye) entered as a variable by the user.
I also need the first month to only show the dates in the month remaining including the date entered as a variable. The last month must go up to the day before exactly a year in front.
I have created the 12 months as a structure and can include the key figure and the schedule line delivery date. The schedule line delivery date for each period needs to be restricted. How can I do this to achieve the above?
Thanks in advance. Will assign good points for a speedy solution.
Best
Steve.Hi,
Check "OVLY" and "OVLZ" and If the sceduling is active for he shipping point /sales document type. Check "OVXD" and see If the Loading time/ Pick/pack time is determined from it. If they are getting determined from shipping point check the shipping point calender in "SCAL" .If it has saturday and sunday as holidays ,then you may have to change them. And check If the customer has goods recieving hours assigned to him (In customer master unloading point). If he has only 5 working days and If he accepts only goods at 8 am in the morining then system would propose like this.Kindly please let me know If you need any more Information on this.
Regards
Ram Pedarla -
I want to pick up Schedule line Delivery date based on Sales Order of Mater
Hi Experts,
I have one scenario like,
I want to pick up Schedule line Delivery date based on Sales Order of Material.
For example :
Go to va03
Give the order no
Press the enter
Double click on material.
Go to Schedule line Tab
Then we can find out the Delivery date .
I want to pick up the that Delivery date. Could you please help on that.
Thanks,
Amjad.Hi,
schedule line dates are available in VBEP.
VBEP-VBELN = sales order number.
VBEP-EDATU = schedule line date.
REgards,
Raghavendra -
Hi ,
I am creating a order ( for which Delivery Not created ) for which schedule line delivery date is alloted . Which i can check in VBEP table .
But when extracting the data in 2Lis_12_VCSCL , the order is not coming . Is the extractor is correce or anyother way of checking ( check in rsa3 also )
Regards
AnkitHello,
the extractor 2LIS_12_VCSCL is correct to extract schedule lines information of a sales order. Check with your mappings.
Regards,
NK.A -
Schedule Line Delivery Date Calculation with Transportation Scheduling
Hi All,
We are currently running into a problem where our Sales Order Schedule Line delivery dates are being pushed out too far into the future - because of the Calendar being used to determine the transit time.
We have 'Delivery Scheduling' and 'Transportation Scheduling' activated for our Sales Document type
We have Routes that are configured with a 'Transit Time' and a 'Factory Calendar'
Order Scenario:
'Factory Calendar' assigned to our 'Route' is setup with only one 'Workday' in a given week e.g. Wednesday
Our 'Route' has a Transit Time of 2 days
We create a Sales Order on Monday for a Material that is available in our Plant
The 'Goods Issue' date is being determined correctly for the next Workday - being Wednesday
The 'Delivery Date' is extending out over 15 days (2 Wednesdays into the future) - since it is working on 'Calendar Days' and not 'Actual Days'
Does anyone know of a way (config or other) to only influence the 'Goods Issue' date with the 'Factory Calendar' assigned to the Route, and have the 'Delivery Date' calculated using the Transit Time on the Route and 'Actual Days' rather than Calendar days?
All help greatly appreciated.
Thanks,
Ravelle<i></i>Hi Pathik,
Thanks for your reply. I have already maintained the Calendars I'm using for this business process in <SCAL> - same as <OY05>.
The problem I'm having though is that by assigning a Calendar directly to my route (which I doing to influence the goods issue date - using a 1 Working Day Calendar) it is also taking precedence in determining the Transit time - which in this case I don't want, as I want my Transit time to be determined using a 5 Working Day Calendar.
I don't think this problem has a config option as a work around...I think the only possibility in this case is a development to achieve the results we need.
Thanks,
Ravelle -
How to schedule Job for data uploading from source to BI
Hi to all,
How to schedule Job for data uploading from source to BI,
Why we required and how we do it.
As I am fresher in BI, I need to know from bottom.
Regards
Pavneet RanaHi.
You can create [process chain |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502b2998-1017-2d10-1c8a-a57a35d52bc8?quicklink=index&overridelayout=true]for data loading pocess and schedule start process to any time/date etc ...
Regadrs. -
SSIS Expression to get yesterday's date
Hi ,
I used the following expression to get yesterday's date :
(DT_WSTR,4)YEAR(GETDATE())
+ RIGHT("0"+(DT_WSTR, 2) MONTH(GETDATE()) ,2)
+ RIGHT("0"+(DT_WSTR, 2) DAY(DATEADD("dd", -1, GETDATE())) ,2)
It returns correct date but fails on last day of the month. Eg : If today is Feb 01 ,2015 , this expression returns
20150231 (Feb 31 2015) . It should return 20150131 (Jan 31 , 2015) . What expression to use to get correct previous date?this?
(DT_DATE) DATEADD("DAY",-1,GETDATE())
if you dont have timepart use
(DT_DATE) (DT_DBDATE) DATEADD("DAY",-1,GETDATE())
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Ssrs 2008 r2 obtain today and yesterday's date
In an SSRS 2008 r2 report, I want to set the default value to yesterday's date in a parameter called startdate. In a parameter called enddate, I want to set the default parameter value to todays date.
I have tried the following to set the default values:
=today()
and
=DateAdd("d".-1.today()).
The above does not work.
Thus would you let me know how to set the default parameter values of start date to yesterday's date and the enddate to today's date?Why it didnt work? what did it give you? Its working fine for me
Are you trying to strip off time part?
if yes try like
=Today().ToString("mm/dd/yyyy")
or whatever format you want
similarly
=DATEADD(DateInterval.Day,-1,Today()).ToString("mm/dd/yyyy")
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Hi,
I use TO_CHAR(SYSDATE,'YYYYMMDD') - 1 to get yesterday's date.
But this logic seems to fail when run on the 1st day of the month (ex: 20081001).
How can I get yesterday's date?
Thanks,
RajaHow about
SELECT TO_CHAR(sysdate - 1, 'yyyymmdd') yesterday
FROM dual
YESTERDAY
20080930?
C.
Maybe you are looking for
-
i just got a new i pod and cant connect to wi fi im putting in the right passcode but its not working what should i do?
-
How to print form into pdf format using smart forms in abap
please let me know how to print form into pdf format using smart forms in abap. Moderator message: please search for available information/documentation. Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM
-
Previously bootcamped my macbookpro but the sound doesn't work. I need to upgrade my sound card driver but can't do because I don't know the sound card I have. I need to find the sound card.
-
Hi all, In PO message determination, I config. NEU type for output and PO print can be outputted, But in every time I have to go to messager and select NEU and save it. Why not this is automatically select the NEU type and outputted... what
-
Visual Studio profiler does not show results for XAML + DirectX project
The case is simple: 1) The solution consists of 3 projects: 2 C# ones (C# XAML project + C# library project) and one C++ runtime component initially created by the wizard, as this is a DirectX project. 2) "Start Windows Phone application analysis"