Using BAPI_TRANSACTION_COMMIT in a workflow

I notice that the BUS2032 method
Salesorder->CreateFromDat2
is actually calling BAPI_SALESORDER_CREATEFROMDAT2. This must be explicitly committed to the database with COMMIT WORK, the recommended way being a call to BAPI_TRANSACTION_COMMIT.
If I want to create a task with the method Salesorder->CreateFromDat2, should I also then as the next step create a task which uses the method BapiService->TransactionCommit, which actually calls BAPI_TRANSACTION_COMMIT?
Kind regards,
Tony.

Hi Srivastava,
Thanks for the quick reply. We need to call BAPI_TRANSACTION_COMMIT when we finish one LUW or transaction so that the data gets commited in database. if any error then you can rollback using BAPI_TRANSACTION_ROLLBACK. So my question here is if you start commiting for every single record then what if the import on system performance? is it going to be impacted or is it ok? If you take other languages like PL/SQL and any batch integrations suggested way of using commit is for every 5000 or 10000 record we need to commit.
Hope I have given enough info on this?
Regards,
Srinivas

Similar Messages

  • Anyone get this error message when trying to use a pre-installed workflow?

    When I try to use one of several workflows under Photo in Automator I get this error message:
    * -[NSNull length]: unrecognized selector sent to instance 0xa00dc008
    The workflows affected are those with the small feather appearing icon next to it. Don't know which application it refers to. For example: Convert to Profile, Change resolution, Assign Color Profile, Color balance.
    Are these referring to some application that I don't have installed? 'Tis a puzzlement.
    OT

    I think I've found the solution. The workflows that were not working were for Photoshop. Now they are. The fix must have been the 10.5.2 Combo updater as that's the only change I've made that would affect Automator. My PS CS3 installation has not been touched since before the problem started.

  • How to use secondary method in workflow?

    Hi friends,
    can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
    thanks and regards,
    Arun.S

    Hi Arun Kumar,
    The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
    For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
    In order to execute a method along with user decision step execution use secondary methods (amodal call.)
    Let me know if you have any queries.
    Regards,
    Raj

  • Using html in a workflow email

    Hi.
    Does anyone know if there's a way to use html in a workflow email so the the html tags are rendered and not displayed literally? I'm trying to include an a href tag so that the email just displays the hyperlink in the email and not the big long ugly url that I'm referencing. I thought maybe there was a function that would allow the html to "execute" but I cannot seem to find one.
    Thanks for any help you can offer!
    Pam

    Hi Taier,
    For this issue, I recommend to verify the things below for troubleshooting this issue:
    What are the OS used in your phone and tablet? Does this issue occur with all the phones or tablets? I recommend to check the email with another phone or tablets to narrow doen the issue scope.
    What email client is used in your phone?
    What HTML tags did you used in your email template?
    Here is a link about some reasons about blank email in mobile for your reference:
    http://www.emailonacid.com/blog/details/C13/5_reasons_why_the_mobile_version_of_your_email_might_not_be_displaying
    Best regards.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using Excel function in workflow?

    Hi all,
    Does anybody know if it is possible to use Excel functions in workflows? Indeed, I need to set the style of a metadata according to the value of another metadata.
    Thanks in advance.
    fx

    Hi,
    According to your post, my understanding is that you wanted to set the style of a metadata according to the value of another metadata like Excel function.
    I don’t think workflow can do it.
    We can use the workflow to set the data, but there is no action to set the style.
    What did you mean set the style of a metadata? Did you mean the format?
    If so, you can use the conditional formatting.
    With conditional formatting, you can easily create a Data View that applies a style to a selected HTML tag or data value when the data meets criteria that you specify.
    You can also set conditions that change the visibility of an HTML tag or data value, so you can show or hide data altogether.
    You can apply the conditional formatting using SharePoint Designer, there is an article for your reference.
    Conditional Formatting in SharePoint 2013
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • WOrkflow related table and zfunction modules used in a particular workflow

    hi gurus,
                  we need to develop a tool to findout the custom WF, custom BOR and workflow related Zfunction modules used in a particular workflows in the client system.
    Eg-
          I have a custom workflow i need to find the list of all zfunction modules , z includes used in that Workflow.
    please suggest us  the table names which stores ZFunction module or z includes used in particular workflow
    Regards,
    Hari

    The only way to do this is to read through the source code of all the objects accessed within workflow and look for the relevant ABAP statements that access Z tables or function modules.
    [This wiki|https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/utilitytosearchABAPsourcecodeandTextelementsfora+string] should get you started on that part.
    As far as the objects are concerned, this is another story altogether. Something as simple as using an SAP standard object attribute in work item text could actually be a delegated subtypes with a redefined virtual attribute.
    So you need to scan everything: all tasks in a workflow and methods, as well as all container elements of each step. You will also need to navigate the object hierarchy to deal with delegation and subtypes. Then you need to consider propagation, what about Zfunction modules called by Zfunction modules in workflow? What if the method submits a report - you would need to scan that report and everything else that it calls and so on.
    This could be a fiendish challenge but sounds like a fun project. Good luck!

  • Update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow

    Hi,
    We have a requirement to update a column value once the item has been approved.
    Following settings have been made in the publishing articles list:
    Require content approval for submitted items : yes
    Create major and minor (draft) versions
    Who should see draft items in this document library? :Only users who can edit items
    Require documents to be checked out before they can be edited? : yes
    I have createdatu a Sharepoint 2013 workflow to check if Approval sts of current item = 0 i.e. Approved , then check out and update the item and finally checkin the item. Everything works fine till this point except that the minor version of the item is
    checked in. Due to this the updated columns are not published to others.
    Also, I created a Sharepoint 2010 workflow to SET CONTENT APPROVAL = APPROVED and started this workflow from my list workflow above, but the item does not get checked-in and always shows "In Progress" status with comment "The item is currently
    locked for editing. Waiting for item to be checked in or for the lock to be released.".
    Please let me know where I am missing out so that once the item is approved, column value gets updated and current item is still in Approved status.
    Thanks

    Hi,
    According to your post, my understanding is that you want to update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow.
    You will get into this kind of Catch-22 situation trying to set the Content Approval Status in SharePoint Designer workflow:
    - You must check out the document before you can change the Content Approval Status
             - You can't change the Content Approval Status once the document in checked out
    Since you set the Require documents to be checked out before they can be edited=Yes, you will need to check out the document when run the workflow on the item. But you cannot approve a document when it is checked
    out. So the logic in workflow conflicts.
    As a workaround, you can use the Start Another Workflow action to start the normal Approval workflow on the document.  The built-in Approval workflow can work with a document that’s not checked out.
    The designer approval workflow also can work with a document that’s not checked out.
    You can create two workflow using SharePoint Designer 2013.
    First, create a SharePoint 2010 platform workflow.
    Then, create a SharePoint 2013 platform workflow.
    Then when the SharePoint 2013 platform workflow start, it will start the SharePoint 2010 platform workflow to set content approval status, then the SharePoint 2013 platform workflow will update current item value.
    More information:
    SharePoint Designer Workflow Content Approval Issue
    SharePoint 2010 Approval Workflow with Content Approval
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • # of commits using BAPI_TRANSACTION_COMMIT in integration?

    Hi all,
    my question is how many times can use BAPI_TRANSACTION_COMMIT BAPI for commiting data in SAP Standard tables? curently I am calling BAPI_TRANSACTION_COMMIT for every BP created in CRM. Ours is integration from legacy to CRM, and this job runs daily. Can we bundle 5000 or 6000 BP's created or processed successfully and then call BAPI_TRANSACTION_COMMIT bapi? what is the SAP recomendation for using this? I tried to see some documenation on this, unable to get any document which describes this.
    Thanks for the help in advance.
    Regards,
    Srinivas

    Hi Srivastava,
    Thanks for the quick reply. We need to call BAPI_TRANSACTION_COMMIT when we finish one LUW or transaction so that the data gets commited in database. if any error then you can rollback using BAPI_TRANSACTION_ROLLBACK. So my question here is if you start commiting for every single record then what if the import on system performance? is it going to be impacted or is it ok? If you take other languages like PL/SQL and any batch integrations suggested way of using commit is for every 5000 or 10000 record we need to commit.
    Hope I have given enough info on this?
    Regards,
    Srinivas

  • What is the use of version in workflow

    what is the use of versioning in workflow. how can i use it in real time senarios.

    Hi,
    Its the same way as in reports and other areas. You can generate a current version and keep making changes to the latest version so that you can always revert back to the older one in case of problems.
    It is also used when you transport the workflow from one system to other. Assume you have already transported a workflow definition to the production system. Now this workflow also has been instantiated and some instances are running in production. Now if you make some modifications in this workflow and transport (even with the same version number) it will get transported to the production under a new available version number. The previous instances of the workflow (in production) will continue to run referring to the older version available and any new instances will continue with the latest transported workflow definition.
    Thanks,
    Prasath N

  • Regarding role resolution using evaluation paths in workflow

    hi all,
    Could anybody guide me on the steps needed to configure role resolution using evaluation paths in workflow. IF u could provide me with a sample it would be great.
    Thanks in advance,
    steve

    Hi Steve,
    Why dont you check the Standard rule <b>168</b>. I am sure, that will give you some idea of Agent Determination. I mean, please refer the SWX_GET_MANGER function module.
    In this,you can see RH_STRUC_GET is the function module that determines the required Agent/related Org Object using the Evaluation path(see the parameter - ACT_WEGID), here they have used SAP_TAGT.
    I hope this helps.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Short cut command, shift, Z use to launch esko workflow in CS6 illustrator upgraded to CC dent work

    short cut command, shift, Z use to launch esko workflow in CS6 illustrator upgraded to CC dent work

    Then you changed it in CS6. The normal preset usage for that preset is to Redo an Undo.

  • Is keeping Bridge current necessary while using the Lightroom-CS6 Workflow

    Hi Folks,
    I totally get and daily use the LR4 to CS6 workflow, although I'd consider myself not much more than a beginner with PS.  My question is - is there a need when adding photos to the LR database, to at the same time (or at some point), make sure that all the files are going to an accessible (can follow the path/find the photo) in BR?  Or can I just forget about Br and just keep using a very understandible and efficient workflow?  Further, if there is a reason to keep BR current, can it be automated to populate appropriate files so that if I add photos to LR, they will easily be found in BR, without me having to do any additional moving/importing of files to BR?  Also, if I need to have BR current, how would I use it in a workflow that mainly incorporates LR and PS6?  Lastly, if there is a way of getting photos to go to BR from LR(or accessed/seen by BR is probably more appropriate), if I have done the ratings and keywords in LR, will these be transferrable to BR somehow- again, preferrably using some type of action/automation in the background?  Thanks very much in advance for your comments.

    When you have Lr and Photoshop you don't need Bridge at all for your workflow.
    When you work with Lr 4.3 and CS6 a Raw image that you intend to edit in CS6 will open as Raw in CS6 (bypassing Bridge) - but when you save a PSD (or TIFF) will be created.
    And when you just <save> - versus <save as> - your image will automatically show up in Lr. Bridge doesn't even open during that "roundtrip" from Lr to CS and back to Lr.
    As twenty-one has already said: Bridge is a file-browser type of program. That means it "sees" whatever is on the hard drive, no matter by which progam it has been put there.
    Lr is not a file-browser based program. It "sees" images only when they have been imported in Lr. If they have not been importent they don't exist for Lr - even if they are on the hard drive.
    So Bridge can be used as an auxiliary program to check out which images are actually on the hard drive. And that can be very useful - particularly when you are still learning to work with Lr.
    Another advantage is that Bridge supports more file formats than Lr. Lr works only with Raw images, JPGs, TIFFs, PSDs. For instance, Lr doesn't work with PDFs and doesn't display them, whereas Bridge does.
    Writing metadata to file (or synonym: write changes to xmp) in order that Bridge will display the Lr edits is quite straightforward in Lr. There is no need to "associate them with the appropriate raw file". Lr does that for you.
    You can set Lr to <Automatically write changes to XMP>, or do it manually for a single or multiple images by pressing Ctr. / Cmd. + letter S on the keyboard. That's all.
    Stars and keywords will be included in the metadata, and also titles, captions and all EXIF data. For color labels to transfer correctly between Lr and Bridge you need to describe the labels in exactly the same way (including hyphens, undersscores, etc) in both programs.
    But there are features in Lr that are not saved to xmp, not saved to file. These are: that an image belongs to a collection, virtual copies, stacking.
    They are not saved to xmp because Bridge doesn't have these features, and so could not display them even if they were saved.

  • Tcode to be used to approve a workflow item

    Hi Gurus,
    Which tcode can be used to approve a workflow item manually?
    br
    jack

    SWO1
    SELECT THE BUSINESS OBJECT
    IF IT IS SC
    BUS2121
    EXUCUTE
    INSTANCE
    GIVE SC NUMBER
    GO TO METHOD
    SET RELEASED
    EXECUTE
    SC APPROVED.
    THIS IS BACKEND METHOD .........FIRE FIGHTING NOT ALWAYS..

  • Send Edit Items URL in E-Mail Using Sharepoint Designer 2013 WorkFlow

    Hi,
    I want to Send the URL of Edit Item List using SharePoint Designer 2013 Workflow
    I m Using [%Task : URL%] Then it return the internal URL -- 
    http://SP2013/Sites/MySites/HelloSites/Lists/Tasks/DispForm.aspx?ID=359&ContentTypeId=0x0108003365C4474CAE8C42BCE396314E88E51F
    But i want in  AAP URL for edit list items  such as 
    http://Hello.com/Sites/MySites/HelloSites/Lists/Tasks/DispForm.aspx?ID=359&ContentTypeId=0x0108003365C4474CAE8C42BCE396314E88E51F
    Any one can suggest me please.
    Thanks 
    Rajesh

    Hi, 
    I'm assuming you made your site as internet site (public facing).
    In that case you might site desired output. If not you can think of replacing text
    i.e SP2013 = hello.com
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • Cannot send email using SharePoint designer 2013 workflow

    I am having a problem which I see many others have also posted about.  However, I don't find that any of their solutions fixes my problem.
    Using SharePoint 2013 on Windows 2008 R2 server.  SQL 2008 R2 on separate server.  Created a pretty simple workflow that calls for an email to be sent.  Created an Infopath form that is published to a SharePoint list.  One of the
    list fields is called "Approver" and is a people lookup field.  The workflow assigns an approver based on certain criteria in the list, and then sends an email to the assigned approver.
    During the testing phase of creating the workflow, I had the email sent to me specifically and I received the emails with no problems.  When I change the email recipient to Current Item:Approver (who is also me), I don't receive the email.  I have
    tried selecting Display Name, Email Address, and Login Name, but none work.  I also tried to send the email to the current item:creator (which was me) by selecting "User who created current item" from the select users dialog.  This also
    doesn't work.  The workflow is shown in a suspended state in the Workflow status screen.
    For informational purposes, I also included the Approver Display Name, the Approver Email Address and the Approver Login Name in the body of the email so that I could see what those fields actually returned as data.  The display name, and email address
    are correct, but the login name returned i:0#.w|domain\login (domain and login were my actual domain and login name).
    I have tried several of the fixes I found online to resolve this, but none have worked. Any help is appreciated.

    I don't see that it is possible to add CurrentItem:Creator to a list view.  The CurrentItem:CreatedBy returns my name as it should.  However, this does not help with my problem.  I don't want the email to come to me.  I want it to go
    to the CurrentItem:Approver.  This is a specific person who is assigned by the workflow based on various fields in the current item.  The approver is assigned, then an email is sent to the assigned person.
    There is a SharePoint group set up for Approvers.  This is used to assign permissions to the site where this list is created.
    Basically, I can't send an email to any recipient where I am using the current item lookup fields to populate the To: field.  I can only send email if I specifically select a person by name.

