Running WF based on Z relationships.

Hi,
In the WF, I am sending ECM document, and I require the Business Partner to Approve/Reject the request. This reads the specific relationship ZBP. It is not catered for in the standard workflow and changes are required.
Where and what changes are needed for this. Is there any program or FM that checks the "Relationship".
Regards,
Himanshu Verma.

Hi,
You need to create your own custom rule function. You should be able to find documentation about this easily in SAP library. Basically you just create a new rule with transaction PFAC, and there you will define that you want to use your custom function in the rule. The function will need certain interface, but this all is documented. Check with Google "defining custom rules workflow" - the first hit should tell you all the needed.
About the relationship. There are functions for evaluating the relationships (check for example RH_STRUC_GET). But it might easier just to read the relation ship directly from HRP1001 table (just remember to fine-tune your select clause, since the table might be quite big).
Regards,
Karri

Similar Messages

  • How to do running aggr based on prompt value and how to or prompt?

    Hello guys
    I have some requirements that I have a report that has measures and Months and Date..
    1. I have to create dashboard prompts on months and dates in such way that users can select either that want to see monthly sales or daily sales.. So the two prompts should be "or" relationship that point to the same report. If user select month from month prompt, the report will return data at monthly level; if select day on day prompt, it should return data at day level..
    2. Doing running sum based on the dates selected from the prompts.
    If I select day prompt as between "Feb 12th 2009" and "March 1st 2009", the report should return sales data that is the sum of all sales between "Feb 12th 2009" and "March 1st 2009".. If user select month prompt as between "Nov 2008" and "Feb 2009", the report should show the sum of all the sales from "Nov 2008" and "Feb 2009".
    How would I achieve both scenarios?
    Any pointer will be greatly appreciated..

    Hi.
    Maybe you want to have dynamic group by in Answers report by choosing group by part from a dashboard prompt.
    So, assume this example in which you have only one dashboard prompt that shows Day or Month character data.
    Make dashboard prompt:
    edit column formula: 1
    control: drop-down list
    show:
    SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Day'* end FROM "Normal model"
    union all
    SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Month'* end FROM "Normal model"
    default to - specified value: Day
    set variable - presentation variable: pv_dyn_group_by
    label: Group by
    Now make report in Answers and we'll use dynamic column for group by depends on our presentation variable (Day or Month):
    /* column 1 */
    label:
    I don't know how to dynamicly change column label (Month or Day) so I put just label Dynamic group by.
    column formula:
    case when '@{pv_dyn_group_by}' ='Day'
    then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy')
    else TIMES.CALENDAR_MONTH_DESC
    end
    /* column 2 */
    AMOUNT_SOLD
    /* column 3 */
    RSUM(AMOUNT_SOLD)
    Test:
    In both cases we get the same result of RSUM in the end. First we group by a TIMES.TIME_ID if we choose 'Day', second by a TIMES.CALENDAR_MONTH_DESC if we choose 'Month'.
    Is that you want to?
    So if you want to see month or day values to choose it (between part) you must make second prompt with something like this in show SQL results:
    SELECT case when '@{pv_dyn_group_by}{Month}'='Month' then TIMES.CALENDAR_MONTH_DESC end || case when '@{pv_dyn_group_by}{Day}'='Day' then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy') end FROM "Normal model" order by 1
    The name of the second prompt is: '@{pv_filter}{Month}'
    That will display 'Month' or 'Day'. I don't know better solution :-)
    Similar is to make a between 2 prompts.
    After then you must modify filter in Answers to get OR (between dates ot between months)
    Regards,
    Goran Ocko
    http://108obiee.blogspot.com/

  • How to create running headers based on paragrapgh style

    I need to create running headers based on a particular paragraph style (Heading 2), so that the header on each page reflects the text of the latest Heading 2 in the document.
    I've looked high and low on this forum and on the web, but no luck. If it's not possible, I probably won't be activating/buying my trial software.

    Feature not available as such.
    You can place a section break before each change in Header 2, set headers as 'new for this section' and enter the new information, but as far as I'm aware there's no built in way of making the change automatic.
    Regards,
    Barry

  • Run allocation based on condition matched

    Hi SAP friends,
    I need to run allocation based on condition matched, is it possible with IIF or another statement?
    the logical view is below (syntax is wrong):
    *RUNALLOCATION
    IIF(BAS(ACCOUNT_01)<>0,
    *FACTOR = USING/TOTAL
    *DIM ACCOUNT WHAT = ACCOUNT_52; WHERE=BAS(ACCOUNT_01); Using=BAS(ACCOUNT_01); TOTAL=BAS(ACCOUNT_01)
    *FACTOR = 1
    *DIM ACCOUNT WHAT = ACCOUNT_52; WHERE=ACCOUNT_10)
    *ENDALLOCATION
    thanks a lot.

    Hi Vadim,
    I am somehow getting doubled values, I have read some articles where when and REC can double values, but my case seems to be something different, do you have an idea?
    the code is below:
    *FOR %MONTH_PLUS% = 0,1,2,3,4,5,6,7,8,9,10,11,12
    *XDIM_MEMBERSET RPTCURRENCY     = LC
    *XDIM_MEMBERSET ENTRYTYPE          = INPUT
    *XDIM_MEMBERSET CLIENTSEG           = NA_CLS, GCIPZ
    *XDIM_MEMBERSET CUSTSEG              = C_INP, P_INP
    *XDIM_MEMBERSET ACCIDENTYEAR    = CAY
    *XDIM_MEMBERSET DISTCH                  = BAS(GI_TOTAL),ALL_OTHER
    *XDIM_MEMBERSET LOB                       = BAS(LOB_GI)
    *XDIM_MEMBERSET PARTNER_RU        = NA_PU
    *XDIM_MEMBERSET ZVIEW                   = MV_PROD,MV_REC
    *XDIM_MEMBERSET TIME                      = TMVL(%MONTH_PLUS%,%TIME_SET%)
    *XDIM_MEMBERSET VERSION               = %VERSION_SET%
    *XDIM_MEMBERSET RU                         = %RU_SET%
    *XDIM_MEMBERSET INSTYPE                = DIR_OWN
    *WHEN INSTYPE
    *IS DIR_OWN
    *REC(EXPRESSION=(([ACCOUNT].[IFRS_69011330_01],[VERSION].[A01],[TIME].[TMVL(%MONTH_PLUS%,$LAST_YEAR$)])==0) ? [ACCOUNT].[STAT_LOSS_52]:[ACCOUNT].[IFRS_69011330_10], ACCOUNT=IFRS_69011330_10)
    *ENDWHEN
    *NEXT
    many thanks, tomas.

  • Icons files will not displaying when running web-based forms locally

    My icon files (jpgs) are not displaying from within Forms Developer 10g or when I run the web-based forms from within Developer. I have tried the following without success:
    6.4 Deploy Icons for Forms Running on Web
    Option One: For Running Web Based Forms from Within the Forms Builder in Oracle 10g Developer Suite
    1) Copy all the icon image files (*.jpg) to the directory of <Oracle_10g_Developer_Suite_Installation_Root_Dir>\forms\j2ee\formsapp\formsweb\icons
    2) Make sure to set imageBase=DocumentBase in the file < Oracle_10g_Developer_Suite_Installation_Root_Dir >\forms\server\formsweb.cfg.
    3) Edit the < Oracle_10g_Developer_Suite_Installation_Root_Dir >\forms\java\oracle\forms\registry\Registry.dat file, specify the icon image file extension by modifying the following line:
    default.icons.iconepath=icons/
    default.icons.iconextension=jpg
    Save this Registry.dat file.
    4) Restart the OC4J Instance.
    5) Launch the form from Forms Builder.
    I just got a new laptop and am setting everything up again. I have everything setup the same way as on my old machine (same as above). It worked fine on my old computer but not on the new one.

    hi
    try to create jar file for u r all jpgs but also u have to check the size of u r images
    and if possible try to resave the same images by using Acdsee or use any other image viewer softwares.
    hope this helps u...
    sarah

  • Repost based on Char Relationships help !

    Hi,
    I need help with the above function please. I'm doing this in IP but I think it would be equally relevant in BPS.
    I have 2 derivations
    1. VAT is derived as its an attribute of contract. (so its characteristic relationship of type attribute)
    2. Cash date is derived in an exit from Event date and Debtor days.(so its characteristic relationship of type exit)
    When doing a repost based on characteristic relationships (after changing master data attributes), the VAT derives properly but I get an error on the cash date derivation.
    I'm not sure if its important, but VAT flag is actually in the cube whereas Debtor days is simply looked up from contract master and then used to calculate cash date in the exit.
    The characteristic relationship does work properly when simply planning data into the cube, but not on the repost function.
    Any help/ideas would be appreciated.
    Cheers
    sue

    Hi,
    No its not possile. If you put CALWEEK as a target in the derivation, the CHECK on the derivation will fail as you cannot derive Generic Time characteristics.
    I overcame the problem however by ticking CALWEEK in the Repost with Characteristic Relationships function. ie. even though the function did not suggest that it could be derived, ticking it did not lead to error and in this way the function worked.
    Just further FYI, I've found that Exit derivations and Attribute derivations cannot be achieved in a single function that they have to be created separately.
    Regards
    Sue

  • Viewing the mrp run output based on mrp groups

    Hi, please advise how to view the mrp run result based on mrp groups? also advise how to run mrp on the basis of mrp groups?
    thanks.

    Hi,
    Can you use MRP Controller instead MRP Group. Because you have option to view MRP result by MRP Controller in MD05.
    And you can execute MRP based on MRP Contoller by using user exit M61X0001 in MD01.
    Regards,
    Vishal

  • Running character based report on web

    Friends,
    how to run character based report on web using oracle 10gr2.
    what is the easiest way?

    And in what version you developed your character report? At me character based reports without problems are started in a web

  • Long Running Jobs based on average time of last 5 run

    Hi Experts,
    I need a query to find out the Long Running Jobs, based on average time of last 5 run.
    Could you please help me.
    Thanks in advance. 
    --------------------------------- Devender Bijania

    SELECT 
        [sJOB].[name] AS [JobName]
        , CASE 
            WHEN [sJOBH].[run_date] IS NULL OR [sJOBH].[run_time] IS NULL THEN NULL
            ELSE CAST(
                    CAST([sJOBH].[run_date] AS CHAR(8))
                    + ' ' 
                    + STUFF(
                        STUFF(RIGHT('000000' + CAST([sJOBH].[run_time] AS VARCHAR(6)),  6)
                            , 3, 0, ':')
                        , 6, 0, ':')
                    AS DATETIME)
          END AS [LastRunDateTime]
        , CASE [sJOBH].[run_status]
            WHEN 0 THEN 'Failed'
            WHEN 1 THEN 'Succeeded'
            WHEN 2 THEN 'Retry'
            WHEN 3 THEN 'Canceled'
            WHEN 4 THEN 'Running' -- In Progress
          END AS [LastRunStatus]
        , STUFF(
                STUFF(RIGHT('000000' + CAST([sJOBH].[run_duration] AS VARCHAR(6)),  6)
                    , 3, 0, ':')
                , 6, 0, ':') 
            AS [LastRunDuration (HH:MM:SS)]
          , CASE [sJOBSCH].[NextRunDate]
            WHEN 0 THEN NULL
            ELSE CAST(
                    CAST([sJOBSCH].[NextRunDate] AS CHAR(8))
                    + ' ' 
                    + STUFF(
                        STUFF(RIGHT('000000' + CAST([sJOBSCH].[NextRunTime] AS VARCHAR(6)),  6)
                            , 3, 0, ':')
                        , 6, 0, ':')
                    AS DATETIME)
          END AS [NextRunDateTime]
    FROM 
        [msdb].[dbo].[sysjobs] AS [sJOB]
        LEFT JOIN (
                    SELECT
                        [job_id]
                        , MIN([next_run_date]) AS [NextRunDate]
                        , MIN([next_run_time]) AS [NextRunTime]
                    FROM [msdb].[dbo].[sysjobschedules]
                    GROUP BY [job_id]
                ) AS [sJOBSCH]
            ON [sJOB].[job_id] = [sJOBSCH].[job_id]
        LEFT JOIN (
                    SELECT 
                        [job_id]
                        , [run_date]
                        , [run_time]
                        , [run_status]
                        , [run_duration]
                        , [message]
                        , ROW_NUMBER() OVER (
                                                PARTITION BY [job_id] 
                                                ORDER BY [run_date] DESC, [run_time] DESC
                          ) AS RowNumber
                    FROM [msdb].[dbo].[sysjobhistory]
                    WHERE [step_id] = 0
                ) AS [sJOBH]
            ON [sJOB].[job_id] = [sJOBH].[job_id]
            AND [sJOBH].[RowNumber] = 1
    ORDER BY [LastRunDateTime] desc,
             [LastRunDuration (HH:MM:SS)] DESC
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Is there a way I can run windows based programs?

    Is there a way to run Windows based programs such as Quickbooks Enterprise?

    A simple Google search never came to your mind???
    http://lmgtfy.com/?q=how+to+run+windows+on+mac

  • I need to run web based Microsoft CRM. I open it in Safari but the program does not respond. I suppose it has to do with Flash or ActiveX. Can someone help?

    I need to run web based Microsoft CRM. I open it in Safari but the program does not respond. I suppose it has to do with Flash or ActiveX. Can someone help?

    What does the product developer say about system requirements? If it needs to be run from within Internet Explorer then you'll need to find a way to run Internet Explorer. Boot Camp or VM installation of Windows would be two options.
    But first check the product requirements.

  • Is there any way how i can download and run Window based games, with out installing Windows-thus Bootcamp? and if so, is it free?

    is there any way how i can download and run Window based games, with out installing Windows-thus Bootcamp? and if so, is it free?

    No, you must install Windows to run Windows software. You do not need to use Boot Camp (yes, it's free because it comes with OS X.)
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • Displaying different sheets at run time based on value of the parameter

    Hi,
    I've a query regarding displaying two different sheets at run time in Oracle discoverer based on the value of the parameter that i give.
    I've a parameter Summary_flag.
    If the value of the parameter is 'Y',then it should display a sheet,say for example it should display Sheet1.
    If the value is 'N',then it should display another sheet, say for example it should display Sheet2.
    Is there any way in which i can accomplish this?
    I went through the Format and Tools menus but couldnt find anything regarding this aspect.
    Can you help me out?
    Thanks,

    Having a Disco parameter dictate which worksheet is displayed is not an option that is available. There are a few workarounds, though:
    1. Have a portlet (or some other web interface) accept your parameters, and then call the appropriate worksheet.
    2. Have 2 worksheets, and have it devolve into a training issue (for a summary run this, for all the details run this).
    3. Create calculations that will show or hide column data depending on the parameter selected - the columns will still be there, and you can fill them in with blanks, or a message like "N/A for Summary".
    4. Create a report that will allow the users to drill between the summary and detail data - I'm not sure whether you could use a parameter to then say whether the report should open up summarized or expanded.

  • How to create a job to run daily, based on form values entered.

    Hi,
    In DB we have 3 columns: creation_date, name, approved_or_not. Default for approved_or_not is 'No'.
    In the application form page suppose I fill in sysdate for creation_date and leave default for approved_or_not and click [create] button.
    Now a job should run everyday and check for where (approved_or_not='No' & creation_date = 'sysdate - 1') and send mail to the person in 'name' field mentioning: 'Approval pending. click on link <some_link> for details on approval'.
    Could anyone give me pointers to example on such job? (Working on APEX 3.0)
    Thanks,
    Priyanka
    Posted this message on wrong forum, Moved this on APEX forum.
    -Priyanka

    I think you may create your own job by this supplied package in your application -
    http://psoug.org/reference/dbms_scheduler.html
    Or you may use Event-Based Scheduling -
    http://www.oracle.com/technology/pub/articles/10gdba/nanda_10gr2dba_part2.html#event
    Best regards.

  • flexunit 4.1 B3 Ant task fails to run Air-based tests

    Folks,
    I am using FlexUnit4.1 Beta 3 and am seeing the <flexunit> Ant task fail when running tests that use the Air libraries. The project in question used to test just fine with version 4.0 earlier this year, but I just dusted it off after a branch change and tried re-running with 4.1and started seeing the failure.Here is the relevant console output:
    [com.djte.library:flexunit] Validating task attributes ...
    [com.djte.library:flexunit] Generating default values ...
    [com.djte.library:flexunit] Using default working dir [C:\EclipseWorkspace3.5\report.renderer_tests_2\Source\Flex]
    [com.djte.library:flexunit] Using the following settings for the test run:
    [com.djte.library:flexunit]     FLEX_HOME: [C:\iFABS_DE\dev\vert-d3flxcmn24\204100.32.0.20100926233508_d3flxcmn24]
    [com.djte.library:flexunit]     haltonfailure: [false]
    [com.djte.library:flexunit]     headless: [false]
    [com.djte.library:flexunit]     display: [99]
    [com.djte.library:flexunit]     localTrusted: [true]
    [com.djte.library:flexunit]     player: [air]
    [com.djte.library:flexunit]     port: [1024]
    [com.djte.library:flexunit]     swf: [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\report.renderer.tests.unit.swf]
    [com.djte.library:flexunit]     timeout: [1800000ms]
    [com.djte.library:flexunit]     toDir: [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\reports\xml]
    [com.djte.library:flexunit] Setting up server process ...
    [com.djte.library:flexunit] Starting server ...
    [com.djte.library:flexunit] OS: [Windows]
    [com.djte.library:flexunit] Opening server socket on port [1024].
    [com.djte.library:flexunit] Waiting for client connection ...
    [com.djte.library:flexunit] Launching player:
    [com.djte.library:flexunit] Found AIR version: 1.5
    BUILD FAILED
    C:\public\JavaTools\DJTE\latest\DjteLibrary\library.xml:57: The following error occurred while executing this line:
    : Error launching the test runner.
    The error message is not very specific... The last output seen before the failure is "Found AIR version: 1.5". This makes me wonder if the problem is related to how I have Air installed on my Windows XP machine. Come to think of it, I am not sure exactly how the host machine should be configured to run FlexUnit tests that require Air.  Do I really need Air to be installed?  I have Air 2.0.3.13070 installed, but the <flexunit> task thinks it found version 1.5 - hmmm...  I also have the debug Flash 10 player, and SWF appplications are configued to run using this player. Flex tests run fine, just not Air tests.  What am I missing?
    I see that 4.1 RC1 is now out, so I will grab that and give it a try.
    If anyone who tests air more often has any advice - I am all ears!
    Thanks,
    Trevor

    Thanks for your responses, Brian!
    Yes, I think I see the immediate problem.  The problem is that there is no Air runtime in our customized Flex SDK (based on 3.2), even though it appears to have the Air compile libraries. I had been attempting to use this custom SDK to run FlexUnit with, and I think that needs to change.
    Why was I doing this?
    Well, I had tripped over some problems with 4.1 earlier on when I attempted to run it without having FLEX_HOME set in the environment. So, now I have been setting FLEX_HOME programmatically in my code before calling the <flexunit> task. And I had figured that it would be a good idea to set FLEX_HOME to the same SDK that the tests had been built with, i.e. our customized one.  Now I am thinking that this is not necessary, since our end users will never have access to this SDK. I now think that I should be able to install a new stock Adobe Flex SDK on my CI server, install the Air runtime into it, and then use that location when I set FLEX_HOME.  Is that how others are doing it?  If anyone could validate this approach, I would be grateful.
    One question that arises in my mind now: How does the Air runtime get into the Flex SDK? I have installed the Air runtime using the installer from Adobe some time ago, so I am not quite sure what all that did.  I assume the  Air installer finds all the Flex SDKs on your machine and inserts the runtime in each location appropriately? Again, pardon my ignorance...
    I have just tried out the above idea, i.e. setting FLEX_HOME to a different SDK that has Air runtime, and the <flexunit> task worked when I ran it!  An Air window opened, the tests ran, and reports were generated. So, it would appear my problem is solved! Cool beans!
    Brian, you made some comments about another possible issue with the "custom app descriptor".  I am not sure if that applies to me or not.  How would I know whether or not we need that support?  Again, I know it would help if I was the developer who had actually written the Flex tests, but I am not...
    Anyway, I hope this thread helps other folks who are having similar issues.  I am going to reinstall a fresh Adobe SDK and the Air installer on a clean machine next, and see if the tests will run there.
    Before ending this thread, I do want to point out that the ant task might have need of improvement in the case in which the user attempts to run the air "player" but the Air runtime is not setup in the SDK. On Windows, the ant process simply hung at this point, apparently thinking that the launch of the player had been successful, but in reality, the message about the air runtime being not found had occurred. It might be nice if it exited gracefully with a warning message instead of hanging. Just a suggestion...
    Brian, as always, thanks again for your help with this issue.You guys are doing a great job with this project. Please keep it up!
    Thanks,
    Trevor

Maybe you are looking for

  • Problem with the back camera in iPhone 4 (Black Shadow)

    Hi, I have a problem with the back camera. When turned on I can see a black shadow on one side and when I take the photo, appears in all the photos. I searched on the Internet to resolve this problem but I haven't been successful. A friend told me th

  • Where Clause in a Query button

    Hello This is a where clause in a button to do the following .. WHERE WEEK_EMP_NO In (SELECT EMP_ID FROM EMPLOYEE) AND WEEK_DAY1= :WEEK_DAY1 AND WEEK_DAY2= :WEEK_DAY2 ; ============================= My Problem is : i can't format the right parentais

  • Ilustrator CS4+Snow Leopard Profile issues

    Seems like something is not working in Cs4 Illustrator with Snow Leopard. Can someone give it a try to verify. When I print to my Epson 3800 from Illust. It's not matching the same image printed via PS Cs4. ( It should if you follow a controlled work

  • Just trying to get this stuff to show up!

    Hi Do the includes need to be in a certain place? When i test the webpages i've made with spry on my local machine, they have no problem working correctly. When I upload them to the server (and make sure that all the files are uploaded) --- it doesn'

  • Extra screen, extra cpu useage?

    Hi, My Ti's screen is on the fritz, and I've hooked an old monitor up to it so its still working. But I was wondering if running a second monitor somehow drains the CPU, and if so, is there a way of limiting the second monitors CPU useage? For exampl