How to debug an OLAP variant which is in Infopackage Data selection Tab
Hi experts,
How can I debug an OLAP variant used in the data selection tab for an infopackage? The loading is done via process chains. I am trying to debug the SAP delivered OLAP variant 0P_PPER3 of infoobject 0FISCPER3 (SAP exit). If I am not mistaken I believe the function module is RSVAREXIT_0P_PPER3. Thanks.
Hi Mark !
This method is always good (if you have authorization to work in SM50):
put before your code an endless loop like this one:
data flag type c.
clear flag.
do.
if flag = ' '.
exit.
endif.
enddo.
then start your load...go to SM50 and here you will see your process looping on the same pgm...highlight the process and access into it in debug mode from the menu...
here you can change flag in 'X', exit from the loop and continue all the process in debug !!!
Hope it helps!
Bye,
Roberto
...and please don't forget to reward the answers...it's THE way to say thanks here !
Similar Messages
-
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 -
Can't find 0FYTLFP OLAP Variable in InfoPackage Data Selection tab on 3.5
On BW 3.5, when generating an InfoPackage with the datasource as Purchasing Data(80PUR_C01), under Data Selection tab, for the InfoObject 0FISCPER, I selected 7 (OLAP variables)for the Type column, then click the button next to it and under the column of Details for Type to bring up a window, but when expending the OLAP Variable field list, can't find the following value in the list which shows up on BW 3.1:
0FYTLFP 0FISCPER Cumulated to Last Fiscal Year/Period (SAP Exit)
How to make the above value show up in the OLAP Variable list? I thought maybe the variable 0FYTLFP needs to be installed in Business Contents, but there is no variable object type in Business Content. It sounds like a SAP Exit, but how to make the SAP Exit value show up on BW 3.5?
Thanks for everyone's input!hey Rohit,
Besides the three variable values in the list on BW 3.5, now I find a new one in the list, called "0E_ROLE 0SR_ROLE Role (SAP Exit)", I have no idea why this one shows up now. Now all the four variables in the list are:
1. 0CML12LM 0CALMONTH Last 12 Months Excluding the Current Month
2. 0CMONTH 0CALMONTH Current Calendar Month
3. 0E_ROLE 0SR_ROLE Role (SAP Exit)
4. 0S_RQMRC 0REQUID Most Current Data
0FYTLFP is still not in the list! We can't try to create BEx query since our BW 3.5 system is just installed and we have not got to the step to ceate a query. I try the 2nd way you suggested by pressing F6 on this variable with the typed in value 0FYTLFP, get the following msg "BEx variable 0FYTLFP could not be evaluated - No error message", that means it would not work on BEx query as well, right?
What could be the reason that we can't see 0FYTLFP variable in our new installed BW 3.5? Do you think our BASIS missed installing sth?
Thanks
Message was edited by: Kevin Smith -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha -
How To Add InfoObject in the Data Selection Tab of InfoPackages in 2004s
Hi Y'all!
I would like to ask how to add an infoobject in the Data Selection Tab of the InfoPackage in 2004s. It says its optional, this definintion of selection criteria for the infopackage.
My apologies, I don't understand how this is done. Surely, I would like, however, to understand how to add an infoobject in this data selection Tab of the InfoPackage in 2004s.
Can any kind soul out there (gurus) please lend me your thoughts?
Regards,
PhilipsHello Rajani!
Thank you very mcuh for that! I super appreciate it! Can you prescribe how I can do this step by step please? Where exactly in the DS can I locate this "field for selection" option in the DataSource?
Regards!
Philips -
How to debug the function separately which is added in the package
Hi Friends, I want to know how to debug the function separately, by taking it from package,. and i dont no where to add begin and end. and dont no how to give input to the function. ANd how to find the error which is detected from production, so i want to find from which statement its failing. So please guide me to proceed further. thanks in advance.
{ FUNCTION fn_get_trail_id (p_incr PLS_INTEGER DEFAULT 1) RETURN PLS_INTEGER IS
p_trail_id tb_xop_orders_trail.trail_id%TYPE;
BEGIN
IF p_incr >= 1 THEN
SELECT sq_xop_trail_id.NEXTVAL INTO p_trail_id FROM DUAL;
RETURN p_trail_id;
ELSIF p_incr = 0 THEN
SELECT sq_xop_trail_id.CURRVAL INTO p_trail_id FROM DUAL;
RETURN p_trail_id;
END IF;
END;
-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
BEGIN
ppr_openlog('AQ');
ppr_request_lock(v_cb_handle, v_cb_lock);
pr_xop_log_errors('AQ: ==== cb started ('||descr.msg_id||') ====');
my function is like this, how i can i in clude it in declare statement, and how to assign values for that.. and where i have to include "begin".plz help me -
How to create a variant which take dynamic weekend dates only
Hello All-
I would like to create a variant which will take the ship date as saturday and sunday dynamically from current date to next two
months.
I was looking at this link but dont see any option which can serve my purpose.
http://help.sap.com/saphelp_nw70/helpdata/EN/c0/98039be58611d194cc00a0c94260a5/content.htm
Thanks,
FJhi
this is to inform you that; please check shipping point calendar or plant claendar that SATRDAY AND SUNDAY AS ACTIVE
this can be achieved in SHD0 -
To assign a date calculation variable to an existing variant by selecting attributes goto change mode and select D -
here your requriment is to tae SATURDAY AND SUNDAY ALS into consideration for shipment or creating a delivery right.
giyou will have to create 4 + 4 = 8 varints in total to ful fill your requriment.
the procedure is as follows; today is WEDNESDAY
please choose current day +/- days = +3 days to mae it to reach upto friday and saturday also and sunday you want to ship high light those days
proceed with your requriment.
hope this clears your issue.
balajia -
How could Ecatt support a FM which has export parameter data type as any
Hi,
I have created a FM which has export parameter data type as 'Type ref to data'.
The actual paremeter value for this export parameter is a dynamically generated internal table, which does not have a abap dictionary data type.
Could I use the 'FUN' ecatt command to test this FM? How could I get this reference export parameter?
Thanks a lot in advance!Hi,
Wouldn't it be enough if you define parameter in test data container as reference to table type with structure of type c(1000) (or more/less characters depending on how much data you need to pass)?
I'm not 100% sure if filling this table with data will work (this is reference after all) but if this is an issue than create 2 parameters: 1 of table type and second of reference type. Then inside your script before FUN use ABAP...ENDABAP to assign your table parameter to reference parameter and use second one as input for FUN command.
I think that either first or second solution should work.
Best regards
Marcin Cholewczuk -
How can i find the tables which dont contain any data under my database ?
Can you please suggest me a way to find the tables which dont contain any data under my database ?
Regards,
RenuCan you please suggest me a way to find the tables which dont contain any data under my database ?
For the schema that you've logged in to, you could do something like this:
test@XE>
test@XE> @test
test@XE> --
test@XE> set serveroutput on size 1000000
test@XE>
test@XE> declare
2 n_count number;
3 begin
4 for rec in (select object_name from user_objects
5 where object_type = 'TABLE')
6 loop
7 execute immediate 'select count(*) from '||rec.object_name
8 into n_count;
9 if (n_count = 0) then
10 dbms_output.put_line(rec.object_name);
11 end if;
12 end loop;
13 end;
14 /
BONUS
RUN_STATS
PL/SQL procedure successfully completed.
test@XE>
test@XE>For the other schemas, you could query from dba_objects and probably display the owner as well.
HTH
isotope -
How to change date selections at Infopackage data selections in production sys
Hi All ,
we are loading data into Infocube from datasource ,one process chain for delta init with data transfor ,which has data selections at infopackage say 06.2014 and other process chain for delta which has same selections at infopackage . Now I want change this data selections at Infopackage level .
I Have tried to change these dates in data selections at infopackage level , tho I have changed and saved to future date at delta initial with data transfor ,it's keep coming back to 06.2014. Of course data selection at delta Infopackage level is faded .
I Want to set future date with delta int with disturbing delta loads . How to do it please .
regards
hariHi Ram,
We will load delta Intial with data transfer every weekend , and we run delta everyday , because we do delta init with data transfer with selections say ( 01.20011 to 12.2003 ) every weekend , hope I need to create new delta infopack with new data selections say ( 01.2004 to 12.9999) only to get update data in Infocube.
Please correct me if I am wrong .
Regards
hari -
How do I create radio buttons which hide certain fields when selected?
I have a set of two radio buttons, "Yes" and "No"
When the "Yes" radio button is selected, I would like the "Bank Name", "Branch Number", "Institution Number" and the "Account Number" field to all be blocked from entering content into them.
When the "No" button is selected, I would like for all of these fields to be available to be written in.
I can do this currently with check boxes, but the problem with those is that both boxes can be checked at the same time, which is problematic.
How can I make it so that the radio buttons control whether or not the fields can be written in!
Thanks very much!Yes, I have done this. The buttons are mutually exclusive. The are in the group "Vendor EFT" - one is named "Yes", one is named "No".
When the "Yes" radio button is selected, I would like the "Bank Name", "Branch Number", "Institution Number" and the "Account Number" field to all be blocked from entering content into them.
When the "No" button is selected, I would like for all of these fields to be available to be written in.
Not sure what code needs to be written for this. -
How do I find an event which is triggered on line selection for ALV grid?
Hi,
I'm trying to find an event which is triggered when a user selects a row in the ALV grid. I want to add my own code in to add up the total values of selected lines, but can't find any event which will trigger my method.
I found CLICK_ROW_COL but it's protected so when I try and add a method for it:
PROTECTED SECTION.
METHODS:
select_row
FOR EVENT click_row_col OF cl_gui_alv_grid.
I get the syntax error:
Access to protected event "CLICK_ROW_COL" is not allowed.
Am I using the right event? Am I implementing it correctly?
Any help appreciated. Thanks in advance.
GillI chose to solve this by removing the line select buttons from the ALV and replacing them with a checkbox defined as a hotspot. I then used EVENT hotspot_click FROM cl_gui_alv_grid to highlight the line and change my totals on a single click.
-
How to create pop up dialog which can be used as selection option screen
Hi,
I want to pup up a dialog screen to let user to input some parameter to filter the current data. Currently, I created a subscreen and when I use button to call this screen, error message araised: the error message as bellow:
"The attribute screen type with the values 'Normal Screen' and 'Subscreen' determines the use of the screen. If a normal screen is used as subscreen or vice versa, an error occurs.The screen "XXXX" 0051 has, in this respect, an inappropriate screen type. "
Hence may I know the correct step to create this kind of subscreen?
Many thanks!Hi Prabhu,
If you access into transaction SM30 and using some table view to display, then you will see at the bottom there is a button which name is Position. After you click this button, a dialog box will display.
This is what I am looking for.
Currently, I have created a subscreen and when I click some button to leave to this subscreen, the system raise the error message.
In addition, could you give me the link to your material you have mentioned because I am not familiar the directory fo find it.
Many thanks!
Edited by: qinyusap on Apr 28, 2010 7:06 AM -
How to set up Dynamic Variants for job which is based on Pay Period
Hi,
We need to set up dynamic variant for payroll interface. This interface is based on Pay periods and that is why we need to use different variant for each month. Letus know how to set up dynamic variant which will take care of Pay PeriodsHi, Thnx for reply.
We are not changing the control records, current period will be some old period in system.
payroll is not processed in SAP, -
How to set variant which gives date range of last month for sel.scr field
Hi All,
I want to set a variant which can do dynamic date calculation, need get last month period i.e when i select a variant it should always pick last month start date & end date for the period selection field. How can i achieve that. Please help me to know that.
Thanks in advance.
Regards
VishalI think in the date selection you can put in the calculations last month start date and end date, did you see what options you are getting in the variant? I am not in front of the system, so can't see.
<b>I just looked up and found that you can specify the first and last day of the last month in the variant dynamic value setting.</b> When you saving the variant, select the check box for the SELECTION VARIABLE and then click the dynamic value calculation second traffic light. Then you will get drop down where you can select the values.
Regards,
Ravi
Note : Please mark all the helpful answers
Message was edited by: Ravikumar Allampallam
Maybe you are looking for
-
Hi all I will have configure country reassignment action which I can define in simple words is combination of entry action with the new personnel number and the leaving action for the previous personnel number. While studying what more I came to know
-
After Effects Immediately Crashes Each Time I Open It
Every time I try opening After Effects on my computer, it goes through loading the title screen, but as soon as the window for the program opens up, it crashes with no error. I've tried all of the error tutorials and even Downloaded Adobe Support Adv
-
I have 20,00 images in my iphoto they have all been merged into one event. How do I restore them to the original events and dates?
-
Hi! Yesteday a retoucher here at work came to me wondering if I could do something about his stalled Photoshop. It was read in Activity Monitor and had been like that for several minutes. I think he tried to save or something. Can someone take a look
-
IPad disconnects to wifi at home
I have a first gen iPad. It's been connected to my home wifi for a while now. Started having problems for about a month now, it disconnects from my home wifi network. Everything else stills works fine, my laptop, home computer, eye. The Internet is w