Routine in Info Pack
Hi all,
I need to load only that Data which belongs to Current year or current year -1.
While loading from R3 in the infopack can you provide me the routine to do it.
Thanks
Sunny
<Moderator Message: We are not here to do your job for you>
Edited by: Siegfried Szameitat on Sep 28, 2010 1:10 PM
Hello Sirnivas,
your programm contains a little error. You forgot the index!
You wrote...
read table l_t_range with key fieldname = 'ITM_CAT'.
l_t_range-sign = 'I'.
l_t_range-option = 'NE'.
l_t_range-Low = '2'.
clear l_t_range-high.
modify l_t_range index l_idx.
This will work better...
read table l_t_range with key fieldname = 'ITM_CAT'.
<b>l_idx = sy-tabix.</b>
l_t_range-sign = 'I'.
l_t_range-option = 'NE'.
l_t_range-Low = '2'.
clear l_t_range-high.
modify l_t_range index l_idx.
You can also add more selections by adding lines to l_t_range.
example:
data: l_idx like sy-tabix.
data: l_t_range2 like l_t_range.
read table l_t_range with key
fieldname = 'ITM_CAT'.
l_idx = sy-tabix.
l_t_range-sign = 'I'.
l_t_range-option = 'NE'.
l_t_range-Low = '2'.
clear l_t_range-high.
modify l_t_range index l_idx.
move-corresponding l_t_range to l_t_range2.
l_t_range2-sign = 'I'.
l_t_range2-option = 'NE'.
l_t_range2-Low = '3'.
clear l_t_range2-high.
append l_t_range2 to l_t_range.
I hope this helps you!
Regards
Message was edited by: Vazquez Dominik
Similar Messages
-
Hello, Experts.
We have applied support packs. its completed and i am testing the system. i am getting the error when i exe a info pack and the error message is this.
Error message<b>
The Control Parameters for communication with the bw server are not complete. a BW Plugin uprade could be the cause of the problem.
Depending on the relese of the BW server , Proceed as follows. BW Server Release1.2B: Source System: Update INfosource Metadata BW server release >= 2.0A : Source System Activate.</b>
Please Sugggest me.
Thanks in Advance
SharpHi Lord Acoustic,
I assume the simulation was developed with an older version
of director, and worked under an older system (e.g. Win98 or 2k).
Your new computers come with Vista, right?
Go to the developer, tell him to recompile the simulation
with a new version of Director for your new os, and it should work.
He might have to charge you for changes to the code.
Noone else but the developer can do anything. And only when
he still has the source files (x.dir).
You can try to run the software in a virtual machine, that
might work.
HTH,
Udo -
Info Pack asks for trasnport request
Dear all,
After Patch Upgrade from EHP4 to EHP 10 , During Info pack edit it is asking for transport request.
we done below setting:
Transport connection>Object changeability>Info Package Type: (ISIP)--->Everything Changeable.
we are in SAP_BW (SAPKW73110) and release 731 , SP Level-10
Error message:
Carry out repairs in non-original system only if they are urgent
Message no. TR850
Diagnosis
This SAP System is not the original system of the object being edited.
System Response
The function continues.
Procedure
Only perform urgent repairs and also maintain these changes in the original system of the object.
waiting for favorable reply.
Regards,
LinganathanI think that setting you have done is not necessary.Just collect your info package by searching & transferring to right side panel in transport connection. Also make sure that your Package is not in $tmp, If needed you can change it by right click on info package and assign there Package.
If info package in standard one then no need of it.
And one more thing I think is make sure you are collecting info package in Development/Correction's Task not in repair one;according to your error message.
Also you can collect your info package directly in your TR by double click on Development/Correction's Task and edit it. In Program Id put "R3TR",
object type "ISIP" and in object name Info pack tech name. Now save it. If any lock problem occurs unlock your task using SE03.
At the end check your TR for info package. -
FBL1N, System error: Routine Beleg_Nachl info -0000-000 not in BSEG
Hello Experts,
I have created a vendor Ivan15 and entered one invoice. When I start t-code FBL1N to display the vendor line items, I have an empty screen witht following error:
System error: Routine Beleg_Nachl info --0000-000 Not in
BSEG/archive; inform systems administrator
Message no. F5333
Diagnosis
In program routine 'Beleg_Nachle' an error
(--0000-000 ) has occurred. Processing is terminated.
Procedure
This is caused by a program error and you should contact SAP Support.
NB: The document number linked to the vendor invoice does exist in BSEG.
Can someone tell me how to solve this problem.
Thanks in advance,
Tierno
Edited by: Tierno on Jan 17, 2012 2:41 PMHI
Check SAP Note number 1562926,1355364.
Rgds
SumaMani -
Info pack is hanging for longer times
Hi Gurus,
I had a Info pack which will fetch the data from IBM Data stage to SAP BW,When i'm executing the load jobs my info pack is in yellow for hours and message in Data stage is "APT_CombinedOperatorController,0: Logging delayed metadata.".Can any body throw some light on this?The Job over view is enabling for BW but not for Source system.The same for all other options.But i can see some ALE Management i din't know which were related to my job and how to deal them.
Regards,
RambabuHi Ram
Is this the first time you are running this IP?
Please give us more details on data as well. Approximately how much data lies in the source system. At least do you have an option to check the data in source system.
If there is no data also, the IP will have yellow status forever. In that case, you should do as below.
Click on the below option in your IP
Below screen will appear. Change it to Green and execute the job again
Share the screenshots of detailed tab of the IP monitor, if nothing worked out.
Regards
Karthik -
hi,
I have to schedule a info pack on following conditions
1st to 3rd week of month weekly
4 th week of month daily
how can i achieve it please let me know because i have i have checked all options which are available in info pack scheduling.
DO i need to write a program.thanks for your valuable suggestion murali ...
can you please tell bwremote user ... like where we maintain these user id and passowrd ... how does this effecting process chain ?? if we are changing this password mean where and all we need to change so that my process chains wont get same problem ....
thanks in advance
HARRY -
Hi Friends,
i have seen routine option at extraction tab of info provider.
Pls can any one explain me in which secenario we can write this one.
Thanks in advance,
Thanks& Regards,
Ramnaresh.
Edited by: ramnaresh porana on Dec 16, 2008 3:28 AMHi Ramnaresh,
Infopack level routine is gen used to calculate selection at runtime... for eg a very basic eg wud be running an infopack for the current month. Now every month, value for current month will change and hence we can write a small routine to calculate current month...
to write infopack level routine u enter 6 in Variable Change type... and start writing routine
Fill below variables in routine to get desired result!!
L_T_RANGE-SIGN
L_T_RANGE-OPTion
L_T_RANGE-low
L_T_RANGE-high
modify l_t_range index l_idx.
regards
Aadil -
What is meant by matn1 conversion routine in info object
hi,
Can i know the exact meaning and usage of matn1 (type of conversion routine) in the infoobject level.
thanks in advanceHi Sankar,
Conversion takes place when converting the contents of a screen field from display format to SAP-internal format and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.
Check the info here:
http://help.sap.com/saphelp_nw04/helpdata/en/2b/e9a20d3347b340946c32331c96a64e/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/07/6de91f463a9b47b1fedb5be18699e7/content.htm
Hope this helps... -
Where can we see the Conversion exit written in the Info pack
Hi ,
In the info package -> in details tab - > USE CONVERSION ROUTINE is enabled.
I want to know why this conversion has been used and where can see the code for this routine.
Request share your replies.Hi,
If you set this indicator, the conversion exits are used when you maintain selection criteria. This means that the field values are displayed in external format and also have to be entered in external format.
If you do not set this indicator, the field values are shown in internal format in the selection criteria maintenance and you also have to enter them in internal format.
Eg. if you have selection for MATNR in the InfoObject, go to 0MATERIAL tab you will see the routine as MATN1.
you can chk it in SE37.
CONVERSION_EXIT_MATN1_INPUT
CONVERSION_EXIT_MATN1_OUTPUT
Regards,
Mansi -
List of Routines where info object is used
Hi all,
I would like to list all routines where a info object is used. Can anybody tell me how do I do it in BW.
Regards
NPRRSTSRULES & RSTRANROUTMAP in SE16
-
Routine in Info Package, Debug in Info package.
Hi All,
Requirement is to include multiple ranges in Info Package based on the Conditions.
I want to check whether it is working fine by going into debug mode.
Can any help in this regards.
thanks in advance,
srinivasHello Sirnivas,
your programm contains a little error. You forgot the index!
You wrote...
read table l_t_range with key fieldname = 'ITM_CAT'.
l_t_range-sign = 'I'.
l_t_range-option = 'NE'.
l_t_range-Low = '2'.
clear l_t_range-high.
modify l_t_range index l_idx.
This will work better...
read table l_t_range with key fieldname = 'ITM_CAT'.
<b>l_idx = sy-tabix.</b>
l_t_range-sign = 'I'.
l_t_range-option = 'NE'.
l_t_range-Low = '2'.
clear l_t_range-high.
modify l_t_range index l_idx.
You can also add more selections by adding lines to l_t_range.
example:
data: l_idx like sy-tabix.
data: l_t_range2 like l_t_range.
read table l_t_range with key
fieldname = 'ITM_CAT'.
l_idx = sy-tabix.
l_t_range-sign = 'I'.
l_t_range-option = 'NE'.
l_t_range-Low = '2'.
clear l_t_range-high.
modify l_t_range index l_idx.
move-corresponding l_t_range to l_t_range2.
l_t_range2-sign = 'I'.
l_t_range2-option = 'NE'.
l_t_range2-Low = '3'.
clear l_t_range2-high.
append l_t_range2 to l_t_range.
I hope this helps you!
Regards
Message was edited by: Vazquez Dominik -
Selection routine in info package
Hi gurus,
I need to load last month's data in to BW if I am executing the IP in this month.
that is if Iam executing in Feb 2009 then it should load Jan 2009,
and if Iam executing on JAn 2009 then it should pick data for Dec 2008,
For this logic I had written like,
data: TEMP_DATE TYPE DATE,
TEMP_MONTH TYPE CHAR(6).
TEMP_DATE = SY-DATUM.
TEMP_MONTH = sydatum+2(6).
L_T_RANGE-IOBJNM = 0CALMONTH.
L_T_RANGE-SIGN = 'I'.
L_T_RANGE-OPTION = 'EQ'.
L_T_RANGE-LOW = TEMP_MONTH - 1.
L_T_RANGE-HIGH = TEMP_MONTH.
APPEND L_T_RANGE.
Is this OK or I need to change,
Thanks,
PavanHi Pavan,
This is an example How to ... Write Infopackage selection Routine
1.Create an Infopackage
2. Go to selections tab and choose Type: 6 u2013 ABAP Routine.You can see following available options(F4 Help).
3. Give disruption, and hit enter, now you will move to following screen.
4. Write Code between begin of Routine and End of Routine.
5. See below sample code to select date range from Previous 6 days to Current date.
6. L_T_Range table is of Type structure RSSDLRANGE.
a. RSSDLRANGE contains SIGN, OPTION, LOW, HIGH
We need to populate these fields to pass range dynamically.
Sample Code:
***$$ begin of routine - insert your code only below this line -
Data: l_idx like sy-tabix.
Data: date_low like sy-datum.
Date_low = sy-datum u2013 6.u201D(To get 6 days back).
read table l_t_range with key
fieldname = 'CRDAT'.
l_idx = sy-tabix.
Pass Range values to L_T_Range Table.
Move date_low to L_T_Range -Low.
Move sy-datum to L_T_Range -High.
L_T_Range -Sign = u2018Iu2019. *****(Here: I u2013 Include, E u2013 Exclude)
L_T_Range -Option = u2018BTu2019.****( Here: BT u2013 Between )
modify l_t_range index l_idx.
p_subrc = 0.
Regards
Sudheer -
Is it possible to know flat files names loading using particular info pack
hi experts ,
is it possible to know flat files names loading using particular info package ??
in our project we hav flat file extraction manually ...as i am replacing old sap bi consultant i must contine pending loads ..
as ther s no document about loads i must check and ensure about loads left out ..'
for every flatfile they used load with differnt name ... if am able to get those files name i can list out pending ones
and can load
is it possible to those details ??
pls help me .....
relative answer will rearded with points ............
thanks in advance
regards
harryI AM REALLY THANK FUL FOR ALL.. your people are really quick .and giving relavtive answers ...
they loaded from desktop only ....not from application server ..
i got details from info cube mange screen .they used to load data monthly wise ,so i hav given month in selection and viewed data..
Regards ,
Harry -
Emulated DS's appearing , info packs miss after system copy in 7.0 system
Hi All
We did a system copy of our BI dev system into a new installed BI 7.0
system.As part of the post refresh steps we ran the BDLS run.We noticed
that all the info packages were missing and the emulated data sources
appeared instead of 7.0 data sources..We tried to migrate one of the
emulated DS's and then all the info packages associated with that data
source were seen......Also the DTPS were inactivated bcoz of this and
we had to activate this manually.....But we have around 200 data
sources ...Could you please suggest a program/report/solution to
recover all the info packages and 7.0 data sources instead of migrating
each of them individually which is daunting task.......Hi,
It might be helpful for you to check the SAP note 1072206 and change administration connection accordingly.
Regards,
Masako -
Loading info pack for hierarchies
I'm trying to load an existing infopackage for a hierarchy and get an erro asking me to select a hierarchy to load. On that screen I see 4 hierarchies listed. Three of these are valid and can be seen under the infoobject is RSA1 the 4th is unknown to me and I acnnot locate it anywhere in the workbench (using the long tech ID).
The problem is that the one I want to load is not visible at all. I searched and see this thread but the issue does not seem related. My files are loading from local flat files.
I'm also using 3.1 and do not see any button to 'Available Hierarchies from OLTP'
Is there a step a need to perform to refresh the list of hierarchies to both remove the obsolete one and see the missing one?Hi,
Under hierachy selection in the info package, there is one create hierachy structure icon , click on it and enter the name of the hierachy and description and it will take you to hierachy structure , there if it time dependent fill the valid time intervel and save it .
now this will appear in the info package now select it and load data.
Hope this will help.
regards,
rudra.
Maybe you are looking for
-
Can not view any Facebook site any ideas?
My Galaxy S4 will not allow me to view any Facebook site. I have tried using Wi-Fi and data without any luck. I have done restarts, virus scans and tried several ways to view a Facebook site. I go to those that I have bookmarked and tried a searc
-
Passing arraylist between constructors?
Hi guys, I've pretty new to java, and I think i'm having a little trouble understanding scope. The program I'm working on is building a jtree from an xml file, to do this an arraylist (xmlText) is being built and declared in the function Main. It's t
-
MacBook Air 2013 battery drains quickly while in sleep mode
I just purchased a 13" mid-2013 MacBook Air this week, and so far everything is working well - a remarkable improvement over my 2007 MacBook! But, I've noticed that the battery seems to drain very quickly while in sleep mode. For example, it drained
-
I can't redeem a gift from 9/13/10 in itunes--don't get a code. I just set up my itunes account and downloaded a more recent gift.
-
Output preview works only when preview dialogue box is open?
The output preview setting certainly takes effect, but only when the output preview dialogue box is open, so that accurately previewing images in reading mode is not possible; it's only possible to see a preview by going to an image and opening the O