Creating variable for display attribute
Hi
I have a requirement where i have to give selection criteria for a display attribute. But how to create a variable for display attribute. Please help.
Thanks
Imran.
If you are in BI 7.0 version. You have to put the navigational attribute in either characteristic restriction (Filter) or default values section and then you will get the restriction option. Once restricted you can put
that char in where ever you want.
Regards,
Kams
Similar Messages
-
Creating variable for attribute
Hi guys,
Is it possible to create variable for an attribute. My requirement is that the user wants Serial # as one of the user selection criteria which is an attribute of system code equipment in Dimension material. If not, is there any other possible way to get it in user selection criteria when the report is run.
Thanks in advance.you cant create a variable on attribute of a char.
other work around is to make Serial # a navigational attribute both in the IO (system code equipment) and in the cube maintenance too. That way in the report the attribute will be available as any other char in the cube. -
How to create variables for offsets?
Hi BW Experts.
I have a tricky one that has been posted before, but I couldn't get my head around a feasible answer just yet.
My customer wants to be able to display his ageing AR report with different buckets, depending on the month.
For example, if it's January he wants to see buckets for 1-30 days, 31-60 days, 61-90 days and 91 to 120 days.
If it's February, he wants to see buckets for 1-28 days, 29-58 days, 59-88 days and 89-118 days.
If it's March, he wants to see buckets for 1-30 days, 31-58 days, 59-88 days and 89-118 days,
and so on.
We have create a structure in the query, filtering the key figure 0DEB_CRE_LC by 0NETDUEDATE. We have a variable for 0NETDUEDATE as a starting date and use different offsets to get the buckets. However, the offsets need to be hard coded, preventing us the flexibility of choosing the days in the buckets.
Is it possible to create variables for the offsets, so the user can choose the days for the buckets at the report run time?
Thanks in advance.
Kind regards,
Aline Passos.Hi Aline,
as user is entering 0NETDUEDATE & he needs different buket for different months, which are more or less decided well in advance, I believe it cane be handled by User Exit varaibles which will draw value from the variable value you have entered & go backward.
you will need to write the ABAP code with your logic to drive the correct user exit values.
hope it helps
regards
VC -
Search for display attributes in Web reporting
Hello,
When I execute a query in Excel, in the variable entry screen, I can search values for material, for example, using some display attributes as Colour or Size. I mean, I want to execute the report for materials whose colour is white. I can open the matchcode for Material, I select the value "white" for the Colour display attribute, and I get a list of all the materials with that colour. The report is executed for those materials.
However, when I execute the same report using Web reporting, I don't have the display attributes in the selection screen, to restrict the material. Once the report is executed, in the Navigational block, if I filter the material, there is an option called "Search for display attributes activated", where I can restrict per Colour, but only for one value.
I have two questions related to this topic:
1) Is it possible to have the functionality "Search for display attributes activated" in the variable entry screen, for Web reports, in the same way it is available in the reporting via Excel?
2) Is it possible to configure that functionality, in order to restrict several values for the display attribute at the same time (in my example, for Colours "white", "black" and "red" at the same time)?
Thanks very much for your help
PatriciaHi Patricia,
Looks like you have some new navigational attribute requirements, don't you think? I'm sure that would solve your issue, though maybe you're trying to avoid using navigational attributes (it is usually said that using navigational attributes is slower).
Maybe you can do a test on BEx to check if your query is considerably slower when filtering directly by material code (by filtering on the selection screen using display attributes) or using a navigational attribute.
Match codes on web reporting have lost some functionalities compared to BEx (such as importing a list of values from a file, for instance).
Regards,
David. -
How 2 creat report for displaying the details of a Delivery Document using
how to create report for displaying the details of a Delivery Document using the tables LIKP, LIPS
thank you
regards,
jagrut bharatkumar shukla
points will be rewardedHI
I AM GIVING YOU MY DELIVERY DOCUMENT CODE...MODIFY IT ACCORDING TO YOUR REQUIREMENT
*& Report ZDELIVERY *
report zdelivery message-id z9bhu .
types: begin of t_likp,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
end of t_likp.
types: begin of t_lips,
vbeln type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr,
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
end of t_lips.
types: begin of t_vbpa,
vbeln type vbpa-vbeln, "SD DocumenT Number
posnr type vbpa-posnr, "Item number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_vbpa.
types: begin of t_kna1,
kunnr type kna1-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr type kna1-adrnr, "Address
end of t_kna1.
types: begin of t_li_vbpa,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_li_vbpa.
types: begin of t_final,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr1 type kna1-adrnr, "Address
name2 type kna1-name1, "Name 1
ort02 type kna1-ort01, "City
adrnr2 type kna1-adrnr, "Address
name3 type kna1-name1, "Name 1
ort03 type kna1-ort01, "City
adrnr3 type kna1-adrnr, "Address
end of t_final.
* D A T A D E C L A R A T I O N
*&*********Internal Table Declaration****************&*
data: it_likp type standard table of t_likp.
data: it_lips type standard table of t_lips.
data: it_vbpa type standard table of t_vbpa.
data: it_kna1 type standard table of t_kna1.
data: it_li_vbpa type standard table of t_li_vbpa.
data: it_li_vbpa_temp type standard table of t_li_vbpa.
data: it_final type standard table of t_final.
*&*********Work Area Declaration********************&*
data: wa_likp type t_likp.
data: wa_lips type t_lips.
data: wa_vbpa type t_vbpa.
data: wa_kna1 type t_kna1.
data: wa_li_vbpa type t_li_vbpa.
data: wa_li_vbpa_temp type t_li_vbpa.
data: wa_final type t_final.
*&*********Data Declaration************************&*
data: d_vbeln type likp-vbeln.
data: flag type i value 0.
* S E L E C T I O N S C R E E N D E C L A R A T I O N
selection-screen begin of block block2 with frame title text-001.
select-options: s_vbeln for d_vbeln obligatory. "Delivery no
selection-screen end of block block2.
* A T S E L E C T I O N - S C R E E N E V E N T S
*AT SELECTION-SCREEN.
*PERFORM VALIDATE_DATA.
* S T A R T O F S E L E C T I O N E V E N T S
start-of-selection.
perform fetch_data.
perform merge_data_kna1.
*INCLUDE Z9BT_SH_***4_FORMS.
call function 'OPEN_FORM'
exporting
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
device = 'PRINTER'
* DIALOG = 'X'
* FORM = ' '
language = sy-langu
* OPTIONS =
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* SPONUMIV =
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
exceptions
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error = 10
codepage = 11
others = 12
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
sort it_final by vbeln.
loop at it_final into wa_final.
call function 'START_FORM'
exporting
* ARCHIVE_INDEX =
form = 'Z9BT_DELIVERY'
language = sy-langu
* STARTPAGE = ' '
* PROGRAM = ' '
* MAIL_APPL_OBJECT =
* IMPORTING
* LANGUAGE =
exceptions
form = 1
format = 2
unended = 3
unopened = 4
unused = 5
spool_error = 6
codepage = 7
others = 8
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'WRITE_FORM'
exporting
element = 'ITEM_LIST'
function = 'SET'
type = 'BODY'
window = 'MAIN'
* IMPORTING
* PENDING_LINES =
* EXCEPTIONS
* ELEMENT = 1
* FUNCTION = 2
* TYPE = 3
* UNOPENED = 4
* UNSTARTED = 5
* WINDOW = 6
* BAD_PAGEFORMAT_FOR_PRINT = 7
* SPOOL_ERROR = 8
* CODEPAGE = 9
* OTHERS = 10
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'END_FORM'
* IMPORTING
* RESULT =
exceptions
unopened = 1
bad_pageformat_for_print = 2
spool_error = 3
codepage = 4
others = 5
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endloop.
call function 'CLOSE_FORM'
* IMPORTING
* RESULT =
* RDI_RESULT =
* TABLES
* OTFDATA =
exceptions
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
others = 6
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*& Form VALIDATE_DATA
* text
* --> p1 text
* <-- p2 text
form validate_data .
select single vbeln into wa_likp-vbeln
from likp where vbeln in s_vbeln.
append wa_likp to it_likp.
if sy-subrc <> 0.
flag = 1.
endif.
endform. " VALIDATE_DATA
*& Form FETCH_DATA
* text
* --> p1 text
* <-- p2 text
form fetch_data .
select a~vbeln
a~erdat
a~kunnr
a~kunag
a~traty
b~vbeln
b~posnr
b~matnr
b~arktx
b~lfimg
b~netpr
b~vgbel
c~vbeln
c~parvw
c~kunnr
into table it_li_vbpa
from likp as a
left outer join lips as b on a~vbeln = b~vbeln
inner join vbpa as c on b~vgbel = c~vbeln
where a~vbeln in s_vbeln and
c~parvw = 'RE'.
endform. " FETCH_DATA
*& Form MERGE_DATA_KNA1
* text
* --> p1 text
* <-- p2 text
form merge_data_kna1 .
if it_li_vbpa[] is not initial.
it_li_vbpa_temp[] = it_li_vbpa[].
sort it_li_vbpa_temp by kunnr.
delete adjacent duplicates from it_li_vbpa_temp comparing kunnr.
loop at it_li_vbpa into wa_li_vbpa.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunag.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunnrb.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
endloop.
endif.
if it_li_vbpa_temp[] is not initial.
select kunnr
name1
ort01
adrnr into table it_kna1 from kna1
for all entries in it_li_vbpa_temp
where kunnr = it_li_vbpa_temp-kunnr.
endif.
loop at it_li_vbpa into wa_li_vbpa .
wa_final-vbeln = wa_li_vbpa-vbeln.
wa_final-erdat = wa_li_vbpa-erdat.
*it_final-LFART = it_li_vbpa-LFART.
wa_final-kunnr = wa_li_vbpa-kunnr.
wa_final-kunag = wa_li_vbpa-kunag.
*it_final-VSTEL = it_li_vbpa-VSTEL.
wa_final-traty = wa_li_vbpa-traty.
wa_final-vbeln1 = wa_li_vbpa-vbeln.
wa_final-posnr = wa_li_vbpa-posnr.
wa_final-matnr = wa_li_vbpa-matnr.
wa_final-arktx = wa_li_vbpa-arktx.
wa_final-lfimg = wa_li_vbpa-lfimg.
wa_final-netpr = wa_li_vbpa-netpr.
*wa_final-GEWEI = it_li_vbpa-GEWEI.
*it_final-VOLUM = it_li_vbpa-VOLUM.
*it_final-VOLEH = it_li_vbpa-VOLEH.
wa_final-vgbel = wa_li_vbpa-vgbel.
wa_final-vbeln3 = wa_li_vbpa-vbeln.
*wa_final-PARVW = wa_li_vbpa-PARVW.
wa_final-kunnrb = wa_li_vbpa-kunnrb.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnr.
if sy-subrc = 0.
wa_final-name1 = wa_kna1-name1.
wa_final-ort01 = wa_kna1-ort01.
wa_final-adrnr1 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunag.
if sy-subrc = 0.
wa_final-name2 = wa_kna1-name1.
wa_final-ort02 = wa_kna1-ort01.
wa_final-adrnr2 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnrb.
if sy-subrc = 0.
wa_final-name3 = wa_kna1-name1.
wa_final-ort03 = wa_kna1-ort01.
wa_final-adrnr3 = wa_kna1-adrnr.
endif.
append wa_final to it_final.
clear wa_final.
endloop.
endform. -
How to create Variables for the Key Figures
Hi All,
How to create Variables for the Key Figures
Thanks
BhaskarHi,
It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
With rgds,
Anil Kumar Sharma .P -
I need to identify a series of single-response checkbox variables and display the ones selected (as a group) in a text field in an appended (comma, space) format. Last week, you provided a great little script for a similar need using List Box (multiple response) variables. This time I need to know how to formally identify the checkbox variables and, I presume, use a similar script to display the results in a comma, space format.
You've been of great help.
ThanksHere's the script adapted to this situation. It assumes there are ten check boxes named cb1, cb1, cb2, ...cb10.
// Custom Calculate script for text field
(function () {
// Initialize the string
var v, s = "";
// Loop through the check boxes to build up a string
for (var i = 1; i < 11; i++) {
// Get the value of the current check box
v = getField("cb" + i).value;
if (v !== "Off") {
if (s) s += ", "; // Add a comma and a space if needed
s += v; // Add the selected value
// Set this field value to the string
event.value = s;
You'll have to change the field name and starting/ending numbers to match your form. -
Dear friends,
How to create the variables for Attributes?.
For ex. 0Division is an attribute for 0Material.My requirement is to get the 0Divison in the selection screen.0Division infoobject not avilable in the cube.
Could you pls suggest with your inputs?
Thanks in advance..
Regards
SoujanyaHi Soujanya,
One way is to make 0Division as navigational attribute for 0Material in transaction code RSD1.
Once it is marked as navigational attribute goto infocube chane ->Navigational attribute and you should able to find 0Division there check the checkbox. and activate the info cube.
Next time you login into Bex you should able to see the info object 0Division in the infoproviders tab.
Hope that helps.
Regards
Kapadia
***Assigning points is the way to say thanks in SDN.*** -
Regarding currency translation for Display attribute(key figure)
Hi Gurus,
How can i do currency conversion for MATERIAL COST(key figure) ,which is Display Attribute of MATERIAL...
thanks advancely.......
CHANDRAHi,
You can create the currency conversion type in the T code RSCURR.
Here are the steps...
1. Transaction for creating currency translation type is RSCURR
2. Choose the Exchange rate, Source currency, Target Currency and the Time reference in the respective tabs.
3. In the query definition choose the Currency Conversion Key in the properties of the Key-figure.
Regards,
Yogesh. -
Variable for navigational attribute affected fiscper input variable
Dear Friends
Initially, the query is having an input variable for fiscper. The query was able to run properly.
When i add a input variable for a navigational attribute to the same query which is based on multiprovider, the fiscper input variable is no longer seen.
So, I removed the global filter for the navigational attribute and it is ok again. I fixed a value for the navigational attribute at filter level is also fine.
Please advise what could be the cause. Thank you so much.
Best regards
BassHi Bass,
Again seems to be a strange issue, if you have two independent characteristic with two different input enabled variables then there is no reason for the variable to not to show up on selection screen.
Once you add the new variable and save the query just make sure that you have earlier variable as it is and check the query properties popup and see the fiscper variable sequence in the variable list.
Regards,
Durgesh. -
How to create variables for Characteristic Info-objects in Rows / Columns
I want to create variables in abovementioned manner for COPA retraction in BPS, as COPA retraction does not recognise variables created in "filter" section of Bex. Can sumone advise , as I have tried all the possibilities of creating but failed to do so?
Hi Ravi/All,
Actually my problem will be solved if I am able to create variables in either Rows/Columns area of BeX.
Variables are getting created easily in Filter section of BeX (but in COPA , it will not serve any purpose COPA retraction does not recognise contents of Filter/variables contained in the filter).
In fact variables are getting created in Rows/Colums of Bex, but they are in the form of structures. (Again multiple structures (more than 1) are not recognised in COPA retraction. -
How we create Variable for Previous year for COPA reports
Hi Guruss,
I am making a COPA report for Current year comparison with previous year from KE31. For 1st column I have created the Variable for current year (which works perfectly) now in 2nd column i need the actual data pertaining to previous. So can any one please guide me how to create the variable for previous year.
ThanksThanks Jagannadha,
I have create the variable for current year on KE3E. but i am confuse how i create the variable for previous year on KE3E.
Waiting for reply. -
Creating Variable to display calweek for selection....
Hi Experts,
Can anyone tell me how to create a variable which will take my date input as calweek.
The selection screen of the report should only view weekly report, by giving us an option of selecting any week.
please help.
ThanksHi,
The 1st column will display the count of Service Orders for the week that im going to select from the Selection Screen.
Set one formula based on Service Orders and give result = Colunt in column.
The 2nd Column will display the count of service orders from the 1st of that month till the last date of the Week that I have selected in from the selection screen.
For this you may required some design changes in cube and need to wrire Customer Exit Code.
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
Thanks
Reddy -
How do we create variable for hierarchy node selection
hello all,
I have to create a variable as to where the user ca input the node of hierarchy in his selection at the start. Do we have to create a new variable ?
I have the hierarchy loaded for that infoobject. I tried creating a new variable but the when I select from drop down as varaibles and name of the hierarchy no variables shows up.
ThanksHi Raj,
Please see this link:
http://help.sap.com/saphelp_nw04/helpdata/en/83/096d399bd2046fe10000000a114084/content.htm
It has complete details.
Hope this helps... -
Hi,
I have a requirement where i have to create a variable based on a specific requirement.
A prompt is placed on the year field. Now two variables should be created
1.The Sales Revenue of the year that is selected by the user, and
2.The Sales Revenue of the previous year for the year that is selected by the user.
Please Help
Thanks and Regards,
Raja.NHi Rohit,
I practiced the same formulas on eFashion. I used [year], [sales revenue] objects and prompt with equal to condition
Cyear =UserResponse("Enter Year:")
Pyear =FormatNumber(ToNumber(UserResponse("Enter Year:"))-1 ; "####")
Csales =[Sales revenue] Where ([Year]=[cyear])
Psales =[Sales revenue] Where ([Year]=[pyear])
I created the above 4 variables(all are measures), but i couldn't get the data for 'Psales'. You said, you practiced on eFashion and you got the result. Please let me know if i do any mistakes.
Looking forward to your reply.................
Thanks,
Shahin.
Maybe you are looking for
-
Hi, my company has recently started issuing techs iPhones and iPads. I have an iPad here we got back from an employee after termination. He gave me his 4 digit passcode to get into the iPad, I removed the passcode to unlock, and did a reset on the de
-
Can no longer afford CC. Cancel subscription and auto-renewal.
A couple of months ago, there was a dramatic change in my financial circumstances. As a family, we were not prepared for this; we did not have any significant savings and were already struggling with debts. Unfortunately, I am struggling to restore m
-
ILife Missing After Yosemite Clean Install
I have just done a clean install of Yosemite on my MacBook Air that was running Mavericks, but all iLife Applications (iPhoto, GarageBand, etc) are missing and the App Store says I have to purchase them. How do I get iLife back?
-
Problem changing TrackMode from Plot&Cursor (TrackAll) to ZoomXYRectangle
I'm using a CWGraph control from Measurement Studio 6.0 in a C# application. I want the user to be able to switch between tracking modes on the fly - I use Plot&Cursor mode to allow them to right-click on a point and get more information. But when I
-
I want to stop my mini ipad screen from rotating. I followed instructions for accessing the multitasking bar but when I swiped that nothing happend. I also tried the side button but that didnt work either Help?