RFC Call through BSP

Hi ,
           Can we do a RFC call from a  system having WAS to another R/3 system not having WAS installed.
Regards,
Divyanshu

Hi Divyanshu
here is the code for RFC. Its the same as calling a  function module. You have to just specify the RFC destination name here it is 'ABC'. RFC destination you can create thru SM59
CALL FUNCTION 'ZTM_TI_CREATE' destination 'ABC'
EXPORTING
STARTDATE = strtripbegin
STARTTIME = strstarttime
ENDDATE = strtripend
ENDTIME = strendtime
FIRSTDEST = watidisp-arrival
COUNTRY = strcountry1
REASON = strreason
CASHADVANCE = strcashadvance
CASHCURR = 'INR'
BANKADVANCE = strbankadvance
BANKCURR = 'INR'
EMPLNO = employeeno
IMPORTING
REINR = watripno
TABLES
MESSTAB =
ADDDEST = adddest
Regards
Naresh

Similar Messages

  • RFC Call through BSP - Issue with RFC logon credentials

    Hi everyone,
    I have an BSP application running on a 6.40 which calls a RFC function module on a backend system (4.6c) using a trusted RFC connection.
    The BSP is started with an URL which contains in encoded form the username and password. So we don't use the standard sap-username & sap-password.
    In the first step the user is logged in with the anonym user (user type 'service') which is entered in the SICF. So sy-uname = 'anonym'.
    After a couple of checks and verifications the BSP makes a user switch using 'SUSR_INTERNET_USERSWITCH'. Exporting parameters are the now decoded values from the URL. So after the switch sy-uname is e.g.  'blabla'.
    Now a function module on the backend system is called. What I would now expect is that on the backend system sy-uname is also 'blabla'. But it isn't. The sy-uname is still 'anonym', which isn't very helpful regarding object authority checks.
    Only after an reload of the BSP page and a second RFC call of the function module the sy-uname = 'blabla'.
    I wonder what causes this problem?
    Thanks for your replies & regards
    Kruno

    Hi,
    I solved it.
    Before I execute function 'SUSR_INTERNET_USERSWITCH' I first check if user has a valid backend account by using function module 'BAPI_USER_EXISTENCE_CHECK'.
    And this is the problem. When 'BAPI_USER_EXISTENCE_CHECK' is executed once all other RFC function calls to the backend get the wrong user.
    Why? I don't know yet. Maybe I will get an useful anwer from an OSS note.

  • Multiple (parallel) RFC Calls through  one connection?

    Hi SAP gurus,
    Is there a possibility for parallel RFC calls through one open connection via one SAP system user?
    As I know when calling RFCs it opens a new session and the dialog users have only 6 sessions permitted.
    Do you know any possible solution for this?
    Thanks a lot in advance

    Is this question about the SAP StreamWork APIs. I think you have posted to the wrong forum.

  • RFC Call from BSP Page

    Hello All,
    I have a standard SAP BSP application(which is statefull, but does not have a script for handling WINDOW closing EVENT , for removing the orphaned sessions, also I cannot add that code now as it's standard).
    In one of the bas page I'm calling an RFC function module to a second R/3 system.
    When I call the RFC and after doing some processing if I close the application( Please note that underlying session is still active), I still can see the RFC Login in 2nd system.
    Is there any way to remove the RFC connection immediately after the RFC call? so that there is no persistent RFC connection, and a connection will be established only on demand.
    Regards
    Geogy

    Hi Geogy,
    Please use the FM "RFC_CONNECTION_CLOSE" after the corresponding RFC call with the same destination.
    This will close the connection opened by the previous call.
    Thanks
    Madhan

  • Rfc call within bsp

    Hi,
    in my bsp page i call an RFC fm thus:
      CALL FUNCTION 'Z_VLB_RFC_SAP_EXTERNAL'
        EXPORTING
          z_vlb_rfc_rpta = wa_rfc_rpta
        IMPORTING
          return         = l_return.
      IF sy-subrc = 0.
    if everything has gone OK display a message to the user
        wa_zevlb_messages-message = 'Data sent correctly to external application'.
        wa_zevlb_messages-message_type = 'OK'.
            output = wa_solic_clean_i-solicitud.
      ENDIF.
    The problem is that when i try to debugg, after the call to the rfc fm
    the flow of the program doesn´t pass through the "IF sy-subrc = 0.".
    why is this happenning?
    is it because when calling the fm i´m openning a new LUW
    or something like this?
    Best regards.

    pablo,
    Specify your Destination in your function module,
    for ex..
    CALL FUNCTION 'Z_VLB_RFC_SAP_EXTERNAL' DESTINATION NULL
    Rgds,
    Jothi.P

  • RFC call through JCo or webservice

    Can anybody point differences(advantages/disadvantages) between a)calling a BAPI using JCo b)creating a web service for the RFC and calling the webservice fron WD application.
    regards,
    Bhupesh

    Hi Bhupesh,
               Jco is written in java and it convert the java calls into the native ABAP calls ..so comunication is done between a java program and r/3 system through the JCo.....if the BAPI is exposed as a webservice ..then the processing language use is XML and SOAP protocol any language which can create and process XML can communication to BAPI(r/3) system...like java,dotnet etc....else u need a middleware like JCO which can convert java calls to abap calls  for that language ...and now a days ....XML is commanly used by most of the Internet technologies...
    hope this will clear ur doubt.
    Regards,
    yash

  • RFC call through BPM

    Hi,
    Iam trying to build a scenario like this. WMQSeries->XI 3.0->SAP R/3--->WMQSeries.
    Can someone please tell me whether my approach is right or wrong.And the steps iam missing.WMQ>XIBPM>R/3>XIBPM>WMQ.
    Totally created 5 interfaces.
    MQ Request -->Refering to MQ Request Message Type
    MQ Response -->Refering to MQ Response Message Type
    BAPI_SYNC_ABS -->Refering BApI Request and Response
    BAPI_REQUEST_ABS -->Refering BAPI Request
    BAPI_RESPONSE_ABS.-->Refering BAPI response.Last 3 Abstract Interfaces created from the BAPI imported to XI.
    Created 2 Interface Mapping Between   MQ Request <> BAPI_REQUEST_ABS and BAPI_RESPONSE_ABS<>MQ Response.
    Created Integration Process with 3 steps(Async Receive, Syc Send to SAP, Asyc Send to WMQ) and
    created 2 container elements for hoding BAPI_REQUEST_ABS and BAPI_RESPONSE_ABS.
    In ID, created 2 service's of type business service one for sending&receiver of MQ Request&Response and second one for SAP system.
    Created 3 ReceiverDeterminations,3 Interface dterminations, 1 Sender Agreement and 2 Receiver Agreements.
    When i send the message from WQ, it goes through BPM well, after that iam getting error in Receiver determination.
    Can anyone please tell me when am doin worng??? I did go through the weblog /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Navin

    Hi,
    we have the same requirment and run into the same problem.
    We stuck at the point where the response message from the
    RFC has to send back to MQ.
    It must link the conversation ID to the Response message.
    There we need the possibility to set the ConversationID
    into the response message. The ConversationID is taken
    from the Request Message.
    The problem is how to set the field ConversationID or
    RefToMsgID in the Mapping or BPM. Could it be done via
    Java or ABAP-Maping?
    Is the header field only readable and can not be set
    in the mapping? Maybe somebody have ane idea or a solution.
    thanks,
    Ly-Na Phu

  • Excel sheet generation through RFC call from a BSP application

    Hi,
      I am calling a RFC FM ( in R3)  in Event handler 'OnInputProcessing' of a BSP application in a SRM server.
    That function submits a report program which geneates a excel sheet using download FM . Excel sheet is not getting generated.
    But when i am calling this RFC FM  (in R3) from a report program ( in srm server)
    this is generating an ecel sheet.
    I want to have call RFC from BSP application.
    I tried the way of submit a program ( which contains RFC call) from BSP application ,but it is also not generating excel sheet.
    My ultimate AIM is to generate excel sheet by trigerring CALL or submit from BSP
    application.
    can any one propose solution for it.
    Useful answers will be rewarded.

    Hi,
    Which FM is it. I guess that the download generated is a SAP gui oriented solution, which will never work in a web environment
    Eddy
    PS. Reward useful answers and earn points yourself

  • A upper/lower sensitive problem on RFC call

    hello, everyone.
    Maybe it is not the proper forum to discuss this topic, but I think the ABAP programinig Forum is the best forum in SDN, which has the most vistors.
    So please help me solve this problem, if possible.
    I meet a problem on RFC call through dotnet connector.
    There is a RFC deploy on the R3 server.
    And a portal application using dotnet connector to call the RFC from web side.
    The problem is when input some string like 'AbCdEf' from web side, transfer to the sap side, the RFC always get the string like 'ABCDEF'.
    I think it dues to the auto upper convert by the RFC call, and if in SE37, we can check the upper/lower box to solve it.
    But how can I solve it in this portal case?
    Can I get original string in the RFC side?
    How we can get the string as the original content 'AbCdEf' in RFC side?
    any suggestion is welcome,
    and I'm waitting for your answer, thanks a lot

    Hi zhenglin,
    To expand on what Siggi said, fields in the structures of your RFC parameters are based on data elements which in turn are based on domains.
    An attribute on the domain is "Lowercase'.  Unless this is checked, the field will always be treated as uppercase, and you will get the effect you described.
    Please check the domain of the field in question, to ensure that the "lowercase" flag is checked.
    Cheers,
    Brad

  • Executing Workflow through RFC Call

    Hi,
        I need to execute a worklow in one system through an RFC call from another system . Is this possible?
    If yes, then what all parameteres do I need to do so and what all steps are involved.
    Regards,
    Divyanshu

    Hi Divyanshu,
    It is best not to start workflows directly but rather by using events. Usually a WF will have a triggering event defined, such as EMPLOYEET.POSITIONCHANGED. Look at the WF header for the trigger.
    You can remotely raise this event using FM SAP_WAPI_CREATE_EVENT. Pass it the object type, key and event name and any other parameters. It even has some documentation.
    Cheers
    Mike

  • Urgent: Debugging through RFC call

    Hi,
    I am debugging between two systems - CRM and ECC. At one point in the CRM system, a BAPI which is available in the ECC system is being called through RFC. When I press (F5) at the BAPI call, the control does not go inside but executes the BAPI and moves on to the next statement in the CRM statement.
    Can you please tell me how can I enter the code inside the BAPI during debugging?
    Helpful answers will be rewarded!
    Thank you.

    hi,
    if that's is the case then u just take that particular BAPI inputs form that CRM program while debugging then u can test that BAPI saperatly in se37 by giving those inputs, now u can get output of the BAPI and also u can dubugg  the same BAPI.
    reward points if useful,
    seshu.

  • Send data to ECC table through RFC Call function from SAP B1 via  b1if

    Hi,
    I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
    So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
    Thanks

    Solved by my own.

  • How to loop through single XML File and send multiple RFC calls?

    I am looking for the best approach to use for making multiple RFC calls (can be sequential) using a single XML file of data.  I have been attempting to get a BPM loop working, but to no avail.  My RFC only accepts a single set of delivery input and I have been told to try to work with it as is.
    input xml sample:
    <?xml version="1.0" encoding="UTF-8"?>
    <ProofOfDelivery>
       <POD>
          <delivery_number>1</delivery_number>
          <carrier_name>UPS</carrier_name>
       </POD>
       <POD>
          <delivery_number>2</delivery_number>
          <carrier_name>UPS</carrier_name>
       </POD>
    </ProofOfDelivery>
    I need to make a synchronous RFC call for each set of POD data.
    Thanks in advance!

    Thanks for the inputs.
    I tried with a BPM and multi-mapping transformation before a ForEach block.  I am getting this error:
    Work item 000000028028: Object FLOWITEM method EXECUTE cannot be executed
    Error during result processing of work item 000000028029
    com/sap/xi/tf/_ProofOfDeliveryMultiMapping_com.sap.aii.utilxi.misc.api.BaseRuntimeExceptionRuntim
    Error: Exception CX_MERGE_SPLIT occurred (program: CL_MERGE_SPLIT_SERVICE========CP, include: CL_
    Probably because I am not making/using the container objects properly.  Here is a screenshot of my BPM.  Can anyone spot my issue or point me to an example on this sort of container use?
    [http://kdwendel.brinkster.net/images/bpm.jpg|http://kdwendel.brinkster.net/images/bpm.jpg]
    Thanks

  • Credit Card Encryption through RFC calls to third party software

    Dear All,
       I am working on credit card encryption in CRM. At our firm, we have SAP R/3 which is integrated with third party server for performing credit card encryption using RFC calls. We want to perform similar thing in SAP CRM. I was looking into SAP standard mechanism to perform encryption and it seems they use class CL_PCA_SECURITY -> External Encryption to encrypt credit card. Are there any BADIs available for me to change behaviour of this call and call our listeners (for third party server) instead of what standard SAP is calling. Here is what in the code:
    call C function 'SSFENVELOPE'
      CALL 'SSF_ABAP_SERVICE'                                 "#EC CI_CCALL
           ID 'OPCODE'             FIELD   SSF_OPCODES-ENVELOPE
           ID 'SECTOOLKIT'         FIELD   SSFTOOLKIT
           ID 'STRFORMAT'          FIELD   STR_FORMAT
           ID 'STRFORMATL'         FIELD   STR_FORMAT_L
           ID 'BINENC'             FIELD   B_INENC
           ID 'IOSPEC'             FIELD   IO_SPEC
           ID 'OSTRINPUTDATAL'     FIELD   OSTR_INPUT_DATA_L
           ID 'STRPAB'             FIELD   STR_PAB
           ID 'STRPABL'            FIELD   STR_PAB_L
           ID 'STRPABPASSWORD'     FIELD   STR_PAB_PASSWORD
           ID 'STRPABPASSWORDL'    FIELD   STR_PAB_PASSWORD_L
           ID 'OSTRENVELOPEDDATAL' FIELD   OSTR_ENVELOPED_DATA_L
           ID 'CRC'                FIELD   CRC
           ID 'OSTRINPUTDATA'      FIELD   OSTR_INPUT_DATA-SYS
           ID 'RECIPIENTLIST'      FIELD   RCPTAB-SYS
           ID 'OSTRENVELOPEDDATA'  FIELD   OSTR_ENVELOPED_DATA-SYS
           ID 'STRSYMENCRALG'      FIELD   STR_SYM_ENCR_ALG
           ID 'STRSYMENCRALGL'     FIELD   STR_SYM_ENCR_ALG_L.

    Vivek,
    While it may be technically possible to accomplish what you are suggesting (leveraging the encryption functionality provided by your third-party server) I would recommend strongly that you consider a token-based solution instead.  You can learn more about tokenization on this [blog|/people/eric.bushman4/blog/2009/01/02/tokenization-as-a-means-of-securing-credit-card-numbers ].
    There are many reasons why a token-based solution is superior to using application specific encryption (as outlined in the blog), but specifically in the case you describe where an SAP CRM and SAP R/3 are involved there is one specific reason to consider:
    When order data is replicated between SAP CRM and SAP R/3 the systems will attempt to decrypt the credit card numbers prior to passing the data and therefore the RAW card number will be stored in the middleware logs.  This is especially true when using SAP's native credit card encryption logic in the CRM and R/3-ECC applications. 
    For example, let's say a user enters a credit card as the form of payment during Order Creation in CRM.  At Order Save the system will send the credit card information to your third-party server for an authorization attempt and the results will be returned to CRM.  As the Order is saved and committed to the CRM database the standard SAP encryption functionality can be leveraged to encrypt the card data.  Based on your middleware configuration, eventually the Order data (including the credit card details) will be sent to the R/3 or ECC system.  In order to do so the CRM system will first decrypt the card number meaning that the CRM middleware logs will contain RAW card numbers.  When the Order is created in R/3 or ECC the native credit card encryption functionality in R/3 or ECC could be used to encrypt the card number prior to the Order being stored in the database.
    Should you choose to use a third-party server you may find, depending on how the third-party vendor's logic works in SAP, that you must utilize a BADI to decrypt the card number in CRM so that the CRM middleware has a RAW card and so that when the Orders is saved in the R/3 or ECC system it can be encrypted again with the third-party vendor solution.  In either case the RAW card number is present in all systems for some period of time and potentially stored in logs thus exposing your systems to risk and greater PCI audit scrutiny.
    Eric Bushman
    VP, Solutions Engineering
    [Paymetric|https://www.paymetric.com]

  • Program making a RFC call to Function Module not working in background

    Hi All,
    I have an ABAP Program which is used to do a reconciliation check between the R/3 and BI system for Invoice Data. Please find below the details of the program flow:
    1.     Program counts the number of records in the DSO table and aggregates the Net_Value based on the date range (passed as parameters)
    2.     Program calls a Function Module (RFC Call) which counts the number of records in the R/3 table and aggregates the Net_Value for the same date range
    3.     Function Module Passes back the count values and aggregated Net_Value to the program
    4.     Program compares the count and aggregated Net_Value from EDWH and MSP systems and sends an email mentioning whether the counts match or not
    However we are facing an issue.
    Whenever, we execute the program in dialog mode, it works fine and fetches results within 5-6 minutes. However if we schedule the program to run in background (parameters through a variant), it gives no results even after running for over 3-4 hours. We tried figuring it out yesterday but could not come to any conclusion. Since there is a RFC call being to the function module, we were wondering if we need to specify some other parameter as well.
    Thanks & Regards
    Dharmendra

    RFC Call is a procedure for executing remote enables function modules. It is done via the 'Remote Enabled' radio button on the function module's attribute screen.

Maybe you are looking for

  • Finder window crashing when i try to open a specific folder in my documents folder.

    my computer won't open a specific folder in my documents folder. it will let me open other folders but not his one.  when i click to open it get a notice that Finder has unexpectedly quit.  Any help would be appreciated as it's my main folder!

  • My macbook seems to be overheating

    Sorry to bother you but just two days ago I recieved a Macbook Pro '13 inch as a present. I've been told how great these laptops are. However my macbook seems to overheat often. I've searched up a few discussions and its said to keep it on a flat sur

  • Can the first generation iPad play an 720p HD video downloaded from the iTunes store?

    Hello fellow Apple users! I am just wondering if the iPad 1 could play a 720p video downloaded from the iTunes store. I'd love to watch a movie in HD but I don't wanna waste money on something I can't consume. Thanks a lot!

  • How to design a digital switch in order to modulate an analogue carrier?

    Hi, I am struggling with something that, I think, might be simple. I am programming a digital modulator. It multiplies an analogue waveform (carrier) by 1 or -1 according with the value in the digital signal. Thus, how to design a digital switch usin

  • WLST not obeying arguments

    I'm seeing some more strange behavior using WLST deploy. It's not using the parameters I pass in. The first case is with Plan files. I used to just give the top level directory name for the app, and it would detect the plan.xml files in the plan dir.