If condition for the same output

hi all.
i have issuelike this.
i have 2 selection s_indate and s_chdate for dates coming from the same table vbrk-fkdat.
now the filtering shud be based on firsts_chdate.
if the date comes in the range of s_chdate but not in s_indate,it should be dleted n not be displayed.
while,if it falls in both the rnges,then i shud b displayed.
while user can enter one at a time whether in s_indate or s_chdate,then it shud ouput accordinlgy,
plz suggest.

Hi Tanisha,
If I am correct you have to pick data from one table considering filtering oo one field only.
so you can put both select options in one range table and fetch data from vbrk.
populate final range table on the the values entered in the selection screen,populate for the existing select option only.
Now you have all the value on the basis of both selection (select options).
you have to put the condition according to the requirement.
1. if the date comes in the range of s_chdate but not in s_indate,it should be dleted n not be displayed.
Means only the value in s_indate should be displayed, it should not consider value in s_chdate as all the values in s_chdate which are not a part of s_indate will be deleted.
if s_indate is not initial.
      loop at t_vbrk to w_vbrk where firsts_chdate in s_indate.
      *populate iniernal table.
      endloop.
else.
   if s_chdate is not initial.
       loop at t_vbrk to w_vbrk where firsts_chdate in s_chdate.
       *populate iniernal table.
       endloop.
   endif.
endif.
2. Same as above.
Regards,

