Custom Table for RFC destinations

Hi,
I am working on SAP PI/XI. I had created an Custom Function Module (RFC Wrapper) in XI or PI which calls Bapi's in SAP R/3.
So we specify the RFC Destinations in the code to call the Bapis. But these RFC destination Values changes for DEV, QA and PRD systems. when we transport, these Values we need to change as per the Enviromment(DEV,QA,PRD).
I want to Maintain the the RFC destinations Values dynamically.
For that I want to define a Table to maintain the RFC destinations. There could be "n" of RFC destinations to R/3. I want to differentiate RfC destinations pertained only to my scenario or Interface.
How do I proceed. what should be the table structure and fields?
Kindly provide your valueable Inputs
Thanks &Regards,
Varun

Hey
You should be able to handle this by reading the System Id of the current system
Just have a If-Else condition in your FM.
If SY-SYSID ="Dev"
   then call Dev RFC dest
If SY-SYSID="Qa"
   then call QA RFC dest
etc etc
Thanks
Aamir

Similar Messages

  • Archiving Object - Entry missing in Customizing table for object Z*********

    Hello friends,
    We have created a archiving object in transaction AOBJ. However when i enter this object in SARA, we get this error message.
    "Entry missing in Customizing table for object Z******* "
    I have matched my object with few other archiving objects and things looks similar.
    Have you faced this kind of problem..
    thanks
    ashish

    Hi,
    I checked and i can see entry for ZSCS_TRAFO object in AOBJ.
    But when i enter ZSCS_TRAFO, i get this error :
    Entry missing in Customizing table for object ZSCS_TRAFO
    Message no. BA057
    Diagnosis
    A function cannot be executed due to a missing table entry.
    Procedure
    Please create an entry for the archive object ZSCS_TRAFO with the AOBJ transaction.
    However, a few other Z objects works well.
    thanks
    ashish

  • Custom table for DRAW

    Hi,
        I need to create a custom table for document. For each document, there may be some people comment it, so one DRAW record may have several comment record in ZXXX table.
        I try to use user exit CV110001 to implement this, but when I try to save my custom data in my ZXXX table, I can't get the document type, document number and other primary key fields for the docment I am edting...
        What shall I do to implement this?
        Thank you in advance.

    Hi Lupin,
    maybe the BADI DOCUMENT_MAIN01 with method BEFORE_READ_DATA or AFTER_READ_DATA could be useful for you. Please check also the BADI DOCUMENT_MAIN02 definition in transaction SE18.
    Best regards,
    Christoph

  • Can we make the weblogic look at custom table for emailid

    Hi,
    I am implementing the SQL based provider for weblogic.
    I want the weblogic look for email id of the user in the same custom table for sending notifications. Is it possible ?
    By defualt I think weblogic maintains some attributes for user, email id is of those. I want weblogic to look into custom table instead for email id.
    Thanks
    Saikrishna

    Hi,
    Oops, I might have take my words back, since you will use it for finding for superiors.
    In general you can find superiors with SWX_GET_MANAGER or search *GET_MANAGER in SE37. You will probably find nice examples here in SCN if you just find the correct function module and search with that.
    Check also workflow rule 00000168 (in transaction PFAC). That is the standard rule for finding superior.
    Anyhow what comes to me taking my words back: If you use the above-mentioned functions or rules, it will actually find the managers from existing org. structure AND perhaps your new structure. You might want to test it. This is something I didn't think when I first gave my answer (in the cases when I've seen another org.structure, superiors were not used). Also, if you create new org. structure with superiors, I am not sure but it might have some effect to  the existing HR structure ("who is the right superior for an employee?").
    I might need to think again.
    Regards,
    Karri
    Edited by: Karri Kemppi on Nov 25, 2011 7:11 PM

  • Setup custom table for textedit

    how can you set up a custom table for textedit? I have a custom sap table for user to enter a project.
    ie.
    field        data element   Datatype   length     
    projectnum   zprojectnum       char       8
    projectid    zprojectid        char       4
    projectname  zprojectname      char       20
    projectdesc     ?                ?        ? 
    how would you set this up so that project desc can have unlimited length?
    also where is the text store and how to store the textedit?

    There are three important parameters that we will require while dealing with long texts.
    TEXT ID
    TEXT OBJECT
    TEXT NAME
    Usually TEXT ID will ST and TEXT OBJECT will be TEXT unless you have created some other values for the same. Now coming to the TEXT NAME, this could be your unique key of the data for which you want to maintain the long text.
    If you don't have single unique column, you can concatenate two or three columns and store the long text against that using the SAVE_TEXT function.
    While reading the text, the same columns will have to concatenated and use it the READ_TEXT function.
    Regards,
    Ravi
    Note : Please mark all the helpful answers and close the thread if the issue is resolved.

  • Enable Secure communication for RFC destinations by using sm59 transaction

    Dear friends,
    We would like to enable secure communications for RFC destinations by using the sm59 transaction in our systems.
    We need to do this manually, by changing  the internal communication settings in a way they can communicate securely.
    Any idea or advice on the way it can be done ?
    We need to take each RFC, manually check it and secure it.
    Thanks in advance,
    Jordan

    In SM59 open up a RFC destination and go to Logon & Security. There you can enable Trusted relashionship and activate status of secure protocol.
    And yes you have to do it manually for the desired RFC's

  • Table for logical destination

    hi,
    logical destinations are defined in which table

    Check the table RFCDES Destination table for Remote Function Call
    The table RFCDES describes logical destinations for remote function calls (RFCs)

  • Custom Table for Verifying Duplicate Invoice against Legacy Invoice Data

    Hi All,
    We are trying to upload legacy invoice data in a custom table. Then we want to use SAP duplicate invoice check functionality to look for the potential duplicate invoice from this custom table as well apart from the standard SAP tables.
    If you know of some user exit or any function module which I can use to link this custom table with the standard SAP duplicate invoice check functionality then it would be of great help.
    Regards,
    Sanjay

    Hi Jurgan!
    Thanks for the reply,
    We are using ECC6,
    Support pack : SAPKH60013
    Settings for Duplicate Invoice Check In Vendor Master is correct
    Customization setting OMRDC transaction, tick mark for invoice reference no. only
    If all the cited characteristics match, the system displays a
    customizable message. M8462 (if logistics invoice documents are found) or M8108 (if accounting documents are found).
    I have ensured that message M8108 (if accounting documents are found) is maintained as an error message in OMRM.
    Still system is allowing duplicate invoices for the reference nos. 00082 and 00072.
    For other reference Nos. which are previously used for other documents, system issues error message successfully.
    I dont want to delete archived accounting doc. and if I maintaind BKPF entris of this archived doc manually it will create probelm in FI.
    is this happen due to life span of secondory index of archived accounting doc. is completed ?.
    Please Help
    Many Thanks
    Vikas

  • FM for RFC destination

    Hi All,
    Iam working on CRM4.0 and SAPR3 4.6. I need to call a Function module which is RFC enabled in CRM from R3. currently iam hard coding the RFC destination. is there any FM that can get me a destination.
    could some help me with this?
    Thank u.
    Suresh.

    Hi Suresh,
    You check the FM 'SMOF_READ_SMOFERPSH' in CRM system.
    It should work...
    <b>code:</b>
    DATA: lv_oltp_destination TYPE rfcdest,
            lt_erpsites         TYPE TABLE OF smof_erpsh,
            ls_erpsites         LIKE LINE OF lt_erpsites.
    read OLTP destination
      CALL FUNCTION 'SMOF_READ_SMOFERPSH'
        EXPORTING
        I_ERPLOGSYS          =
        I_RFCDEST            =
        I_SITEID             =
          i_sitetypeid         = 'SMOF_ERPSITE'
        I_ALL_ERPSITES       =
        TABLES
          t_erpsites           = lt_erpsites.
      READ TABLE lt_erpsites INTO ls_erpsites INDEX 1.
      lv_oltp_destination = ls_erpsites-rfcdest.
      IF lv_oltp_destination IS INITIAL.
        RAISE no_data.
      ENDIF.
      CALL FUNCTION (RFC FMNAME)
        DESTINATION lv_oltp_destination
        TABLES

  • Usage of formula variable with custom table for values

    Hi,
    I have the following scenario:
    a customer wants a report regarding payments of invoices with a formula in it to calculate interest results. In order to do so they want to be able to define a interest rate wich can be used to calculate te result by multiplying the rate by time and amount (for every line in the query the same rate should be used).
    As a solution I thought it would be easiest to give the key user access to a custom table via a custom transaction and then use the entered rate in the query by selecting it from this table using a formula variable (using an exit).
    I was wondering if anyone has ever used such a solution, or if one thinks this is possible.

    Hi Brock,
    Its possible, but I haven't tried as requirements didn't imply.
    More simpler idea is why don't you use a flat file loading through the IP to Info providers?
    Or even more better option is why don't you adapt to Virtual Info providers?
    For your suggested custom table using custom transaction, we can surely make it. Its possible in SE93. Try this transaction code. It must definitely help.
    Thanks,
    Arun Bala G
    Edited by: Arun Bala G on Jan 11, 2010 2:16 PM

  • Add a custom table for field selection while creating field catalog for LIS

    Hi,
    I have a requirement to add a Custom table to be available for field selection while creating a field catalog for LIS. Its required as there are many custom fields to be used for field catalog creation and adding them in one of the existing tables listed is not a feasible option for us. Please let me knw if its possible..?? If yes how to get it done..??
    Regards,
    Akash Sinha

    hi,
    You need to add your field in the Data Dictionary first. For example, if
    you want the new field in the Order Item field catalog do the following.
    Look at structure MCVBAPUSR (SE11). If you already have a user structure
    appended to this structure then you can add your new field to your existing
    structure. If there is no structure already appended to MCVBAPUSR then you
    must create a new structure with your field in it and then append the new
    structure to this one.
    If you look at structure MCVBAP you will see the data appended to the end
    of it.
    Now you should see it in the field catalog.
    regards,
    balajia

  • Custom table for documents

    I want to create a table to store documents. I created a table with three columns (doc, doc_desc, and mime_type). I then created a form based on this table to upload docs. I can succesfully load docs into the table.
    My question is how can I retrieve them? I used to be able to get the item ID from the WWV_THINGS table and get the doc even though the doc was not in a Portal table. Its like a duplicate entry was being made into WWV_THINGS, but thats not the case anymore. Anyone know how I can create a table, load docs into it and get the docs out?
    I dont want to use item areas.
    Thanks

    Hi Gopal,
    As this is custom table attribute it will not be displayed on standard page. You need to enhance it with custom page.
    Creating change document object is first step. Now you need to update change document. You can use FM DPR_PROJECT_WRITE_DOCUMENT as reference for creating a FM module to update the change document with custom table attribute. Call it in update task after updating data to custom table.
    You can use the FM CHANGEDOCUMENT_READ to read the change document for custom table attribute.
    Regards,
    Alok.

  • CCMS aler for RFC destinations availability

    Hi Experts,
    We have configured ccms alert autoreaction method for availability of RFC destinations.
    alert is configured with yellow thershold as 10% and red threshold as 5%.
    alert text is :&1 &3 < &2 &3  15 min. avg. value below threshold value (&4 measurements)".
    We are receiving mail alerts for CCMS red alert for RFC saying" 0 % < 5 %  15 min. avg. value below threshold value (1 measurements) ".
    But when we checked the corresponding RFC is working fine.
    Can anyone please explain how this RFCs destinations check alert will work and what is the meaning of alert text ":&1 &3 < &2 &3  15 min. avg. value below threshold value (&4 measurements)"."
    Thank you,
    Kavitha

    Hi
    I have done
    1. RFC connection from x to y and y to x
    In X system:
    1. In transaction RZ21, mark Method definitions, and choose Display overview
    Copyed standard CCMS_RFCDest_Availability_Col method definition to ZCCMS_RFCDest_Availability_Col
    Parameters tab
    For x
    Parameter name = RFC_DEST
    value = SM_XCLNT510_TRUSTED
    Parameter name1 = COLL_METHOD
    value = ZCCMS_RFCDest_Availability_Col
    Same in Y but for RFC_DEST give
    Parameter name = RFC_DEST
    value = SM_YCLNT100_TRUSTED
    Execution Tab
    Type of call = Function module
    Call SALK = SALK_RFCDEST_AVAILABILITY
    Execute method on = The local server of the MTE to be processed
    Execute method for = Individual MTE
    Control tab :
    Execute method for = Individual MTE
    Execute method = periodically in dialog process (short-running program)
    Startup method = Execute method immediately after monitoring segment start
    Execution location
    of startup method = Only on the central instance
    Start Tab:
    Execute method = Data Collection Method
    also try in so many way as in :Parameter Tab:
    RFC_DEST               SM_XCLNT510_TRUSTED
    COLL_METHOD            ZCCMS_RFCDest_Availability_Col
    MTE_CLASS              Availability_RFC_Destinations
    MTE_CLASS              CCMS_RFCDest_Availability_MO_Class
    MTE_CLASS              CCMS_RFCDest_Availability_Col
    COLL_METHOD            CCMS_RFCDest_Availability_Col
    RFC_DEST               CCMS_RFCDest_Availability_Col
    Problem:
    I am not able to  Reset the segment in WARMUP status
    not able to find the node in RZ20
    Regards,
    Neni

  • Auto-numbering of item field in custom table for EEW enhancements for BUPA

    Hi Experts,
    We have a requirement to generat 3 custom tables in EEWB,for BUPA and assigned it to BP_HEAD. I have done all the generations and it works fine, the problem  is that the tables that are generated is not allowing us to have a data(material) of 0...n cardinality. 
    The table that we are aiming is to allow multiple records, so my solution is to have an extra item number field so that it will allow multiple records for a material. But users are requesting to have the item number field of the tables to be auto-numbering.
    I would like to know if this autonumbering is possible or not? what methods in BP_EEW should i use to implement this logic. I 'm very new to CRM2007, so I'm still not very familiar on how to use the objects generated by the component workbench.
    p.s.
    I've already search the forum but can find any relevant topic related to my request. If you have any known related topic, It would be highly appreciated.
    Thanks and regards,
    JP
    Edited by: John Paul Auditor on Sep 1, 2009 3:36 AM

    Dear Syed,
       You can do many things in table maintenance screen like validation of some field, making some field required or displayed etc.
       For auto increment you have to use Number-Ranges. FM NUMBER_GET_NEXT is helpful in this case.
       Where to write the code??? The Function-Group you have made. There will be includes. You can easily locate the place to write these codes.
       Caution point is that if you re-generate the table maintenance then all code will be gone.
    Regards,
    Deva.

  • Table stores RFC destination

    Dear all,
    Do you know the table that stored RFC destination that defined via SM59?
    Please comment.

    HI,
    Check the Table RFCATTRIB and RFCDES
    Cheerz
    Ram

Maybe you are looking for