Automatic publish to ERP

Hi,
I am using SAP sourcing7. We have a requirement where we need to automatically publlsh master agreements to ERP. For this, we have created a custom variable through workbook and used below document lifecycle script. However, I get error saying "Typed variable declaration : Class: ExporterIfc not found in namespace"
I have checked the SAP integration jar and the classes ExporterIfc, SmartExporter all seem to be same and belonging to right packages.  Can you please help.
import java.util.HashMap;
import com.frictionless.sap.integration.exporter.ExporterIfc;
import com.frictionless.sap.integration.exporter.SmartExporter;
PROP_DATACONV_ENABLED = "data.conversion.enable";
PROP_SET = "custom";
// Get logger
logMsg =Logger.createLogMessage(session);
void publishOA(){
Logger.info(logMsg.setLogMessage("*********Starting publishOA**********"));
HashMap map = new HashMap();
map.put("mode", "export");
ExporterIfc exporter = new SmartExporter(doc,map);
exporter.process();
//*********** Main Method **********
Logger.info(logMsg.setLogMessage("*********STARTING AUTOMATIC PUBLISH TO ERP**********"));
dcInProg =IapiSystemUtilities.getSystemProperty(session,PROP_SET,PROP_DATACONV_ENABLED,"false");
Logger.info(logMsg.setLogMessage("*********dcInProg**********" + dcInProg));
if(Boolean.valueOf(dcInProg)){
publishOA();
Regards
Moumita

Hi Bram,
What is the exact issue you are facnig? Is it in autopublish script or you are getting validation errors when trying to publish to ERP.
In case, it is in autopublish in SAP sourcing 7.0, you should use below script in collection validation with class as Agreement/Master Agreement and target as Collection Validation.
Please let me know if you want more information.
import java.util.HashMap;
import com.sap.eso.sapintegration.exporter.ExporterIfc;
import com.sap.eso.sapintegration.exporter.SmartExporter;
PROP_DATACONV_ENABLED = "data.conversion.enable";
PROP_SET = "custom";
// Get logger
logMsg =Logger.createLogMessage(session);
void publishOA(){
Logger.info(logMsg.setLogMessage("*********Starting Publish to ERP**********"));
HashMap map = new HashMap();
map.put("mode", "export");
ExporterIfc exporter = new SmartExporter(doc,map);
doc.getExtensionField("Z_MIGRATION_VAR").set(true);
Logger.info(logMsg.setLogMessage("*********Setting migration flag to**********" + Z_MIGRATION_VAR));
exporter.process();
Logger.info(logMsg.setLogMessage("*********Ended Publish to ERP**********"));
//*********** Main Method **********
dcInProg =IapiSystemUtilities.getSystemProperty(session,PROP_SET,PROP_DATACONV_ENABLED,"false");
Logger.info(logMsg.setLogMessage("*********Migration is enabled**********" + dcInProg));
lineItemsCollection = doc.getLineItems();
isExported=doc.getExtensionField("Z_MIGRATION_VAR").get();
Logger.info(logMsg.setLogMessage("******isExported******" + isExported));
collectionsize = lineItemsCollection.size();
// If there are lineitems, then only publish to ERP
if (collectionsize>0) {
     Logger.info(logMsg.setLogMessage("******Number of Lineitems******" + collectionsize));
     if(Boolean.valueOf(dcInProg)){
          if(!isExported) {
               publishOA();
Regards
Moumita

Similar Messages

  • Automatic Publish Site Changes

    Is there a way for iWeb '09 to automatically publish site changes everyday at a specified time?

    You might be able to create an Automator workflow that would open iWeb and invoke the File ➙ Publish Site Changes menu at a give time each day.  Or possibly an Applescript.  As in those forums for help.
    OT

  • Workflow for Master Agreement (Publish to ERP)

    What is the best practice for approval workflow before publishing a master agreement from eSource to ECC?
    In the interest in keeping the source-of-truth within a single application we do not want to keep approval workflow of Outline Agreements in ECC as it is currently when moving the creation of the master agreement functionality to eSource.  There is no inherent workflow functionality for master agreements in eSource.  Are there customizations and/or best practices for having workflow of master agreements such that the Publish to ERP would not be possible until approval has been done within the eSource application?

    Hi,
    As you rightly said, Work flow support is not available in MA and more specifically before sending it to ERP
    Here are some options you may want to consider:
    - Try to use ACL/Security rights to control who can publish to ERP. For instance only the "document owner" can publish and the document owners are responsible. You can put a message or ask the publisher to enter some values on extension fields on who all approved this document.
    - Try using approval functionality in ERP if that works. that may be the simplest..
    The following options require heavy customization & scripting:
    Leverage workflow support from other docs
    - Tie an User defined business document (UDO that supports workflow) with MA. Provide a custom action, which will create a UDO biz doc instance and trigger a workflow behind the scenes.  MA will have a reference to UDO and vice versa. Users will approve the UDO.  In your Pre Publish to ERP script check for the approval conditions of UDO and work with that.
    - if MA is created from Projects try using project workflow for the business process..
    Good luck!
    Thanks, Baski

  • How can I upload my iPhoto photos to facebook, and not have them automatically publish?

    I know how to share my iPhoto photos to Facebook, but it used to be that when I logged on to Facebook, I had to approve the photos being published, and had the opportunity to edit the album and then publish it. How I do this again, and not have it automatically publish?

    Question to ask of Facebook.

  • App-V 5.0 no longer allows a manual or automatic publishing refresh to add and/or remove applications

    We just received confirmation from Microsoft that there has been what we deem a major behavior change in App-V 5.0 from 4.x. With 4.x you could add a user to an AD group that is assigned to a virtual application then on the client machine the user could
    right click the App-V icon in the system tray and choose 'Refresh Applications' and the app's icon would appear immediately. You could also wait for the configured automatic refresh time and the app's icon would be added immediately. Same applied is you
    removed a user from an app group.
    This is no longer the case in App-V 5.0 as there is only one way to get app to be added or removed from client and that is to have them log off and log back on. Like many organizations, we have users who do not routinely log off/log on, they just lock
    their PC and unlock it. These people would never get a new app added or removed!
    In the 5.0 client there is an 'update' button, but all this does is apply any changes to an already assigned application such as if you changed the icon name, and that only occurs after the default 10 minute publishing server to management server refresh
    has occurred (although you can change this from 10 minutes to something lower).
    My point is, in 4.6 you could add a user to a group and have them click refresh and the user had the app immediately or tell them to continue working normally and the new app icon would appear within an hour. We opened a case with premier
    support and they confirmed that this behavior change is expected, although the engineer sounded shocked that this was the case and he seemed surprised this had not come up yet. Also, I recall that at TechEd 2010 the App-V team demoed the beta version
    and one of the things the did was add a user to a group, click the then named refresh button and the app would appear.
    As I mentioned above, in the RTM build this button has been renamed to 'Update' but its not just a name change, but a complete change from 4.6 and the 5.0 beta 1.  I have been unable to find any documentation from Microsoft pointing out this major
    change in behavior, and the fact that a member of the App-V team that authored the KB about server publishing refresh times in App-V 5.0 was surprised to realize this change (see
    http://support.microsoft.com/kb/2780177) Is it just me or is this a major issue with 5.0?
    This will  prevent us from migrating to 5.0. Any one know of a workaround or some other option?  If you want to see what I am talking about, log onto a machine with the 5.0 client, add yourself to an App-V 5.0 app group that you are not already
    a member of, do not log off and you will see that you never get the app on your client. What a few hours if you want, it won't show up. Lock the machine and unlock it. Still now new app.  Now log off and log back on and only then will you see the new
    app show up.  You can repeat this by now removing yourself from the group and waiting. The app will remain there until you log off/on.

    We just received confirmation from Microsoft that there has been what we deem a major behavior change in App-V 5.0 from 4.x. With 4.x you could add a user to an AD group that is assigned to a virtual application then on the client machine the user could
    right click the App-V icon in the system tray and choose 'Refresh Applications' and the app's icon would appear immediately. You could also wait for the configured automatic refresh time and the app's icon would be added immediately. Same applied is you
    removed a user from an app group. This is no longer the case in App-V 5.0 as there is only one way to get app to be added or removed from client and that is to have them log off and log back on. Like many organizations, we have users who do not routinely
    log off/log on, they just lock their PC and unlock it. These people would never get a new app added or removed! In the 5.0 client there is an 'update' button, but all this does is apply any changes to an already assigned application such as if you changed
    the icon name, and that only occurs after the default 10 minute publishing server to management server refresh has occurred (although you can change this from 10 minutes to something lower).  My point is, in 4.6 you could add a user to a group and have
    them click refresh and the user had the app immediately or tell them to continue working normally and the new app icon would appear within an hour. We opened a case with premier support and they confirmed that this behavior change is expected,
    although the engineer sounded shocked that this was the case and he seemed surprised this had not come up yet. Also, I recall that at TechEd 2010 the App-V team demoed the beta version and one of the things the did was add a user to a group, click the
    then named refresh button and the app would appear. As I mentioned above, in the RTM build this button has been renamed to 'Update' but its not just a name change, but a complete change from 4.6 and the 5.0 beta 1.  I have been unable to find any
    documentation from Microsoft pointing out this major change in behavior, and the fact that a member of the App-V team that authored the KB about server publishing refresh times in App-V 5.0 was surprised to realize this change (see
    http://support.microsoft.com/kb/2780177) Is it just me or is this a major issue with 5.0? This will  prevent us from migrating to 5.0. Any one know of a workaround or some other option? 
    If you want to see what I am talking about, log onto a machine with the 5.0 client, add yourself to an App-V 5.0 app group that you are not already a member of, do not log off and you will see that you never get the app on your client. What a few hours
    if you want, it won't show up. Lock the machine and unlock it. Still now new app.  Now log off and log back on and only then will you see the new app show up.  You can repeat this by now removing yourself from the group and waiting. The app will
    remain there until you log off/on.

  • F-47 - bupla is not  automatically filled in ERP 6.0

    People,
    when we was using R/3 4.6C, in f-47 transaction, the "Business Place" field was automatically filled.
    After migrate to ERP 6.0, this field is not filled anymore.
    Anyone notice this? Is it possible to change this?
    Thank you!

    This was done by the FI consultant.
    He changed the message to W in configuration. There were 2 messages.
    There is an OSS note for this.
    Lakshman

  • ICal won't automatically publish my changes

    I have iCal (3.0.6) set to publish several of my calendars. When I first told it to publish, I DID click the "Publish changes automatically" check-box, however, iCal is simply not publishing any changes. When I right click on the calendar name, the "Publish" option is grayed out, whether there are changes or not. The only way I have found to publish the changes is to get info on the calendar, click "Change Location", then click Ok, and it will republish. This is quite annoying to have to do every time I make a change. Is there anything someone can think of that I can do to fix this?

    Nick,
    That is not the window (http://nickchich.com/stuff/getinfo.jpg) which I see when I use the iCal>Calendar>Change Location... menu choice.
    This is what I see on my system simply using "Get Info":
    This is what I see using iCal>Calendar>Change Location... menu choice.:
    I am not sure what to say about the difference, or what influence it may or may not have with the problem.
    How/When did you update to 10.5.6?
    Message was edited by: Ferd II

  • ICal automatically publishing calendar

    I suddenly had LOTS of "Personal" calendars on my iCal today. I thought it had something to do with Pocket Mac synching and went through and deleted all but the "Personal" calendar I've been adding entries to. I just looked up, and iCal has automatically added 2 "Personal" calendars. Anybody have thoughts? Thanks!

    Wrong nomenclature -- should have said "adding" (rather than "publishing").

  • Automate publishing for dynamic fla

    Hello!
    I'm not so experienced on publish setting and automation, I
    tried to find some help but I found no documentation about my
    problem! Hope this is the right section.
    Here's the issue. I developed a flash file that gets info
    from a DB and produces some results. The swf file is unique, but
    changing a parameter I can see different output HTML (ASP) pages.
    Now the goal is to change the media, and instead of an html
    page, to produce an output for printing (I mean typographic
    printing). Since the page I need is small, I tried to publish from
    Flash as a JPG instead of SWF, with maximum quality and it worked
    well. Of course this means turning into static pages.
    So I thought I can produce static ".as" files from the db
    info, and publish the single FLAs as JPEGS. But how I can do that
    (or something like that) avoiding to do it file by file?
    They're a lot of files (thousands), so I can't do them
    manually.
    Is there a way to automate publication with flash involving
    some parameters?
    Thanks a lot for all your help!
    Greetings,
    -LucaS-

    yes, it's possible using flash javascript (and not
    actionscript and not during runtime). see, extending flash.

  • Web pages are not automatically published. First they are saved as drafts with a .new extension.

    Hi,
    I am curently using adobe CS3. I am facing this strange
    problem where my web pages are being saved with a .new extension
    when I am tryign to publish. Everytime I need to go and change the
    extension from .cfm.new to .cfm inorder to see the changes made to
    the web page. I have even enabled the option so that contribute
    does not send the page for reviewing before publsihing. Even after
    enabling it I am facine the same problem. And this problem is being
    faced by everyone who has publishing rights including the admin.
    Can anyone please suggest a way to get rid of the .new extension
    after publishing.
    Your help will be greatly appreciated.
    Thanks!

    We, too, are having this problem.  I see two posts in 2008-07 reporting this, but no answers and nothing via Google.
    Details:
    1. The web server is a Red Hat Linux / Apache.
    2. It seems site-wide:  several department webmasters have reported the problem.  It may be limited to webs that are using Contribute and check-in/check-out.
    3. The only thing I can think might be causing it is that our NTP daemon is broken, and the time of day drifted ~6 minutes (I have since reset the clock by hand).

  • Automatic publishing a Java application in the web?

    Do you remember the nama of that tool which publish a Java application in the web, as is?

    :^))
    here it is...
    http://www.creamtec.com/webcream/index.html

  • OIM OIA integration automatically publishing roles

    I have OIM 11gr2 OIA integration working feeding users/accounts/entitlements etc and roles export properly to OIM however they are ALWAYS published to the catalog and alto to the Top organization which is a bit of an issue as now these are requestable for all users. I would like the ability to restrict the roles to only publish to a certain organization. I have picked through everything I can find to determine if there is any place to hook in to prevent this but no luck so far. Anyone got any ideas?
    Thanks!

    Any updates on this ??

  • Automate workflow: receive email feed then publish as news item

    Hi,
    Each week, news is sent from an external email account to a wide distribution.  Each week, I manually copy that email into the BC News module and publish it on the webiste.  I also manually update the "Subject" and "Expiry" fields.
    Is there a some way to automate this?  I was hoping there might be a Web App that would act as an email recipient.  Upon receiving the email, the webapp would:
    Duplicate subject field from email to subject field in news item
    Duplicate content from email to content in news item
    Set the expiry date to be recived-date + 2 weeks (or some arbitrary value)
    Publish the news item
    Send a confirmation mail to the administrator, indicating a news item has been automatically published
    I'm not concerned about securing the email feed from spammers.
    Thanks,
    Matt.

    Thanks Liam.
    As a follow up, does BC expose an API for the News module? Perhaps I can write my on WebApp for this?
    Matt.

  • Automatic creation of contract in SAP ECC from ESO

    Hello Experts,
    We are installing SAP ESO 5.1, with integration package, linked to a SAP ERP 5.0 system.
    With the out-of-the box integration package, it is possible to create an outline agreement (contract) from an ESO Master Agreement / Agreement by selecting Scripts -> Publish to ERP from the toolbar (this can only be done if the Master Agreement is in a "saved" state). This is a manual process.
    My question is: is it possible to automatically execute this script by means of Workflow?
    The goal would be for E-Sourcing to always create a contract in the SAP ECC backend system from a completed ESO Master Agreement. I believe this can be achieved by executing a script at the "saved" event?
    I'll appreciate your feedback on this approach, or any other solutions you might have implemented with customers to reach a solution to a similar requirement.
    Thanks!
    Regards,
    Gilberto Gallardo

    Hi Gilberto
    I would not suggest "Publish to ERP " to me made a post save script as contract managers/ buyers might "save" a draft version of the master agreement which might still need some validation. Also since a  word contract is not in place at this point in time, there might be changes later on which could make the situation rather messy.
    In case you are going for approval workflows in phase definition of contract, you can use "Publish to ERP " as a postscript for workflow when contract finally is moved to executed phase but again would support Howie here that it should remain a manual process since a lot of validations would be required.
    A lot depends on business on what they consider to be the culimination of CLM cycle. Few would like to start transactions through oultine agreement before actual contract is signed to speed up the process while many would like to wait for the actual signed document to be in place before starting transactional procurement.
    Regards
    Mudit Saini

  • MobileMe Gallery + Smart Folder; why doesn't it automatically update?

    I used to use Photocasting on iPhoto 6. This worked great in that I published a photocast of a smart folder and any new items that matched the smart folder were automatically published.
    I upgraded to iPhoto '08 specifically so that people could subscribe to an album via RSS and have it work on any computer.
    Unfortunately, with iPhoto '08 the MobileMe Gallery doesn't seem to remember that it was based on a smart folder and I have to manually add additional pictures to publish in the MobileMe Gallery.
    What am I missing? All I want is to have a smart folder automatically publish all new matches to an RSS feed for my friends & family to see new pics.
    Please advise as to how anyone is able to accomplish this.

    MobileMe galleries are separate from the album that you initially use to create them. Any photo added to the album also has to be manually added to the gallery. It's the nature of the beast. You can put in a feature request to Apple via http://www.apple.com/feedback/iphoto.html
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

Maybe you are looking for

  • IMessages is not working . It says to check my connection, but it's fine. What is this , how do I fix it?? Please help me :)

    I just got a new iPod touch and when I was setting it up I upgraded it to 5.1.1. The problem is that I can activate iMessages. It comes up saying I should check my connection so I did and it was fine. How do I fix this??? I really want to get this wo

  • Using 27" iMac as a Display for my 13" MBP

    I've read a couple of posts on this forum, but am still unsure whether this is possible. I have a 27" i7 iMac and a 13" MBP (2009) and I want to know if I can use the iMac as a display for my MBP. Is this possible, if so what do I need to acheive thi

  • Gridbag Layout In Flex - Looking for canvasgrid

    Hello, I found a posting about a layout mechanism call canvasgrid, based on the gridbag layout principle. It is documented at Mannu's Blog. It is a very effective layout, but the download is broken, and so If anyone happens to have his open source re

  • Cortana not working

    So, the update hit my computer, and caused a ton of issues.  First, start menu stopped working for a few days.  (I got that fixed via the post about the power-shell commands)  the Second big issue is Cortana isn't working, I click search, or I click

  • Has anyone actually ready the EULA for Flash Player 10.2?

    .  .  .  because I can't get it to open using Firefox My Adobe Fash Payer has a popup window that automatically tells me I need a new version of Adobe Flash Player and invites me to read the the End Use License Agreement (EULA) with a link to this pa