Similar Messages

  • Multiple conditions for the same button.

    Is there any way you can have multiple condition (same type of the condition).
    I have button that I would like to hide it at different stages.
    For example I would like to have a button (Submit) which will be visible when
    Status = Draft
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_STATUS
    Draft
    and when also when userRole = author
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_USER_ROLE
    Author
    Robert

    Hi,
    It would depend on when the fields get their values into the session. They may be below the button on the page but if they have a value in the session then the button's condition will see this.
    If, however, you have only used a Default Value setting for the item, the value may not be in the session (even though it may be displayed on the page), so the button will not know about this value. In these cases, I set the default value using a page computation for that item that runs "On Load Before Header" and is conditional on the item being null. That puts the value into the session for other items to use if required.
    Andy

  • The same output message for different partner roles

    Hi All,
    Is it possible to create automaticaly in PO the same output message type ( for example - 'mail') for different partner roles( for example - 'VN' and 'OA') ?
    If it's possible,then how?
    Thanks.
    Liza

    Hi,
    Thank you ,but I have a next problem:
    When I  tried in transaction mn05 to add second record for the same output type for other  partner roles.
    I got error message "The condition record entered already exists".
    Regards,
    L.

  • Can we get a output in different languages for the same configuration

    Hi All,
    Can we get a output in different languages for the same configuration done in NACE. or it is language specific.
    They have symbols which have values both in german and english. But when we run the transaction we are getting the output only in german language.We want the out put in english
    language.
    Thanks in Advance.
    Rajesh

    A Smartform can be maintained in many languages other than the language that it is created. Translations for the texts have to be maintained for this purpose.
    To maintain the translations:
    Go to transaction SE63 in R/3.
    Go to menu Translation->R/3 Enterprise->Other Long Texts
    Select the object type in the pop up. Smartform(SSF) object type is found under Forms and Styles(FS).
    Enter the name of the Smart form and choose the source and target language. This would open a screen with the Smartform code in Source language on the top and an editor with the same code in the bottom.
    Find the text for which you need to maintain the translation and insert the translation in that place. As usual after required texts are maintained Save and Activate.
    To see the translated Smartform create an output type and assign the smartform and the driver program to this output type. In the transaction that sends output to this smartform, select the output type and select the language in which the smartform has to be displayed (translations have to be maintained in this lanuage).This will give the smartform in the required language.
    Madhavi

  • Java-puzzlers...Why 2 different outputs for the same line

    Here, why it is giving 2 different outputs for the same set of lines
    Line-1 and Line-2 are both same.But giving 2 different results ???
    /*java-puzzlers*/
    public class Elementary {
        public static void main(String[] args) {
             System.out.println(12345 + 5432l);  /*Line-1: Original statement- didn't modify*/
          System.out.println(12345 + 54321);  /*Line-2: I wrote - I delete 12345 + 54321 and wrote the same thing again*/
    }

    kjshikal wrote:
    one of them is a longkjshikal,
    For the third and final time. Please stop resurrecting old threads like this.
    Thank you for your co-operation.

  • How do I arrange for the Premiere output to be as near the same as the input as possible?

    A newbie question.
    I am editing a ten minute video down to a 90 second clip, with an added jpeg and a watermark. The first (http://www.youtube.com/watch?v=YQ3UOlHY3GE) turned out fine in terms of HD and widescreen. The second (http://www.youtube.com/watch?v=wgin-kBcep8) has not – it’s all scrunched. They both started out as identical format [1920x1080, 14005kbps data rate, 14133kbps total bitrate, 50 frames/second) MP4 files; the good output format is a (1920x1080, 25920kbps data rate, 2630kbps total bitrate, 25 fps) “Movie Clip”, whereas the poor output is a (720x576, 28807kbps data rate, 30343kbps total bitrate, 25fps) “Video Clip”.
    How do I arrange it for the Premiere output to be as near the same as the input as possible, so as to present in YouTube as HD and fully widescreen? My guess is that I am doing something stupid when I open the incoming file.

    Stephen,
    In your initial post, you state:
    They both started out as identical format [1920x1080, 14005kbps data rate, 14133kbps total bitrate, 50 frames/second) MP4 files;
    If that is correct, then you ARE starting out with full-HD material, and that should be a PAR = 1.0 (Square Pixels) and 16:9 Aspect Ratio. Outputting to 1920 x 1080, should yield 16:9 with Square Pixels, as well.
    Now, one of your output tests WAS to SD, and you state:
    the poor output is a (720x576, 28807kbps data rate, 30343kbps total bitrate, 25fps) “Video Clip”.
    but there is no mention of that output file's PAR, so it could be 4:3, or 16:9. The down-rezzed Export file WILL not look as good as full HD output to full HD.
    I think that that latter 720 x 576 confused Harm, or maybe I am the one, who is confused?
    Good luck,
    Hunt

  • Two outputs for the same partner functions............

    Hello,
    I have come across the situation where i need to use two transmission medium for the same partner function, is it possible through the standard settings?
    E.x. My client wants to send  email and print to the sold to party while confirming order, what are the required settings need to be made?
    Thank you.

    Similar question was answered in the past, check the link Output transmission medium to print and email and the answer provided by Yadav suits your requirement.
    Regards,

  • HT1904 when accepting the terms and conditions for the new terms of agreement of the policy, i press accept the terms and press agree and it will not allow me to purchase the music because it keeps going to the same page of terms and agreements

    when accepting the terms and conditions for the new terms of agreement of the policy, i press accept the terms and press agree and it will not allow me to purchase the music because it keeps going to the same page of terms and agreements

    If you can't scroll to the bottom
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.

  • 2 Conditions on the same keyfigure

    HI all,
    can we create two conditions Top N and Bottom N on the same keyfigure but in the output the same keyfigure will show in two different columns like Top N wise & Bottom N wise.
    please give  the solution.
    Thnaks
    pinkyreddy
    Edited by: pinky reddy on Mar 3, 2009 12:55 PM

    Hi Pinky.,
    u can't achieve 2 conditions with the same keyfigure..
    if u put then it won't workout..
    for eg., if u put top 10 & bottom 10 in the same key figure either it will pick top10 or bottom 10 but not both...
    generally it will do with or condition at there not with and condition
    Hope it helps
    Regards,
    Vijay.

  • RERAPP on Debit and Credit condition of the same contract in the same perio

    Hello Gurus
    I have a scenario here. My client wants a contract that specifies the tenant as a customer , and also as a vendor.When i try to make a periodic posting run i am getting the following error:
    Sales tax data do not define output tax.
    Actually i have a debit condition and a credit condition assigned to the same contract, when i probe the error message by double clicking on it , this is the full error text:
    Sales tax data do not define output tax
    Message no. RECD078
    Diagnosis
    In Customizing of the contract type, the setting in the user/offerer field specifies whether this is a customer contract (company code is the offerer) or a vendor contract (company code is the user). Depending on this setting, the posting term expects output tax (customer contract) or input tax (vendor contract) as sales-tax data.
    Procedure
    Switch to maintenance of posting terms, and correct this error there.
    how can i assign 2 different tax types one input and one output to the same customer contract.
    Very much await your response
    David

    Hello Gurus
    I have tried the option suggested by Rajnikant, but it is still giving the same error message. The issue actually lies on the definition  of the contract. This is a commercial lease out in the Offerer User Field on the "contract -change view type details" where you set the contract as either user or offerer. In this case this is a customer contract that should be indicated Offerer " in this field. This automatically detects the tax type to be used as either input or out put tax.
    It rather sounds then impossible to assign another tax type to this contracf , ie the input tax.
    what can i do to use this other credit condition for the customer in the same contract, or i have to create another vendor contract for the customer.
    Much awaiting for your response , thank you so much for your cooperation.
    Regards
    David

  • Display discounts and surcharges  for the same vbeln in the same row

    hi experts
    i have to display one discount and surcharges for one vbeln, posnr and one material,
    i have used konv-kschl for condition type and konv-kwert for condition value.
    in my output the conditions what i have given for discounts and surcharges its matching and displaying in different lines for the same vbeln and posnr. usually i should get one line of outputfor one vbeln, but iam getting 3 times repeated
    (one without discounts, surcharges,
    second : same vblen, posnr with discounts,
    third : same vblen, posnr for surcharges )
      please modify the internal table and  conditions below what i have given in my object.
    DATA : BEGIN OF it_konv OCCURS 0,
    knumv LIKE konv-knumv, "Number of the document condition
    kschl LIKE konv-kschl, "Condition type
    kwert LIKE konv-kwert, "Condition value
    kbetr LIKE konv-kbetr,
    kposn LIKE konv-kposn,
    discounts LIKE konv-kwert,
    surcharges LIKE konv-kwert,
    hkunnr LIKE knvh-hkunnr,
    kunnr LIKE knvh-kunnr,
    END OF it_konv.
    LOOP AT it_konv INTO wa_konv.
    CASE wa_konv-kschl.
    WHEN 'ZD01' OR 'ZD02' OR 'ZD03'.
    wa_konv-discounts = wa_konv-kwert.
    WHEN 'ZEXP' OR 'ZEXW' OR 'ZCAF' OR 'ZCAP' OR 'ZCAQ'
    OR 'ZS01' OR 'ZS02' OR 'ZS03'.
    wa_konv-surcharges = wa_konv-kwert.
    WHEN OTHERS.
    DELETE it_konv WHERE kschl = wa_konv-kschl.
    ENDCASE.
    MODIFY it_konv FROM wa_konv TRANSPORTING discounts surcharges.
    CLEAR wa_konv.
    REFRESH wa_konv.
    ENDLOOP.
    As per one of the abap expert who responded to my query is the following.
    DATA : BEGIN OF it_konv OCCURS 0,
    knumv LIKE konv-knumv, "Number of the document condition
    kschl LIKE konv-kschl, "Condition type
    kwert LIKE konv-kwert, "Condition value
    kbetr LIKE konv-kbetr,
    kposn LIKE konv-kposn,
    discounts LIKE konv-kwert,
    surcharges LIKE konv-kwert,
    hkunnr LIKE knvh-hkunnr,
    kunnr LIKE knvh-kunnr,
    END OF it_konv.
    DATA : BEGIN OF wa_konv OCCURS 0,
    kposn LIKE konv-kposn,
    discounts LIKE konv-kwert,
    surcharges LIKE konv-kwert,
    hkunnr LIKE knvh-hkunnr,
    kunnr LIKE knvh-kunnr,
    END OF wa_konv.
    move '1' to it_konv-knumv.
    move 'ZD01' to it_konv-kschl.
    move '1200' to it_konv-kwert.
    move '0010' to it_konv-kposn.
    append it_konv.
    move '2' to it_konv-knumv.
    move 'ZEXP' to it_konv-kschl.
    move '1300' to it_konv-kwert.
    move '0010' to it_konv-kposn.
    append it_konv.
    move '3' to it_konv-knumv.
    move 'ZEXP' to it_konv-kschl.
    move '1400' to it_konv-kwert.
    move '0010' to it_konv-kposn.
    append it_konv.
    LOOP AT it_konv.
    MOVE-CORRESPONDING it_konv to wa_konv.
    CASE IT_konv-kschl.
    WHEN 'ZD01' OR 'ZD02' OR 'ZD03'.
    wa_konv-discounts = IT_konv-kwert.
    WHEN 'ZEXP' OR 'ZEXW' OR 'ZCAF' OR 'ZCAP' OR 'ZCAQ'
    OR 'ZS01' OR 'ZS02' OR 'ZS03'.
    wa_konv-surcharges = IT_konv-kwert.
    ENDCASE.
    COLLECT WA_KONV.
    CLEAR wa_konv.
    ENDLOOP.
    But to try according to the above, i dont have the values for kwert, i know only the condition type (KSCHL). based on this how can i solve my problem
    please clarify
    thanks in advance

    Refer to the suggestion given by Naimesh here Can we modify a sub-total in ALV making use of function GET_GLOBALS_FROM_SLVC_FULLSCR and the method GET_SUBTOTALS. You can see the parameter ep_collect01 refered in case of subtotals. Can you please check ep_collect00 for grand total in your case.
    As said about EP_COLLECT00,here goes a classic example Modify grand total in ALV GRID
    BR
    Keshav
    Edited by: Keshav.T on Sep 21, 2011 9:39 AM

  • Multiple Scopes for the same subnet with Cisco CNR

    I have a requeriment from my internal client that he wants to have  multiple scopes within the same /21  subnet , but he wants to have different scopes for each group of servers ( in the /21 subnet).
    We have 2 Cisco CNR ( I dont know the version they are running because they are managed by an external vendor) but they are in active / standby mode.
    My question is .. it is posible to make the CNR have different scopes (ranges of IP's) for the same subnet ( /21) and assign those based on the client ( I dont know what criteria can be followed .. maybe Mac Address ???).
    I appreciate any help or pointing to the right documentation
    Thank you in advanced

    I don't know that you would want a separate PO print. You can print the same PO print twice to provide a copy for the freight vendor. I think it should be okay as long as it is clear that the PO is with the vendor for the products but there is a condition specifying the freight deal. The second vendor (say the freight vendor) should be okay with this PO as well. I don't remember how the standard SAP PO forms handled the vendor condition but it should be enough I would think. I never came across a separate PO for freight since it is usually an value added service that is an integrated part of shipping goods and the paper-work usually is leveraged from PO, bill-of-lading, etc. SAP will make it difficult if you do need a separate PO since there is no way to use account assignment to material and therefore would need to manually account code and invoice verification, post to a clearing account in FI for re-class to material or charge to internal order with settlement to material or something like this.
    I would just make sure that the PO print makes sense in terms of being able to see the freight charge and maybe the vendor name or something (look at the standard SAP PO form to see what the best practice is).

  • Different LOVs in af:query and af:form for the same VO attribute

    Hi,
    We need to display different LOVs in af:query and af:form for the same attribute in VO.
    Is it possible to use LOV Switcher for this ?
    What condition can we use in LOV Switcher attribute to check if it is View Critearia row or VO row ?

    We have a VO attribute "User" which needs to be displayed as LOV in a Search Panel ( af:query component created using View Critearia ) and in a af:form.
    When this VO attribute is displayed in search panel, in LOV, we need to show all users.
    When this VO attribute "User" is displayed in a form for editing, in LOV, we need to show only active users.
    For this, we created two LOVs "ActiveUsersLOV" ( which shows only active users ) and "AllUsersLOV" ( which shows all users ) on VO attribute "User".
    LOVSwitcher attribute should return "ActiveUsersLOV" if the LOV is displayed in form and "AllUsersLOV" if the LOV is displayed in search panel.

  • Multiple Executions Plans for the same SQL statement

    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.
    Below is the awrsqrpt's output for your reference.
    WORKLOAD REPOSITORY SQL Report
    Snapshot Period Summary
    DB Name         DB Id    Instance     Inst Num Release     RAC Host
    TESTDB          2157605839 TESTDB1               1 10.2.0.3.0  YES testhost1
                  Snap Id      Snap Time      Sessions Curs/Sess
    Begin Snap:     32541 11-Oct-08 21:00:13       248     141.1
      End Snap:     32542 11-Oct-08 21:15:06       245     143.4
       Elapsed:               14.88 (mins)
       DB Time:               12.18 (mins)
    SQL Summary                            DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
                    Elapsed
       SQL Id      Time (ms)
    51szt7b736bmg     25,131
    Module: SQL*Plus
    UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(ACCT_DR_BAL,
    0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND TEST_ACC_NB = ACCT_ACC_NB(+)) WHERE
    TEST_BATCH_DT = (:B1 )
    SQL ID: 51szt7b736bmg                  DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> 1st Capture and Last Capture Snap IDs
       refer to Snapshot IDs witin the snapshot range
    -> UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(AC...
        Plan Hash           Total Elapsed                 1st Capture   Last Capture
    #   Value                    Time(ms)    Executions       Snap ID        Snap ID
    1   2960830398                 25,131             1         32542          32542
    2   3834848140                      0             0         32542          32542
    Plan 1(PHV: 2960830398)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            25,131       25,130.7     3.4
    CPU Time (ms)                                23,270       23,270.2     3.9
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,626,166    2,626,166.0    14.6
    Disk Reads                                      305          305.0     0.3
    Parse Calls                                       1            1.0     0.0
    Rows                                        371,735      371,735.0     N/A
    User I/O Wait Time (ms)                         564            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |                 |       |       |  1110 (100)|          |
    |   1 |  UPDATE                      | TEST            |       |       |            |          |
    |   2 |   TABLE ACCESS FULL          | TEST            |   116K|  2740K|  1110   (2)| 00:00:14 |
    |   3 |   TABLE ACCESS BY INDEX ROWID| ACCT            |     1 |    26 |     5   (0)| 00:00:01 |
    |   4 |    INDEX RANGE SCAN          | ACCT_DT_ACC_IDX |     1 |       |     4   (0)| 00:00:01 |
    Plan 2(PHV: 3834848140)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                                 0            N/A     0.0
    CPU Time (ms)                                     0            N/A     0.0
    Executions                                        0            N/A     N/A
    Buffer Gets                                       0            N/A     0.0
    Disk Reads                                        0            N/A     0.0
    Parse Calls                                       0            N/A     0.0
    Rows                                              0            N/A     N/A
    User I/O Wait Time (ms)                           0            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |              |       |       |     2 (100)|          |
    |   1 |  UPDATE                      | TEST         |       |       |            |          |
    |   2 |   TABLE ACCESS BY INDEX ROWID| TEST         |     1 |    28 |     2   (0)| 00:00:01 |
    |   3 |    INDEX RANGE SCAN          | TEST_DT_IND  |     1 |       |     1   (0)| 00:00:01 |
    |   4 |   TABLE ACCESS BY INDEX ROWID| ACCT         |     1 |    26 |     4   (0)| 00:00:01 |
    |   5 |    INDEX RANGE SCAN          | INDX_ACCT_DT |     1 |       |     3   (0)| 00:00:01 |
    Full SQL Text
    SQL ID       SQL Text
    51szt7b736bm UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL, 0) +
                  NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND PB
                 RN_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 )Your input is highly appreciated.
    Thanks for taking your time in answering my question.
    Regards

    Oracle Lover3 wrote:
    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.If you're using bind variables and you've histograms on your columns which can be created by default in 10g due to the "SIZE AUTO" default "method_opt" parameter of DBMS_STATS.GATHER__STATS it is quite normal that you get different execution plans for the same SQL statement. Depending on the values passed when the statement is hard parsed (this feature is called "bind variable peeking" and enabled by default since 9i) an execution plan is determined and re-used for all further executions of the same "shared" SQL statement.
    If now your statement ages out of the shared pool or is invalidated due to some DDL or statistics gathering activity it will be re-parsed and again the values passed in that particular moment will determine the execution plan. If you have skewed data distribution and a histogram in place that reflects that skewness you might get different execution plans depending on the actual values used.
    Since this "flip-flop" behaviour can sometimes be counter-productive if you're unlucky and the values used to hard parse the statement leading to a plan that is unsuitable for the majority of values used afterwards, 11g introduced the "adaptive" cursor sharing that attempts to detect such a situation and can automatically re-evaluate the execution plan of the statement.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Is it possible to have Different Interval Ranges for the same Doc Type

    Dear All,
    Here is the issue.Is it possible to have different interval ranges for the same document type according to certain condition.Like my client , wants his interval ranges  be divided according to region(which are many)
    Regards,
    Sameer Jalees

    Hello,
    As you know we can only assign one number range for External and one number range group for internal in the sales document type.
    If you want different number ranges based on the regions, then as Jignesh suggested, you need to go for an enhancement.
    Use the exit USEREXIT_NUMBER_RANGE in program MVA45AFZZ, include a Z table with region as a critera and number range group for different numbers based on the regions. Talk to the business and get more details, get the help of ABAP team for technical details.
    Regards,
    SAM

Maybe you are looking for