Output on Condition

I have in two columns as Operation, Station.
Input
Operation  Station
10              a
10              1
10              2       
11              1
11              2
12              1
12              3
14              2
15              1
15              2
15              0I want the Output as
if Operation is 10 then 'a' else
All Opearation and with '1' station so output will be
10    a
11    1
12    1
15    1here not taken Operation '14' beacuse it does not have station '1'
how to make it in OBIEE answers.
Cheers
Nawneet

Just filter by station = 1 and in the station you can use like case when operation=10 then 'a' else 1 end.
else.
unioning the second request with first. in second you can have filter for station as station=1. and in first you can have like operation=10 and station=a
Edited by: kart on Jun 16, 2010 3:51 PM

Similar Messages

  • PDF output with conditional text

    I need to create two PDFs from my project, each displaying a different conditional build expression, but I can't figure out how to do it. Selecting PDF Output doesn't show options like, for example, WebHelp does, unless I've missed something in the setup. Is this possible? My reviewers want to review hardcopies although I've tried to convince them that they should look at it as it will be displayed online.

    Hi there
    See if the video linked below helps.
    Click here
    Cheers... Rick

  • Change language of output type in output type condition?

    Hey Team ABAP,
    subject is MM output type determination for PO.
    Standard finds his customized output type and sets communication language of supplier as output type language.
    I need to somehow change that, as we dont want to print our PO´s in supplier language but in logon language.
    I didnt found a way to customize it in a way that it determines the output type with logon language. So i thought: "well, lets do it in a condition then".
    I coded a new condition and set that condition in the OT scheme for desired OT.
    Problem is that manipulating XNAST[] at this point doesnt really make any impact. copndition runs in main program SAPLV61B which is actually the main program for messaging, so i´m at the correct nast and dirty assigns cant help me either.
    I guess my problem is cause SPRAS is actually a key field of NAST respective XNAST then.
    Besides, i cant just goto the driver program and set nast-spras = sy-langu there, as we want to make use of the language of the output type.
    What i want is: output type gets determined in logon language, but when user decides to change the language it should take effect.
    Any ideas?

    well one more addition to this:
    Setting that checkbox does what i want, but only language wise.
    Setting it also prevents you from beeing able to assign a partner to that output type which again is bad.
    So now i end up having a problem without the checkbox and as well with the checkbox.
    Just wanted to let you know... beeing on my way to modify FM messaging then.

  • ERROR IN OUTPUT WITH  CONDITIONS IN SMARTFORM

    I have   two conditions in smartform.
    if i_final-konrth NE g_temp9.
       i_final-ssign eq g_temp10.
    then we need to print text1 in the output. There are no program lines in the  text.
    g_temp9 and g_temp10 are passed from the program. text1 is not getting outputted. Could anybody help in this issue ?

    hI,
        i have written break username in program lines but the cursor is not stopping. please tell me why

  • Restirct Printing the SAP Script output on condition basis

    Hello all,
    We are printing the form output through VF31 and when user selects a document, it is getting printed immediately as ITCPO-TDIMMED and ITCPO-TDDELETE are set.
    But we have to enhance the functionality in such a way that, when a particular condition is satisfied in the print program,  we have to generate a PDF file instead of printing it directly.
    How can this is be achieved?
    I have gone through SAP Note 181571 where in we need to set the device name to NULL.
    Is this the only solution or is there any other way to achieve this?
    Thanks in advance,
    Chandra.

    Hello
    Not aware of another option other than if you do not want to output text from Smart Forms und SAP Interactive
    Forms by Adobe or keep the print data, create the spool request without immediate output and execute report RSPO1041 daily.
    Regards.

  • Avoid Creating a Blank Page in the PDF Output for conditional request

    Hello BI Masters
    I have a Conditional request on my Last page of the data it checks the number of rows in the first page then it prints the excess rows in the last page and everything is working fine but when i use the conditional request its generating a blank page at the end of the report and i doant want to display balnk page
    My Conditinal format is like this
    <?if:number(SEC3_COUNT)>2?><?if:number(SEC4_COUNT)>2?>
    <?if:number(SEC5_COUNT)>2?><?if:number(SEC6_COUNT)>8?>
    <?initial-page-number:”1”?>
    Form FDA 1572 – Statement of Investigator Continued
    Protocol: <?SEC7_NAME?> <?SEC7_TITLE?>      
    Investigator(s): <?for-each:GET_SECTION_1_DETAILS_ROW?><?SEC1_FULL_NAME?><?end for-each?>
    <?end if?><?end if?>
    <?end if?><?end if?>
    I dont want the Balnk Page to be Displayed , Please help me out
    ~Srix

    Hi Everyone ,
    I have faced the same problem,The first if condition may not effect ,If any if condition immidiately following the for loop then it will crates the problem.
    -----------------May be your problem because of this---------------------------------
    | <?FOR LOOP ?> <?IF CONDITION?><?END FOR EACH?>|
    SOLUTION :<?FOR LOOP?><?IF @SECTION:CONDITION?>?>
    <?END FOR EACH?>|

  • Condition-Dependent Output not processed

    Hello,
    I have configured conditions for output for purchase order documents (BUS2201) in the following path in SPRO > SAP Supplier Relationship Management > Cross-Application Basic Settings > Set Output Actions and Output Format > Condition-Dependent Document Output.
    The purpose for this is to check the purchase order status prior to sending out the PO as to ensure that only successfully replicated POu2019s are sent to suppliers.  When I create a PO that passes the conditions (iow the conditions are True), the output is generated in a Not Processed status.  I have to now process the output manually or by running program RSPPFPROCESS.  Once processed, output is successfully sent. 
    Note that the Time Of Processing setting is set as  u201CProcessing when saving documentu201D.  I would expect the output to be processed automatically by the system, but it is not.
    If I create a purchase order that does not pass the condition (iow the conditions are false) an output is also generated with a Not Processed status, but I am unable to process it due to the conditions that are not met.
    Please advise why the output that passes the condition is not processed automatically.
    Kind Regards
    Rene

    Hi, If you want to work with Condition-Dependent PO Output, you have
    to set the conditions for output in Define action for Purchase order
    output. Under Action determination and Action summarization you can
    choose from different option.  Also clean-up customizing inconsistencies using transaction SPPFCADM and adjust to determination technology  "Determination Using Conditions" to retest. Check note 564826 which may be helpful.
    Best Regards
    Lauren

  • Output Condition Reords

    Hi All,
    Can you please suggest me how can i download all output condition records for Sales Output types and Billing Output Types?
    Thanks
    VEER

    Hi Veer
    If you want to download the output condition records then go to VV12 (sales output type condition records) and give the output type then go to environment->click on download to file.In the same way for VV22(delivery output type condition records) and VV32(billing output condition records).
    Regards
    Srinath

  • Output condition type

    I am trying to create Output condition type in MN04 when i give the condition zneu
    and click on create with template , it gives me an error,  "Condition type Zneu is not defined" how and where i need to define the conditions.
    regards
    Noel

    Hi,
    Please check as below
    1. Condition Table
    SPRO > Material Management-> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    Ex:
    EF---> ZNEU
    Select “ZNEU” and double click on “Mail title and texts” and go to
    EN- New Purchase Order Print Out,
    Select “ZNEU” again and double click on “Processing routines,
    Select “ZNEU” again and double click on “Partner Roles
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    BR
    Diwakar
    reward if useful

  • Condition Dependent PO output

    Hi Friends,
    I have maintained the PO output condition as 'Processing using Selection Report' in
    (IMG): SRM Server -> Cross-Application Basic Settings -> Set Output Actions and Output Format->Define Actions for Purchase Order Output.
    In (IMG): SRM Server -> Cross-Application Basic Settings -> Set Output Actions and Output Format->Condition-Dependent Purchase Order Output, I have maintained the
    Processing Time as 'Processing when saving the document' for e-mail output.
    But currently my system is not taking the Processing time ''Processing when saving the document' which I maintained in Condition Dependent PO output. It is taking the
    value 'Processing using Selection Report' which I maintained in Define Actions for Purchase Order Output.
    So when my PO is ordered the output status will be "Not Processed' at first and then I have to manually process it or run the selection report to process it.
    I want the Po output to be "Successfully Procssed" immediately after the PO is ordered with my current settings. Is that possible? Kindly help me with this issue.
    Thanks in Advance...
    Best Regards,
    Vidya

    Hi,
    Pls implement the badi "BADI BBP_OUTPUT_CHANGE_SF".
    For sample code/pointers,see the foll links;
    Re: How to change default smartform triggered while printing for shopping cart
    Re: How to change default smartform triggered while printing for shopping cart
    Re: Smartform display
    Re: Add a Printer ?  -> LP01
    Re: Condition Dependent Document Output
    Re: Add a Printer ?  -> LP01
    sending Smart form to Printer  in SRM
    Re: SRM PO's to be printed out with the PO
    BR,
    Disha.

  • CONDITION TECHNIQUE -  Output Determination

    Hi,
         I have a billing document having document type ZSTP (Stock transfer posting). There is one condition record for this billing type in output type(Condition type) and after selecting this condition record I pressed COMMUNICATION button on the application tool bar,in the new screen I can see some output device(printer) say "epson_9" is there. My question is wht is the purpose of maintaining condition record for this billing type ZSTP and a printer,anyhow v get the default output device(printer) say "epson_2" which v set in SU3 tcode. And this condition type is attached to this billing type in SAP IMG -> Sales and distrubution -> Basic function -> output control -> Output Determination -> Output Determination using CT -> Output Determination for Billing -> Asign Output Determination Procedures.
    Through which printer we get to print this document either epson_2 OR epson_9. if so,plz tell reason for that....
    I am a bit confused with this output determination using CT...Awaiting your replays
    Helpful answers will be rewarded.
    Thanks & Regards,
    V.Raghavender.

    Hi Mohan,
                   Thanks a lot for your reply. As you are telling that, if we maintain condition record, system will create output document after creation of the billing document.
    May I know in which transaction code I can see that created output document ?
    We can also maintain printer in the billing document itself,like after opening the required billing document, in the menu bar - GOTO --> HEADER --> OUTPUT, by giving the condition type,selecting that line and pressing Communication button on the application tool bar for maintaining printer.
    Please tell what is the difference in maintaining condition record and directly maintaining by through the menu bar - GOTO --> HEADER --> OUTPUT ??? & what about the USER default printer in SU3
    I am online at raghavendervit at gmail.com.
    Helpful answers will rewarded
    Thanks & Regards,
    V.Raghavender
    Technical Consultant

  • IDoc output type not getting configured in IDoc-File scenario

    Hello
    I am having IDoc to file scenario where I want to post Delivery Document to legacy system. For this I have configured following EDI configuration for Delivery through NACE transaction
    1] Created output type
    2] Created partner function as EDI LS for this output type
    3] Configured RSNASTED as Processing Routines for output type
    4] Included this output type in the Header output procedure
    5] Configured XI system as the partner in partner profile with appropriate Message control
    Still when I attempt to include this output type in the Delivery it gives me "Output for partner could not be configured". The detail message says "In Customizing, the 'CannotBeChanged' indicator has been set for output type".
    I checked in SPRO but could not find such flag.
    Does anyone had came across such output type configuration.
    Thanks in advance.
    I know this question might be not appropriate in XI forum as it comes under EDI but it has become necessary for XI profs -:)
    Regards
    Rajeev

    Hi,
    Please check the following
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    Copy NEU to ZNEU or YNEU
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type ZNEU or YNEU.
    G.Ganesh Kumar

  • Purchase Order and GR document Output Determination and creating own logo o

    Can anyone let me know the process of output determination of PO and GR documents.
    Also let me know the way to incorporate my own logo on the documents

    Hi sudip
    For the logo on documents, you have to take help of ABAP ppl.
    Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select: 
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    *4. Message Determination Schemas*
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
    Output of GR
    After setting table, access sequence and output type for GR,run MB02 transaction, enter material document number. Double click one line item and select messages. Separate screen will be opened to configure outputs. Give the required fields and save the document. 
    Now Run MB90, you can take printout. Output Type: WE03 or WE01 or WE02

  • Output type is not getting triggered for ship to party in shippment output

    Hi,
    we have maintained output determination procedure for shipments. It was working fine.
    We have just added new condition table to access sequence, and maintained the condition records also for condition type ZABC. I have checked in NACE, Application V7, I am able to find the condition type. checked in VV73, condition records displayed. But in VT02N/VT03N, we are unable to get print for  the output type.
    Why this is happening? we are able to see the procedure, condition type, access sequence, condition records in place ...why condition type ZABC is not getting triggered in the shipment output.
    Please advise and let me know if you need more details....thanks in advance.
    Thanks,
    SS

    Hi Noel,
    Thanks for your time and reply.
    We have output determination procedure for shipments, condition type ZABC, Access sequence ZABC, Condition tables 550,600,650,700 already maintained. output is working fine.we have a new requirement and created new condition table 700 with the fields" Ship to party and transportation planing point "(Condition table 700 ). we assigned the condition table 700 to access sequence ZABC. Condition type  ZABC already placed in Output determination procedure.
    We test the output, new condition record is not triggering in the output, even in output determination analysis also, we are unable to see the record 700 for the condition type ZABC. we are not sure what is the reason for the condition table that  is not picking up ? Why condition type ZABC with condition record 700 not visible in output determination analysis.
    I have checked condition records, output determination procedure. Please advise and let me know you need more details.
    Thanks,
    SS

  • Enable and Disable Pricing Condition Type thru Routine in Tcode: VOFM

    Hi
    I have a scenario while creating a new sales order using Tcode: VA01. The conditions at line item are as follows:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--8.000%----1.31
    Now the above case, my requirement is Condition Type ZBS1 should be displayed or calculated only when first condition type i.e. ZBR5 has amount more than 8.000%.
    In case it is less than 8.000%, the Condition Type ZBS1 should be ZERO or (would be better if not displayed).
    What i have tried till now is, created a new Routine in VOFM but after creating a new routine, i am unable to check the Amount fo Condition Type ZBR5 at runtime, as the Internal Table : XKOMV holds the details of Header data only, whereas my requirement is of Conditions at Line Item.
    Inputs on this will be helpful.
    Regards
    Masoom
    Edited by: Masoom_Infosys on Oct 3, 2011 2:24 PM

    Hi Naimesh
    Apology, i missed this point. I have alredy tried what you have suggested. I made a Condition Value and change value of XKWERT. The output of this change was:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--8.000%----0.00
    If you observe above, the Condition Value is ZERO but the Amount remains as it is , that is 8.000%. In the code, i have tried to change the value of XKOMV-KBETR to 0.00, but still the output remains as:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--8.000%----0.00
    Could you suggest some other way so that the output becomes:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--0.000%----0.00
    Regards
    Masoom

Maybe you are looking for