Quantcast
Channel: SCN : Discussion List - SAP Business Explorer (SAP BEx)
Viewing all 4032 articles
Browse latest View live

Adding values into Variable screen of Bex Analyzer

$
0
0

Hi,

 

I am automating Opening a report through Bex analyzer using VBA macro.

 

I am facing issues while adding some values in the variable screen. In some blogs i had seen that this can be achieved by creating some range in the excel sheet

 

and calling this range through Bex built-in functions. Tried this approach but not able to as i am not aware of how to create a range.

 

Request you to let me know if any anyone has used VBA to add values in variable screen.

 

Thanks,

Farnaz


Problem in customer Exit

$
0
0

Hi All,

 

I have a requirement where based on user input data on calendar date ( IDATE) 01.01.2013 - 01.03.2013 , we need to take the high value of date from that we need to display two columns , one column should show the last 3 months period data  and second coulmn should display data for last 6 months.

 

Problem is when query is showing data only for first two months of period i.e. 001.2013 and 002.2013.

 

We created two variable as reference characteristics as fiscper and processing by customer exit.

 

please find the below code and out put , but when i make a check in RSRT with key figure definition is coming correctly where it is calculating properly for 3 month and 6 months data.

 

IF i_step EQ 2.

 

     CASE i_vnam.

 

 

 

       WHEN 'NXXV6MON'.

 

           CLEAR: ls_var_range, lv_date,lv_pre_period, lv_res_date.

*     Read input variable Reporting Fiscal Year/Period

         READ TABLE i_t_var_range_c WITH KEY vnam = 'IDATE'

         INTO ls_var_range.

         IF sy-subrc EQ 0.

 

             lv_date = ls_var_range-high.

             lv_curr_year = lv_date+0(4).

             lv_curr_period = lv_date+4(2).

 

             CALL FUNCTION 'DATE_CREATE'

                                    EXPORTING

                                     ANZAHL_JAHRE         = 0

                                     ANZAHL_KALTAGE       = 0

                                      ANZAHL_MONATE        = -5

                                     ANZAHL_TAGE          = 0

                                      DATUM_EIN            = lv_date

*                                   DATUM_EIN_ULT        = ' '

*                                   ULTIMO_SETZEN        = ' '

           IMPORTING

           DATUM_AUS            = lv_res_date.

*          E_TT                 =

*          E_ULTKZ

 

 

             lv_pre_period = lv_res_date+4(2).

             lv_pre_year = lv_res_date+0(4).

 

             CONCATENATE    lv_pre_year lv_pre_period into lv_result_pre.

             CONCATENATE    lv_curr_year lv_curr_period into lv_result_pre1.

 

 

             ls_range-sign = 'I'.

             ls_range-opt  = 'BT'.

             ls_range-low  = lv_result_pre.

             ls_range-high = lv_result_pre1.

*            ls_range-low  = '2016001'.

*            ls_range-high = '2016002'.

             APPEND ls_range TO e_t_range_c.

 

             ENDIF.

 

       WHEN 'NXX3MON'.

 

           CLEAR: ls_var_range, lv_date,lv_pre_period, lv_res_date.

*     Read input variable Reporting Fiscal Year/Period

         READ TABLE i_t_var_range_c WITH KEY vnam = 'IDATE'

         INTO ls_var_range.

         IF sy-subrc EQ 0.

 

             lv_date = ls_var_range-high.

             lv_curr_year = lv_date+0(4).

             lv_curr_period = lv_date+4(2).

 

             CALL FUNCTION 'DATE_CREATE'

                                    EXPORTING

                                     ANZAHL_JAHRE         = 0

                                     ANZAHL_KALTAGE       = 0

                                      ANZAHL_MONATE        = -2

                                     ANZAHL_TAGE          = 0

                                      DATUM_EIN            = lv_date

*                                   DATUM_EIN_ULT        = ' '

*                                   ULTIMO_SETZEN        = ' '

           IMPORTING

           DATUM_AUS            = lv_res_date.

*          E_TT                 =

*          E_ULTKZ

 

 

             lv_pre_period = lv_res_date+4(2).

             lv_pre_year = lv_res_date+0(4).

 

             CONCATENATE   lv_pre_year  lv_pre_period  into lv_result_pre.

             CONCATENATE lv_curr_year  lv_curr_period   into lv_result_pre1.

 

 

             ls_range-sign = 'I'.

             ls_range-opt  = 'BT'.

*            ls_range-low  = '2016001'.

**            ls_range-high = ''.

             ls_range-low  = lv_result_pre.

             ls_range-high = lv_result_pre1.

             APPEND ls_range TO e_t_range_c.

 

             ENDIF.


Capture.PNG



eee.PNG



Out put


out is showing only two fiscal year period data 001.2013 and 002.2013, but our requirement should display last 6 months 010.2012 to 003.2013


and last three months 001.2013 to 003.2013


Capture.PNG

WAD report is showing empty area in output

$
0
0

Hello Experts,

                         recently the SAP BW system upgrade has happened from SAP BW 7.3 to SAP BW 7.4 and one of the WAD templates is showing empty area in output. WAD error.JPG

 

