on 2006 Mar 21 5:57 PM
Hello Gurus,
Can anyone explain/send me how to do data declaration when creating user exits variables in BW?
E.g.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
Thanks in advance.
Hi dear,
you can do it as you have to do it normally in the ABAP workbench...are you receiving some error or are you facing some problem ?
Bye,
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for quick reply guys.
I am learning how to create user ext variables in BW. Like ytd, Qtd . I saw each variable has data declaration. E.g.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
And then the code for user exit variable. I would like to learn/understand how to write data declaration statements.
I have figured it out how to write code for user exit variable. But I do not know how to write/specify data declaration.
Roberto,
I am sure you would have answer for my question because I saw many post from you.
Please let me know.
Thanks & Regards,
Message was edited by: BJ P
Ok BJP:
You need to read a tutorial on ABAP. If you search online, you will find a lot of free tutorials.
Apart from that:
Step-1) Did you create Variables in the Query Designer.
Step-2) I think you already went to CMOD and created a new Project for Exit Variables. If you didn't do this piece, you will need more help and more tutorials.
Step-3) After both the above steps, there will be an Include e.g. ZXRSRU01.
Here, are where you saw the existing declerations.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
DATA: Lwa_VAR_RANGE LIKE RRRANGEEXIT.
Now, open the ABAP tutorials and start your new declerations:
You have to know what you want do declare.
What are these? YTD, QTD, MTD and
E.g. l_fiscal_period TYPE poper
I just declared a fiscal period. You need to look at an ABAP tutorial
to declare the right types. Unless we know what they are used for, we cannot tell you.
ABAP declerations are easy, just write down what they are used for, length and open an ABAP tutorial.
Good luck.
Ram Chamarthy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi BJP:
I don't know what you want to declare.
Youi already know these:
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
DATA: Lwa_VAR_RANGE LIKE RRRANGEEXIT.
Some more examples:
data: w_period_start(3) type n,
w_period_end(3) type n,
w_year(4) type n,
w_prevqtr_start type /BI0/OIFISCPER,
w_prevqtr_end type /BI0/OIFISCPER,
w_datum like sy-datum,
l_fiscal_period TYPE poper, "Fiscal Period
l_fiscal_year TYPE bdatj. "Fiscal Year
Just declare them in the beginning.
From here, you just need:
CASE I_VNAM.
Determine individual fiscal year/period variables for
each date characteristic from one variable.
WHEN 'ZVR_EBPR' OR "Exp Book Prospect FY Period
'ZVR_CSRQ' OR "Cust. Request FY Period
'ZVR_PORC'. "PO Receipt FY Period
These are examples from my design.
If need have a particular question, let us know.
Ram Chamarthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ram,
Thanks for your reply. I would like to learn how to create user exits variables in BW. I am searching for resources for a long time. Please let me know if you have any guide/documentation
On this. I am new to abap. I dont have programming experience.
I have to create YTD, QTD, MTD and some more user exits variables in my project. I really appreciate your help.
When I opened user exits variables, I saw data declaration.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
I would like to know how to write data declaration.
Thanks,
Hi,
please have a look at this ..may help-
https://websmp209.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
regards
Vikash
hi BJP
just send me u r id i will send u doc
jimmy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
A user Exit is ABAP coding.
You can learn about ABAP from the help (press F1 while in the ABAP editor) or from the online help
http://help.sap.com/saphelp_nw04s/helpdata/en/f3/b2934258a5c76ae10000000a155106/frameset.htm
Also I would recomend just asking an ABAP developer for some help.
Reg's
Edan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.