Replication from an OSGI bundle - help

I am an OSGI newb!
I create a custom WorkflowProcess that is called from a WorkflowLauncher when a certain node gets created on the Author instance.  The WorkflowProcess needs to replicate the node structure onder this node to the publisher.  
I am having problems using the Replicator from the WorkflowProcess in the OSGI bundle.  I am not about to instantiate an instance of  com.day.cq.replication.Replicator.  I have tried using the @Reference annotation, but at runtime the replicator is null.  I have seen suggestions of using the Sling on the front end but that is not what I am looking for. 
So my questions are:
1.) How do I get an instance of  com.day.cq.replication.Replicator from inside a WorkflowProcess (WorkflowSession)?
2.) Can I use Sling in the bundle?
3.) Is there an easier way to do this?
4.) Can I programmatically connect to the Publish server from my WorkflowSession and create the nodes with jcr?
Thanks.

The code to manually trigger replicator would look somewhat like this:
import javax.jcr.Session;
import com.day.cq.replication.Replicator;
import org.apache.sling.jcr.api.SlingRepository;
@Reference
private Replicator replicator;
@Reference
private SlingRepository repository;
try{
     Session session = repository.loginAdministrative(null);
     replicator.replicate(session, ReplicationActionType.ACTIVATE, path);
finally{
     if (session != null){
          session.logout();
          session = null;

Similar Messages

  • What is the best practise to provide a text file for a Java class in a OSGi bundle in CQ?

    This is probably a very basic question so please bear with me.
    What is the best way to provide a .txt file to be read by a Java class in a OSGi bundle in CQ 5.5?
    I have been able to read a file called "test.txt" that I put in a structure like this /src/resources/<any-sub-folder>/test.txt  from my java class  at /src/main/java/com/test/mytest/Test.java using the bundle's getResource and getEntry calls but I was not able to use the context.getDataFile. How is this getDataFile method call to be used?
    And what if I want to read the file located in another bundle, is it possible? or can I add the file to some repository and then access it - but I am not clear how to do this.
    And I would also like to know what is the best practise if I need to provide a large  data set in a flat file to be read by a Java class in CQ5.
    Please provide detailed steps or point me to a how to guide or other helpful resources as I am a novice.
    Thank you in advance for your time and help.
    VS

    As you can read in the OSGi Core specification (section 4.5.2), the getDataFile() method is to read/write a file in the bundle's private persistent area. It cannot be used to read files contained in the bundle. The issue Sham mentions refers to a version of Felix which is not used in CQ.
    The methods you mentioned (getResource and getEntry) are appropriate for reading files contained in a bundle.
    Reading a file from the repository is done using the JCR API. You can see a blueprint for how to do this by looking at the readFile method in http://svn.apache.org/repos/asf/jackrabbit/tags/2.4.0/jackrabbit-jcr-commons/src/main/java /org/apache/jackrabbit/commons/JcrUtils.java. Unfortunately, this method is not currently usable as it was declared incorrectly (should be a static method, but is an instance method).
    Regards,
    Justin

  • OSGi bundle JNI load/unload problem

    Hi everybody!!
    One more thread about the topic. I still didn't find a solution. Can anybody help me?
    I have an OSGi bundle that access native methods from a JNI library (for a medical device). I could make my bundle work once, but the second time I tried to access the methods, the dll was still in use I couldn't get data from the methods.
    This is the class I used (I even tried with a custom libloader):
    public class Omron637ITjni {
         /*Native functions from the JNI dll*/
         public native int OmronInit();
         public native int OmronClose();
         public native int OmronFinish();
         public native int OmronOpen(int disp);
         public native int OmronRead(MeasurementData MData, int pos);
         public native void OmronNumRead(DataCount DCount);
         static{
              //Using LibLoader
              /*try {
              LibLoader.loadCommLib("omron637IT");
              catch ( Exception x ) {
              // do what is necessary
                   System.out.println(x);
              //Using System Commander
              try{
                   System.out.println("Charging Library Omron");
                   System.loadLibrary("omron637IT");
              }catch(UnsatisfiedLinkError unsatisfiedlinkerror)
    System.out.println("Error loading library: " + unsatisfiedlinkerror);
    As it seems not to work, I'm trying with Singleton pattern. This is my new class:
    public class Omron637ITjni_Singleton {
              * Native functions from the JNI dll
              public native int OmronInit();
              public native int OmronClose();
              public native int OmronFinish();
              public native int OmronOpen(int disp);
              public native int OmronRead(MeasurementData MData, int pos);
              public native void OmronNumRead(DataCount DCount);
              private static Omron637ITjni_Singleton singleton;
              * Instance accessor following singleton.
              public static Omron637ITjni_Singleton getInstance() {
                   if (singleton == null){
                        System.out.println("Create Object");
                        singleton = new Omron637ITjni_Singleton();
                   else{
                        System.out.println("Object already created; use instance");
                   return singleton;
              * Private constructor to ensure that a <tt>ResourceManager</tt>
              * cannot be constructed from outside this class.
              private Omron637ITjni_Singleton() {     
              static{
                   //Using LibLoader
                   /*try {
                   LibLoader.loadCommLib("omron637IT");
                   catch ( Exception x ) {
                   // do what is necessary
                        System.out.println(x);
                   try {
                        System.out.println("Charging Omron library from Singleton");
                        System.loadLibrary("omron637IT");
                        System.out.println("Library charged");
                   } catch (UnsatisfiedLinkError ule) {
                        System.out.println("Error loading library: " + ule);
    At this very moment, when executing
    Omron637ITjni_Singleton jni = Omron637ITjni_Singleton.getInstance();
    from the Activator, I get from the Knopflerfish console:
    [stdout] omron637ITBPM starting...
    [stdout] Service registered: Omron 637IT Blood Pressure Monitor
    [stdout] Charging Library Omron desde Singleton
    [stdout] Library chatged
    [stdout] Create object
    Then, I call a services provided by the bundle:
    framework call omron637IT.Omron637ITInterface getData
    which calls the following function:
    public void getData() {
              // TODO Auto-generated method stub
              //Omron637ITjni jni = new Omron637ITjni();
              //Singleton
              Omron637ITjni_Singleton jni = Omron637ITjni_Singleton.getInstance();
              try {
                   int res = jni.OmronInit();
                   int ok_open = jni.OmronOpen(res);
                   System.out.println("The attempt of connecting the Omron637IT device ended with code: " + ok_open + " [(0) normal (1) still in process (2) error]");
                   if (ok_open == 0){ //OK
                        DataCount NumData = new DataCount();
                        jni.OmronNumRead(NumData);
                        System.out.println("DATA");
                        System.out.println("----");
                        for (int pos = 0;pos<NumData.nData1;pos++){
                             MeasurementData Data = new MeasurementData();
                             int ok_read = jni.OmronRead(Data,pos);
                             int annyo = Data.cYear + 2000;
                             int i = pos + 1;
                             if (ok_read == 0)
                                  System.out.println("Num: " + i + "; Date-> " + Data.cDay + "/" + Data.cMonth + "/" + annyo + "; Time-> " + Data.cTime + ":" + Data.cMinute + ":" + Data.cSecond + "; Sys-> " + Data.nSys + "; Dia-> " + Data.cDia + "; Pls-> " + Data.cPls);
                        int stop = jni.OmronClose();
                        System.out.println("Close with code " + stop + " Right?");
                        int finish = jni.OmronFinish();
                        System.out.println("Finish with code " + finish + " Right?");
                        System.gc();
                        System.gc();
                   else
                        System.out.println("The process of opening the device ended with error");
              }catch (UnsatisfiedLinkError ule) {
                   System.out.println("BRUTAL ERROR: " + ule);
    [stdout] The objeto already exists
    [stdout] BRUTAL ERROR: java.lang.UnsatisfiedLinkError: OmronInit
    Result: null
    which indicates that this time I'm using the same instance of the singleton class created in the activation process, but that I cannot access the method. ANY HINT??
    I also provide you the JNI dll code (because I add the exporting of the JNI_OnLoad & OnUnload methods:
    .h
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class omron637IT_Omron637ITjni */
    #ifndef Includedomron637IT_Omron637ITjni
    #define Includedomron637IT_Omron637ITjni
    #ifdef __cplusplus
    extern "C" {
    #endif
    * OnLoad & UnLoad
    JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM vm, void reserved);
    JNIEXPORT void JNICALL JNI_OnUnload(JavaVM vm, void reserved);      
    * Class: omron637IT_Omron637ITjni
    * Method: OmronInit
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronInit
    (JNIEnv *, jobject);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronOpen
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronOpen
    (JNIEnv *, jobject, jint);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronRead
    * Signature: (Lomron637IT/MeasurementData;I)I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronRead
    (JNIEnv *, jobject, jobject, jint);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronNumRead
    * Signature: (Lomron637IT/DataCount;)V
    JNIEXPORT void JNICALL Java_omron637IT_Omron637ITjni_OmronNumRead
    (JNIEnv *, jobject, jobject);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronClose
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronClose
    (JNIEnv *, jobject);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronFinish
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronFinish
    (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    and part of the code (.cpp):
    JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM vm, void reserved)
         return JNI_VERSION_1_4;
    JNIEXPORT void JNICALL JNI_OnUnload(JavaVM vm, void reserved)
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronInit
    (JNIEnv *env, jobject obj)
         iNumberOflist = DEVLISTMAX;
         iSpeed = USF_SPEED4800;
         iStopBit = USF_STOP2;
         iProduct = USF_BPM;
         ret = USF_Search(hDlg, iSpeed, iStopBit, iProduct, DevList, &iNumberOflist);
         return iNumberOflist;
    Can anybody tell me what I'm doing wrong???. This really drives me crazy
    BR & very thanks in advance for any input.

    This is a known bug. Check out http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4712793

  • WebLogic 12c and OSGi bundles ClassCastException error

    When I deploy an OSGi bundle to WebLogic 12c there are no errors. However, when I try and access my application I get the following error:
    java.lang.ClassCastException: com.sun.faces.taglib.jsf_core.ViewTag cannot be cast to javax.servlet.jsp.tagext.Tag
    I suspect that WebLogic 12c is loading different versions of the JSF than what I have in my OSGi bundle but I am unable to confirm (I tried to deploy the wls-cat tool but I continue to get 503 errors even after a server restart).
    My bundle currently uses JSF 1.1. After reading various forum posts, I have done the following but have not had any success:
    1. Followed the steps in Re: jsf 1.2 on weblogic 12c (i.e. deploying the jsf-1.2.war, modified my weblogic.xml accordingly in my war and then deployed, etc)
    2. Checked all of my manifest entries (which were correct) and even tried to set the required-bundles to my own JSF in the WEB-INF/lib directories
    Are there any instructions/settings for having OSGi bundles work within WebLogic 12c? Note that my OSGi bundle works correctly in WebLogic 11.
    Side question..I read that even though WebLogic 12c ships JSF 1.2 for backwards compatibility, it is deprecated for this release (as per http://docs.oracle.com/cd/E24329_01/web.1211/e21049/configurejsfandjtsl.htm#i163099). Does that mean that even if I get my bundle deployed/working that if there are other errors/issues in the future then I would not be supported? I am just trying to confirm so that I can make a decision about upgrading my JSF.
    Thanks :)

    gday -
    WLS 12c (12.1.1) doesn't recognize OSGi bundles -- if you have a library you wish to use with your web application, then it needs to conform the packaging requirements for the Java EE deployment model you are using.
    If you are getting conflicts with a WLS supplied library (JSF in this case it appears) then you need to specify a filtering classloader definition in a weblogic deployment descriptor so that the web/app classloader is instructed to ignore a specified set of packages/resources from the parent loaders and load them locally.
    By way of an example, assume you have a web application in which you are bundling JSF 1.2 and you want to use this in place of the JSF 2.1 API/impl that is provided by WLS 12.1.1. In that case, you'd create a WEB-INF/weblogic.xml file and provide the following settings within in.
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
            <container-descriptor>
                        <prefer-application-packages>
                            <package-name>javax.faces.*</package-name>
                            <package-name>com.sun.faces.*</package-name>
                            <package-name>com.bea.faces.*</package-name>
                        </prefer-application-packages>
                        <prefer-application-resources>
                            <resource-name>javax.faces.*</resource-name>
                            <resource-name>com.sun.faces.*</resource-name>
                            <resource-name>com.bea.faces.*</resource-name>
                            <resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</resource-name>
                        </prefer-application-resources>
            </container-descriptor>
    </weblogic-web-app>Deploying that with your application, in which you have supplied the JSF 1.2 API and implementation jars in the standard WEB-INF/lib directory will direct WLS to use those locally supplied libraries instead of its JSF API/implementation.
    Hope that helps.
    -steve-

  • Coherence 3.5  as OSGi bundle

    Hi,
    We are starting out on an OSGi project which will use Coherence 3.5 as a data grid for storing and manipulating application data. I see that Coherence (as a separate product) is getting released as a Jar and not as an OSGi bundle. When I looked on the web, I see that Coherence (3.4) is getting packaged along with other Oracle products (CEP 10.3) as OSGi bundle (http://blogs.oracle.com/CEP/2008/10/oracle_complex_event_processin_1.html) and Oracle Fusion Middleware 11g.
    Let us know if we can expect to see Coherence getting released as an OSGi bundle in the near future.
    Till that time, Is there any guidance/recommendation on:
    1) Running Coherence in OSGi environment
    2) Accessing Coherence from an OSGi client application
    Thanks,
    Prakash

    1. Generally, it's easiest if there is membership in only one Coherence cluster per OSGi container. In other words, one member of one cluster per container.
    2. (From Stephen Felts, note that this was pre-3.5) Coherence currently uses the context classloader of the thread to find the default configuration file (coherence-cache-config.xml) and the JMX configuration (reports/report-group.xml). This is generally not the correct thing when running in OSGi. Applications will need to reset the context classloader before getting the class.
    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
    ClassLoader newLoader = com.tangosol.net.CacheFactory.class.getClassLoader();
    Thread.currentThread().setContextClassLoader(newLoader);
    CacheFactory.getCache(cacheName);  //Start coherence cache instance
    Thread.currentThread().setContextClassLoader(oldLoader);"
    {code}
    3. (From Hal Hildebrand) There are issues that can come up specifically with respect to serialization with complex dependencies across bundles. Basically, OSGi allows classes to be hidden through the modules, so you have to be really careful as to the class loader you use for the cache.  Here's a simple scenario showing the issue: Let's say that we're using the class loader from Bundle A.  Bundle A imports the interface FOO from Bundle B.  Bundle A uses an implementation of FOO, FooImpl, from Bundle C.  However, Bundle C either doesn't import FooImpl (i.e. it's a private class) or Bundle A doesn't import the package from Bundle C. So, if you serialize FooImpl into the cache, what happen in the above scenario is that the cache will not be able to deserialize FooImpl using Bundle A's class loader.
    4. There are various issues around the use of static fields in Coherence. These are very "non OSGI like". It's generally an issue when you are trying to create a Coherence bundle and decide what APIs to expose. Some of the "builder" work that went into 3.5 was designed to help rectify this and make Coherence easier to use in OSGi.
    5. (From Jeff Trent, in lieu of having a Coherence bundle as part of the Coherence distribution) Bundlizing Coherence jar(s) is a prerequisite for using Coherence w/ OSGi.  For this, you can essentially lift the bundles out of (e.g.) CEP.  There are tools like BND (http://www.aqute.biz/Code/Bnd) integrated into Maven that really make this quite simple to do.
    The summary I have so far is that using Coherence in OSGi is easy for easy stuff today, but there are a number of things that we're developing to make the more complex use cases simple in the future.
    Peace,
    Cameron Purdy | Oracle Coherence
    http://coherence.oracle.com/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • BP replication from CRM to R3 Error

    Hi All,
    We are working on CRM 4.0 Unicode version.  The details of the system are as follows
    SAP_BASIS     620          0056     SAPKB62056
    SAP_ABA     620          0056     SAPKA62056
    BBPCRM          400     0009          SAPKU40009
    PI_BASIS          2005_1_620     0005     SAPKIPYJ55
    We are working with R/3 4.7 Non Unicode version the details of which are as follows
    SAP_BASIS     620          0056     SAPKB62056
    SAP_ABA     620          0056     SAPKA62056
    SAP_APPL     470          0021     SAPKH47021
    SAP_HR          470          0030     SAPKE47030
    ABA_PLUS     100          0009     SAPKGPBA09
    EA-IPPE          200          0013     SAPKGPIB13
    PI          2004_1_470     0001     SAPKIPZI51
    PI_BASIS          2005_1_620     0005     SAPKIPYJ55
    EA-APPL          200          0007     SAPKGPAB07
    EA-DFPS          200          0007     SAPKGPDB07
    EA-FINSERV     200          0007     SAPKGPFB07
    EA-GLTRADE     200          0007     SAPKGPGB07
    EA-HR          200          0011     SAPKGPHB11
    EA-PS          200          0007     SAPKGPPB07
    EA-RETAIL     200          0007     SAPKGPRB07
    BP-R3PF          470V2          0000     -
    ST-A/PI          01F_R3_470     0000     -
    ST-PI          003C_620     0000     -
    I ] Problem
    We are having problem while replicating the Business Partners from CRM to R3. When we create a Business Partner ( Type People) through transaction BP on the CRM server it creates an entry in table but000 on the CRM side but the same entry does not exist in kna1 table on R/3 server.
    When we check the BDOC through transaction smw01 on the CRM server there exist an entry with BDOC State Description " Send to receivers (not all have confirmed)" for BDOC Type BUPA_MAIN.
    II ] Configurations
    We have done following settings before creating Business Partners through CRM
    Settings on CRM Server
    1> RFC Destination "CARDONR3_DEV" for R3 server is defined in sm59 on the CRM side and is working OK.
    2> Through transaction BUCF we have defined a number range named C1 ( 0005000000 to 0005999999) with External flag deselected.
    3> Through SPRO we have defined a grouring C001 (CRM Customer) and assigned number range C1 to it.
    Settings on the R3 server
    1> RFC Destination "CMDCLNT110" for CRM server is defined in sm59 on the R3 side and is working OK.
    2> Through transaction OVZC we have defined cutomer number range named C1 ( 0005000000 to 0005999999) with External flag selected.
    3> Through transaction OVT0 we have created Cutomer Account Group named Z001 which is copy of 0001 (Sold to Party). Number range C1 is assigned to the account group Z001.
    4> Through transaction VOPA we have maintained the Partner function for customer master i.e Acct Grp Z001 is assigned to Function SP.
    5> In transaction PIDE under CRM -> R3 assignment we have selected account group Z001 to Classification type B (i.e Customer)
    III ] Procedure Followed
    1>  On the CRM server we execute the transaction "BP" .
    2>  We Click on Create Person button.
    3> Following Selections are made
         a) Create in role : Sold-To-Party
         b) Grouping : CRM Customer
         c) Field Title, First name and Last name are selected
         d) In the tab Classification we select R/3 Account Group as "0001". System does not allow us to select the R/3 Account group "Z001"
    4> On Saving the entry Business Partner is created in table but000 on the CRM side.
    5> The above entry is not replicated in table kna1 on R3 side as expected.
    IV ] Observation
    We are not able to select account group "Z001" in the BP creation screen. When we run the Intial Load (R3AS) on CRM server for object "DNL_CUST_ACGRPB" (i.e AccountingGrp Business Partner) (Replication from R3 to CRM)  it shows the status done in screen R3AM1 but the entry for account grouip Z001 which is created manually on R3 side during the configuration phase is not replicated on the CRM side.
    We have referred a note for the above error which said that the basis patch "SAP_BASIS" should be at level 56 but we are already on Patch Level 56.
    Please guide us.
    Thanks & Regards,
    Yatin

    Hi Yatin,
    Glad to hear one of the problem has resolved.
    In order to simplify the analysis, I assume few things
    from your information :
    1. Connection between CRM and R/3 are correctly run
    2. Other necessary customizing Objects relate to BP
       have been downloaded properly to CRM.
    Few things you can check :
    1. Did you enter Correspondence Language & Language
       in CRM BP ? just make sure you did.
    2. Try to complete minimum data such as Search Term,
       Street/House, Postal Code / City and Country in CRM BP.
    3. Check the detail Error message in SMW01 (can you get
       more detail - normally you can click on SHOW BDOC Msg
       ERROR)
    You also can trace/debug LUW,:
    - use tcode SMQ1 to see the stopped queue for that error
      transfer
    - Click menu Go To -> QOUT Scheduler
      Click on R/3 destination and deactivate/deregister it
    - In SMQ1 select the error queue, double click on it.
       and after next screen double click again
    - Then Start DEBUG LUW
    - Insert debug breakpoint in statement Call Transaction
      and execute F8
    - When it stopped, Change the variable mode to A
      it will show you the missing/incomplete fields.
    You need to register/activate back the R/3 destination after you have finish debugging.
    Hope this helps, let me know the result
    Cheers,
    Gun.

  • Restrict Contact Person replication from CRM to ECC based on Partner Funct

    Hi Experts
    We are replicating Contacts from CRM to ECC, by assigning them to Accounts. We have a scenario to restrict Contact Person replication to ECC only for specific Partner functions (we have 5 such partner functions), for remaining partner functions the contact Persons should not be replicated to ECC.
    By Partner function I mean, while making this assignment of Contact to an Account in u201Ccontact Person Relationships datau201D under u201CPartner Function Assignment blocku201D (in web UI) we are adding a Partner function E.g. Author, (same can be seen in GUI, under Usage tab of CP Relationship data).
    However we were able to replicate contacts assigned to accounts to ECC in our 5 partner functions, but even the unwanted contacts assigned to other partner functions in CRM are also getting replicated
    How can I restrict CP replication from CRM to ECC based on Partner Functions assigned to the Contact Person
    Your help is highly appriciated.
    Points guaranteed.
    Regards

    Issue resolved using CRMC_BUT_CALL_FU.
    Posing the table name, just in case it might help others.
    Thanks

  • BP replication from CRM to R/3 (ECC)

    Hi all,
    I have a question regarding BP replication from CRM to R/3.
    In transaction PIDE I can only set up one combination of classification B (Customer) and account group, e.g. Z001 for Sold to partner.
    What could I do if I need to replicate a Bill-to partner role from CRM to R/3 and the Bill-to partner account group in R/3 is not Z001?
    Thanks a lot!
    BR,
    //Anders

    Hi Anders,
    While transfering business partner from CRM to R/3 the system only looks at classification and identifies the Account Group form PIDE settings.
    For the roles Sold-to, Bill-to, Payer, Ship-to, Classification Customer is Picked Up and hence all of them will be mapped to the same account group.
    May be u can try to change the classification of Bill-to Role to something else, and map that to the other account group.
    OR
    Try to use a middleware exit or BADI which gets called before creation of a customer master in R/3, wherein u can put a code for picking up a different account group.
    Wish this helps.
    Regards,
    Shalini Chauhan

  • Vendor Master replication from EBP and MM to SUS

    Hi !
    We would be replicating Vendors from R/3 as well as from EBP to SUS. I believe that there is certain configuration to check duplication of Vendors and also to assign a single business partner ID even if a Vendor is replicated both from EBP as well as from MM. Can anyone thro some light on this & the procedure...
    Thanks

    Hi,
    For the Vedor Maste replication from EBP and MM to SUS,
    U need to maintain the proper RFC conncection between R/3, EBP SUS and XI as a middleware.
    U can transfer the Vendor by using the T.Code -  BBPGETVD.
    U can transfer vendor to SUS using
    transaction BD14 with message type Z_CREMAS_SUSMM as
    SAP suggested.
    Your error due to incorrect mapping in Integration
    Directory of XI.Kindly check the Interface
    determination for message type Z_CREMAS_SUSMM.
    Please award the points for the help.
    BR,
    Vijay Mittal

  • Cannot load css files into osgi bundle

    I want to create JavaFX application based on several osgi bundles. I use Felix framework for osgi container. I face the same issue as this post
    Exception logged when using custom css in JavaFX in Felix OSGI
    How I can set globally
    -Dbinary.css=false
    Into the start JavaFX method. I would like at a low level to configure this.

    This should not be any issue with PE7 as it is meant for opening any supported not corrupted image. Can you please re check this issue with you. Make sure you have copied the image successfully and completely from your phone to your machine.
    If again you are facing the issue please share the image your are trying to open.
    Cheers,
    Sam

  • Questions regarding HR Org Structure replication from ECC to SRM

    Hi Experts ,
    We have SRM7.0 ( SP08) with ECC6 ( Ehp4) having Classic Scenario .
    I managed to replicate entire  HR Org Structure  from ECC system to SRM system.  I replicated O (Organization), S( Postion) and P ( Person), which successfully created O, S and CP in SRM with BP for O and US...Refered Note 934372, 312090, 550055 and help link on SDN./wiki.....etc
    Now I have below questions in mind.
    1. In SRM we requiers Org unit for Company Code, Purchase Organization and Purchase Group...which we set  in FUNCTION tab for the requiered Org Unit with Checkbox and value of it and Logical system.....but in HR Org strcuture we do not have such Org Unit....so how to manage/create such these Org Units ( i.e.Company Code, Purchase Organization and Purchase Group ) ?...
    Do I need to create these Org unit manually in SRM in PPOSA_BBP ? If yes, can I create these Org Unit above or between these replicated HR Org Units  or I need to created it separtly in paralllel to these HR replicated Org Units?
    2. If above I do, then what will impact on the delta /change replication from HR integraion ?
    3. In ECC HR org Structure there are hundres of employee, out of that I just wanted to send the Postion ( we have postion based security  in HR) whom only SRM Role had assigned . How it can be acheived ?
    Will appricaite detail reply/suggestions
    Thanks
    NAP

    Hi ,
    Initially when I repliacted P of HR Org Struture it sucessfully craeted BP in SRM  and was CP in Org Structure.
    But suddenly , what happned don;t know, when I replicating Employees (P) in SRM , it is assigning  to respective Postion (S), but BP is not creating in SRM  and in the USERS_GEN  for this User, its postion and ORg Unit to whom it assigned is giving  below error
    Determination of connections to object 'BP' of 'CP' '00000015' failed
    Message no. BBP_UM_UI036
    I checked all this as per Note 550055, 934372..etc....checked respetcive setting in table T77S0...I checked address alos....but no any clue......IDoC in SRM posting sucessfully....
    Can anyone please suggest what should be the cause and solution of it ?
    Thanks
    NAP

  • Material Group Replication from ECC

    Dear SRMers,
    System Landscape : ECC 6.0 and SRM 5.0.
    I am doing a material group replication from  ECC to SRM using the DNL_CUST_PROD1 customizing object. Before the replication ECC  was trying to confirm the target RFC destination(SRM) by prompting a logon. I logged in as myself and  the system gave a CALL_FUNCTION_OPEN_ERROR.
    I defined the CRM Consumer as SRM in the CRM middleware parameters..
    My question is do we need to define the User SRM in SU01 and when ECC tries to confirm the target RFC destination, do we need to login as the SRM User ?
    Points will be rewarded for answers.
    Thanks in advance,
    Bob

    Hi,
    The RFC user which you define in the SRM RFC detsination has to be obviously as SU01 user in SRM.Also the RFC user need to have SAP_ALL and SAP_NEW profile attached.See note 642202 for details.
    Also Check:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/84/d3eb4190966024e10000000a1550b0/frameset.htm
    BR,
    Disha.
    Pls reward points for useful answers.

  • Value Mapping replication from SAP

    Hi
    I have gone thru the Blogs and threads related to value mapping replication from SAP.
    Inmy observervation  http://sap.com/xi/XI/System of SAP BASIS 7.00
    still I have some doubts...
    1)what is the differnce between ValueMappingReplication(Asynchronous) and ValueMappingReplicationSynchronous .
    when we will use them.
    2) Message type ValueMappingReplication contains Operation ,GroupId,Context,scheme,agency.
    what is the meaning of Operation??
    what is the use of group ID??
    is this necessary to maintain all these values in Ztable and also source and target values ?? and use them in Abap aproxy logic??
    3) is there any Message Mapping Needed.?? and Interface Mapping Needed to implement value Mapping replication??
    but in this blog
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1301i [original link is broken] [original link is broken] [original link is broken] didnt find any interface mapping .
    4)what is the Sender Adapter type ??
    5) if I did replication from SAP..can I see the details in ID
    please guide me
    regards
    munna

    hi
    1)what is the differnce between ValueMappingReplication(Asynchronous) and ValueMappingReplicationSynchronous .
    In sync you will get the value mapping replication status back and in async you won't. In sync based on the response u can update again in case of any failure. If data size is large use async.
    2) Message type ValueMappingReplication contains Operation ,GroupId,Context,scheme,agency.
    what is the meaning of Operation??
    The operation that you are going to perform. Below is the operations list and the contents to be set in the message for the same
    Insert = all fields must be set;
    Delete =all fields must be set;
    DeleteGroup = fields GroupID and context must be set;
    DeleteContext = field Context must be set;
    DeleteContextGeneric = Context contains the starting part for the context to be deleted
    what is the use of group ID??
    Displays the different representations of an object.
    A value mapping group is identified uniquely by a GUID.
    You can also assign a name to a value mapping group.
    is this necessary to maintain all these values in Ztable and also source and target values ?? and use them in Abap aproxy logic??
    no. system creates the value mapping table. you can take it frm there. no need of any ztables.
    3) is there any Message Mapping Needed.?? and Interface Mapping Needed to implement value Mapping replication??
    You will be sending the value mapping data from a sender system. If it can sent in the same format not required, otherwise you will have to.
    4)what is the Sender Adapter type ??
    Any adapter...depends on the sender system.
    5) if I did replication from SAP..can I see the details in ID
    You can see it in Cache monitoring in RWB.
    for more details refer
    http://help.sap.com/saphelp_nw70/helpdata/EN/13/ba20dd7beb14438bc7b04b5b6ca300/content.htm
    rgds
    Arun

  • ODSEE 7 - 11.1.1.3.0 Replication from multiple masters(not multimaster) into one consumer (into same DIT)

    Hi All,
    Would you be able to help me regarding a replication question?
    We have an existing LDAP topology where we maintain masters and consumers.
    We have a request to expose (if it is possible) an additional suffixes into the current DIT on consumer side.
    Here is the situation :
    What do you think? is it possible to do this way?
    The goal is to get the objects from ou=europe and ou=us and from ou=company as well when the search is on the ou=company,dc=example,dc=com with scope =2 (subtree)
    Thank you for your help
    regards
    Laszlo

    Hi Laszlo,
    thank you for the additional clarification; in that scenario, adding the two sub-suffixes and creating the replication from the other masters (ou=europe and ou=us) shouldn't be an issue, as long as you have created the same structure also the other masters.
    Basically you could have on all the masters (company, europe and us) the root suffix which will always be: ou=company,dc=example,dc=com, then on the "europe" and "us" directories it will be just a kind of 'empty placeholder', whereas in the "company" directories will be fully populated:
    Master "Company" 1 - root suffix: ou=company,dc=example,dc=com                [This sub-suffix will contain the data and will be replicated]
    Master "Company" 2 - root suffix: ou=company,dc=example,dc=com                [This sub-suffix will contain the data and will be replicated]
    Master "Europe" 1 - root suffix: ou=company,dc=example,dc=com                    [This suffix will remain mostly empty and not replicated]
    Master "Europe" 1 - sub-suffix: ou=europe,ou=company,dc=example,dc=com    [This sub-suffix will contain the data and will be replicated]
    Master "Europe" 2 - root suffix: ou=company,dc=example,dc=com                    [This suffix will remain mostly empty and not replicated]
    Master "Europe" 2 - sub-suffix: ou=europe,ou=company,dc=example,dc=com    [This sub-suffix will contain the data and will be replicated]
    Master "US" 1 - root suffix: ou=company,dc=example,dc=com                   [This suffix will remain mostly empty and not replicated]
    Master "US" 1 - sub-suffix: ou=us,ou=company,dc=example,dc=com          [This sub-suffix will contain the data and will be replicated]
    Master "US" 2 - root suffix: ou=company,dc=example,dc=com                   [This suffix will remain mostly empty and not replicated]
    Master "US" 2 - sub-suffix: ou=us,ou=company,dc=example,dc=com          [This sub-suffix will contain the data and will be replicated]
    Replication:
    ou=company,dc=example,dc=com:
    msco1 <---MMR--> msco2
    msco1 ---> cons01, 02, ... 16
    msco2 ---> cons01, 02, ... 16
    ou=europe,ou=company,dc=example,dc=com
    mseu1 <---MMR--> mseu2
    mseu1 ---> cons01, 02, ... 16
    mseu2 ---> cons01, 02, ... 16
    ou=us,ou=company,dc=example,dc=com
    msus1 <---MMR--> msus2
    msus1 ---> cons01, 02, ... 16
    msus2 ---> cons01, 02, ... 16
    HTH,
    marco

  • Replication from Multiple HR systems

    Hi SRM Gurus,
    has anyone ever had the requirement to replicate HR data (Org, Positions, Central Persons) from more than one HR system?
    At the first glance, I technically do not see why it should not be possible. Setting up the ALE distribution modell on multiple HR backends and processing the docs should work, shouldn't it?
    Any ideas, suggestions, hints, reads, practical experience for me?
    Thanks in advance and best Regards, Udo

    Hi
    <b>Yes. As long as you maintain separate distribution model for each client, you can distribute the same content to 'N' receiving systems.</b>
    Message type used is HRMD_ABA.
    Note 497557 - HR integration: Multiple organiz. assignment change, user li
    Note 637221 - RHINTE00: Old holder relationships are not delimited
    Note 437775 - HR-BBP/CRM integration: User links are delimited
    There is also a document called TRANSPORTING_EBP_14.pdf in http://service.sap.com
    Use the search engine to find this official document.
    Please check OSS notes 550055 et 934372 that explain everything.
    Please check OSS note 945523 for BP duplication
    The program to run from R3 is rhaleini, you'll find more information about this replication in note 312090.
    Did you already read OSS note 588701 "Change of the logical system name in R/3 Backend system " ? 
    Also Check the note 765018. In case of multiple backends and also if systems are refreshed with other instances (client copy), the logical system ID will be changed. So we need to run the report mentioned in the said note and run the replication.
    Please check the note 934372 SRM/CRM: HR integration for business partner - new. or post the specific problem.
    <b><u>Related links -></u></b>
    The specified item was not found.
    HR Master Date replication from HR to SRM
    Re: Multiple Backends
    HR integration with SRM
    HR replication
    Re: Multiple Backends Connected to the same SRM client.
    R/3 to SRM
    Employee Org and Personnel Data from HR
    Re: SRM intregation with HR
    Business Partner(BP) and Central Person(CP) distribution
    SRM and HR integration
    Re: HR_Master Data to SRM
    HR Organisation unit replication
    Re: SRM organization plan...
    <b>Hope this will definitely help. Do let me know.</b>
    Regards
    - Atul