same query in development box doesn't show anything of this sort. I checked the definition but still not able to figure out why this might be happening.

Kindly help if anyone has faced the same issue.

 

TIA.

 

Regards,

Priyanka

Characteristics to key figures - Not the usual case

$
0
0

Hi Experts,

 

I have a reporting requirement where two characteristics involve. Characteristic Name as Columns and Below this column I need A,B,C,D values to appear. A,B,C are dummy values but in reality it contains Chars.

 

Report currently appear as below:

 

Capture.PNG

Result to appear as

Capture2.PNG

 

What is the best possible approach i need to take in order to achieve this reporting requirement?

 

Thank you.

Regards

Las.

BEx Query Results in HTML and javaweb are different

$
0
0

Hello Gurus,

 

We have upgraded the BW system from 7.0 to 7.4. After upgrade, for one of the query, when we execute in RSRT through HTML, we are getting right results but when we execute the same query through java web , nothing is displaying.

 

Any inputs would help us. Thanks in advance.

Issue with description fiscal period variables in all reports

$
0
0

HI All,

 

We are having an issue with the variables for fiscal period. The description of the fiscal periods fields are displayed incorrect, it shows 2 months more that what is selected.

Ex: if user selects '001/2016' then description shows as "MAR 2016' as shown in the attached image. However the data output is correct...the issue is only with description.

 

It is happening to all the reports wherever we are using the fiscal period variables...

 

 

Please let me know how can we fix it...

 

Thanks

Mohit

Sequence of Characteristics in drilldown for Virtual Characteristics

$
0
0

Hi Experts,

 

I have a requirement where in I need to calculate a KF value based on the sequence of the CHaracteristics in the report.

For eg. if Sales order is drill down in rows, the formula is A , but if both Sales Order and Sales item are drill down the Formula to be used is B. I am using virtual characteristics to achieve the same and the code is working fine.

 

Now I have a new requirement which needs me to exactly know the sequence of the Characteristics in the drill down, for eg . "Sales Order then Sales item" would be different from "Sales Item and then sales Order."

 

Can anyone tell me how can i know the exact sequence of the Characteristics in the report drilldown?

 

Regards

Manpreet

CDPOS and CDHDRA in SAP BW

$
0
0

Dear Experts's..

 

We have a requirement to create generic data source based on function module to pull the records from the combination of CDHDR and CDPOS.

 

Could you please send the Functional Module logic for the same.

 

Thanks,

Chinna.


Unit Conversion not working in Bex Query in Apps 7.4

$
0
0

Dear All,

 

 

Unit Conversion not working in BW Application: 7.4

ie. in Bex Analyzer output Quantity showing in Base Unit instead of Target Unit which was selected in BEx Query.

Kindly help us to resolve this issue.

 

 

1Untitled.png

cProject delta DataSource

$
0
0

Hi All,

 

I need to activate 0CPR_C01_Q0004.

 

I allready activated 0CPR_C01 infoprovider from BI content and their infoobject,transformation. etc.

So I have 2 questions about the topic :

 

1.     I noticet that ther is an option to define the DataSours of the MD as delta.

     The data sources :

     0DPR_TASK_TEXT

     0DPR_PROJECT_TEXT

     0DPR_PHASE_TEXT

     0DPR_HIERARCHY_ATTR

     0DPR_PART_TEXT

    

     The question- do i need to define or to do somthing before I use those DS?

                         Is there somthing special in these delt DS?? (like I with 2LIS DS?)

 

2.     I'm using these MD - 0CRM_PLGRP, 0CONS_TYPE.

     In BI content I dont get the DataSource.

     What DS is working with these 2 MD ?

 

tnx for the help.

ROB

Refresh issue in webi report data coming after multiple refresh

$
0
0

HI Experts ,

 

I am facing an issue in WEBI report , which is based upon Bex Query , When i am executing webi report based upon some filter condition , it is showing Entire data irrespective of filter selected , but when i am refreshing same report 3-4 times getting correct data , it is happening only with

WEBI , in BEx it is working fine , please provide the resolution.. i Have checked all the connections in Universe , everything is ok.

 

Thanks,

Ankit

if then else error

$
0
0

Hi,

 

I've the following columns:

 

C1 and C2

 

C1 has an integer and C2 indicates whether C1 (in the origin) has null/empty/space value or has an integer value (including 0).

 

In case C2 would be 1 it means C1 has null/empty/space and in case C2 would be 0 it means C1 has an integer value (including 0).

 

IF ( C2 = 1) THEN 'ERROR' ELSE C1

 

in query designer I've tried the following, but I get an error:

 

( C2 == 1 ) * C1 / C1 + ( C2 == 0 ) * C1

 

 

- ( C2 == 1 ) * C1 / C1

it means that if C1 is a SPACE I provoke error (C1 / C1) in the query. In AO I want to get X.

 

Can anybody tell how to do this formula?

( C2 == 1 ) * C1 / C1 + ( C2 == 0 ) * C1


