Activity step type picks wrong agent during runtime.

Dear All,
             I created two activity step types.Both these should pick two different agents at run time from ztable.
First activity step type picks the right agent.The second activity step type should pick another agent.Instead it picks the same agent as picked for the first activity step type.
            I use two different workflow containers to pass values to rule containers.
Following is the binding sequence between workflow to rule container and vice-versa for first step type.
&WERKS&    -->      &WERKS&
&AAGENT&  <--      &_RULE_RESULT&
Following is the binding sequence between workflow to rule container and vice-versa for first step type.
&WERKS1&    -->      &WERKS1&
&AAGENT&  <--      &_RULE_RESULT&
Both these rules fetches the right agent at PFAC when simulating the rule resolution.
Only the second rule returns the wrong agent who is the approver for the first activity step type.
Please suggest if I am any where wrong for which I will be grateful.
Thanks and regards,
S.Suresh

Dear Pavan Bhamidipati,
                      Thank you so much for your reply.
                      My scenario is whenever a purchase order is created for a particular plant,it should go for a two level approval.These two agents will be selected during run time from ztable.
                       For example, if purchase order is created for plant 1000,it will go for a two level approval to a set of agents.If purchase order is created for plant 3000,it will go to another set of agents for two level approval etc.
                       The rule I have created fetches the right agent.But when I intetrgrate it with workflow, I get the correct first agent for first level approval.On the other hand,for the next level approval,again I get the same first agent incorrectly.Instead I should get another different agent for second level approval.
                       Following is the code I use now::
FUNCTION ZWF_TST_RULE7.
""Local Interface:
*"  TABLES
*"      ACTOR_TAB STRUCTURE  SWHACTOR
*"      AC_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      NOBODY_FOUND
  INCLUDE <CNTN01>.
DATA :   agent2 like Zworkflow1-agent2,
         werks like zworkflow1-werks,
         werks1 like zworkflow1-werks,
         lines TYPE i.
swc_get_element ac_container 'werks1' werks1.
select single agent2 from zworkflow1 into (agent2) where werks = werks1.
  ACTOR_TAB-OTYPE = 'US'.
  ACTOR_TAB-OBJID = agent2.
  APPEND ACTOR_TAB.
    DESCRIBE TABLE actor_tab LINES lines.
    IF lines IS INITIAL.
      RAISE nobody_found.
    ENDIF.
My ztable has 5 columns namely MANDT,SNO,AGENT1,AGENT2 and WERKS.
Correct me if I am any where wrong for which I will be greateful.
Thanks and regards,
S.Suresh