Maybe you are looking for

  • Load Data from Remote site

    Hello every one, I tried to load the data from remote site to stagging area with DB link, i used append hint and it gave this error, I was just wondering? ERROR at line 1: ORA-12840: cannot access a remote table after parallel/insert direct load txnO

  • Premiere Pro Editor's thoughts on FCPX

    I've just spent a week learning FCPX to see if it's a viable alternative to fill in Premiere Pro's gaps (for example, it's terrible Multicam interface). After a week with FCPX, I've decided to stop a client project and start over in Premiere.  From w

  • STORAGE parameter in CREATE TABLESPACE

    Hello all, Env: 10gR2 I have the export of a schema of around 70Gb from 9i. I need to Import it to 10g. This will be used only for 'SELECT', there wont be any DML once i import the data. There are tables of size upto 20Gb. What would be the best STOR

  • Autodesk for Mac

    I want to buy a new Mac but I want to know if I can run the Autodesk programs on it?

  • Cloudscape question

    I want to use Cloudscape of J2EE1.3.1,so I set classpath=.;F:\j2sdkee1.3.1\lib\system\cloudscape.jar then I enter into directory of F:\j2sdkee1.3.1\lib\cloudscape, and start Cloudview like follow command: F:\j2sdkee1.3.1\lib\cloudscape>java -classpat