How to group from two fields?

Afternoon all,
Any ideas how to group a report by using two fields in one formula?
I have two fields in a table
1: Stock_Code
2: Misc_Code
I need to group my report by Stock and Misc code combined. How would I be able to do this by using formula?
Regards
Jehanzeb

See I tried that already pandabear however for some reason it doesn't bring the results from both fields. It is only bringing results from one field.
The report criteria is
{lab_credits.date_created} in date(2007,01,01) to date(2007,12,31) and
{lab_reasons.reason_code}={?Reason_Code}
the formula I used initially was
{lab_credits2.stock_code}+{lab_credits2.misc_code}
but then tried
{lab_credits2.stock_code}+ " " +{lab_credits2.misc_code}
however both didn't seem to work under the above conditions.
The output should be
5-760
7-240
7-250
7-821
AR
CARR
GLAZE
TINT
U-113
U-114
Where 5-760 and U-113 data is coming from stock_code field and AR to TINT is coming from Misc_code field.
The output is ignoring the Misc field values under the given criteria.
Regards
Jehanzeb

Similar Messages

  • How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version

    How to add the clearing document no. & payment method in FBL3 tcode. Can any one explain me step by step process how to add that two fields. This is ABAP 3.1 version. It's urgent requirement.
    Moderator Message: Duplicate thread locked. Please carry on with this thread: How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
    Message was edited by: Suhas Saha

    Did you read the note provided in How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version ?
    Regards,
    Raymond

  • How do I subtract two fields in a form?

    I am working on an expense form and I have everything working except one thing.
    We have to subtract any over payments from previous expense reports on the current expense report. I am looking at the calculate tab of the Text Field Properties.  But I do not see a way to subtract my two fields.
    I then setup a field that contains a negative one, except when I display the field on the form, the negative one is a positive one.  I did enter -1 as the default value to my "subtraction" field.  I was then going to multiple negative 1 against the the over payment amount so I could get a negative over payment amount.  I was then going to add the negative over payment amount to the total due and arrive at a net due,  But this does not work.
    Here is the calculation I am trying to do:
    Total Expenses     (calculated field from all of the preceding fields.)
    Deductible Expense       (user entered)
    Net Expense check          (Total Expense - Deductible expense).
    Can anyone tell me how to do this?
    thanks,
    Dennis

    With Acrobat there are 3 calculations options.
    "The field is the ____ of the following fields:" options are for sum, product, average, min, and max operations or for actions that could be repeated over multiple fields. One does not usually subtract or divide multiple fields in on action.
    "Simplified field notation" uses only field names and values. Field names must start with an alphabetic character and should not have any spaces or special characters. Cannot perform conditional control statements or functions. Special characters or spaces can be in field names if the JavaScript escape character precedes the special character or space. The 4 arithmetic operations can be performed.
    "Custom JavaScript calculation" has no restrictions on field names, control statements, functions or mathematical operations. One needs to access the field object and the value property of the field object.

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

  • Taking away one vendor group from sensitive field

    Hi,
    In the current system we have 8 vendor groups. we have created reconciliation field as a sensitive field - so has to control the creation and changes of the vendors. Now, the requirement is to take away one of the vendor groups from this senssitive field validation. Can we do this? Please advice.
    Regards,
    Narin

    Hi,
    Choose that particular account group and click on company code data- make reconciliation account status to display.
    Check once the same in test server.
    Regards,
    Sankar

  • How make seletion from formula field

    Hi experts,
    I have a formula: "SUMGT Bid Price", for example, and this Bid Price is a seletion: "0FISCPER" with variable exit and Key Figure Bid Price. So, my formula will show for all lines of the query the sum of values for Bid Price for period in 0FISCPER.
    Then, i want to show this information (the formula) only one line (the first one). But, it's impossible to make a seletion from formula field and it's impossible to make a calculate key figure with "SUMGT" too.
    Any tips?
    Regards,
    Pablo Moraes

    Hi Dear,
               if you need any kind calculcation on number or any any kind of operaion on String you can use formula..
              Right click on it and select "NEW" -->Enter the name of formula
              -->Enter the formula
              Quantity * prize for Total
                  or
              {VEN_CUS_01_csv.Material}+ "-" + {VEN_CUS_01_csv.Matl type} for concatenating two String
    Regards
    Obaid

  • How to view "From" header field in OUTgoing messages in Mail? Frustrating.

    In Mail v.4.3 (in OSX 10.6.4), I need to view the "From" field in my outgoing messages as I am composing them. However, there seems to be no setting in Mail which allow this.
    I find this very frustrating because in Eudora (which I used to use), the "From" field in outgoing messages is visible by default. But in Mail, not only is it not visible by default, there seems to be no way to make it visible.
    In the "Customize..." button to the left of the Subject field in outgoing messages, one has the option to add as default outgoing message fields "cc," "bcc," "Reply-To," and "Subject," but none of those are what I want. It allows one to also view the address of the mail server, but that also is not what I'm looking for. What I want is to see my outgoing +email address+. And nowhere is there an option in the Preferences to turn this on. (At least as far as I could tell.)
    In fact, the only way to see the identity in the outgoing "From" field is to go to Preferences, then click on Accounts, and look there; or send oneself a test email. Both of which are a hassle and should be unnecessary.
    In case you're curious as to why I want to see my outgoing "From" header field:
    I have several different "personas" online, each of which uses a different email address: My work address (with a work-related domain); my family/personal address (with a different email address than my work address); an online avatar I use in various gaming sites (also with its own address, since I don't want to use my personal name/address in the gaming community); and so on. However, I have all incoming emails to all accounts auto-forwarded to the same central email account. Most of the time I'm just replying to business emails, so my outgoing "Full Name" and "Email Address" (in Preferences>Accounts) are generally set to my business name and address; but on occasion when I want to reply to a non-business email and not have the recipient see my business email address, I go in to Preferences>Accounts and change "Full Name" and "Email Address" (i.e. what is displayed to the user) to something different. And when I'm done with that, I change it back to my business address.
    However, sometimes I forget if I've changed it back or not, or forget what I've changed it to. In Eudora, All one needed to one was create a new outgoing email and it would display the "From" field so I could instantly see my outgoing identity. But in Mail, there is no "From" field in outgoing emails, so I'm constantly nervous and wondering which outgoing identity I may have changed to and accidentally forgotten to change back from.
    (Yes, yes, I know that if a recipient wanted to be snoopy, they could look at the "full headers" of any incoming email and see the name of my email server, which may different from my displayed email address; but we're not talking about spy-stuff here, I'm just trying to not confuse people and keep business separate from personal.)
    So: is there any way for me to see the outgoing "From" field in the emails I send? Or am I condemned to constantly (and mostly unnecessarily) checking "Preferences>Accounts" to see what I have enetered there?

    Thanks for replying.
    What is the "compose window" to which you are both referring? I could find no reference to such a thing in the Mail menus or Help.
    Do you mean the "Composing" pane in the Preferences? I don't see what either one of you is referring to there, but I did notice there something that could function as an awkward workaround: If I click on the "Automatically CC myself" box in Preferences>Composing, then when I start a new email, my email address is displayed in the "CC" field -- and luckily, Mail allows me to then delete my email address out of the CC field, so I don't have to spam myself with duplicate copies of all my emails. This way, I can at least briefly see what email address I'm using, before I delete it from the CC field. Pretty awkward and unnecessarily laborious, however -- still not a perfect solution.
    Or, by "composing window," are you referring to an outgoing email? As I said in my original comment, I do see what Ernie called "a small box with lines and an arrow at the bottom left of the header box." This is what I had to say about it:
    +"In the "Customize..." button to the left of the Subject field in outgoing messages, one has the option to add as default outgoing message fields "cc," "bcc," "Reply-To," and "Subject," but none of those are what I want. It allows one to also view the address of the mail server, but that also is not what I'm looking for. What I want is to see my outgoing email address. And nowhere is there an option in the Preferences to turn this on. (At least as far as I could tell.)"+
    In other words, when Ernie says, "click the box beside From," I can't do that -- because there is no such option. That's the whole problem in the first place. If there was a "From" field beside which I could click a box to make it appear, I would have done so! But there is no "From" field in the "Customize" section of the "small box with lines and an arrow at the bottom left of the header box."
    I find it completely mystifying that both of you seem to be able to see a "From" field available to be added to the header of outgoing emails, yet no such option is available to me in Mail. What possibly could be causing this? 10.6.4 is freshly installed on my machine, and Mail seems brand new and uncorrupted. And I'm using Mail 4.3, the latest version.
    Are you saying that everyone else can see an option to have a "From" field in their outgoing messages, but I uniquely don't? Very very very strange.

  • How to compare the two field in jasper report design

    hi to all,
    I am new to jasper report design
    I want to compare two fields (or) variable using if..else condition.
    pls help me out

    Check out these postings:
    http://forum.java.sun.com/thread.jspa?threadID=5286462
    http://forum.java.sun.com/thread.jspa?threadID=5286468

  • How do I Average two fields and round down?

    I need to average two fields and round down to the nearest whole number. The two fields will always each have a value.
    If someone could help me out, I'd appreciate it.
    T.

    Assuming you want this to be a custom calcuation script for a field, it could look something like this:
    // Custom calculation script
    (function () {
        // Get the field values, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Set this field's value to the average, rounded down
        event.value = Math.floor((v1 + v2) / 2);
    More information on the Math.floor method can be found in any decent JavaScript reference.

  • How can I place two fields from one column side by side?

    Hello experts,
       I need your help: I have a column which has two different fields. One is Sales, the second is Sales Todate.
    My boss want me to get the difference btn them as well as the percentage. Now, here is my challenge: I can easily filter them but I want them to be side by side; but when I filter one appear on top of the other like below
    Sales                           
    Sales
    Sales
    Sales
    Sales
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    However, I want them appearing like below:    that way, I can place the difference column beside them.
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Any help will be appreciated..  I have tried a case statement, still the problem persist
    Chuck
    On the side: Does anyone know how to place the question in such a way when one answers I can mark correct or helpful, I am still not able to.. I hate it, when I place a question I go through create then discussion, is that the right way?

    Hi
    Just drag the column to measure label area in pivot table @ columns.
    So the table has to drag and drop to column area on the top so it will get display like
    Sales     SaleToDate
    And the measure label to row side drag and drop it
    sales      saletodate
    values     values
    Regards,
    VG

  • How to connect the two field which have a diffrent length

    Hi,
           i have two table one is VBRP-VGBEL CHAR 10
           second is                    MKPF-XBLNR CHAR 16
    both are same data means vgbel eq xblnr.
    how to connect these table because when i connect these table it gives me error
    have a same type and length.
    please give me reply soon . Thanks.
    dinesh

    HI
    I GOT THE SAME PROBLEM AT THAT TIME I DONE LIKE THIS
    I THINK IT MAY HELPFULL FOR YOU
    OBJID = 6 CHAR
    SOBID =  40 CHAR
    I GOT THE SAME ERROR WHAT YOU GET
    I NEED ONLY 6 CHAT SO THAT WHY I HAD WROTE THIS LOGIC
    1ST I HAD DECLARED THE SAME STRUCTURE TWICE
    IN FIRST ONE IT IS NORMAL DECLARATION
    IN SECOND ONE I HAD DECLARED THAT 2 FIELDS AS THE SAME LENGTH
    I HAD PUT THAT IN THA BOLD LETTERS
    AND AFTER THAT I HAD LOOPES THAT WORK AREA AND CONVERTED THAT SZE
    REWARD IF USEFULL
    TYPES : BEGIN OF ST_HRP1001,
             OTYPE TYPE HRP1001-OTYPE,
             <b>OBJID TYPE HRP1001-OBJID</b>,
             RELAT type hrp1001-RELAT,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             <b>SOBID TYPE HRP1001-SOBID,</b>
            END OF ST_HRP1001.
    TYPES : BEGIN OF ST_SOBID,
             OTYPE TYPE HRP1001-OTYPE,
             <b>OBJID TYPE HRP1001-OBJID,</b>
             RELAT type hrp1001-OBJID,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             <b>SOBID TYPE HRP1001-OBJID,</b>   
        END OF ST_SOBID.
    SELECT OTYPE
             OBJID
             RELAT
             BEGDA
             ENDDA
             SCLAS
             SOBID FROM HRP1001 INTO TABLE IT_HRP1001
                        WHERE OTYPE = 'D'
                            AND OBJID IN S_OBJID
                            AND BEGDA GE DATE-LOW
                            AND ENDDA LE DATE-HIGH
                            AND ( SCLAS = 'E' OR SCLAS = 'ET' ).
      IF SY-SUBRC NE 0.
        MESSAGE 'NO RECORD FOUND FOR THE GIVEN SELECTION CRITERIA ' TYPE 'E'.
      ENDIF.
    LOOPING TO CONVERT THAT FIELD LENGHT
    <b> LOOP AT IT_HRP1001 INTO WA_HRP1001.
        WA_SOBID-OTYPE = WA_HRP1001-OTYPE.
        WA_SOBID-OBJID = WA_HRP1001-OBJID.
        WA_SOBID-RELAT = WA_HRP1001-RELAT.
        WA_SOBID-BEGDA = WA_HRP1001-BEGDA.
        WA_SOBID-ENDDA = WA_HRP1001-ENDDA.
        WA_SOBID-SCLAS = WA_HRP1001-SCLAS.
        WA_SOBID-SOBID = WA_HRP1001-SOBID.
        APPEND WA_SOBID TO IT_SOBID.
      ENDLOOP.</b>
      SELECT OTYPE
             OBJID
             AEDTM
             UNAME
             DELET
             CANCR
            NCONT
              FROM HRP1026
              INTO TABLE IT_HRP1026
              FOR ALL ENTRIES IN IT_SOBID
                 WHERE OBJID = IT_SOBID-SOBID
                 AND ( OTYPE = 'E' OR OTYPE = 'ET' )
                     AND DELET = 'X' AND
                     BEGDA GE DATE-LOW  AND
                     ENDDA LE DATE-HIGH.

  • How to group together same field values in a internal table.

    Hi Gurus,
    Case:1
    Using AUFNR, i am retrieving data from RESB table.
    Fields (RSPOS, ALPGR, ALPRF,KZAUS, MATNR).
    If RESB-ALPGR (Alternate material group) is not initial, sort those values with ALPFR (Priority) after that group together same ALPGR values.
    1) Top most priority (ALPRF) value MATNR populate to IDOC field.
    2). Next top priority (ALPRF) value MATNR populate to IDOC field.
    Case2:
    using AUFNR, check RESB-KZAUS if it has a value '1'.
    then, check to see if there are RESB-RSPOS that has the same (repeated RSPOS values) Ex: RSPOS value 0002,0002.
    if yes, place the first RSPOS with KZAUS = 1. MATNR move to IDOC next RSPOS-MATNR value move to IDOC field.
    Points will be awarded for useful answers.
    Thanks in Advance.
    Sashi.

    Hi,
    Check this Example..
    DATA:BEGIN OF ITAB OCCURS 0,
    NAME(15) TYPE C,
    END OF ITAB.
    ITAB-NAME = 'peter'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-NAME = 'john'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-NAME = 'abrahm'.
    APPEND ITAB.
    CLEAR ITAB.
    ITAB-NAME = 'daneyal'.
    APPEND ITAB.
    CLEAR ITAB.
    LOOP AT ITAB.
    WRITE:/ ITAB-NAME.
    ENDLOOP.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Using IF in a for each loop which is grouped by two fields

    Hi ,
    My requirement is to filter the Payment records ,based on the parameter input date and also group by based on two of the Fields and calculate the sum of the payment Amounts.
    I have created a for each loop with the group by first on one field and then the other field.
    My question is where should I put my IF condition based on parameter dates ?
    If condition would be if Created = Date Parameter .CAn anybody help where I should insert the IF condition in the below code.
    Ex:
    <?for-each-group:Payments;./Created?>
    Display Date : Created
    <?for-each-group:current-group();./CreatedByName?>
    Table      :      CreatedByName     count of Payments           Sum of Amount
    <?end for-each-group?>
    <?end for-each-group?>
    thanks.

    Hi ,
    I got the result by putting the filter in [ ]
    Ex:
    <?for-each-group:Payments[PaymentStatus != 'New';./CreatedDate?>
    here I am filtering the records based on [Payment Status != New] and then group by Created Date .
    Similarly I can new another condition as well in the same statement
    <?for-each-group:Payments[PaymentStatus != 'New'][PaymentMethod != 'Cash'];./CreatedDate?>
    Regards.

  • How to remove % from percent field in standard section

    Hi Experts,
    I will like to remove % symbol from a percentage field in a standard section. May I know can this be done?
    As I know the % symbol can be remove from report, but can it be done in standard section?
    **The reason I insisted to use percent field is because all other field types is already hit the limit.
    Thanks
    Anson

    Hi,
    This is working for me
    *& Report  ZTESTRAUL
    REPORT  ztestraul.
    TYPES: BEGIN OF tp,
             one TYPE wertv8,
             two TYPE char15,
           END OF tp.
    DATA: wa TYPE tp.
    wa-two = wa-one = '1345.00'.
    replace ALL OCCURRENCES OF ',' IN wa-two WITH ''.
    write: wa-one, wa-two.
    Raul Natu

  • How to change from two sided printing to one page printing on a macbook air

    How do you change the printer setting on a macbook air? I go to print something and it prints double sided, is there a way to change that setting?I have an Epson printer that does air printing. Please help!

    That would be a function of the printer settings. So once you call up the printer to print something go into the settings and change it from Duplex to single sided printing.

Maybe you are looking for

  • Help needed for VPN IPSEC configuration.

    Hi There, I'm trying to set up a IPSEC VPN connection in my GNS3 lab and all the show commands and debugs does not seem to give me any clues of what is wrong or missing...can someone please help me in troubleshooting my VPN config. Below is the confi

  • Problem with getting actual value in Row row=iter.getCurrentRow();

    hi, the use case is as follows: in master-details, on detail table there are 2 columns with checkbox and username. when user clicks checks, the username text item is populated with current user value in respective row. <af:column sortProperty="#{bind

  • Migrate Oracle 10.2.0.3 to Oracle 11.2.0.3

    Source: Oracle 10.2.0.3, Solaris: 10 (SunOS usahsarmp090 5.10 Generic_144488-17 sun4u sparc SUNW,Netra-440) Target: Oracle 11.2.0.3, RHEL 5.6 (Tikanga) I am considering two approaches: 1) Datapump export to a NFS, Datapump import to Target db(same ve

  • Best practices to create Universe on top of SAP BW

    Hi Experts, I would like to know the Best Practices for Creating Universe on top of SAP BW. 1. is it advisable to create Universe on top of SAP BW CUBE directly. in my case , we are starting a fresh BW implementation for one application on SAP BI.7 ;

  • Buttons in an attached movie from library

    I used the tutorial posted at http://www.layersmagazine.com/flash-attaching-movieclips-actionscript.html Now I have a button on my stage that attaches a movie from the library. on (release) { this.holder.attachMovie("contents","contentslinks",1); It