cancel
Showing results for 
Search instead for 
Did you mean: 

how to do data declaration when creating user exits variables in BW?

Former Member
0 Kudos
201

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Answers (4)

Answers (4)

udayabhanupattabhiram_cha
Active Contributor
0 Kudos

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.

udayabhanupattabhiram_cha
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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 don’t 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,

Former Member
Former Member
0 Kudos

hi vikash

can u sent me the guidelines in creating user exit variables...

Former Member
0 Kudos

hi BJP

just send me u r id i will send u doc

jimmy

Former Member
0 Kudos

HI JImmy,

can you pass the doc t o me too.

Thanks

Ledz76 at yahoo dot com

Former Member
0 Kudos

Jimmy,

Thanks for your reply.

My email id is bjp0955@yahoo.com

Thanks again.

Message was edited by: BJ P

Former Member
0 Kudos

Friends,

Any suggestion on above topic?

If anybody can explain me what is data declaration and how to write it.

Thanks & Regards,

BJP

Former Member
0 Kudos

hi man,

can u sent me the steps in creating user exit variable in biw.

urgent,

Thanks in regards

Former Member
0 Kudos

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