OMBEXPORT following some conditions

Hello,
Does everybody know how it's possible to test in a tcl/OMB script if the name of an oracle module is equal to a special name or not and then take a different action in these two cases ?
I tried like this but it gives me a syntax error :
puts "Connecting to ${p_owb_repository} repository"
OMBCONNECT ${p_owb_user}/${p_owb_user_password}@${p_owb_host}:${p_owb_port}:${p_owb_service} USE REPOSITORY '${p_owb_repository}'
# Change the context to the project
puts "Change the context to the project ${p_owb_project}"
OMBCC '/${p_owb_project}'
puts "Context changed to project ${p_owb_project}"
# Export of the MDL Files
# Oracle Modules
foreach module [OMBLIST ORACLE_MODULES] {
if ${module} != 'U_\[0123456789\]*' {
puts "Exporting ${module} module to MDL file"
OMBEXPORT MDL_FILE '${p_mdl_path}${module}.mdl' FROM PROJECT '${p_owb_project}' COMPONENTS (ORACLE_MODULE '${module}') OUTPUT LOG TO '{p_mdl_path}${module}.log'
Thanks in advance,
Florent

I found it. Thanks anyway.
For those who are interessted :
puts "Connecting to ${p_owb_repository} repository"
OMBCONNECT ${p_owb_user}/${p_owb_user_password}@${p_owb_host}:${p_owb_port}:${p_owb_service} USE REPOSITORY '${p_owb_repository}'
# Change the context to the project
puts "Changing the context to the project ${p_owb_project}"
OMBCC '/${p_owb_project}'
puts " > Context changed to project ${p_owb_project}"
# Export of the MDL Files
# Oracle Modules
foreach module [OMBLIST ORACLE_MODULES] {
if { [regexp "U_\[0-9\]*" ${module}] } {
puts "Exporting ${module} module to MDL file"
OMBEXPORT MDL_FILE '${p_mdl_path}${module}.mdl' FROM PROJECT '${p_owb_project}' COMPONENTS (ORACLE_MODULE '${module}') OUTPUT LOG TO '{p_mdl_path}${module}.log'
}

Similar Messages

  • How to dynamically add/remove a button from the ribbon based on some condition? (Ribbon XML)

    Hi,
    I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
    Invalidate or
    InvalidateControl methods of the
    IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
    You will find the following articles in MSDN helpful:
    Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
    Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
    To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • Duplicate Mailman postings, mailman unpickling error in some conditions

    After applying the most recent Security Update to our Mac OS X Server 10.4.10 installation, we are encountering the following two problems:
    1) Each message sent to any of our Mailman-based e-mail lists appears to be sent in duplicate to each member of the list
    2) Under some conditions we encounter an "unpickling error" that from Googling around would appear to be a python error, as follows:
    Aug 03 01:22:25 2007 (7442) Uncaught runner exception: invalid load key, 'm'.
    Aug 03 01:22:25 2007 (7442) Traceback (most recent call last):
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
    self._onefile(msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
    File "/usr/share/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
    File "/usr/share/mailman/Mailman/Handlers/Moderate.py", line 109, in process
    Hold.holdforapproval(mlist, msg, msgdata, Hold.NonMemberPost)
    File "/usr/share/mailman/Mailman/Handlers/Hold.py", line 214, in holdforapproval
    id = mlist.HoldMessage(msg, reason, msgdata)
    File "/usr/share/mailman/Mailman/ListAdmin.py", line 178, in HoldMessage
    self.__opendb()
    File "/usr/share/mailman/Mailman/ListAdmin.py", line 80, in __opendb
    self.__db = cPickle.load(fp)
    UnpicklingError: invalid load key, 'm'.
    Aug 03 01:22:25 2007 (7442) SHUNTING: 1186122145.370055+f2ab5fac4a7b2dc159498a36ed5c91b5de42f490
    The condition that produced this particular error involved sending a message to the mailman list on our server.
    Any advice from anyone on either of these two problems? Is it possible that the security update left an old copy of mailman around with a different python, or is this a bug in the copy of mailman that we have in effect after the update?
    We have tried disabling and re-enabling the mailing lists under Server Admin, stopping and starting the Mail service entirely, rebooting, stopping and starting mailman using mailmanctl from the command line, stopping mailman and running the check_db and check-perms commands and then re-enabling it, all to no avail. Help would be much appreciated.

    Are you adding the list via SA or the web interface?

  • How to create a script logic using two applications and some conditions?

    Hi All,
    I am using BPC 7.0 MS
    I have two applications, one called RATE (Dimensions: Category, InputCurrency, Rate, RateEntity, Time) and one called GYP (Dimensions: Category, Entity, PL, Producto, RptCurrency, Time. In the GYP application for Revenues. I have the followings products:
    Product code
    1-808-912-433
    3-208-345-542
    11-869-789-946
    13-456-786-890
    I need to calculate a discount using the first digits to identify the product: 1, 3, 11 and 13, based on some percentages that are in the RATE application. 
    I have an element in the RATE application for each one of them.
    DPC1
    DPC3
    DPC11
    DPC13
    What I am trying to do in the script logic is:
    *XDIM_MEMBERSET PL=Revenues
    *XDIM_MEMBERSET PRODUCTO=<ALL>
    *XDIM_MEMBERSET ENTITY=<ALL>
    *XDIM_MEMBERSET CATEGORY=Budget
    *LOOKUP RATE
    *DIM D1:RATE ="DPC1"
    *DIM D11:RATE ="DPC11"
    *DIM D3:RATE ="DPC3"
    *DIM D13:RATE ="DPC13"
    *DIM RATEENTITY="Global"
    *DIM INPUTCURRENCY="VEB"
    *ENDLOOKUP
    *WHEN PL
    *IS Revenues
    *REC(FACTOR=LOOKUP(D1), PL=Discount)
    *ENDWHEN
    *COMMIT
    In the WHEN area, i would like to create some condition to identify the product and assign the correct percentage to it but i don't know how to do it?
    Do you have any suggestions?
    Also, because i need to key the values in the RATE application for the discounts, the logic should be run from this application?
    Using RUNLOGIC like this:
    *RUNLOGIC
    *APP GYP
    *LOGIC Discounts
    *ENDRUNLOGIC
    Best regards,
    Luisana

    Hi Nilanjan,
    Thanks for your prompt reply.
    The special characters ("-") cannot be used. The product codes use the special character ("_").
    I understand what you said about the property for the dimension Product but not for the dimension Rate. I have the lookup that has the four elements (DPC1, DPC11, DPC3, DPC13). It is not supposed to get the data from those elements directly when using the lookup?
    The script logic is still not working. I created the dimension property in the product dimension and the new script logic is as follows:
    *XDIM_MEMBERSET PL=Revenues
    *XDIM_MEMBERSET PRODUCT=<ALL>
    *XDIM_MEMBERSET ENTITY=<ALL>
    *XDIM_MEMBERSET CATEGORY=Budget
    *LOOKUP RATE
    *DIM D1:RATE ="DPC1"
    *DIM D11:RATE ="DPC11"
    *DIM D3:RATE ="DPC3"
    *DIM D13:RATE ="DPC13"
    *DIM RATEENTITY="Global"
    *DIM INPUTCURRENCY="VEB"
    *ENDLOOKUP
    *WHEN PRODUCT.TYPE
         *IS 1
              *REC(FACTOR=LOOKUP(D1), PL=Discount)
         *IS 11
              *REC(FACTOR=LOOKUP(D11), PL=Discount)
         *IS 3
              *REC(FACTOR=LOOKUP(D3), PL=Discount)
         *IS 13
              *REC(FACTOR=LOOKUP(D13), PL=Discount)
    *ENDWHEN
    *COMMIT
    Could you let me know what i am doing wrong?
    The calculation i would like to get is: Discount = Revenues(GYP) X DPCx(RATE)
    Also, when I sent the data from the rate application I get the message "ExecuteBaseLogic::invalid application:*APP GYP". I am using a RUNLOGIC in the application RATE with the following code:
    *RUNLOGIC
    *APP GYP
    *LOGIC Decto_en_vtas_pilot
    *ENDRUNLOGIC
    Kind Regards,
    Luisana

  • In import Pricing Proceedure,  Some Condition types added to Material Cost

    HI,
    In Import Pricing procedure, Some condition types (Like Basic Customs Duty,Edu Cess & Hier Edu Cess) are added to material cost. The remaining are not added. What is the configuration to add condition types to Material cost?
    Note -  we have added FR3 account key for all condition types. Then why few condition types are added to material cost and why others are not added to material cost?
    Can any one please help me on this..
    Thanks
    KB

    Assign key "NVV" to those condition types which are to be loaded to material cost.
    Hope this resolves ur problem

  • How to set colors on some condition in barchart

    Hi,
    I want to design a crystal report with a barchart. I should specify the color of the bar based on some conditions, this colornames are maintained in the database. I tried using chart expert -> color highlights,
    is there any other way to set the color of the bar?
    Regards,
    Deepa V

    Hi Deepa,
    In charts Color Highlight is the only way to conditionally change the color of the riser bars.
    You can use multiple conditions at a time in color highlight.
    To change the color directly you can right click the bar and select the Format Series Riser and change the color (but not conditionally)
    Regards,
    Aditya Joshi

  • Some Condition types missing during extraction from 2LIS_11_VAKON

    Hi,
    I am extracting conditions data to BI from ECC through 2LIS_11_VAKON. This datasource uses the fields from table KOMV. The Field KSCHL (Condition type) is also being taken from KOMV structure.
    My problem is some condition types are missing during extraction. Say, for example, for a Document condition i have 22 Condition types in KONV table but when i extract the data to BI, nearly 7 conditions are missing, i am getting only 15 condition types for the same document condition in BI.
    Why is this happening? I dont have any filters set. Moreover, this is happening in the Datasource level itself.
    Please advice. Any help on this is highly appreciated.
    Regards,
    Murali

    Hi Murali,
    try to have the manual check with set of data..there must be some mistaken in And and OR logic.
    Thanks,
    Deepak

  • Insert data in same table based on some condition

    Hi. I am new to this forum.
    I have to write a stored procedure to Insert Data into a table say MYTABLE ,having structure as:
    Col1 Col2 Col3 ................ TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data as it is in the same table(MYTABLE) except changing some fields on basis of some conditions:
    1. if PaidAmount>0 && CurrentInstallment<TotalInstallment then
    CurrentInstallment=CurrentInstallment+1
    2. In the MonthYear field I am having data in formate(month/year)ex. 01/2012, 11/2012 ....
    So I have to insert data by incrementing month and year. for example:
    if currentdata is 11/2012 then next data will be 12/2012
    But next will be 01/2013
    I have to select all the records which belongs to previous month(through MonthYear field ) and put checking & changes on each record of the selected data and then insert them into same table(MYTABLE).
    How to achive that?
    Thanks.

    978184 wrote:
    Every thing is working fine but some strange result as:
    when i run my Procedure TRANSFERDATATONEXTMONTH
    1. by Passing Value as : CUSTOMERID_var ='ABX101' and MONTHYEAR_var='12/2012' it insurts 5 rows
    which is correct , since I have 5 records where CUSTOMERID='ABX101' and MONTHYEAR='12/2012' and
    new 5 rows has CUSTOMERID='ABX101' and MONTHYEAR='01/2013' (all other values are as expected)
    2. now when i again run by passing values: CUSTOMERID='ABX101' and MONTHYEAR='01/2013' it inserts 10 records(just double )
    and new records has value CUSTOMERID='ABX101' and MONTHYEAR='02/2013' (while on the basis of condition CUSTOMERID='ABX101' and MONTHYEAR='01/2013' i have in my table only 5 records)
    and all records are duplicate. Some times it inserts three times , while on condition basis it should no. What is happening?Probably, meanwhile you were trying to Insert the First time and the second time, someone did run the procedure that Inserted 5 More records for 01/2013. And, hence your Second run inserted 10 records instead of 5.
    >
    Why it is inserting double of records while i have only 5 records on given condition? Am I missing some thing?Yes, you are. You are missing your Tables, Your Dummy/Sample Data, Working Procedure/Function that can be replicated.
    Without this, we cannot simply believe on assertions that Oracle is behaving incorrectly.
    In addition to this, the GetMonthYear function, should be scrapped. It is un-necessary, when the same logic can be achieved using Oracle ADD_MONTHS function (See my previous post). And you are storing the MonthYear in a Varchar field, which ideally should be a Date field. This eradicates the un-wanted need to cast from VARCHAR - DATE - VARCHAR.
    Please do make some time to read {message:id=9360002} and mentioned relevant details.
    And notice, the code difference in my previous post and in your code.
    Please use
    {noformat}
    (exactly as shown) above and below your code, that indents the code properly for better readability.
    {noformat}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Grey out a particular row in ALV based on some condition.

    Hi All,
    How can we grey out the particular row in ALV based on some condition( I am using the function modules and not OOPS).
    Regards
    Ramesh.

    Hello Ramesh
    In this case you need to add a specific field to your structure:
    TYPES: BEGIN OF ty_s_outtab.
    INLCUDE TYPE <my table or structure>.
    TYPES: CELLTAB   TYPE lvc_t_styl.  " name is arbitrary but this one is most frequently used
    TYPES: END OF ty_s_outtab.
    DATA: gt_outtab  TYPE STANDARD TABLE OF ty_s_outtab
                                 WITH DEFAULT KEY.
    You can use the fieldcatalog to make an entire column non-editable (LVC_S_FCAT-EDIT = ' ' ).
    However, in case of rows you need to inactivate all cells of this row. For sample coding please refer to thread:
    How to conditionally set ALV field as hotspot
    Regards
      Uwe

  • How to disable view buttons on some condition-webdynpro abap

    Hi ALL,
    i have a two buttons in my view ......initially one button must be enable,depending on some condition i want to disable one button on the same view .........in which i am displaying my alv data ........(in the same view).

    check the properties with property name Visible.
    Take one attribute with name as visibile and Type ( WDUI_VISIBILITY-Data Type for "visible" Properties)
    then bind this attribute with property visible.
    then in run time according to the condition pass value '01'-for no visibility and '02' for visible.
    Hope this helps you.
    Regards,
    sarath

  • Display Image(which set as behind text)   based on some condition.

    hi all
    I have developed a xml report and in that rtf am displaying a static image (which is set as behin text).
    But i need to display the image based on some condition
    for example i have a field as ORG_ID
    if org_id=87 then image should display for that purpose am planning to use <?if:ORG_ID=87?> condition but where to place this condition for the image.
    kindly help me
    thanks for all in advance.

    that too not working because
    on image am displaying some other fields.
    see i think you didn't get my point.
    in my out put page am displaying item details ,quantity,and cost and customer details just like invoice copy .
    behind this data am displaying my company logo which will capture whole page size..
    if i place the image in table then fields will be automatically in table so i cant restrict image in this way.
    Kindly suggest any other way that works only for image which is behind text. i mean condition should be applicable only for image and leaving all other fileds in rtf.
    or
    help on this how to set a dynamic image as behind the text.
    Edited by: maddy on Nov 28, 2012 7:32 AM
    Edited by: maddy on Nov 28, 2012 7:35 AM

  • Display an exception based on some condition

    HI..
    how to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...

    Hi!
    welcome to SDN.
    create a calculated key figure which will be 1 if the sales is less then the average sales.
    create exception based on this calculated key figure.
    with regard
    ashwin
    <i>PS n: Assigning point to the helpful answers is the way of saying thanks in SDN.  you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i>

  • Condition recordscoz for some condition type4s

    hi all,
    how can we maintain condition records for some condition types,For eg...
    MWST
    SKTO
    FRA1
    ZA01
    RA01
    HB01
    RB00..etc..apart from MEK1..coz for some condition types this t.code dose`nt work
    Edited by: MANI ROOPA SD/MM on Feb 28, 2008 12:06 PM

    Hi,
    The condition types you have mentioned are supplimentary conditon types and they afre dependent on the main conditons ( Like PB00 ), so they don not have any access sequence.
    Regards
    Reward Points if useful

  • Can we customize ADF Train flow to remove a Train stop on some condition?

    Hi,
      Can we customize ADF Train Flow using customization frame work and remove one train stop using some condition?
    Thanks
    Abhilash

    Read Frank's article http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html
    Timo

  • How to make a region mandatory based on some conditions using CO Extension?

    Dear All,
    I want to make Attachments region in a seeded page mandatory, based on some conditions. I am able to make fields mandatory using CO Extension, but i am not able to make the attachments region mandatory. Please help.
    Thanks
    Raj

    Raj,
    I have not tried but check if you could get the rowcount which shows how many attachment are upload or not. Then by checking this throw exception if the rowcount is o.
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

Maybe you are looking for