Subform -Hide depending on a Condition

Hi,
How can we hide a subform depending on a condition?
I mean if my internal table for that entry in initial.It should not display the subform.
Also,
I want to get rid of all outside boxes borders in output and have vertical lines which needs to be ending dynmically?
Can we get it through line from library?
rgds
vara

Hi Vara,
1) How can we hide a subform depending on a condition?
   I mean if my internal table for that entry in initial.It should not display the subform.
In the event "form:ready" of your table subform write the condition like:
if (internaltablesubform.field.rawValue == null)
    subform.presence = "hidden"; (Subform full path which u want to hide)
else
  subform.presence = "visible";
2) I want to get rid of all outside boxes borders in output and have vertical lines which needs to be ending dynmically?
Can we get it through line from library?
If I understood your question correctly, for all of your fields you dont want to have borders like a box but you want to have one vertical line at the end of the each field.
for making your fields with out border you can do the following:
select the field and from the object paletet, go to field tab there you can find the option "Appearance"
there select none.
If you want to get vertical line at the end of the text field: select option "Custom" from the same "Appearance" there you can change the edges individually.
And  for setting dynamically , under Layout option beside Object, there are options called "expand to fit"
for both width and height so you can select  those option which ever is applicable for you.
Hope it should solve the problem.
Regards,
Ravi.D

