[ASK] Search Spec  Siebel Operation Step in Workflow

Hi all,
i have a question about search spec in Siebel operation.
in workflow i have one siebel operation with method Query and the BC is EBC.
in my EBC there is one column named Period that contaid date formated data.
my requirement is, i need to get the record where the month in column Period is now Today() month -1
example is today is 1^st August so the record will siebel select is all the Period in Month July.
how the searchspec should i write?
thanks and regards
Willy Chiandra

You can try something with JulianMonth, as described in: Querying a Date Field's Month, Day, or Year Value [ID 475570.1]
1.To extract the Opportunities that has a close date in the past month:
JulianMonth([Close Date]) = JulianMonth(Today()) - 1
Beacuse it's a EBC you have to test and see if there is not a big performance impact.

Similar Messages

  • Siebel Operation Insert Step Issue

    Hi,
    In Siebel 8.0, while using Siebel Operation Step in workflow, strangely we are facing one issue today.
    In our Wf, we have 2 Siebel Operation steps continuously one after the other.
    1) Siebel Operation to insert 1 record into table CX_EAI_LOG table.
    If this step errors out due to one of the unique index in this table then the second step will come into picture. If no error it goes to other step.
    2) Siebel operation to insert 1 record into same table CX_EAI_LOG table with just column value changed (as "Error").
    But, when 1st step errors out and second step gets executed, the SQL generated is not having all the columns of the table. Hence it is getting errored out as "Required Field value missing".
    However, if I check the configuration both the steps are having same input arguments in tools. I even tested passing all literal values to verify. But still the SQL is not having all the columns. In the log I could see all the values I passed from WF as literals, but SQL doesn't consists the columns for these values to insert.
    Gurus, can you help me in figuring out why is this strange behavior?
    Regards
    Raj

    Hi,
    Actually the first Siebel Operation step is part of a solution which is designed to avoid the duplicate transaction.
    Due to one unique index the first SO will fail, then in the second SO I insert the same record with status as Error. It means only 1 columns value will change.
    But it seems the context of the first BC still persists.
    I tried below options today, but no use.
    1) After 1st SO, used SO without passing any search spec, so expect to refresh the BC with null query.But instead of triggering null query the SQL generated has all the values used in first SO, in WHERE clause. I don't from from where these values are being taken.
    2) Created new WF, which consists only 1 SO to insert the second record. And called it from current workflow, passing all the values through process properties. But still the values are being used in this sub process are old values (same context).
    Is there any other way to fix this.

  • Search spec not working for Multiple Business Object in Siebel

    Hi,
    In Siebel Applicaiton Specified Search spec in Administration - BI Reports->Standard Templates-> integtion Object. the Specified Search spec is not returning particular record. It's seems returning all records. below we are using search spec as [Row Id] = [Quote.BillingaccountId].
    for testing purpose specified how code value : [Row Id]='1-wXR8'(some BillingaccountId in our application from Quote Object).
    Does anybody worked on Searchspec for MultipleBusienssObjects and is the search spec syntax is correct.
    Thanks
    -Chakri

    Hi Ravi..
    thanks for replay. with SR you provided getting no search results. If you have already can you please email me at [email protected]
    And also mention format as IO1.Field1=IO2.Field2. Need to give IO.fieldname i.e Integration Object Name .Field name or IC.Fieldname.. Can you please correct.
    Thanks
    -Chakri

  • Siebel Problem With a Workflow Process (Pleaseee help REAL PROBLEM)

    Well the problem is this i have a designed a workflow who is called by a JOB. Its functionality is to close Service Requests at certain time in the night.
    when i simulate a workflow against 2 different Servers it works fine without errors, but when i run a job that calls this WP in those servers i have diferent errors in diferent steps.
    In one server i have this kind of error in the last step "Cerrar Requerimiento":
    SBL-EXL-00151
    SBL-SCR-00141
    SBL-BPR-00162
    This operation is not allowed when there are no records displayed.
    Please execute a query that returns at least one record or add a new record
    and in the other i have this error in the 3er step:
    SBL-SCR-00141- Problem Running a eScript
    in spanish:
    Error de tiempo de ejecuci?n de Siebel eScript en el procedimiento 'GetFieldValue' de BusComp [Action]:
    Error: SiebelError: Esta operaci?n no se permite cuando no hay registros mostrados. Ejecute una consulta que devuelva por lo menos un registro o agregue un nuevo registro.(SBL-DAT-00215)
    (SBL-SCR-00141)
    Error al invocar servicio 'BCH EAI Query Utility', m?todo 'UpdateRecord' en el paso 'Cerrar Actividades'.(SBL-BPR-00162)
    (error in the Runtime of the Siebel eScript in the process GetFieldValue of Action,This operation is not allowed when there are no records displayed.
    Please execute a query that returns at least one record or add a new record
    error invoking the service "BCH EAI Query Utility in the Method UpdateRecord in the step "Cerrar Actividades".
    If they have the same job and workflow, and BS's active(i use the BS in other workflows and no problem with it) why they give error in diferent steps but they work fine when i use the Business Simulator?, its there a solution?, this can be a problem about the server config or triggers??
    thanks a lot!

    Hi,
    1.Is you're server and youre client using the same version of SRF ?
    2.Is the version for workflow in server and the one youre testing in client are the same ?
    3. Last but not least this BCH EAI Query Utility search spec is it correct ? Can it able to return at least one record base on you're search spec because I know some business service are required to return at least one record else it will throw error.
    Thanks,
    Joey Tan , Malaysia

  • Files are not appended in the container operation step ?

    Hi Guys,
    I have a BPM scenario where i receive a single file with multiple transactions
    1. Receive step receives the file and starts the process
    2 Transformation Step - Splits the file into individual transactions
    3. Block step --ForEach - Block has the follow 2 steps    
            1. Send - Synchronus - sends the request of each individual transaction to a 3rd party system and receives the response.
           2. Container Operation: Appending all the responses into a single file.
        Properties of container operation:
    Target: Multiline element (Block level element)
        Operation: Append
        Expression: Single element similar to structure above with out multiline.
    4. Send Step: I am writing this file locally to a file and this always shows only the last transaction in case of ParForEachMode and first transaction in the case of ForEach mode.
    can anybody explain why the messages are not appending into a single file. any help would be really appreciated
    Thanks,
    Srini

    Hi Liang,
    Check to see if the Sync Send step send every reply messages it received to container operation step:
    You might need to remove the container operation to see if you receive each individual msgs.
    > I have removed the container operation and i am able to see all the individual responses which i basically written to file just to cross check and every thing looks fine.
    Another way to go to workflow log (Complete Process with all the steps) to get debug information:
    SXMB_MONI -> Click "PE" under outbound queue -> Press "Display WorkFlow Log" button -> Click List with technical details -> Click Show Work item Container
    Here you can see the container and XML message used in this process step.
    You might have information on how message be processed in this step
    > I have checked in the workflow log and workflow shows the container operation only in the case of  ParForEach mode and when the block is in the ForEachMode i dont see any container operation step in the workflowlog and even in the ParForEach mode the container operation dosent have any details.
    Your Container Element reference to response message should also defined in block level, since the response message only exist inside the block. However, using process level container element should not cause any problem
    > I have defined the response messsage at block level in the container and the target i have defined it as multiline element defiend at process level. This multiline element is taken as input in the transformation step at prrocess level.
    are there any other alternatives for this process, i dont understand why the container operation is not appending the elments.
    any help would be appreciated
    Thanks,
    srini
    Edited by: srinivas kapu on Feb 25, 2008 12:10 PM

  • Container Operation step in User Decision

    Hi,
    I have used one set container operation step in one of the user decision task. But it seems it is not working inside the user decision step.
    I have checked the SWI1 log as well, but it is bypassing it.(screen shot attached from Workflow and SWI1).
    Please sugegst that can we use container operation step inside the user decision task.
    SWI1 log as well ( Not setting the variabl)e
    Regads,
    Priyanka

    Hi,
    check if in the workflow definition you mention if this step should be shown in the log or not. Also make sure using the technical details option in the workflow log that indeed the container operation was executed or not.
    If everything seems correct, but still in execution it skips something, then your workflow definition might be corrupt, either fix it by deleting the step in development, saving it and then recreating it. Or if it was corrupted after transport you could try your luck with function module SWD_REPLICATE_FROM_9999.
    Kind regards, Rob Dielemans

  • Using Container operation step can i pass one table to another?

    hi
    i have 2 multiline container elements in the workflow.
    in one of my step i am sending email using the receipents from the table LT_RECLIST which is a multiline container. Now before this step i am using a container operation step to pass LT_RECLIST_FINAL to LT_RECLIST. But guess this is not working? is this possible?
    the condition in container operation step is like this
    Result Element   LT_RECLIST
    Assignment         =     Assign (contents of table are deleted first)
    Expression          &LT_RECLIST_FINAL&
    Operator
    any idea where i am going wrong?

    instead of
    =     Assign (contents of table are deleted first)
    try the followinng option.
    <-    Add only to table (contents are extended)
    or you can directly use the element LT_RECLIST_FINAL in your mail step instead of assigning it to LT_RECLIST and using this element. if both the elements are going to store the same values then there is no point in using a separate element.

  • Regarding runtime error ehile execution of Mail step in workflow

    Hi all when i execute mail step in workflow i am getting following error-
    SQL error in the database when accesing a table.
    How to correct the error
       Database error text........: "SQL system error. MSGID= Job=038082/DEV05/WP02"
       Internal call code.........: "[RSQL/INSR/ARFCSDATA ]"
       Please check the entries in the system log (Transaction SM21).
       If the error occures in a non-modified SAP program, you may be able to
       find an interim solution in an SAP Note.
       If you have access to SAP Notes, carry out a search with the following
       keywords:
       "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
       "SAPLARFC" or "LARFCU03"
       "END_TRANSACTION_NONE_LOCAL_UPD"
       If you cannot solve the problem yourself and want to send an error
       notification to SAP, include the following information:
       1. The description of the current problem (short dump)
          To save the description, choose "System->List->Save->Local File
       (Unconverted)".
       2. Corresponding system log
          Display the system log by calling transaction SM21.
          Restrict the time interval to 10 minutes before and five minutes
       after the short dump. Then choose "System->List->Save->Local File
       (Unconverted)".
       3. If the problem occurs in a problem of your own or a modified SAP
       program: The source code of the program
          In the editor, choose "Utilities->More
    Please guide.
    Thanks.

    Hi Sanjay,
    Firstly are you using Send mail Activity or are u calling Fm SO_DOCUMENT_SEND_API1.
    Well  I suppose u are calling the FM, in that case just check the data that you are fetching before calling this FM. This error is related to sql query so check your select statements used before sending mail.
    Hope this helps.

  • Decision Step in Workflow inbox in NWBC

    Hi All,
    As of now when I click on any task in my Business workflow inbox then it takes me to a Decision Step in workflow but this screen is displayed as GUI , but need to find a Webdynpro replacement for this Decison Step.
    This is a standard Decision task step with minimal configuration, so want to know if there is any standard SAP provided Web dynpro to replace this.
    Thanks
    Kumar

    Hi,
    It would be better to use the custom webdynpro application.
    Please follow the below steps...
    Create a Separate Webdynpo Application ( WDA ) where you need to put all the option as SBWP by coding.
    After that you need to configure the SWFVISU.
    Run Tcode SWFVISU.
    here, select "Task Visualization' and maintain your standard task ( TS ) with ABAP web dynpro option.
    Now selct your entry and click on Visualization Parameters as mentopn below.
    APPLICATION ( WD application name )
    DYNPARAM
    NAMESPACE
    SYSTEM_ALIAS
    Second, ask Portal team to chagne the XML code for the above standard task and application ( i.e. WD appilcation which will be launced on clicking the task ).
    From the next run of the workflow, WD applcitoon will be lauched from the protal.
    for the old workitem this will not work.
    Thanks and regards,
    Sanjay

  • How to import search engines from Opera automatically?

    I already asked this question here: http://forums.mozillazine.org/viewtopic.php?f=38&t=2178107. Basically, I want to import all custom search engines that Opera browser saves in "search.ini" file to FF. I got used to them. Is that possible?

    I just took a look at the search.ini file in my Opera 11.00 installation, Firefox has no way to process that information. Firefox uses Open Search & Sherlock search plugins, that are in the XML format. It looks like Opera has its' own format for search "plugins", rather than using "standard" plugins that most other browsers use.
    You can create your own Open Search Plugins from the data contained in that search.ini file using the instructions here. <br />
    https://developer.mozilla.org/en/Creating_OpenSearch_plugins_for_Firefox
    Or you can install similar Search Plugins from this site. IMO, the search engine on this website works quite well, to sort through the tens of thousands of search plugins available.<br />
    http://mycroft.mozdev.org/

  • BPM : Files are not appended in the container operation step

    Hi Guys,
    I am using the BPM pattern,  "BpmPatternCollectTime"  provided by the SAP  under SAP BASIS 6.4 for the N:1 transformation.
    In the the Message mapping and Interface mapping source structure has "0 to unbounded"  occurance and Target has 1 coourances.. I have given the Time as 5 Minutes to collect the messages...
    I dont know why the files are not being appened? Each time am getting the only one file's content as output other files contents(records) are not being merged.
    Is there anything wrong in the given BPM pattern? or  i  need to do any changes in the container operation step ?
    can anybody explain why the messages are not appending into a single file. any help would be really appreciated...
    Can anybody guide me , how can i debug the BPM?
    Thanks and Regards
    Venkatesh

    Hi Raj,
    The Source and target structure are the same ie, BpmPatternCollectMessageToBeCollected..
    Structure is
        BpmPatternCollectToBeCollected
        ID
        OverallNumber
    In SAP BASIS 6.4 , In the message maaping you can find the
    "BpmPatternCollectMerge". I am using the same mapping..
    The mapping contains the Source field mappings for field element ID and OverallNumber to the same field in the Target.
    After selecting Source's occurance for 0 to unbounded , In the mapping the tool itself is adding two extra nodes as below...
    Messages                                 
      Message1
        BpmPatternCollectToBeCollected
        ID
        OverallNumber
    Mapping is
    Source Structure ->Target Structure
    Messages (1)                  Messages  (1)
    Message1 (1)                  Message1  (1)
      BpmPatternCollectToBeCollected  (0-unbound)  BpmPatternCollectToBeCollected  (1)
        ID  (1)-------> ID (1)
        OverallNumber    (1)-------> OverallNumber
    The line indicates above the mapped fields...ID and OverallNumber is only mapped above.
    Regards
    Venkatesh

  • Container operation step in BPM using context object

    Hi all,
    in my BPM I have a send step using the file adapter. The file adapter builds a dynamic filename.
    Now I want to have the filename back into an acknowledgement. First, I need it in the container, right?
    So after the send step, I have a container operation step as follows:
    target: simple string
    mode: assign or append, doesn't matter
    expression: In expression editor, I select Interface variable 'message', then context object 'FileName' from namespace http://sap.com/xi/XISystem/File
    This should be the filename from the fileadapter, right?
    In SXI_Cache, I get return code 99:
    The Value of Expression '&MESSAGE.FILENAME&' Cannot Serve As the Source of an Assignment
    Why is there a context object, if you can' t use it??

    As far as I know, the filename in the Dynamic Header will be lost in when the message enters the BPM.
    As a work around, make a mapping at the Interface Determination level that reads the filename from the SOAP header and sets it into the payload which can be accessed inside the BPM.
    Reason the way I see this that the BPM does not store the filename is ,
    1. What if you have multiple receive steps in the BPM with a fork.
    2. How would the context object know which filename you want to read?
    The reason you see this in the context object is because all Context Objects are the info you get from the Adapter metadata.
    Regards
    Bhavesh

  • How to create business operation for starting workflows

    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java class everything
    works fine(wlpi-ejb.jar is required), but when I call business operation from
    Studio I can't use classes from wlpi-ejb.jar.

    Business operation is called by WLIS. So, I include wlpi-ejb.jar into WLIS classpath.
    Studio uses deployed EJB from wlpi-*.jar, I don't know why Studio doesn't see
    methods from deployed EJBs when WLIS classpath contains wlpi-ejb.jar.
    "Andrew Pitonyak" <[email protected]> wrote:
    >
    When studio starts, what is your classpath? If you use the included batch
    file to start it, then your class path may not include this :-)
    Andrew
    "Raul" <[email protected]> wrote in message
    news:[email protected]..
    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java classeverything
    works fine(wlpi-ejb.jar is required), but when I call business operationfrom
    Studio I can't use classes from wlpi-ejb.jar.

  • Calling Transaction through User Decision step in workflow

    Hi all,
    Pls help me calling a transaction through User Decision step in workflow. I have attached two buttons to my User decision and the one of the outcomes to a task where I am calling the transaction through a method of BOR. But the problem is I am unable to see the transaction when I press the button on my User Decision at test run.
    Can you ppl let me know how can I achieve this?
    Pls reply ASAP...
    Thanks
    Sangharsh

    Hello Sangharsh ,
    Please Check the paramater of of the method which you define.
    e.g. I define CALL_TCODE_CJ03 method
          which have the parameters FLAG,ProjectDefinition,WBSElement2,User
          with export, import checkbox.            
    Pass the paratmeres in programs
    e.g.
    BEGIN_METHOD CALL_TCODE_CJ03 CHANGING CONTAINER.                      
    DATA:                                                          
          FLAG(1),                                                        
          PROJECTDEFINITION TYPE PROJ-PSPID,                              
          WBSELEMENT2 TYPE PRPS-POSID,                                    
          USER TYPE USR21-BNAME.                                                                               
    SWC_GET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_GET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_GET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.                
      SWC_GET_ELEMENT CONTAINER 'User' USER.                                                                               
    GET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      GET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                                                                               
    SET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      SET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                             
      CALL TRANSACTION 'CJ03' AND SKIP FIRST SCREEN.                                                                               
    SWC_SET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_SET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_SET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.    SWC_SET_ELEMENT CONTAINER 'User' USER. 
    END_METHOD.
    I hope it will help you.
    ***Assigning points is the way to say thanks in SDN.***
    Minaxi Shah

  • Shopping cart's One step approval workflow activation

    Hi Gurus,
    Please reply me for, how to create a shopping cart with One step approval workflow activation?
    regards,
    George.

    Hi George,
    The creation of the SC stays the same. Only the event linkage and the start conditions determine which workflow will be started.
    Regards,
    Martin

Maybe you are looking for