Bex Query generated code hack

Hi SDN,
Is it possible to manipulate characteristic values based on the key figure values in BEX Query output. Is that hack possible to control the query generated code at all?..
per say  i have query out put like this (in a very simplified version)
Material  customer  Quantity customer_pcount
M1             C1                100          1
M2             C2                150          0
when  customer_pcount = 0 related customer value  need to be blank.
Out put should look like this:
Material  customer  Quantity customer_pcount
M1             C1                100          1
M2                                150          0
thanks

Hi deepu,
Thanks for the reply :
If I have VBA code in Bex will it reflect the same changes when query published in portal??

Similar Messages

  • BEx Query MDX code

    Hi,
    please could you tell me how can I retrieve the MDX code generated by a BEx query? Is there any command in the Query Designer or Analyzer that allow you to see the script used by the query to extract data from DB?
    Thank you!

    Hi
    We have some reference material in the SAP library in additional development technologies
    Check
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d9/ed8c3c59021315e10000000a114084/frameset.htm
    Bye

  • ABAP Query - Differences in generated code after upgrade

    Hi all,
    We have upgraded to ECC 6. from 4.6C. We are experiencing differences between the behaviour of some queries in different systems. This can be as subtle as some of the output parameters not appearing on the selection screen (such as the options within the output format box, i.e. ABAP list, ABC analysis etc), to actual syntax errors in queries where there is no difference between the infosets and queries in the two systems.
    A pattern I have noticed is that there are big differences in the generated code behind the query transaction.
    In production, where we have the problems, the generated code contains a lot of include programs starting with /1BCDWB/, I am not sure what these are, but the generated code in the systems that work don't have these. I am not sure what is triggering the code to generate differently, but I think if I can find out then it will point me in the right direction.
    any help appreciated.
    Stephen

    Stephen,
    I have noticed the queries are generated with two different formats. One is very compact and has multiple different includes each for data, selection screen, various selection screen events, etc. Other is a single big non-modular program.
    We have also noticed generated program template gets reset to the non-modular kind, if additional code is added in the selection-screen code section of the infoset. They do not return to the original even after you undo the changes.

  • Need transaction code for opening Bex query designer?

    Hi ALL,
      Can anyone help me with the transaction code for opening Bex query designer?
      Like RRMX for Bex Analyzer similarly i want for Bex query designer.
    Thanks & Regards
    Sameer Khan

    THERE IS NO TCODE FOR QUERY DESIGNER. BUT THERE IS AN ALTERNATIVE..
    OPEN BEX ANALYSER THROUGH RRMX
    OPEN A QUERY
    CLICK ON TOOLS-> EDIT QUERY
    THIS OPENS QUERY DESIGNER AND YOU CAN USE IT NORMALLY..

  • BEX Query to ABAP Transaction Code

    Hi,
    RRI from BEX Query to ABAP Transaction Code When I Right clivk and select GOTO on my Delivery order
    say 120012 It shd directly go into tht particular DO The transaction code is vl33n
    but when i give ABAP Transaction as reciever object it only goes to the initial screen of query where we manually need to give the DO Number It does not show the DO 120012 directly
    thx,
    amar

    Hi Amar
    Try doing Assigning Infoobject to R/3 field in Assignment details RSBBS transaction:
    Check below thread for explaination
    Re: RRI -  Selection was not Restrcited
    Ravi

  • Automatic generate specification of Bex query

    Dear Experts
       Does anybody know how to generate a document which include the all of Bex query specific informatin, for example: structure, filter, what's the detailed line under the structure, and what's detailed infoObject restrain under the line, etc
       in the metadata repository, I can not get such detailed information.
    thanks in advance

    hi Jie,
    try to activate trace (ST05) before change the query structure, filter etc, and deactivate after that, and 'display trace' and explore the query tables got from trace list like
    RSZELTXREF (field LAYTP = FIX is for filter)
    RSZELTDIR (field DEFTP = STR for structure)
    RSZSELECT RSZRANGE RSZCALC
    RSZCEL RSZELTPRIO RSZELTTXT
    RSZELTATTR RSZCOMPDIR
    hope this helps.

  • Designer is slow when generating a new universe based on a BEX query

    Hi
    When we generate a universe on the basis of a BEX query, so it may take up to 30 minutes before we have a universe.
    Regards,
    Rikke

    Hi,
    could you setup the tracing on the client with the Universe Designer and post a link that as the file for download ?
    you can follow the note here for the tracing details:
    Windows : Note 1260004
    also make sure that the client is on the same fixpack level as the backend
    Ingo

  • How to Generate a MDX statement using a BEX query

    Hello,
    Is there any possiblity in BW to generate a MDX statement using a BEx query?
    Thanks,
    Ravi

    BW does not generate any MDX statement for Bex query.I have tried ample number of times to acheive this but failed.
    Like an Infocube the Query is also an object where in you can write MDX queries on BEx Queries.
    As it is I never found BW rendering MDX queries.But with MDX queries you can get something but how far it helps I don't know.
    RSCRM_BAPI is obsolete and it is recommended to use RSCRM_REPORT somewhere I have read ,but when I went to that transaction I never found that "MDX" button at all.
    It was converted to "OLAP Check" which gave me some warning on the key figures and that's it.
    Somehow I feel BW is not comfortable with MDX.
    Regs
    Gopi

  • Bex Query- Use of ABAP code in Calculated Keyfigure/formula

    Dear Experts.
    I am wondering if there is any way to use ABAP in the formula editor of the Bex Query desinger.
    I have to build a report with very complex formulas (a lot of key figures, comporations, If then else ) an I think it would be easier to build all then in ABAP.
    So what I am looking for is any kind of user-exit/Badi that allows to calculate a Calculated Key figure/fomula in ABAP with the same data that is availabe in the fomula editor.
    If SAP is not providing this, this is clearlly a must for next releases.
    Thanks a lot and best regards,
    Alfonso.

    Dear Ananda.
    Thnaks for your reply, but could you please extend your answer a little bit more?
    As far as I know, Formula customer exit variables are only called once and they don´t provide the rest of the keyfigures and characteristic use in the drilldown level, so for my needs they are useless.
    Regarding IF-then-else statement in the formula, I already know about it. Actually what I am trying to avoid is to use them. In order to build my query I might need to build really big formulas with a lot of If-then-else, making it quite complex what the formula is doing. This is the reson I want to do it on ABAP.
    Please any other ideas?
    Thanks a lot.

  • No data in Crystal report created on SAP BW BEx Query

    Hi Experts,
    I am trying to create a Crystal report on top of a BW query. I am able to login to the BW system and open the BEx query and the objects are coming into the crystal report.
    But when I drag and drop some objects into the details area and try to preview sample - it does not show any data (it shows accessing database but doesnt bring any data)
    I copied the generated SQL query in to the section in the BW system in transaction code 'MDXTEST' and it runs correctly and shows me the result below there.
    Just to try - I unchecked 'Use MDX..' check box by following the path SAP->Settings to check if that could bring back data ... and YES that worked which means data is not coming from the BW query with MDX connection but when MDX seems to be fine and retrieve result when I run the sql statement in tcode MDXTEST.
    Also when I do preview samples - I can see in SM50 in BW system that it is trying to run the report just that I am not able to see any data in my crystal report.
    Any help in this regards would be greatly appreciated.
    Thanks in advance.
    Regards,
    Sunny

    Hello
    The order of display of attributes in Webi and Crystal report would be different.
    Collapse the infoobject and skim through the attributes, you should be able to find them.
    Vishal

  • Dynamic quarters in Bex query

    Hi guys,
    I need to represent a dynamic structure of 5 quarter (actual quarter and 4 quarter ago) in a bex query. 
    The representation will be, depending of the entry variable:
    Case 1:
    *Scenary 1     *          
    Period: 12,11,10     4(Actual)     Year
    Year: 2008          3(-1)     Year
              2(-2)     Year
              1(-3)     Year
              4(-4)     Year-1
    *Scenary 2     *
    *Case 2:     *     
    Period: 9,8,7     3(Actual)     Year
    Year: 2008          2(-1)     Year
              1(-2)     Year
              4(-3)     Year-1
              3(-4)     Year-1
    *Scenary 3               *
    Case 3
    Period: 6,5,4     2(Actual)     Year
    Year: 2008          1(-1)     Year
              4(-2)     Year-1
              3(-3)     Year-1
              2(-4)     Year-1
    Case 4
    *Scenary 4     *          
    Period: 3,2,1     1(Actual)     Year
    Year: 2008          4(-1)     Year-1
              3(-2)     Year-1
              2(-3)     Year-1
              1(-4)     Year-1
    The infobject used is 0calquarter, don´t have the year associated in format (quarter.year) also this is in 0fiscyear; then my doubt is:
    1. How to control the year movement? I need to create a exit for validate each quarter based in entry variable. It is possible generate in a customer exit variable the generic code for determine the 4 quarters different to actual quarter?
    Thank you very much for your collaboration.
    Regards,
    Jeysi

    Hi Jeysi,
    You are looking for offset variables. Please have a look at the following documentation for an example:
    http://help.sap.com/saphelp_nw70/helpdata/en/3f/89533e5ff4d064e10000000a114084/frameset.htm
    Best regards,
    Janine

  • BEx Query Designer - Url openining problem

    Dear All,
    While running a BI query through BEx Query Designer, it is generating portal URL as:
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZTEST_Q0001&VARIABLE_SCREEN=X&DUMMY=20
    have created source system and all RFCs required as running properly.
    Any ideas further please ??
    my usage type is as below
    Active Usage Types
    Product Name      UT Code      Short Name      Description      Activation Date      Configured
    SAP NetWeaver 2004s      BI      BI Java      BI Java      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      AS      AS Java      Application Server Java      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      EPC      EP Core      Enterprise Portal Core Components      Mon Aug 11 00:00:00 IST 2008      YES
    SAP NetWeaver 2004s      EP      EP      Enterprise Portal      Mon Aug 11 00:00:00 IST 2008      NO
    SAP NetWeaver 2004s      AAS      AS ABAP      Application Server ABAP      Mon Aug 11 00:00:00 IST 2008      YES
    Please correct me where to configure default host name
    Regards,
    Ravi ghangurde

    Dear all.
    Below are the details probelm .
    i want to open the portal nwa using url  "http://10.2.202.154:50000/nwa" but it's ask me username and password screen , when entering J2EE_ADMIN user and correct password next screen is not appears
    and same user name and password screen shows again.
    when putting worng password it's show authontication fail message.
    Below are url details after providig the correct password.
    http://10.2.202.154:50000/logon/logonServlet?redirectURL=%2Fwebdynpro%
    2Fdispatcher%2Fsap.com%2Ftc%7Elm%7Ewebadmin%7Emainframe%7Ewd%
    2FWebAdminApp
    in morning it was showing the nwa screen when loginig with path
    http://10.2.202.154:50000/nwa and j2ee_admin and password
    but we are only change sso tiket parameters in default profile and create tiket in visual administrator.
    after than i am not able to open the portal NWA
    i want to run post installation wizard for BI post installation please suggest to open the NWA.
    is any other way for BI post installation wizard
    Regards,
    Ravi Ghangurde

  • Cannot see BEx Query in user role profile in BEx query designer

    I assigned several BEx query objects into user profile menu via t-code PFCG first.
    Then expected - when I need and open them in BEx query designer I could find them after clicking "Role" button in  "Open" window. But unfortuantely I'm not able to do that.
    Do I miss anything to archive that? Is other customizing activity else neccessary?
    Thank you for any suggestion.

    Hi Brad.Ma,
    If you can open query from Area "button", after that, you publish it to roles you want assign.
    You try generate Authoriation in Role in Tcode PFCG.
    Hope help you to solve the problem.
    Dao
    Edited by: xuandao_sap on Sep 20, 2011 3:33 AM

  • UNCAUGHT_EXCEPTION "CX_RSR_X_MESSAGE" when runnign BEx Query

    Hi,
    We have a user who is using the Accounts Payable report. User is able to access the BEx query, run the query but when the user is trying to move the company code from free characteristics to rows BEx is throwing the following error:
    An error occurred in the communication with the BW server.
    Due to this, the connection had to be closed
    Detailed Description:
    An exception occurred that was not caught.
    When i checked the ABAP dumps for this user, there is a dump with UNCAUGHT_EXCEPTION "CX_RSR_X_MESSAGE" .
    Can anyone hlep me understand this problem. The reports when executed by me works fine. We tried reinstalling the front end for the user but that did not resolve the problem.If any one has seen this problem for BEx reporting and if any notes are applicable
    Any help is greatly appreciated.
    Regards
    Vijay

    Hi,
    please try this one:
    - clean the system setup, temp files, temp internet files
    - start query designer -> open this query -> check the query
    - executing in BEx web
    - go to RSRT2 -> generate query -> execute in SAP GUI
    - start system trace while executing
    Best regards
    Sven

  • Debugging Bex query

    Hi All,
    I have a scenario where an Bex query is called in an webdynpro application using a standard method. I would like to debug the generated program of this query (got it from RSRT) to understand the variables passed.
    But I am having difficulty in understanding this standard code. Can anyone help me in finding out the exact place where I have to set the breakpoing to see the input variables passed to this query.
    Thanks
    Jeevitha

    Hi,
    Have you tried to execute report in RSRT with Execute + Debug >> in Debug option select Variables and execute.
    It will open ABAPdebuggerm then press F6 and will take you to various Methods like VARIBLE_START, SET, PROCESS VARIABLES.. etc.
    At last it will take to method CONSTRUCTOR and then an event START-OF SELECTION. Their you have a start of Create object .
    I guess here you can set a breakpoint.
    Or try by setting breakpoint on statement "CALL SCREEN 200" in START-OF-SELECTION. After this statement is will take you to input screen.
    Thanks,
    Jitender.

Maybe you are looking for

  • Boot Camp compatible Macs

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as

  • I cannot send or receive texts or use any of my apps after updating to iOS 7.1.1

    I got the iPhone 5S 16GB less than two weeks ago. I did the update after purchasing and everything has been fine. My internet, apps, texts all stopped working last night. I have restored to factory settings, taken out the SIM card, and wiped the phon

  • N4S Test Drive New License not Allowing Logon (error in license check)

    I reinstalled my N4S testdrive after a NIC failure caused all sorts of problems - the demo license had expired, so I requested and received a new demo license from SAP. I've installed the license via SLICENSE, and the license is showing as successful

  • Jaksta not picking up youtube videos

    I have been using jaksta to compile material for my imovie projects for youtube. I have the monitor for jaksta on, but it has ceased to upload youtube videos when i play them. I have uninstalled jaksta and every possible entity on my computer, reinst

  • HT5312 what is i do not remember the answers to my security questions?

    My iTune account is asking for my seurity questions. However, I do not remember them. And it will not allow me to purchase any music unless I answer the questions. What can I do in this case? Do I call to reset?