Similar Messages

  • Hiding text depending on the condition

    Hi All,
    I am new to reports, I want to know how can I hide and show text information depending on the condition....
    Thanks,
    Pavan.

    Then, u should kindly mention it pls to help others and state the version of reports u r using..!
    Regards,
    Abdetu..

  • Hide values for certain condition types in Quotation Saleorder and Invoice

    Hi All,
    I have written code to hide values for certain condition types in LV69AFZZ,
    this works fine in the ITEM LEVEL.
    But for the same condition types, I could not hide the values in the HEADER LEVEL.
    Unless I hide it at header level also, this is useless.
    Please guide me how to do it.
    Thanks & Regards
    Pradeep

    Hi,
    We have been using FORM USEREXIT_FIELD_MODIFICATION of LV69AFZz for item level & FORM USEREXIT_FIELD_MODIFIC_KOPF of LV69AFZZ for hiding heade level conditions.
    I hope this helps,
    Regards
    Raju chiutale.

  • How to do readyonly field depending on some condition.

    Dear All,
    One seeded page in iProc having Table Region. That Table region having Item, Item Description, Quantity, Price, Amount etc....
    I need to do Quantity field as readonly for some Items only..
    Is it possible to do, if it is possible pls suggest how to do it..
    Thanks in Advance,
    Hanimi.

    1. Extend the underlying VO
    2. Create a transient attribute in the VO and set the value to true/false depending on yoru condition
    3. Use spel on the item(using personalization) to enable/disable the item based on the VO Attribute created.
    Refer to: http://oracle.anilpassi.com/spel-in-oa-framework-with-audio-visual-demo.html

  • Show Item depending on two conditions

    Hello,
    I have an item which have to display conditions.
    How can I realize this combined display option?
    The same problem I have for the computation.
    The computation depends on two conditions.
    Is there a possibility to realize this in ApEx?
    Thanks in advance
    Ulrike

    That does work for simple cases, but sometimes I have a more complicated set of conditions. If I'm just checking against data values on whether or not to display something, it's easy using PL/SQL. But I have a situation where I'm deciding whether or not to display something based on data values and whether or not the page is printer-friendly.
    Is there a way (api?) in PL/SQL to get at the values for printer-friendly and other conditions? If so, that would be keen. I've looked in the docs, but haven't found something like that yet. Maybe I'm looking in the wrong place?

  • OSA : Hide row element depending of specific condition

    Hello,
    We are using the BSP OSA, and there is requirement to hide some of the criterion depending on the ee. subgroup and other business criteria. I am aware of the configuration for "Element Access" but it is tied to the roles of the participants. I am not aware of any BADI for this (there is one for column but not for row). I wonder if there are better ways to achieve this than to intervene via modifications to the BSP, HAP_DOCUMENT ? Any ideas, much appreciated. Thank you.
    Regards
    Kir Chern

    Hi Kir Chern,
    Yes exactly but I am looking at it the other way round. Instead of trying to restrict the element based on employee characteristics, why not limit the employee to view only particular elements based on characteristics. I hope I have not confused you, I have understood what you are trying to achieve, let me know if you want more details.
    This would obviously involve hard coding of elements, which could have implications if you are going to create a new version of the template every year for instance.
    Regards,
    Priya.

  • To hide a button in a column field depending on the condition in ALV

    Hai,
    I have a column in ALV with buttons.I need to make that button Visible or invisible based on a condition.
    i have fiels with value x and blank.
    if the value is x i need to make the button visible and viceversa.
    Cheers,
    Madhu.

    Hi,
    I assume when you say that you have a field with value X or blank that you have a internal table with one of the field as mentioned above and also a context node with
    the same structure of the internal table so that you bind the internal table to the node
    and display the same in ALV.
    If my assumptions are right you must proceed as follows.
    1.Create an internal table with the same structure that u had passed for ALV.Add one more column to that table with type wdui_visibility.
    2.Create one more node with the structure of the internal table created above.
    3.Move the coresssponding data from your old internal table to the new internal table.
    4.For the new column of type wdui_visibility fill values by comparing the field with value X or blank.ie. IF value = X wdui_visibility_column-value = '02' .
                        IF value = blank wdui_visibility_column-value = '01' .
    5.Save the changes in the new internal table.
    6.Bind the new internal table to the new node.
    7.Use the new node to display data in ALV.
    8.Create an attribute "alv_table" of type "CL_SALV_WD_CONFIG_TABLE" in the view.
    9.In the wd_init method add the following codes.
    * create an instance of ALV component
      DATA:
        lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage.
    * get ALV component
      DATA:
        lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
    * set cell editor for input fields (~make colum Wt editable)
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column type ref to CL_SALV_WD_COLUMN,
            lr_column_hdr type ref to CL_SALV_WD_COLUMN_HEADER,
            lr_button_1 TYPE REF TO cl_salv_wd_uie_button.
      lr_salv_wd_table_usage = wd_this->wd_cpuse_<Alv component usage name>( ).
      IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
        lr_salv_wd_table_usage->create_component( ).
      ENDIF.
      lr_salv_wd_table = wd_this->wd_cpifc_<Alv component usage name>( ).
      wd_this->alv_table = lr_salv_wd_table->get_model( ).
    lr_column_settings ?= wd_this->alv_table.
    lr_column = lr_column_settings->get_column( '<column name which you want to show
                      as button>' ).
    CREATE OBJECT lr_button_1.
      lr_button_1->set_text( '<some releavnt text>' ).
      lr_button_1->SET_VISIBLE_FIELDNAME('<new column name of type
                         wdui_visibility>').
      lr_column->set_cell_editor( lr_button_1). 
    Hope this helps.
    Thanks,
    G.Jayaprakash

  • Preventing Child Class Dependency when using conditional disable to specify Class in Development Environment

    Hello
    I am developing an application which I would like to execute on both normal and real-time systems using LabVIEW Proffesional Development System 2012 SP1
    To control how the application interacts with the user, I have created a class which defines the type of user-interface behaviour which should allow me to have nice dialog boxes when the system is executing on a windows machine and have no dialog boxes (or other non-Real-Time friendly code) when operating on a real-time target.
    The parent class is the code that is suitable for Real-Time and the child class is the one with dialog boxes.
    To control which class is loaded, I have a conditional disable structure. This will work fine when the application is built into a executable or real-time executable but the problem arises when I want to use the code during development on the real-time target.
    I find that with the application under a real-time target (RT PXI), the correct conditional-disable case is activated so the parent class is used, but the child classes are also listed under the dependancies - I pressume this is because they exist on the block diagram in the disabled case of the conditional disable diagram.
    This means that I cannot deploy the code to the Real-Time target as it is unhappy with the child class code - even though this will never be run.
    To save posting my real project, I have created an example with a Parent and Child class and a Conditional Disable Flag called "CLASS" to demonstrate the problem.
    If you run Test.vi you will see that the Child class still gets locked (i.e. is a dependancy) during execution even though it is not called.
    So - basically my question is: Is there anything I can do about this or will I just have to do-away with the conditional disable and just put the correct Class constant on the block diagram during testing?
    Thanks in advance
    John.
    Solved!
    Go to Solution.
    Attachments:
    Example Proj.zip ‏18 KB

    I feel your pain.  I ran into a similar problem a short time back.
    Apparently Official NI stance is that you need to put a conditional Disable structure IN EVERY ONE OF YOUR CLASS VIs.  In the Windows VIs, you simply have an empty conditional disable case with the windows code in an appropriate other case and vise versa on the RT.
    I too would much prefer the method you describe...
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • How to hide saved report filter condition

    Hello,
    I create an IR report and pre-create some saved report.
    I would like to hide filter condition when end-user select one report on the list so that he/she cannot see and delete the condition.
    Is there anyway to do that?
    Thank you.

    Another approach:
    Open view CRM_WORKAREAHDR/WorkAreaHeader and change the configuration. There is a button in the bar named "Attributes" (probably hidden under MORE).
    Once in there in edit mode substitute the content of attribute "UI_COMPONENT_3". It should be
    Window=CRM_ALLSEARCHES.CRM_ALLSEARCHES/LauncherWindow;horizontalAlignment=right;
    put there a
    Width=0px;
    The other way using business role is fine as well.
    cheers Carsten

  • Disable or Hide or INACTIVE the CONDITIONS tab in ME22N(Change Pur.Order)

    Hello,
    We want to hide or Inactivate or greyed out all fields of CONDITIONS tab at 'Item Detail Level'  while editing or changing Purchase Order(ME22N) for particular PO type.
    I am not able to find the particular BADI or Enhancement or SCRREN EXITS, so that I can make greyed out all the fields of CONDITIONS tab at 'Item Detail' level while editing or changing Pur.Order(ME22N)
    Regards,
    Mahesh

    Hi Mahesh,
    [http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    [Hide Conditions|Hide conditions in PO;
    Create a transaction variant and try.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 9, 2011 9:30 AM
    Edited by: madhurao123 on Aug 9, 2011 9:34 AM

  • Generating number depending on the condition

    Dear All,
    I have table with following structure.
    formno          number(5)
    name          Varchar2(100)
    centreno     number(2)
    rollno          Varchar2(10)
    I want to generate rollno depending on the following condition.
    1. Roll number should be generated based on the centreno
    2. Roll number should be generated based on the alphabets but not in a sqeuence.
    For eg.
    my data is like
    form no     name     centreno     rollno
    200           A1      01           1
    206           A2      01           4          
    502           A3      02           6
    234           A4      03           10
    400           B1      01           2               
    501           B2      02           7
    788           C1      01 3
    100           C2 02           8
    343           C3      01           5
    130           C4      02           9
    232           C5      03           11
    i.e. first I need to sort names alphabetically by centreno. But then I need generate number in a sequence that first A, B, C...Z will be generated. Then it starts again from A, B, C...Z for that centre. Then it will run same process for other centres.
    Any ideas how to do this?
    Regards
    Trusha
    Edited by: trusha on Oct 10, 2008 3:53 PM

    Something like .. (for given sample data)
    SQL> select * from test;
            C1 C2 C3
           200 A1 01
           206 A2 01
           502 A3 02
           234 A4 03
           400 B1 01
           501 B2 02
           788 C1 01
           100 C2 02
           343 C3 01
           130 C4 02
           232 C5 03
    11 rows selected.
    SQL> select c1,c2,c3,
      2    row_number() over(order by c3,rn,c2) regno
      3  from(
      4  select c1,c2,c3,
      5   row_number() over(partition by c3,substr(c2,1,1) order by c2) rn
      6  from test)
      7  order by c2;
            C1 C2 C3      REGNO
           200 A1 01          1
           206 A2 01          4
           502 A3 02          6
           234 A4 03         10
           400 B1 01          2
           501 B2 02          7
           788 C1 01          3
           100 C2 02          8
           343 C3 01          5
           130 C4 02          9
           232 C5 03         11
    11 rows selected.
    Edited by: jeneesh on Oct 10, 2008 4:51 PM
    corrected                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Hide column based on condition on other column in table

    hi,
    am using BIP 10.1.3.2 to generate reports.In the template i need to hide one column based on condition on other.am using SQL query as my data source type.can anybody help me ?

    Use <?if:?> condition in the RTF, but its mainly for the rows not column. You can work around this by handeling in backend. Or take two separate tables, one with the column which you want to hide and another table without that column and before calling that table use IF condition.
    Regards,
    Amit D
    Persistent Systems Ltd.

  • How to save a reference to a class depending on a conditional statement...

    Hi!
    I'm rather new to Java, but I'm already in the process of creating a rather big application (big, from my point of view) :).
    I have a main class, in which I find out what OS the application is running on (utilizing System.getProperty("os.name")). If the string corresponds to Windows (I'm using regular expressions to match this), I create an instance of another class called WindowsPlatform.java. And vice versa for Unix.
    My problem is that I'm not really sure how to save a reference to the Unix or Windows platform class, as the program conditionally decides, depending on the platform, which class to invoke.
    The error Java's giving me is:
    MainClass.java:9 cannot find symbol
    symbol  : method sayHi()
    location: class Platform
            platform.sayHi();
                    ^
    1 errorWhat I want is to have the sayHi() method invoked from whatever class (UnixPlatform or WindowsPlatform) that was earlier in the program used as argument for the setPlatform() method in Initializer.java.
    This is the the code involved (class names have been changed to easier reflect their purpose):
    ### MainClass.java ###
    public class MainClass
        public static void main(String[] args) {
            SettingsClass settings = new SettingsClass();
         Initializer init = new Initializer(settings);
         Platform platform = settings.getPlatform();
         platform.sayHi();
    ### SettingsClass.java ###
    public class SettingsClass
        private Platform platform;
        public void setPlatform(Platform _platform) {
            platform = _platform;
        public Platform getPlatform() {
            return platform;
    ### Initializer.java ###
    public class Initializer
        private SettingsClass settings;
        private RegExpr re;
        private String os;
        public Initializer(SettingsClass _settings) {
            settings = _settings;
            re = new RegExpr();
         os = System.getProperty("os.name");
         if (re.find(".*win.*", os, true)) {
                settings.setPlatform(new WindowsPlatform());
         } else {
                settings.setPlatform(new UnixPlatform());
    ### Platform.java ###
    public class Platform
        /* Some generic functions applicable to
         * all platforms
    ### RegExpr.java ###
    import java.util.regex.*;
    public class RegExpr
        private String regExpr;
        private String str;
        private boolean iCase;
        public boolean find(String _regExpr, String _str, boolean _iCase) {
            this.regExpr = _regExpr;
            this.str = _str;
         this.iCase = _iCase;
            Pattern pat;
         Matcher matcher;
         if (iCase) {
                pat = Pattern.compile(regExpr, Pattern.CASE_INSENSITIVE);
         } else {
                pat = Pattern.compile(regExpr);
         matcher = pat.matcher(str);
         if (matcher.find()) {
             return true;
         } else {
                return false;
    ### UnixPlatform.java ###
    public class UnixPlatform extends Platform
        public void sayHi() {
         System.out.println("Hi, I'm Unix!");
    ### WindowsPlatform.java ###
    public class WindowsPlatform extends Platform
        public void sayHi() {
         System.out.println("Hi, I'm Windows!");
    }I would greatly appreciate any help I could get on this issue!
    Thanks for your time!
    Regards, ridgero

    Dear Ridgero, your method must exist in your Platform class. Now you can only call this method from UnixPlatform or WindowsPlatform. The two easiest ways to resolv this would be something like:
    abstract class Platform
        /* Some generic functions applicable to
         * all platforms
        abstract void sayHi();
    }or this:
    public class Platform
        /* Some generic functions applicable to
         * all platforms
        abstract void sayHi() {}
    }Good luck.

  • How to hide row column on condition in report

    Hello everyone,
    Can its is possible to hide a Column of a row in report.
    For one customer i am having Opening Balance n Closing Balance data.....i m breaking my report on customer wise (First Column). So I can see Customer only one time not 5..... now i want to see Opening Balance Data only in first row n Closing Balance Data only in last row.
    How can i achieve this, pls help!
    regards,
    UKJ

    Hi,
    I have no idea but try this:SELECT  SEGMENT1,
            VENDOR_NAME,
            VENDOR_SITE_CODE,
            INVOICE_NUMBER,
            INVOICE_DATE,
            INVOICE_TYPE_LOOKUP_CODE,
            PAY_DATE,
            DESCRIPTION,
            CHECK_DATE,
            CHECK_NUMBER,
            VOUCHER_NUM,
            SUM(debit) debit,
            null credit,
            op_bal,
            cl_bal
    from (
    SELECT  SEGMENT1,
            VENDOR_NAME,
            VENDOR_SITE_CODE,
            INVOICE_NUMBER,
            INVOICE_DATE,
            INVOICE_TYPE_LOOKUP_CODE,
            PAY_DATE,
            DESCRIPTION,
            CHECK_DATE,
            CHECK_NUMBER,
            VOUCHER_NUM,
            SUM(debit) debit,
            null credit,
            op_bal,
            cl_bal
            row_number () over (partition by VENDOR_NAME order by INVOICE_DATE) rnk
    from (
    SELECT  SEGMENT1,
            VENDOR_NAME,
            VENDOR_SITE_CODE,
            INVOICE_NUMBER,
            INVOICE_DATE,
            INVOICE_TYPE_LOOKUP_CODE,
            PAY_DATE,
            DESCRIPTION,
            CHECK_DATE,
            CHECK_NUMBER,
            VOUCHER_NUM,
            SUM(debit) debit,
            null credit,
            op_bal,
            cl_bal   
        FROM (   
    SELECT POV.SEGMENT1,
           POV.VENDOR_NAME,
           pov.vendor_id,
           POVS.VENDOR_SITE_CODE,
           hou.SET_OF_BOOKS_ID,
           API.INVOICE_NUM INVOICE_NUMBER,
           API.INVOICE_DATE,
           API.INVOICE_TYPE_LOOKUP_CODE,
           APPL.ACCOUNTING_DATE PAY_DATE,
           API.DESCRIPTION DESCRIPTION,
           TO_CHAR(APC.CHECK_DATE, 'dd-MON-yyyy') CHECK_DATE,
           APC.CHECK_NUMBER,
           APC.DOC_SEQUENCE_VALUE VOUCHER_NUM,
           API.INVOICE_AMOUNT,appl.amount,
           DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',API.INVOICE_AMOUNT ,appl.amount) debit,
           null credit,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cr_amt,
           jai_ap_rpt_apcr_pkg.compute_debit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) dr_amt,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_FROM_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_FROM_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) op_bal,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cl_bal
        FROM AP_INVOICES_ALL API,
             AP_INVOICE_LINES_ALL APIL,
             AP_INVOICE_DISTRIBUTIONS_ALL APD,
             PO_VENDORS POV,
             PO_VENDOR_SITES_ALL POVS,
             AP_INVOICE_PAYMENTS_ALL APPL,
             AP_CHECKS_ALL APC,
             hr_operating_units hou
       WHERE API.INVOICE_ID = APIL.INVOICE_ID
         AND API.INVOICE_ID = APD.INVOICE_ID
         AND API.VENDOR_ID = POV.VENDOR_ID
         AND API.VENDOR_SITE_ID = POVS.VENDOR_SITE_ID
         AND API.INVOICE_ID = APPL.INVOICE_ID
         AND APPL.CHECK_ID = APC.CHECK_ID
         AND APIL.line_number = apd.invoice_line_number
         AND APD.match_status_flag='A'
         AND API.org_id=hou.ORGANIZATION_ID
         AND APIL.LINE_TYPE_LOOKUP_CODE='ITEM'
         AND api.org_id = nvl(:p22_org_id,api.org_id)
         AND TRUNC(API.INVOICE_DATE) BETWEEN NVL (:P22_FROM_DATE,API.INVOICE_DATE)AND NVL(:P22_TO_DATE,API.INVOICE_DATE)
    GROUP BY SEGMENT1,
             VENDOR_NAME,
             VENDOR_SITE_CODE,
             INVOICE_NUMBER,
             INVOICE_DATE,
             INVOICE_TYPE_LOOKUP_CODE,
             PAY_DATE,
             DESCRIPTION,
             CHECK_DATE,
             CHECK_NUMBER,
             VOUCHER_NUM,
             op_bal,
             cl_bal
    UNION
    SELECT SEGMENT1,
           VENDOR_NAME,
           VENDOR_SITE_CODE,
           INVOICE_NUMBER,
           INVOICE_DATE,
           INVOICE_TYPE_LOOKUP_CODE,
           PAY_DATE,
           DESCRIPTION,
           CHECK_DATE,
           CHECK_NUMBER,
           VOUCHER_NUM,
           debit,
           SUM(credit) credit,       
           op_bal,
           cl_bal
         FROM (  
    SELECT POV.SEGMENT1,
           POV.VENDOR_NAME,
           POVS.VENDOR_SITE_CODE,
           API.INVOICE_NUM INVOICE_NUMBER,
           API.INVOICE_DATE,
           API.INVOICE_TYPE_LOOKUP_CODE,
           NULL PAY_DATE,
           API.DESCRIPTION DESCRIPTION,
           NULL CHECK_DATE,
           NULL CHECK_NUMBER,
           NULL VOUCHER_NUM,
           DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',NULL ,abs(API.INVOICE_AMOUNT))  credit,
           DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',abs(API.INVOICE_AMOUNT))  DEBIT,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) op_bal,
           jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
           jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cl_bal
       FROM AP_INVOICES_ALL API,
            AP_INVOICE_LINES_ALL APIL,
            AP_INVOICE_DISTRIBUTIONS_ALL APD,
            PO_VENDORS POV,
            PO_VENDOR_SITES_ALL POVS,
            hr_operating_units hou
       WHERE 1=1
        and api.org_id=apil.org_id
        and API.INVOICE_ID = APIL.INVOICE_ID
        AND API.INVOICE_ID = APD.INVOICE_ID
        AND API.VENDOR_ID = POV.VENDOR_ID
        AND API.VENDOR_SITE_ID = POVS.VENDOR_SITE_ID
        and api.org_id =apil.org_id
        and api.org_id=hou.ORGANIZATION_ID
        and apil.line_number = apd.invoice_line_number
        AND apd.match_status_flag='A'
        and apil.LINE_TYPE_LOOKUP_CODE='ITEM'      
        AND api.org_id = nvl(:p22_org_id,api.org_id)
        AND TRUNC(APD.ACCOUNTING_DATE) BETWEEN NVL (:P22_FROM_DATE,APD.ACCOUNTING_DATE) AND NVL (:P22_TO_DATE,APD.ACCOUNTING_DATE)
    GROUP BY SEGMENT1,
             VENDOR_NAME,
             VENDOR_SITE_CODE,
             INVOICE_NUMBER,
             INVOICE_DATE,
             INVOICE_TYPE_LOOKUP_CODE,
             PAY_DATE,
             DEBIT,
             CREDIT,
             DESCRIPTION,
             CHECK_DATE,
             CHECK_NUMBER,
             VOUCHER_NUM,
             op_bal,
             cl_bal)
    where rnk = 1If it doesn't work as required then alter the line row_number () over (partition by VENDOR_NAME order by INVOICE_DATE) rnk
    I've just guessed that you can find a unique record (a persons account) by partitioning by the vendor_name at that point but perhaps you need other things.
    Mike

  • Condition should be required or ignored depending on other condition

    Hello,
    I have two condition types in my pricing procedure that I need to control.
    If condition XXXX also condition YYYY should become mandatory.  If Condition XXXX does not exist, the condition YYYY should be excluded.
    I decided to enter an exclusion indicator on XXXX condition (KZNEP = F) and assign the following routine to the condition YYYY in the pricing procedure.  (Refer to SAP Note 836243) 
    Also I marked condition YESE as mandatory in the P.Proced.
    With this routine if condition XXXX exists and there is no valid condition record for YYYY, the system is issuing the message that YYYY is mandatory.
    My problem is that the document is not becoming incomplete.
    Can you advise?  Thank you.
    FS
    FORM KOBED_919.
    *{   INSERT         S08K941365                                        1
      SY-SUBRC = 4.
      IF KOMP-KPOSN NE 0.
        CHECK: KOMP-PRSFD = 'X'.
        CHECK: KOMP-KZNEP eq 'F'.
        CHECK: KOMK-VBTYP NA VBTYP_FKIV.
      ENDIF.
      SY-SUBRC = 0.
      CLEAR KOMP-KZNEP.
    *}   INSERT
    ENDFORM.
    *{   INSERT         S08K941365                                        1
    *}   INSERT
    FORM KOBEV_919.
    *{   INSERT         S08K941365                                        1
    SY-SUBRC = 0.
    *}   INSERT
    ENDFORM.

    Hi Fatima,
    Try to check in your subroutines the value for XKOMV (it is an internal table with the conditions that you have until this condicion this moment in pricing procedure). Set a breakpoint and see it in the debugging session.
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • 'davviss.jeff.cellexporter' exception when running .rpt in JRC

    <p>Hi,</p><p> </p><p>Has anyone seen this error?  It doesn't seem to have effect but makes for an ugly  stack trace.</p><p> We're using CRXIR2 jrc.  <br /></p><p>Here's  a similar forum post: </p><p>http://support.businessobjects.com/forums/message.a

  • Flash to Air

    Hello guys, I'm trying to convert a Flash Project into an AIR application and have some serious problems. The Flash Project uses actionscript 3 classes in order to transform graphical objects placed at the stage. These transactions are realised using

  • How to connect to Novell Ldap

    Hi, i tried to connect to our ldap server via novell's jdbc:ldap bridge. but this caused a classDefNotFoundError in the runtime version. May you explain how i have to build an anonymous connection to a novell ldap server via JNDI? there's no ssl avai

  • Control instance cretion

    Hello experts, I have a scenario here. I have a singleton bpel process which listens to a JMS queue. The singelton process picks messages from queue and processes and if there are any errors in the processing its taken over the Fault management frame

  • Accept call with keyboard

    On a Q10 I need to answer calls with at least one key not with a touch gesture. How can I do this?