Maybe you are looking for

  • OIM 11.1.1.5.0 - Remote Manager not working

    Hi everyone, I am working with an AD which I installed on a different machine than my OIM and I would like to install Remote Manager with my AD. I followed all the steps which are described in the documentation but when I launch RemoteManager.bat, I

  • HT5132 How do I get rid of the box showing up ......

    How do I get rid of the box showing up all the time when I start the computer and plug in my iPhone its highly annoying. Tried everything at this stage only for it to pop up again the next time

  • Edit link in item region portlet is displayed with unwanted banner

    I have several item repositories in the form of pages published as portlets. When adding these portlets I often check the option to display the edit link. When the link is displayed on the page it always shows up with a banner in a completely differe

  • High CPU when using zoom fonction - Reader 11.0.03

    Hello, I've noticed the following problem on a 2008 R2 remote desktop server. When an user make a zoom in a pdf document, the CPU usage reach 100% usage et stay at this level for about 10 secondes and the screen freezes. All the users are impacted by

  • System Profiler Crashes Lacie ext not mounting

    Sometime after updating to 10.4.9, I noticed my external Lacie firewire is not mounting. I have disconnected/reconnected Lacie HD. I have ran Permissions from direct CD, reset PRAM, HD not visual in DiskUtility, Diskwarrior, or System Profiler. When