Thanks  in advance.

Regards.

Text Variable issue

$
0
0

Hello Team,

 

I have a Vendor info object and has input variable based on Key. Now user also wants to have input variable on Vendor Description.

 

Any way to achieve?

 

Regards,

Siri

Bex restrictions stop data to display

$
0
0

Hi SCN,

 

Before posting, I gone thru existing discussions and didn't get the required info to solve my problem.

My issue is:

I have one bex report which display all shopping carts based on approvers.

Here Approver as Char variable with mandate option.

Cal day as selection as optional.

 

When we enter multiple approvers, we are not getting the data due to selections only.

Because at target  level I have data for for whole month for  two approvers.

for rest of the approvers we don't have data for last weeks(june 15 to 30).

Due to that, am getting no data for display message at report level.

 

is there way to show the report with all the existing data as per the approvers and caldays

 

Thanks in advance.

RaGhav.

How to achieve in BEx

$
0
0

Hi Experts,

     I have a scenario where two conditions 1) Chargeback attached 2) Chargeback Processed Later (check boxes). Now the result in the Bex query should calculate if anyone of the 2 check boxes are selected, If neither is selected the result should be zero.  Hope you guys could throw some light on this to achieve it in BEx or at end routine, Preferred level is BEx since i don't have to change the backend design again.

 

Appreciated in Advance.

 

Regards,

EC.


Exclude weekends from calendar day variables range

$
0
0

Hello experts,

 

I've got query with 0CALDAY characteristic in the Filters (Char. Restrictions),

  • This characteristic is restricted by two customer exit variables included in one range:
    • Between:
      • calday_period_start ("From Date", set by default to  "sy-datum - 3months")
      • calday_period_end ("To Date", set by default to "sy-datum - 1day")

                     

 

 

The 0CALDAY is also used as the only characteristic in the Query Rows.

 

Could you please tell what would be the best way to exclude weekend days (Saturday, Sunday) from the rows in the selected period between two dates specified by the user on query execution?

 

Would you be so kind and tell if I have to modify start/end date customer exits in ~cmod or if there is some more convenient way?

 

Regards,
Sebastian

How to calculate total sum based on overall result columns

$
0
0

Hi everyone,

 

i have a Report in bex:

 

Sale person20112012Overall result20112012Overall result
Sale region 1Sale region 2Sale region 1Sale region 2
A101020151530
B101020151530

 

 

Now i want to have total sum of 2 columns: "overall result" to see total sale of each person. The table i want looks like this:

 

Sale person2011
2012Overall result20112012Overall resultTotal
A10102015153050
B1010201515

30

50

 

 

Sale region 1 and sale region 2 is 2 different keyfigures, therefore BEx calculate the overall result for each keyfigure only.

How can we calculate the sum of this 2 keyfigure?

i tried to create a calculated keyfigure in Bex Query designer, and add to the report, but the problem is that, Bex will show this Calculate Key Figure per year (2011 and 2012) like other key figures. and that is not what i want. i only want a column "Total" like above.

 

Can you please help me how to do that?

Thanks

Context menu BEx Query not working

$
0
0

Hi all,

 

the context menu of a BEx Query is not working (e.g. back to initial state).  I have tried to fix the problem and the only way it works is to reduce the number of free characteristics (in many other BEx Querys we have more free characteristics and it is working). Do you know if there is an opportunity without reducing the number of free characteristics? Did someone had the same problem and solved it?

 

Many thanks in advance,

Markus

BEx Query Authorization object issue

$
0
0

Hi,

We are on BW 7.4 HEC.

I've an authorization object ZAUTH created on characteristic 0COMPANY and activated this on infocube Z_COMPIC.

Then, i created a role ZROLE123 with a value "123" for above authorization object and restricted BEx query ZQUERY1 with a authorization variable created on characteristic 0COMPANY.

We've a user XXXXX assigned to role ZROLE123 yet when this user execute above query, all companies are coming up instead of just "123" data. Could someone guide on what i may have missed or how to analyze this issue.

User XXXXX also assigned to authorization object 0BI_ALL. (if i remove this from user, BEx query doesn't execute and SU53 shows "missing authorization 0BI_ALL").

Appreciate any insights.

Document counter restricted with characteristic values

$
0
0

Hi

 

I have a requirement,

 

characteristic name: ABC

value of characteristic: Add, duplicate, Edit so on.

 

data in BW

 

doc number  line item   abc

001                      1              ADD

001                     2              ADD

001                      3              duplicate

002                      1              Add

003                      1              Add

004                      1              Edit

 

they want to uniquely count total doc number, doc number with respect to abc values end result looks like this

 

Abc              Count    % 

Add                  3         3/4 *100

duplicate         1         1/4*100

Edit                   1         1/4*100

 

I created counter using exceptional aggregation detail value <>0 and ref characteristic is doc. number.

I am getting right total count "4" but when i add ABC characteristic and the number of count is different  like "ADD"  = 8. its look like it is also counting line item too.

 

please help me to fix this.

 

Thanks,

Viewing all 4032 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>