Inserting ABAP code into Query Designer

I originally posted this thread in the Query Designer section.  It was suggested that I post this in the ABAP Development section instead.  Here's my issue:
A customer has created a query and interface using transactions SQ01 and SQ02 that generates a report from tables EKKO - Purchase Document Header and EKPO - Purchase Document Item.
Referencing the Net Order Amount (EKPO-NETWR) they wanted subtotals to appear by Purchasing Document Number. I was able to give them that by changing the Sort and Total check boxes in their original query. So now they currently have a report that lists the Purchase Order Document (EKPO-EBELN), each Item Number for the Purchase Order (EKPO-EBELP), the Net Order Value for each item (EKPO-NETWR), as well as query-generated subtotals for each Purchase Order and a grand total of all Purchase Orders.
Now the customer would like to be able to select on the query-generated subtotals. For example, select all Purchase Order Documents whose query-generated subtotal is greater than $5,000, or select all Purcahse Order Documents whose query-generated subtotal is equal to $1,000.
Before replying, it might be a good idea to check my original thread in the Query Designer section to see the replies I received there.  Query - Selection Option on Subtotal
Any suggestions on how to accomplish that would be greatly appreciated. Thank you.

You can add a new amount field for selection and filter the query results based on the new field.

Similar Messages

  • How to insert abap code in LSMW generated program?

    hi,
    i m working on LSMW for loading data in SAP
    i would like to insert abap code into the generated program....
    it's because i have 1 BKPF segment (header data), 2 BSEG segments, but i cannot define rules by customizing for the second BSEG segment(LSMW doesn't permitt).
    i already tried to insert code directly into the program, but obviously it disapears at each time i generate the program.
    i saw that apparently a code insertion has already be made into this program and the subject of this insertion is to define rules for the second BSEG (exactly what i want to do....) and this modification doesn't disapear at new prog generation.....
    Any idea ?

    Hi
    Why dont you use the FORM provided by LSMW
    To use this please do the following
    1.Goto option <b>Maintain Field Mapping and Conversion Rules</b>
    2.Goto menu <b>EXTRAS->LAYOUT->Form Routines</b>
      Here you will now get many options like
       Global Data
       Begin of Transaction
    Begin of Processing
    Begin of Record
      like wise the End of these also.
    Please put a breakpoint and check where you want to insert your code.
    Note:
    This is only for the Conversion Program and does not affect the main program used to update the Standard Tables
    Hi , I was reading your earlier post .. It seems that you have worked on EMIGALL. Consider a similar situation, it is like writing the code in the events till CALL01...
    Thanks
    DOminic
    Message was edited by: Dominic  Pappaly

  • Unable to get into query designer in Dev

    Hi BW Gurus,
    I am trying to get into query designer to do modifications to query in Dev server. But it is not allowing me to enter. It is displaying the following messages.
    BEx Transport request is not available or not suitable
    Choose another request
    with the above messages I am trying to enter query designer. But it is in display mode only but not in editable mode. So kindly guide me how to solve this. I have to change the query.

    it means there is no transport request availabke to chenge your query.
    RSA1>transport connection>click 'create transport requets for Bex' (truck icon with BEX)>select your package->change>assign a request if you have already(or create new one)->continue.
    log off and log into Bex.you will be able to change your query now.

  • Insert JAVA3D CODE into a HTML PAGE

    My java 3d code is working perfectly with javac and java command. I can see the result of my game in the appletviewer
    But when I want to insert the code into a html page,it dosen t work
    the java applet remain grey....
    Can someone tell me why and someone can tell me how to solve it
    Could you give me an example of HTML page using java 3D code with mulitple classes

    I don't know Java3D, but I know a little applets. :)
    Are you sure your browser understands the 3D API ?
    applets work with AWT and JDK1.1, (it's your browser than run your applet and not your jdk 1.3 or 1.4), so peraphs you should download a plug-in to run Java3D in your browser ?
    for example, if you want to use swing, you have to download a plug-in in your browser.
    and another problem is that different browsers work differently with a same applet : for example, IE 6.0 don't run than IE 4.0 or Netscape 3.0
    it's the internet's way of life... :)
    Good luck,
    David
    PS : sorry for my english, I'm from Paris ! :)

  • Outlook 2013 - Insert HTML code into email

    Hi there,
    A simple question, or so I thought. How can I insert HTML code into an Outlook email?
    Thanks
    Dave

    You can inject HTML code into the message body via the Insert as Text option;
    Insert-> (Attach) File-> select the created htm-file-> press the down arrow on the Insert button-> Insert as Text
    Cheers,
    Tony Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please contact
    [email protected]

  • Fluid grid for Wordpress: insert PHP code into DW or DW code into Wordpress?

    This may be a stupid question but it's a dilemma for me. Here's the problem. I want to create a mobile first, fluid grid Wordpress website in Dreamweaver CS6 based on an existing Wordpress theme. I can see two ways of doing that:
    1) Create a fluid grid layout in DW, then insert the Wordpress PHP code into the right places in DW
    Pro: the fluid grid layout is set up by DW and therefore can be easily edited with DW (I imagine)
    Con: It is beyond my coding skills to make a fully functional WP template
    2) Take an existing responsive Wordpress template with media queries and edit that in Dreamweaver
    Pro: I start with a fully functional WP template and only have to make changes (mostly in CSS) to customise it
    Con: When I start with an existing template (like Skeleton) I run into trouble using DW
    For example: I click a navigation button to get at the CSS but it's not clear to me from DW's interface in which media query I have to make changes. I did a tutorial on creating a fluid grid layout with DW so I can do that. But DW doesn't work the same way with an existing WP template like Skeleton. I searched the web but all I can find is help on creating a fluid layout with DW, not editing an existing one.
    By the way, I am experienced with HTML/CSS but not PHP and I have a local Wordpress server running on my Mac so I can work in Dreamweaver's Live View.
    The problem may be that I am only just starting with responsive web design and need some more experience with media queries, css rules and DW CS6. Could anyone comment on this problem or point me towards more information on the subject?
    TIA!

    You can certainly use DW to customize a 3rd party WP Theme.  However, you must be throughly familliar with how WordPress Themes work and have a good working knowledge of  HTML, CSS and PHP code.  Design View will not be much help to you. 
    WP Themes are a sum of their various parts:  header.php, footer,php, sidebar.php, page.php, index.php, archive.php, etc...  The web server parses code from the various parts and creates whole pages on the fly.  Once WP is deployed on your server, you cannot use DW to edit content.  You must use the WP Admin Panel (CMS) to manage content, Themes, plugins and backup data.
    For simple static sites, the FluidGrid Layout feature in DW is a nice starting point.  But these layouts have definite  limitations which, IMO would not be a good fit with WordPress.
    Nancy O.

  • SQ01 DIsplay Problem (Can v write abap code ) Sql Query

    Hi
    Need help in SQL Query
    I generated one sql query which has the following output in general .
    Customer   name   description   amount
    asrq1  sharekhan      Amount payed      10
    asrq1  sharekhan     Amount Advance     20
    asrq1  sharekhan    Amount due             30
    but i need the output in the following way
    Customer  name  AMount payed     Amount  Advance                  Amount Due
    asrq1   sharekhan  10    20     30
    and iam new this sql query but came to know we can write code ..but iam unable to initiliaze to write
    a peace of code as i dont know what are the select-options defined ..i saw in the include but didnt got it
    % comes prefix of select-options,and iam unable to get he internal table which is displayed in the query .
    can anyone help me in this answers will be awarded points.

    First, I will suggest to go for ABAP report for this kinda requirement.
    If you really want to go for it through SQ01, even then you will have to write some ABAP to display the records in one row. You will need to create three custom fields.
    I will give Psudo for one field:
    Field Name := ZAmountPayed
    Select Amount_Payed into varAmountPayed from Table Where Emp# = '12345'
    ZAmountPayed := varAmountPayed
    Convert the above into relative ABAP code and create 2 more similar fields, and you should be all set.
    You have to know the table names and any other calculations to get the right data.

  • Inserting Script code into HTML - possibly using snippets?

    I am using Robohelp 7 and I need to insert some tracking script code into the HTML.
    The location needs to be right before the body close code.
    I have multiple pages and would love to use a snippet so that it would be easy to update as necessary.
    When I create the snippet code and drop it on the design page, it shows the code.
    I cannot get it to drop into the HTML.  Any suggestions?
    If it can't be done with snippets, is there a way to mass import code into the HTML of ALL pages?  I'm talking hundreds of pages.

    Hi there
    I doubt you will want to use snippets for this. Why? Well, if you use Snippets, you will need to edit all your pages so they include the snippet!
    So here's how I might approach it.
    Open the Project Set-up pod. Create a Topic Template. Inside the Template, add a Footer. Insert the script into the footer. Save the template and apply it to all your topics. You do this by selecting all topics in the Topic List pod, right-clicking them and choosing the Template. Whoosh! The template is associated and all topics now have a footer (with the script inside).
    Hopefully this helps... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Inserting QR Codes into InDesign document ??

    Anyone know about inserting QR codes (those bar codes that are all over magazines these days) into InDesign?
    Someone I know is going to get me a QR code for a magazine advertisement  I'm creating. What is the standard format for this image I should get  to place into InDesign?
    Also, can I scale the image in InDesign? Or will that mess up the functionality of the QR code?
    (I'm delivering the whole InDesign file as a PDF to the publication.)
    Thanks in advance for any info!

    The standard for QR codes comes from Denso Wave (Toyota), the creator of the QR standard.
    From the Denso standard on their site:
    The size of QR Code depends on a module size and a symbol version. The module refers to the black and white dots that make up the QR Code. The symbol version determines the data capacity.
    The area of a Version 1 QR Code is made up of 21 modules per side. Each higher version number is made up of 4 additional modules. The highest version number is Version 40.
    For example, a Version 2 QR Code would be composed of a 25 by 25 module matrix. If the module size is 0.5 mm (19.7 mils) square, the size of QR Code will be 12.5 mm (0.5") square. (QR Code requires a four module wide quiet zone around the symbol.)
    Other than that, your size should be tested after output with something other than the latest smartphone, because a greater portion of people are using older technology that cannot focus very close. I've found that a QR code of .875" x .875" to be ideal for a basic URL without URL shortening, using a chunk of plastic trash called a blackberry. If your URL is superlong, your results mar vary.
    The iPhone 4 however, can scan a QR code 1 molecule x 1 molecule wide, if your audience is demographically hip enough to own one, by all means go for that.
    /snarkyfanboicomplete
    p.s. there are plenty of sites that will export you a nice clean vector EPS, so requesting a tif and converting it to a bitmap, while super fun, can be avoided by eps goodness.

  • Inserting empty row in query designer

    Hi Gurus
    Can any one advice me on how to insert a empty row in Query designer
    I'm using structure
    Thank you

    Refer - /thread/814122 [original link is broken]

  • Insert Assembly Code into C++?

    Hi, every one,
    I am writing a segment of assembly code inserted into the C++ code. During the compiling using Solatis Sparc v8 C++ compiler, I felt a bit confused at the following error:
    Linking
    Undefined Symbol first referenced in file
    lock ..../libatsup.so( this is my created lib)
    My code looks like:
    Error atomic_lock(volatile int *lock)
    asm("retry:");
    asm("ldstub [lock], %l0");
    My question is how to declare the variable "lock" in the atomic_lock?
    Any help will be appreciated.
    -Yuzhong

    Sorry for the confusion. I was assuming that your assembly routine is simple enough to be leaf routine. So, it need not have a save in the prologue. If you have a save, your input args. will be in %i0-%i6. Depending on the prototype of the atomic lock function you are writing, access the arguments in %i0 and so on. If you don't need new register window, (don't call other function and no stack space needed) the args. will be in %o0-%o6. The easiest way is to write a similar(skeleton) code and compile it into assembly and fill in atomic instructions.
    You have to declare the function as
    extern "C" {
    void atomic_op(int *lock,......); // exact code depends on your design
    in other files where you refer it.
    -Ananth.

  • Simple question: inserting JSP code into HTML forms

    I have a form with which I am trying to insert a Java String into one of its text boxes. The problem is the string has serval words in it and when the form is viewed only the first word appears.
    The code is:
    String tEntity = request.getParameter("entity"); // the string is intended, and is serveral words
    <TD><INPUT TYPE="textarea" Name="entity" value=<%out.println(tEntity);%>></td>
    Form example the String may be "string of more than one words" but when the form is viewed only the first word "string" appears.
    Any feedback would be much appreciated!
    thanks
    Dan

    hai
    u need to use doubli codes like below
    <INPUT TYPE="textarea" Name="entity" value="<%out.println(tEntity);%>">or best u can give
    <textarea name="entry">
    <%out.println(tEntity);%>
    </textarea>archi

  • Is it possible to insert a url into a design I have created in Photoshop?

    Is it possible to create an image with multiply links in it or how can I separate my design in Photoshop so that I can assign the links to each element in our email marketing system?

    It is possible to assign multiple URL to the same image using the slice tool.
    After loading your image, use the slice tool to mark out the areas and then use the slice selection tool to assign URL to the sliced up image.
    Below: After selecting Slice Selection Tool, double click on the pix icon at the corner of the slices you want to assign URLs to.
    Below: Go to File/Save for Web to choose the output format. After selecting Save, you need to output the images with the html as the markup for the URL is in the html file and not in the sliced up images.

  • Adding the ABAP code to SAP Query to support Query's ALV Double click.

    Hi, Expert.
    I need to add some ABAP Code into SAP Query (or Infoset) to support the double click event on ALV cell of result of query.
    Is it possible & How to do ?
    Thank you very much.
    Best Regard
    Nattapash C.

    Hi, Gautham.
    I've put BREAK-POINT in all code section e.g. INITIALIZATION, END-OF-SELECTION..
    I found there are some section for add code that will be executed when query is processing before output data to ALV.
    What I need to know is Where I can input the code after ALV output. For support the Double Click Event on Query's ALV cell.
    Best Regard,
    Nattapash C.

  • Inserting externally purchased code into Muse.

    I purchased code that I would like to use in my site. How do I use it with Muse? I understand how to place HTML, but right now I have CSS and JQuery files. Is there any way to get it in there?

    It's hard to give a useful answer to that question. There's a wide variety of HTML widgets out there with lots of different requirements...
    Generally speaking, CSS files usually contain styling info, to control how some HTML elements look.
    JS files are scripts that usually attach behavior to certain HTML elements.
    Usually you'd also have some HTML to insert so the CSS has something to style and the JS has something to attach behavior to.
    Muse has a few features that may help you integrate this fabulous thing into your Muse layout.
    1) Insert HTML allows you to insert a bit of HTML which Muse will export along with the rest of your page.
    2) The page properties dialog metadata pane allows you to insert HTML code into the <head> of the exported HTML page.
    3) The 'Add files for upload' menu item allows you to tell Muse to upload additional files to your website. They'll be uploaded into a folder named 'assets'.
    Depending on what you have, you might be able to use some of these features to get your wonderous thing into Muse without editing any of Muse's output.
    If these features aren't sufficient for your use case, you may have to edit the exported HTML as suggested by iamDK. Note that if you do this, you'll have to re-edit the exported HTML every time you export/publish/ftp upload from Muse, as Muse does not preserve any edits made to the generated HTML.

Maybe you are looking for