Similar Messages

  • Activity Step type in workflow

    Hello Experts,
    I need some detail clarification regarding Program exits and Properties tab in activity step type
    i have read the content in help.sap.com but it was not clear how to use these steps
    Also if anybody knows please explain all four tabs for dead line monitoring
    Thanks in advance!

    Hi Akshay,
    Please check the following links:
    Re: Workflow terminologies
    Re: Reg: Program Exits
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/15fe3b0f13ca4ae10000000a11402f/frameset.htm
    Hope this helps!
    Regards,
    Saumya

  • Enhancement not visible during runtime

    Dear experts,
    I have a problem with getting enhancements up and running in runtime.
    I Changed 2 enhancements in FM J_1B_NF_VALUE_DETERMINATION and activated them. Activation goes fine, but for some reason during runtime (in debug mode), I can not see the code of the enhancement at all. My changes are not triggered, I can not even see the code in debug-mode. The complete code-block is missing. It seems that the enhancements are not active and are just not embedded during runtime. Do I have to activate something else? I guess CMOD and SMOD are not relevant in this case but if they are please let me know.
    Thanks in advance
    William

    if you are usng enhancement framework then there is no need of CMOD/SMOD.
    where have you created your enhancement spots? and what type have you given there?
    goto SE19 and see what actually is the status of the enhancement .. if active, keep breakpoint directly inside your enhancement coding,
    when FM starts executing, you will find a circular swirl(just on the left side of the code ), that mean it will goto your enhancement. it wont direcly show in the deugger, you press F5 and then it will go inside your code.

  • Re: Workflow-step type: Mail - to add smartform output as a . PDF attachmnt

    Hi All,
    I have a requirement of attaching the output of a smart form as .PDF attachment. This has to be done as part of the Mail Step-Type in the work flow.
    Could anyone please confirm whether we can send an attachment as part of the Mail Step of a work flow. If this can be done, please provide some inputs on how to proceed on this.
    Thanks & Regards,
    Goutham.

    Hi,
    Thanks for your early replies. Points are definitely awarded.
    So the main point here is we cannot attach an attachment to the Mail Step Type of the work flow. The only thing we can do is to create a method in the business object to do the same and use it in the Activity step type of the work flow.
    Please confirm if my understanding is correct.
    Thanks & Regards,
    Goutham.

  • Get 2 attachments in Activity step in workflow...

    Hi All,
    I want to send two attachments in executable task in SBWP.
    One is to display the details of PR via ME53N and other attachment is to release the PR from ME54N.
    I want both the attachments in a single task.
    I am able to send one attachment to display the PR by binding the BO of PR to container in task as the default method set is DISPLAY.
    Now to release the PR, do i need to change the default method of BO.
    If yes, then it'l not work for custom display method.
    Please suggest what is the procedure to achieve the same.
    There may come the requirement that we need one more attachment in the task to see the structure of custom Approvers table via SE11.
    Regards,
    Guddan

    Hi Rick and Rob,
    I followed your suggestions but still the issue is not resolved.
    @Rob : If i do the thinga as said by you then I will be first able to display the PR and then release it from ME54N.
                 But that's not my requirement exactly. I just want 2 links in my activity step type. The user can click any one of them.
    @Rick : I followed you but even if i do the binding with 2 different BO having 2 different default methods, till then i am not
                  getting 2 links in activity step type. I am getting link only to display PR.
    NOTE : This is just my R&D topic. I am just trying to explore this option of getting 2 links in activity step type. I even don't know   whether it is possible or not. So we can consider 2 links for any 2 TCodes , say ME53N and SE11.
    Thanks and Regards,
    Guddan

  • Changing type of process during runtime

    hi to all/Mike/Antony
    is there anyway to change a sync process to async during runtime?
    thnx in advance
    KAM

    hi
    sorry for making confusion by putting a (little) wrong question because of being in a hurry...
    it was supposed to be that " is there anyway to change the type of the process from async to sync after executing the process"
    i m sorry for taking ur time by putting a wrong question!
    actually i made a sync process of "HelloWorld " but mistakenly declared its type as "async" and it did not generate the required output, because it was an async process and i was treating it as a sync one!
    thanks for ur interest. i'll write, as i find the solution.
    KAM.

  • How to pick a field value from transaction during runtime

    Hi,
    I have an exit which allows creation of po without purch. req. for selected Purchasing Document Types.
    similarly the exit should also allow the creation po's with item categories 'L and  U' even without pr's.
    now my problem is how to pick the value of this  item category during runtime so as to put the check.
    your suggestions are valued.
    Thanks in advance

    Hi,
    if you have the new debugger, you can see the global variables that you can use in your exit (putting a break point on your code), so you can found easly the structure or field that contains your informations.
    I hope that's useful for u,
    Regards

  • Problem in Workflow during activity step with "Requested start" time.

    Hi,
    I am working on SAP workflow.
    In my workflow there is a activity step (wait step) where the workflow should wait before going to step after that wait step. To achieve this, I have used requested start as +10 min with WIS workitem creation. After 10 min, the workflow should proceed to further step but my workflow does not go further.
    It was working good I tested couple of days back but now it doesn't. Can someone please help ?
    Thanks.
    Regards,
    Rajesh.

    Please check the settings in SWU3. Most probably  the settings is not correct. You will get a lot of discussion from this forum if you search with SWU3.
    Thanks
    Arghadip

  • Delivery activity/step blinking Red

    Symptom
    The Delivery activity/step in a campaign workflow is blinking Red and the workflow journal provides no further error information.
    Cause
    An error has occurred during delivery preparation. To determine the cause, go to the Campaign dashboard and Open the delivery. A common error is missing subject line. The error shown here is that no content has been specified.
    Fix
    Correct the error that caused the delivery to fail.
    Preventative
    Send a proof before executing the campaign. The proof is analyzed with the same set of rules as are applied to the Delivery (in particular the content rules, as the target for the Delivery is different) and you have a chance to correct errors before the campaign is due to go out.

    Hi,
    You can use this component to create deliveries in the Project System and consequently to deliver material components that are assigned to a project.
    For instance, you can deliver material components, which are assigned to different network activities at different dates.
    So to make it happen:
    Step1: Attach material to Activity in Project for which the sales order is created.
    Step2: MIGO with movement type 101 in Project Stock.
    Step3: Check in MD04 the available Project Stock against the WBS element
    Step4: Create Delivery Information in CJ20N. (Select the particular Component then Extras-->Delivery Information)
    Step5: Go to Tcode: CNS0. And create Delivery.
    Step5: Go to VL02N and Pick and Drop the Delivery (Take help of SD consultant if needed)
    Hope it helps...
    Thanks!!!

  • How do I make Step Types in the Type palette be "master" versions which all sequence files on a particular should use? (since this only seems to "half work")

    The situation I would like is to have a library of step types which sequence developers can use. Therefore if new step types need to be added, or existing ones modified - all that needs to be done is to roll out a new MyTypes.ini (for example), and the code modules/substeps.
    Scenarios:
    If I create types in MyTypes.ini (make sure "Attach to this file" is checked, so they get saved here). I can then create a sequence file using these step types. No problem so far.
    I can open the type palette, modify the step properties, and save. When I go back to my sequence file an asterisk appears (saying it needs to be saved, even if I have opened it from scratch). The properties have been updated to reflect what is in the Type Palette. Still no problem (Type versions are the same in the sequence file and type palette).
    This is where the problem appears:
    If I change a step type (in the Type Palette) from using a code module to using a Post-Step substep instead (changing the module adaptor to "None") - any instances do NOT update when you open sequence files. (The same happens vice versa also).
    Please note that the "Type version" listed in the sequence file DOES match that listed in the Type Palette - the properties are the same but the manner in which the code modules are called is DIFFERENT! This then can lead to to runtime errors if the old code module has been deleted for example.
    The only way around this is to open EVERY sequence file that contains an instance of the step type, and make sure that you have "Apply changes to all loaded instances of this type" checked in the step type properties dialog. This is is not a good solution since files could be missed, and is very time consuming if you have hundreds of sequence files!
    What I need is that the Type Palette on any particular station contains the MASTER copies of each type. These are loaded whenever a sequence file is loaded and NOT retreived from the sequence file. As discussed above this seems to work when you modify properties - but doesnt work fine if you change the way in which code modules are called.
    Am I doing something wrong or is this a limitation?

    I had a system recently containing seven sequence files, approx 20 subsequences in each, and around 10-20 steps in each sub-sequence. Every step (except for the NI non-code module types) was an instance of a step type.
    Each one of these steps had an Edit sub-step and a code module called through the code module adapter.
    In order to make these into "wrapped up" step types it was decided to move the code module to a Post-Step substep (as also done in the NI-IVI step types) - so that developers cannot fiddle with the code prototype or module.
    In order to do this I had to open all 7 of the sequence files, make the changes and then ensure that "Apply changes in this dialog to a loaded instances" was checked. This seems to sort of work, but some steps started causing Error 17502 (System Error) when you configure them (call the Edit substep). Over the course of the past few months I have had to effectively check every instance of a type to see if it works (deleting the step and replacing it when it doesnt). Other strange things happened like some of the step type instances now have the "None" (adapter) icon associated with them - but both still work.
    The idea of creating a type-def of a step type is a good one, but frustrating that it doesnt seem to fully work. Why should the sequence file also store a version of the step-type - which is what is effectively causing this problem - why not make it so that if you dont have the step types installed in the type palette - TOUGH! Message Edited by RichM on 03-15-2005 06:55 AM

  • Creating a step type "launcher" that would insert the appropriate built-in or custom step type at edit time

    Hi everybody,
    I'm looking for tips, pointers,directions... to be able to perform this operation in TS 4.0 sequence Editor, if it's even possible...
    I'm managing a test system with a "home-made" virtual instruments abstraction Layer complementary to IVI classes for instruments which do not have classes defined, customizing the sequence editor accordingly for developpers of my department.
    So basically when the instrument is IVI, the developper uses the built-in IVI step-type type and when it is not, he uses the the custom step types that I developped for this particular class of instruments.  
    However there are classes where I do have both IVI and specific drivers available and I do need to use both in the test sequence.
    For example let's say there are two sources of DC power available in the testbench, one being a programmable IVI compliant DC power supply, and the other one composed of fixed "blocks" of DC power supply managed by externals relays and you need to use them both in the test sequence.
    What I would like to be able to do in the sequence editor is inserting the appropriate step type at edit time just by selecting the source of power supply (by a ring or enum for eg), and if the first ressource is selected, it inserts IVI step type, and if the second ressource is chosen, it inserts the appropriate custom step type.
    Any Ideas on how to accomplish this ?
    Regards,
    Cyril
    Cyril Bouton
    Active LabVIEW Developper
    Solved!
    Go to Solution.

    Hello Cyril,
    Here is an idea that could be done:
    You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in.  Then you create the main Edit substep in whichever language you desire.  That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B.  When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B.  You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode.  When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
    Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
    I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute.  Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
    Hope this helps.
    Regards,
    Olivier L. | Certified LabVIEW Developer

  • No mapping during runtime!!

    Hi all,
                      I got stucked with one problem in  file-xi-idoc  scenario using sap xi 2.0.
    I am using sender file adapter which is picking up the file from ftp server. The file contains three fields and I am placing them in a text file as
    Sriram,mumbai,in.
    The file adapter is picking the file successfully and converting them into xml sending to integration engine. But during runtime these fields are not mapped to target idoc structure (DEBMAS 03) and there are no errors showing in SXMB_MONI. The idoc is going to receiving sap system with error status 51. This is the payload of xml messages observed in SXMB_MONI.
      <?xml version="1.0" standalone="yes" ?>
    - <resultset>
    - <row>
      <field0>sriram</field0>
      <field1>mumbai</field1>
      <field2>in</field2>
      </row>
      </resultset>
    Here is the file adapter configuration :
    file adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
    mode=FILE2XMB
    mode = file2xmbwithrowconversion
    Integration Engine address and document settings (example, see docu)
    XMB.TargetURL=http://ht56f4:8000/sap/xi/engine/?type=entry
    #XMB.SLDConfiguration = SLDaccessor7
    XMB.User = xiappluser
    XMB.Password = xipass
    XMB.SenderBusinessSystem = PS_LEGACY
    XMB.SenderInterfaceNamespace = http://ps_crm.com
    XMB.SenderInterfaceName = Customer_out
    #XMB.SenderBusinessSystem=ExtAdapterSender
    #XMB.SenderInterfaceNamespace=http://sap.com/xi/xidemo
    #XMB.SenderInterfaceName=ExtAdapterSenderIF
    XMB.ContentKind=T
    #XMB.ContentKind=T
    #XMB.ContentType=application/xml
    #XMB.ContentType=text/xml
    XMB.ContentType=text/plain
    XMB.QualityOfService=EO
    #ftp server details
    ftp.host = 10.1.45.43
    ftp.port = 21
    ftp.user = sapftp
    ftp.password = ftp***sap123
    ftp.connection = permanently
    ftp.mode=Text
    #file.sourceFilename = bank.txt
    ##File Adapter specific parameters (example, see docu)
    file.sourceDir= \/pssap\/
    file.sourceFilename = testing.txt
    #file.processingMode=setAttribute
    #file.processingMode=archive
    #file.archiveDir=c:/temp_archive
    file.pollInterval= 60
    file.pollIntervalMsecs= 10
    #file.retryInterval = 30
    file.logPollInterval=YES
    file.processingMode=delete
    ##xml conversion properties if mode FILE2XMBWITHROWCONVERSION specified (example, see docu)
    #xml.fieldFixedLengths=8,9,2
    xml.processFieldNames=notAvailable
    xml.fieldSeparator=,
    xml.enclosureConversione = YES
    I am not able to test mapping in sap xi 2.0.
    Any suggestions greatly helpful.

    Thanks,
    found it.
    Regards Mario

  • Object Referenced Error When calling the Windows Form during Runtime

    Hi,
    I am getting  Object reference errors when running windows form during runtime. In debugging mode in MS Visual studio 2005, I am not getting this error. I'm calling the window form from menu and called the window in a thread as suggested in one of forums . I don't see anyone in the forum mentioned this problem I have. Any help would be deeply appreciated. Below are the error and code samples.
    ERROR Message
    Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Project1.Loadxml.Loadxml_Load(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Edited by: Albert Tio on Feb 16, 2011 9:55 AM

    Here is the code.
    Option Strict Off
    Option Explicit On
    Friend Class GetEvents
        Public WithEvents SBO_Application As SAPbouiCOM.Application
        Public SboGuiApi As SAPbouiCOM.SboGuiApi
        Public oForm As SAPbouiCOM.Form
        Public oDBDataSource As SAPbouiCOM.DBDataSource
        Public oCompany As SAPbobsCOM.Company
        Public RS As SAPbobsCOM.Recordset
        Public oPrev_Bank As String, oPrev_AcctType As String
        Public oLoadXml As Loadxml
        Public Sub SetApplication()
                 'Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi
            ' by following the steps specified above, the following
            ' statment should be suficient for either development or run mode
            sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
            ' connect to a running SBO Application
            SboGuiApi.Connect(sConnectionString)
            ' get an initialized application object
            SBO_Application = SboGuiApi.GetApplication()
        End Sub
        Public Sub SetCompany()
            Dim ret As Long
            Dim MsgStr As String
            Dim Cookie As String
            Dim ConnStr As String
            Try
                oCompany = New SAPbobsCOM.Company
                Cookie = oCompany.GetContextCookie
                ConnStr = SBO_Application.Company.GetConnectionContext(Cookie)
                '//before setting the SBO login context make sure the company is not connected
                If oCompany.Connected = True Then
                    oCompany.Disconnect()
                End If
                ret = oCompany.SetSboLoginContext(ConnStr)
                If Not ret = 0 Then
                    Exit Sub
                End If
                ret = oCompany.Connect
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
            MsgStr = ""
            If Not ret = 0 Then
                oCompany.GetLastError(ret, MsgStr)
                SBO_Application.MessageBox(MsgStr)
            Else
            End If
        End Sub
        Public Sub New()
            MyBase.New()
            ' set SBO_Application with an initialized application object
            SetApplication()
            SetCompany()
            AddMenuItems()
        End Sub
        Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            Dim myThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf LoadXmlMainThread))
            Try
                If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
                    'SBO_Application.MessageBox("My sub menu item was clicked")
                    '// Create a form to be launched in response to a click on the
                    '// new sub menu item
                    myThread.SetApartmentState(System.Threading.ApartmentState.STA)
                    myThread.Start()
                    'Loadxml.ShowDialog()
                                End If
            Catch ex As Exception
                SBO_Application.MessageBox("1." & ex.Message)
            End Try
            'If (pVal.MenuUID = "MyGoToMenu") And (pVal.BeforeAction = False) Then
            '    SBO_Application.MessageBox("My GoTo Menu was clicked")
            'End If
            'If (pVal.MenuUID = "MySecondGoToMenu") And (pVal.BeforeAction = False) Then
            '    SBO_Application.MessageBox("My Second GoTo Menu was clicked")
            'End If
        End Sub
        Private Sub LoadXmlMainThread()
            'Dim lLoadxml As New Loadxml
            Try
                oLoadXml = New Loadxml
                oLoadXml.WindowState = FormWindowState.Maximized
                oLoadXml.ShowInTaskbar = True
                oLoadXml.TopMost = True
                oLoadXml.Activate()
                Application.Run(oLoadXml)
            Catch ex As Exception
                SBO_Application.MessageBox("2." & ex.Message)
            End Try
        End Sub
        Private Sub AddMenuItems()
            '// Let's add a separator, a pop-up menu item and a string menu item
            Dim oMenus As SAPbouiCOM.Menus
            Dim oMenuItem As SAPbouiCOM.MenuItem
            Dim i As Integer '// to be used as counter
            Dim lAddAfter As Integer
            Dim sXML As String
            '// Get the menus collection from the application
            oMenus = SBO_Application.Menus
            'Save an XML file containing the menus...
            'sXML = SBO_Application.Menus.GetAsXML
            'Dim xmlD As System.Xml.XmlDocument
            'xmlD = New System.Xml.XmlDocument
            'xmlD.LoadXml(sXML)
            'xmlD.Save("c:
    mnu.xml")
            Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
            oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
            oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
            Dim sPath As String
            sPath = Application.StartupPath
            'sPath = sPath.Remove(sPath.Length - 3, 3)
            If sPath.EndsWith("\") = False Then
                sPath = sPath & "\"
            End If
            '// find the place in wich you want to add your menu item
            '// in this example I chose to add my menu item under
            '// SAP Business One.
            oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
            oCreationPackage.UniqueID = "MyMenu01"
            oCreationPackage.String = "Unbridle Menu"
            oCreationPackage.Enabled = True
            oCreationPackage.Image = sPath & "unbridle.bmp"
            oCreationPackage.Position = 15
            oMenus = oMenuItem.SubMenus
            Try ' If the manu already exists this code will fail
                oMenus.AddEx(oCreationPackage)
                '// Get the menu collection of the newly added pop-up item
                oMenuItem = SBO_Application.Menus.Item("MyMenu01")
                oMenus = oMenuItem.SubMenus
                '// Create s sub menu
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                oCreationPackage.UniqueID = "MySubMenu"
                oCreationPackage.String = "Unbridle Monitoring"
                oMenus.AddEx(oCreationPackage)
            Catch er As Exception ' Menu already exists
                'SBO_Application.MessageBox("Menu Already Exists")
            End Try
        End Sub
    End Class
    Public Class Loadxml
        'Inherits System.Windows.Forms.Form
        Public sBPpath As String
        Public sGLpath As String
        Public sBillpath As String
        Public bRun As Boolean
        Private Sub Loadxml_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Me.TextGL.Text = System.Configuration.ConfigurationSettings.AppSettings("GLAcctDownloadPath").ToString()
            Me.TextBP.Text = System.Configuration.ConfigurationSettings.AppSettings("BPAcctUPloadPath").ToString()
            Me.TextBill.Text = System.Configuration.ConfigurationSettings.AppSettings("BillUPloadPath").ToString()
            Me.NotifyIcon1.Visible = False
        End Sub
    End Class

  • Hyperlink not coming in Activity step

    Hi,
    I am sending notification mail through activity step. On task description tab of task under line editor I have put below code for hyperlink:
    /: <x href="http://www.google.com">Welcome to Google</x>
    In above line please consider 'x' as 'a'.
    But when I see email in outlook it does not show anything. Can anyone tell me what is wrong here.
    I am using extended notification tool (SWNCONFIG) to send notifications.
    Regards,
    Vijay

    Hi,
    You can also use FM 'SO_NEW_DOCUMENT_SEND_API1' ( implement this FM in a method of Business Object )
    please find some sample code below.
    Data : lt_text type SOLISTI1 occurs 0,
           L_DOCUMENT_DATA type SODOCCHGI1,
           lt_receivers type SOMLRECI1 occurs 0,
           L_WA_RECEIVE TYPE SOMLRECI1,
           ls_text type SOLISTI1.
    * Creating different formatting in mail body
    CONCATENATE text-002 text-001 text-003
        INTO ls_text.
      APPEND ls_text TO lt_text.
    * Mail subject
      L_DOCUMENT_DATA-OBJ_DESCR = 'Charecter formatting in mail body'.
    * Receiver
      L_WA_RECEIVE-REC_TYPE = 'U'.                  "Internet User
      L_WA_RECEIVE-RECEIVER =  xxx                . "Mail Address
      APPEND L_WA_RECEIVE TO lt_receivers.
    *This function module is used to send mail
        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
          EXPORTING
            DOCUMENT_DATA              = L_DOCUMENT_DATA
            DOCUMENT_TYPE              = 'HTM'
            PUT_IN_OUTBOX              = 'X'
            COMMIT_WORK                = 'X'
          TABLES
            OBJECT_CONTENT             = lt_text
            RECEIVERS                  = lt_receivers
          EXCEPTIONS
            TOO_MANY_RECEIVERS         = 1
            DOCUMENT_NOT_SENT          = 2
            DOCUMENT_TYPE_NOT_EXIST    = 3
            OPERATION_NO_AUTHORIZATION = 4
            PARAMETER_ERROR            = 5
            X_ERROR                    = 6
            ENQUEUE_ERROR              = 7
            OTHERS                     = 8.
    *If Mail Send Successful
      IF SY-SUBRC EQ 0.
        COMMIT WORK.
    *   Push mail out from SAP outbox
        SUBMIT RSCONN01 WITH MODE = 'INT' AND RETURN.        "#EC CI_SUBMIT
      ENDIF.
    where :
    text-002 = <a href="http://www.google.com">
    text-001 = Welcome to Google
    text-003 = </a>
    Thanks
    Sanjay

  • Condition in condition step type always fails

    Hello all !
            I've a condition step type in workflow.
            The condition is as follows :
                           &ZBUS2011.REQ_TYPE& = 0001 AND &PLANT& = X
            The containers in  workflow log is populated with required values. However, the above condition fails for no reason.
            More over, on clicking "Evaluation condition with test data" button in condition display window,  a pop-up message " The evaluation of the condition gives the result 'False' "appears.
            Whether this could be the cause ? How to make the result 'True' ?
            Any suggestion most welcome.
    Regards,
    S.Suresh.    

    Hi Suresh,
    Is your attribute ZBUS2011.REQ_TYPE a vitrual attribute ? If so please check if the attribute is getting re-calculated during runtime. You can check this by instantiating the BOR and check initial value and then click on refresh button and see if the value has changed.
    Thanks,
    Ajay Bose

Maybe you are looking for

  • Asio Driver issue in Premiere Pro CC conflicting with all other media players on PC

    Whenever I have Premiere or audition or After effects opened---- should I want to play a media clip on J River Media center, or Windows Media Player, the Asio driver is locked by the Adobe products, so the other media players do not have access to it

  • RESTORE - Kernel   Bad page - header and trailer not matching

    Hello, I have a Problem with the recover of my backup. When i want to make a restore of the Database this error is shown in Logfile KNLDIAGERR 2008-11-26 21:20:38                               --- Starting GMT 2008-11-26 20:20:38           7.5.0    B

  • FM to determine working days of the Org Unit

    Is there a function module to retrieve the number of working days when the org is valid? Thanks!

  • Changing colors of individual bars in a XY Graph

    I am using an XY Graph (bar style) to display 50 voltages. I have limit settings (low alarm,low warning, high warning, high alarm)that I would like to impose on each of the 50 bars in the XY graph. My problem is that any way I try it the limits are o

  • SM35 - How to download the log!!!!!!!!

    Hello experts, Can anyone guide me how to download the log from SM35. Previously I saw some thread in SDN, someone developed a program to download the log... can anyone paste the code... if have any... Thanks a lot in advanse... I really appreciate y