How to identify BW caller in Sap R/3 Data Source user exit

Hi,
I have the following question :
I use the same R/3 extractor to load two different SAP BW system. Before, the data must be enriched by a user exit process ( CMOD ).
In this exit, the treatment for each datasource is identified by the case clause but I have to do some different treatment for each BW target for the same datasource
CASE i_datasource.
when 'MyDatasource'
    if BW Caller  = BW 1
       Data treatment for BW 1
    else .
    if BW Caller  = BW 2
       Data treatment for BW 2
    endif.
Do you know the way to identify the SAP BW system caller in the R/3 user exit in order to aplly a specific treatment for the same datasource ?
Thanks for your help.
Marc

hi,
not very nice but and not really satisfying:
if the users of the remote-users for the logon from the BWs onto the one R/3 differ you could use sy-uname to check what bw is extracting ...
everything else is a bit more complex
hth
cheers
sven

Similar Messages

  • How to connect crystal report 2013 using sap business one data source

    hello Professionals .
    when i try to use data source sap b1 in crystal report 2011 or 2013 i got no list in company database,
    when i try to write it manual i got error "Connection failed".
    I tried to connect OLE DB and ODBC all work fine with me.
    i attached some snapshots .
    Any Advice Please ?

    Hi Mohamed,
    Please check below link.
    SAP Crystal Reports 2011/2013 doesn't show Company Data Base
    SAP Business One Data Source in Crystal
    Crystal Reports - How To - Connecting to your SAP Database - YouTube
    Migrating Crystal Reports of SAP Business One from SQL Server to SAP HANA
    Hope this helps
    Regards::::
    Atul Chakraborty

  • How to access the global data in user exit.

    Hi All,
    How to access the global data in user exit.
    the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program.
    this document number is not imported to the FM i needed to access for frther proceed.
    Thanks in advance.

    Hi,
    See the below PDF file by Jeff Goldstein. There you can find all the details about accessing data outside of the exit.
    [SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
    This will help you to solve your problem.
    Regards
    Karthik D
    Edited by: Karthik D on Dec 2, 2008 4:18 PM

  • Pls. identify some seeded views used as Existing Data Source in DBI Reports

    Hi!
    Can someone please identify some seeded views used as Existing Data Source in DBI Reports. I only need some idea how they are defined.
    Thanks.

    Jon632 wrote:
    Hi!
    Can someone please identify some seeded views used as Existing Data Source in DBI Reports. I only need some idea how they are defined.
    Thanks.
    You can find the list of seeded views in eTRM website -- http://etrm.oracle.com/pls/etrm
    Are there seeded tables/views of DBI dimension objects in Oracle EBS?
    Thanks,
    Hussein

  • Calling a BDC program in side a user-exit

    Hi all,
    I need to call a BDC program in side a user-exit of sales order change
    . i want to make user by calling this BDC program that it wont effect any of my other code's on that and that the customer wont be noticed with any inconvenience.
    i know to use
    CALL TRANSACTION 'zprogram'.
    but i want to make sure that till will not do any harm for any of other parts.
    Regards Nafran.

    Hi
    Make sure you dont change any values of standard SAP variables,structures and internal table values inside the user exit.This is the only way where the other functionality gets affected(unless it is the requirement).
    Reward if helpful.
    Thanks & regards,
    Ramya

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • HI,How can i set delta option for costumised Generic data source

    Hi Sir/Madam,
          How can i set delta option for costumised Generic data source.
    Regards,
    Vishali.R
    Please search the forum before posting a thread
    Edited by: Pravender on Aug 15, 2011 1:26 PM

    Hi,
    Go to RSO2 transaction and click on change then on the tool bar click on Generic Delta button. In the next popup you can set your delta.
    Regards,
    Durgesh.

  • ISA5.0 How to know Function called in SAP for ISA.

    Hello everybody,
    I need to know what are the functions called in SAP to get the information or to create the sales document order.
    How could i do to see the functions called?
    Please.
    I'm on Internet Sales 5.0 and i have an ECC6.0 for the backend.
    Thanks

    hi,
    There is no standard process to know the Called Function Module on particualr action.
    The only way most of the developers follow is to see the Log files which displays the Function Module called.
    The other way is you have to debug the class files to know.
    Regards,
    Sateesh Chandra

  • How to identify fraud calls

    I am receiving calls from bm.alrm and pmm4.auotocall and I have no idea who or what they are.  I don't want to accept them as a contact because of possible bogus calls.  Can you identify if these are genuine.  Thanks

    salandelaine wrote:
    I am receiving calls from bm.alrm and pmm4.auotocall and I have no idea who or what they are.  I don't want to accept them as a contact because of possible bogus calls.  Can you identify if these are genuine.  Thanks
    Those are scam calls.  please visit the thread below for instructions and suggestions on how to deal with such unwanted and suspicious activities;
    How to Handle Suspicious Calls, Messages and Contact Requests (Scam/Spam)
    CONTACT SKYPE CUSTOMER SERVICE   |  HOW TO RECORD SKYPE VIDEO CALLS  | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES   |  WINDOWS PROBLEMS TROUBLESHOOTING   |  SKYPE DOWNLOAD LINKS  
    MORE TIPS, TRICKS AND UPDATES AT
    skypefordummies.blogspot.com

  • Calling custom dialog screen from Standard Transaction(user Exit)

    Hi, I'm calling Standard Transaction from a Custom Screen. I'm calling a custom screen again with in standard transaction (implemented custom screen thru user exits using macros). But when I click 'continue/cancel' in the custom screen, control is going back to main cutom screen rather go back to standard transaction. Could anyone please help me out how to come back to standard transaction from custom screen rather going back to main cutom screen.
    ***INCLUDE LZ_R_FORWARD_FORWARD_LOADI01 .
    *&      Module  USER_COMMAND_9000  INPUT
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'EXEC'.
          PERFORM validate_popup_data.
          IF flag_error_screen NE 'X'.
            MOVE-CORRESPONDING ZFFL_POPUP to var_ZFFL_POPUP.
            clear flag_return.
            SET SCREEN 0.
            LEAVE SCREEN.
          ENDIF.
        WHEN 'CANC'.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  exit_9000  INPUT
    MODULE exit_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'CANC'.
    *      MOVE perf_flag TO lbpla_exist_flag.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " exit_9000  INPUT
    Thanks in advance.

    Hi
    So the command SET SCREEN 0. LEAVE SCREEN. should "place" the program just after the calling of the popup so here:
    FUNCTION z_call_screen.
    * Call the Pop up screen
        CALL SCREEN 9000 STARTING AT 35 05.
    "<------------------------- The program should be here after going back from popup 9000
    ENDFUNCTION.
    Is it true?
    Max

  • How to create an XQuery for an XML type data source

    Hi,
    1.I have data contained in an XML format.
    Hence I have created a physical data source for XML type data.
    2.I have created a logical view to broker data from several disparate physical data sources.I have called this as UnifiedView.
    3.I have created a function called getUnifiedView() to obtain data from all the physical sources
    4.Upto this point, I have not faced any problems.
    5.However when i try writing a simple XQuery for the physical XML datasource such as
    $Sh-data/PublicIdentifiers/MSISDN="1234567"
    I get result as (For example):
    <HSS>
    <MSISDN> 1234567 111111 222222 </MSISDN>
    </HSS>
    Could you please help me getting the where clause output?
    I have attached the schema and XML files used for further information.
    Regards
    Vidya

    Hi mReiche,
    I later on resolved the previously mentioned error and try out the XQuery as suggested by you.
    for $MSISDN in ns0:Sh-data()/PublicIdentifiers/MSISDN
    where $MSISDN="1234567"
    return
    <HSS>
    <MSISDN>{data($MSISDN)}</MSISDN>
    </HSS>
    It works! Thanks.
    Now i am trying to retrieve data from 2 XML documents and an LDAP query.
    I have the following data sources:
    1.LDAP queried by Java Function
    2.HSS xml
    3.Presence xml
    I want to match the telephoneNumber of the LDAP with MSISDN in the HSS.xml.
    Next i want to match the SIP_URI in the HSS.xml with Contact of the Presence.xml
    Given below is the XQuery which i have written to achieve the above:
    for $x0 in ns5:FindDN($str_mailId)
    for $Sh-Data in ns2:Sh-Data()
    where $x0 = $Sh-Data/PublicIdentifiers/MSISDN
    for $presence in ns3:presence()
    where $Sh-Data/Sh-IMS-Data/SCSCFName = $presence/ns4:tuple/ns4:contact
    return
    On executing this XQuery i am getting the following error:
    java.lang.NullPointerException: null
         at weblogic.xml.query.types.XQueryAtomicType.commonSuperTypeOf(XQueryAtomicType.java:150)
         at weblogic.xml.query.types.XQueryType.comparisonTypeOf(XQueryType.java:324)
         at weblogic.xml.query.runtime.compare.GeneralAtomicComparison.compare(GeneralAtomicComparison.java:50)
         at weblogic.xml.query.runtime.compare.ComparisonIterator.fetchNext(ComparisonIterator.java:50)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.logic.BoolEffValue.exec(BoolEffValue.java:51)
         at weblogic.xml.query.runtime.logic.BoolEffValue.fetchNext(BoolEffValue.java:47)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.IfThenElse.fetchNext(IfThenElse.java:79)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.CountMapIterator.fetchNext(CountMapIterator.java:162)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.CountMapIterator.fetchNext(CountMapIterator.java:162)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.sequences.Exists.fetchNext(Exists.java:40)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.IfThenElse.fetchNext(IfThenElse.java:79)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.LetIterator.fetchNext(LetIterator.java:133)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.LetIterator.fetchNext(LetIterator.java:133)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.querycide.QueryAssassin.fetchNext(QueryAssassin.java:54)
         at weblogic.xml.query.iterators.GenericIterator.peekNext(GenericIterator.java:151)
         at weblogic.xml.query.runtime.qname.InsertNamespaces.fetchNext(InsertNamespaces.java:161)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.QueryIterator.fetchNext(QueryIterator.java:127)
         at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)
         at weblogic.xml.query.xdbc.util.Serializer.serializeItems(Serializer.java:142)
         at com.bea.ld.server.QueryInvocation.getResult(QueryInvocation.java:461)
         at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:346)
         at com.bea.ld.ServerBean.executeFunction(ServerBean.java:108)
    Please find attached the XML documents which i am using.
    Could you pls let me know how to resolve this.

  • How BW manages deletion of Sales Order by LIS Data Source

    Hi experts,
    we implemented LIS data sources for SD and MM modules to BW.
    Loading the deltas, we see many order quantity as negative numbers... they are cancelled sales orders!
    How we can manage that?
    thanks in advance
    cs

    Hi Costabile,
    Jusyt check what have u mapped your 0recordmode or 0rocancel  field in BW datasource/transfer rules, as they nullify the records .
    order=100
    cancelled=-100
    total=0
    There are lot of threadds on 0RECORDMODE  ,just check for it and understand about it,which will help u solve your query.
    Rgds
    SVU213

  • SAP R/3 Data Source

    Hi,
    I have made modification to the existing Data source by selecting couple of fields which are hidden , i would like to transprort this to DEV of R/3 to TEst of R/3 how to do this..
    Thanks

    HI,
    First test it in RSA3 and replicate it in BWD and test loads, if it is Ok then you need to collect all objects in Request carfully. And then release it and move to Qty and replicate it in BQty  and transport BW objects from Bdev to Bqty and test here.
    Note: Don't forget to collect CMOD code also.
    Thanks
    Reddy'

  • How to get back Queue name in SMQ1 when Data source is present in RSA7

    Hello Friends,
      Its very urgent issue.Please provide me your valuable solutions.
    1) I have Queue name in SMQ1 and Data source name in RSA7 are present for particular Data source in CRM source system. I deleted Queues in SMQ1 and they present in RSA7 so whenever I do changes in Data source record that changes i can see in RSA3 and DB table but I can't able to see that changes in RSA7.
    2) That Data source is Delta enabled and Initialization also set for that.
    3) when i do delta scheduling no records are coming in BI side.
    Please tell me how can i get back my Queue in SMQ1 and get changes reflects in RSA7 data source also.

    Try below:
    http://sharepoint247.wordpress.com/2013/05/24/handy-email-utility-for-any-sharepoint-project/
    interface IEmailConfigurationManager
    /// <summary>
    /// Gets Email Template by it's ID
    /// </summary>
    /// <param name="emailTemplateId"></param>
    /// <returns></returns>
    EmailTemplate GetEmailTemplate(string emailTemplateId);
    /// <summary>
    /// Gets Email Template by it's ID by updating the email template properties
    /// </summary>
    /// <param name="emailTemplateId"></param>
    /// <param name="subjectProperties"></param>
    /// <param name="bodyProperties"></param>
    /// <returns></returns>
    EmailTemplate GetEmailTemplate(string emailTemplateId,
    IDictionary<string, string> subjectProperties,
    IDictionary<string, string> bodyProperties);
    /// <summary>
    /// Add new email template.
    /// </summary>
    /// <param name="emailTemplateId"></param>
    /// <param name="emailTemplateSubject"></param>
    /// <param name="emailTemplateBody"></param>
    void AddEmailTemplate(string emailTemplateId, string shortDescription,
    string emailTemplateSubject, string emailTemplateBody);
    https://spemailutility.codeplex.com/
    http://social.msdn.microsoft.com/Forums/en-US/ef945d33-50c5-4b89-8bb9-32a95498b419/how-to-change-email-template-for-the-approval-workflow?forum=sharepointcustomizationlegacy

  • How to get the BW 7.0 Business content data sources

    Hi,
    We have got following sever components
    SAP EHP 1 for SAP NetWeaver 7.0
    SAP_BW - 701 - SAPKW70106
    BI_CONT 705
    When we try to install the business content in T.Code: RSOR, we are getting 3.x data sources even though latest servers are in place.
    Do we need to any settings in order to get 7.0 data sources and its flow(transformation and DTPs).
    Please let me know.
    Thanks,
    Bala

    SAP will not touch any of existing 3.x BW Content and change everything to 7.X content in the new BW Content version.
    Most of the BW Content that was created earlier will still be in 3.x version only. You will see a small .(dot) before that object showing that it is in 3.x version.
    SAP Provides only mechanism to migrate them into 7.X concepts as shown in below link
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/f00e2696d24c5fe10000000a155369/frameset.htm
    You can still use 3.x objects with out any problem.
    In most implementations, the approach they use is, as long as you do not need to enhance or add any standard content, you can retain it the way it is. The enhancements include, adding a field, changing the structure of source or target, or you want to use better functionality in 7.x objects, then you can always migrate them as discussed in the above link
    When you convert them, if you select "With exports" you can go back to older version later. If you select "Without exports" then the object is permanently transformed.
    I you have to touch a standard object for any enhancement or reason, better convert it to 7.x version

Maybe you are looking for

  • Can't connect to database or Database Home Page (after installation)

    sorry that i have to make another thread for this problem, but i didnt found an equal problem to mine. after installing oracleXE 10, i get an error message in my firefox, if want to start 127.0.0.1:8080/apex. i have win xp pro. in command line i trye

  • Why is it so hard for ATT to upgrade my DSL????

    I have been in contact with their representatives on here to see if I can get things resolved that way.  I would upgrade to UVerse if it was available here. It is not. Not sure why; there are more rural areas near here that have it, but not in my sub

  • Need to create a PDF with submit button for Wordpress Website.

    I need to create a restaurant's employment application in PDF form with fields that user can fill out and a submit button to send the form to a specified email. I then need to put this PDF online on client's website. Is this possible with ID?

  • Safari 5.05 crashes on start-up

    Hi! I just upgraded to OS10.6.8 and Safari 5.05 and now everytime I open Safari, it crashes after 5-10 seconds. I read some of the threads and tried deleting add-ons in the Library folders, but this didn't work. Also repaired/verified permission and

  • Apple Mobile Device

    I updated my daughter's nano on Sunday with a software update and then trie to update my touch with new songs but my touch was not able to connect because the apple mobile device was not started. I checked the help section on itunes and uninstalled a