How to display RFC-Logon-Screen for non trusted connection in Web-Dynpro?

Dear Web-Dynpro-Specialists,
i got a issue while creation of an WebDynpro-Tool, which is using RFC connections for reading data.
In some cases the RFC connection is not a trusted one connection, so a login is nessessary, but in
this cases not a window is coming up for login....
Any idea how i can get this window for login, in order to collect the nessessary Data for my tool?
Additional Information concerning the RFC connection:
While running my Web-Dynpro i run this Method:
METHOD get_table_entries.
CLEAR rt_entries[].
CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
DESTINATION iv_destination
EXPORTING
gen_key = iv_table_key
table_name = iv_table_name
TABLES
entries = rt_entries
EXCEPTIONS
internal_error = 1
table_empty = 2
table_not_found = 3
OTHERS = 4.
CASE sy-subrc.
WHEN 1.
RAISE internal_error.
WHEN 2.
RAISE table_empty.
WHEN 3.
RAISE table_not_found.
WHEN 4.
RAISE unknown_error.
ENDCASE.
ENDMETHOD.
Thanks a lot in advance
Best regards
Carsten Klatt

Hi!
You can use the function module RFC_MODIFY_R3_DESTINATION to create, modify and delete RFC connections. You will need the system ID (e.g. ABC), client (e.g. 123), system number (e.g. 00) and the host name of the server. In this example the following code would create or modify the RFC destination ZRFC_DESTINATION.
    CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
      EXPORTING
        destination                = 'ZRFC_DESTINATION'
        action                     = 'M'
        systemid                   = 'ABC'
        systemnr                   = '00'
        server                     = 'serverhostname'
        language                   = sy-langu
        client                     = '123'
        user                       = 'USERNAME'
        password                   = 'PASSWORD'
        description                = 'Dummy RFC Connection'
      EXCEPTIONS
        authority_not_available    = 1
        destination_already_exist  = 2
        destination_not_exist      = 3
        destination_enqueue_reject = 4
        information_failure        = 5
        trfc_entry_invalid         = 6
        internal_failure           = 7
        snc_information_failure    = 8
        snc_internal_failure       = 9
        destination_is_locked      = 10
        OTHERS                     = 11.
With the following code you can delete this connection:
    CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
      EXPORTING
        destination                = 'ZRFC_DESTINATION'
        action                     = 'D'
      EXCEPTIONS
        authority_not_available    = 1
        destination_already_exist  = 2
        destination_not_exist      = 3
        destination_enqueue_reject = 4
        information_failure        = 5
        trfc_entry_invalid         = 6
        internal_failure           = 7
        snc_information_failure    = 8
        snc_internal_failure       = 9
        destination_is_locked      = 10
        OTHERS                     = 11.
Please keep in mind that deleting an RFC connection is usually noted in the system log.
If you want to reuse your connection for multiple servers, you could run into trouble since connection data is cached.
Sincerely,
Stefan

Similar Messages

  • How to delete meeting through API for Using Adobe Connect 8 Web Services

    Using Adobe Connect 8 Web Services support "Create meetings" API to create a Adobe Connect meeting.
    But I can't find "Delete meeting" API similar to delete meeting,Could you tell me how to delete meeting through API.
    Thanks!

    You must have used sco-create to create meeting. To delete a meeting, use sco-delete API call.
    Find its documentation here.

  • How to display a window in clicking a button in abap web dynpro(popup wind)

    Hi i am using a button 'click'  in view1 ,
    if i click the button then a new window should be popup.

    Hi
    You ca use this function to Create a new window..
      CALL METHOD wd_window->create_window
          EXPORTING
            modal             = abap_true
            window_name       = 'MMPUR_CPPR_RFQ_WDW'
            title             = lv_otr_text
            close_button      = abap_true
            button_kind       = 3
            close_in_any_case = abap_true
          RECEIVING
            window            = wd_comp_controller->window.
        wd_comp_controller->window->open( ).
    here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
        CALL METHOD wd_comp_controller->window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_ok
            action_name       = 'RFQ_WT_VENDOR'
            action_view       = l_api
            is_default_button = abap_false
            button_text       = lv_otr_text
            tooltip           = lv_otr_text.
        wd_comp_controller->window->open( ).
    Please let me know if you have any issue. Please reword if its solve your problem.
    Regards
    Satrajit

  • HTML Client: How to display the edit screen of an item given its ID?

    To edit a selected item, I could easily add a new button on the command line and choose the existing method, "editSelected"
    But how to edit another item instead of the selected item? Like How to edit an item whose ID # is 10? i.e How to display the edit screen for an item with ID # 10?

    The methods such as 'editSelected' apply to screen property collections. Picking these pre-selected options automatically configure the parameter as '<my-collection>.selectedItem'.
    If you want an action not directly related to the screen properties then you can choose one of the screen commands under the 'Navigation' list starting with 'show', as in 'show<my-screen-name'. If the screen command accepts parameters then you can
    configure the parameter passing manually. In your example, if you added a local 'int' data property to the screen you could assign the ID to that and bind the parameter passed to the screen to that.
    In the instances when not even that is sufficient, well then you write your own custom method.
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • How to display the selection screen fields for selected checkboxes

    Hi all,
             I have 7 checkboxes, for each check box we have some seletion screen fields.if i select first check box,i want to display first slection screen fields only.
    and if we select more than one check box how to display the selection screen fields for selected check boxes,please help me this
    Thanks
    sriman.

    hi,
    Try this code
    report z_13317_sdn2.
    tables : mara, marc, dd03l.
    parameters : p_chk1 as checkbox user-command ABC,
                 p_chk2 as checkbox user-command PQR,
                 p_chk3 as checkbox user-command XYZ.
    select-options : s_matnr for mara-matnr modif id A,
                     s_ersda for mara-ersda modif id A,
                     s_werks for marc-werks modif id B,
                     s_lvorm for marc-lvorm modif id B,
                     s_tab for dd03l-tabname modif id C.
    data: v_chk1,
          v_chk2,
          v_chk3.
    at selection-screen output.
      loop at screen.
        if screen-group1 = 'A' or
           screen-group1 = 'B' or
           screen-group1 = 'C'.
            screen-input = 0.
           modify screen.
        endif.
      endloop.
      loop at screen.
        if v_chk1 = 'X'.
          if screen-group1 = 'A'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk2 = 'X'.
          if screen-group1 = 'B'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk3 = 'X'.
          if screen-group1 = 'C'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
      endloop.
    at selection-screen.
      if sy-ucomm = 'ABC'.
        if v_chk1 = ' '.
          v_chk1 = 'X'.
        else.
          v_chk1 = ' '.
        endif.
      endif.
      if sy-ucomm = 'PQR'.
        if v_chk2 = ' '.
          v_chk2 = 'X'.
        else.
          v_chk2 = ' '.
        endif.
      endif.
      if sy-ucomm = 'XYZ'.
        if v_chk3 = ' '.
          v_chk3 = 'X'.
        else.
          v_chk3 = ' '.
        endif.
      endif.
    Regards,
    Sailaja.

  • How can we do the validation for non visible records in table control.

    Hi Experts,
      I have a table control which displays list of material details. I have a button to upload the material details from excel file to table control directly. I have to validate all the customers which are exist in the table. But my item (Material) table control displays only 5 rows i.e only 5 entries are visible in module pool screen. The validation is done for 5 records only in PAI event, but i need to do validation for rest of the records too (Which are not visible on items table), if validation fails then needs to display error message.
      How can we do the validation for non visible records in table control.
    Regards,
    Bujji

    Hi,
    try validating material before displaying it in table control...'
    Rgds/Abhhi

  • How do i get the screen for pages and numbers to become bigger on my screen

    How do I get the Screen for pages, numbers and quickbooks to become bigger on my screen.
    The Font is fine for pringing

    Mac's don't have UI scale options like Windows has.
    Either you can drop the screen resolution in Displays a wee bit and make things appear distorted, or do what I do and use the Universal Access and set a control key, then use a mouse wheel/scroll to zoom in and out where the mouse is pointed.
    For easier web surfing I've got a good solution here
    Better surfing options for hard of seeing users

  • How to display the selection screen with icons as well as with text element

    How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..

    Report zex33.
    type-pools: icon.
    selection-screen begin of line.
    selection-screen comment 1(20) text_001.
    parameters: p_werks type marc-werks.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_002.
    parameters: p_whouse(10).
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_003.
    parameters: p_auart like vbak-auart.
    selection-screen end of line.
    initialization.
      write ICON_PLANT  as icon to text_001.
    concatenate text_001 text-001 into text_001 separated by space.
      write ICON_WAREHOUSE  as icon to text_002.
    concatenate text_002 text-002 into text_002 separated by space.
      write ICON_ORDER  as icon to text_003.
    concatenate text_003 text-003 into text_003 separated by space.

  • Send portfolio how to customize adobe welcome screen for shared porfolio. (Opening the link forces the recipient to a downright ugly irrelevant and dead advertisement rather a related cover page)

    send portfolio- how to customize adobe welcome screen for shared porfolio ?(Opening the link forces the recipient to a downright ugly irrelevant and dead advertisement (appropriately titled "branding logo.png) rather a related cover page)

    Hi nedler1,
    Please try the following steps to display the cover sheet and replace it with custom one:
    How to change a portfolio’s initial view setting to show the cover sheet (and hide the contents):
    Open a PDF portfolio and run the following JS in the console:
    this.collection.initialView = 'Hidden';
    Save the portfolio, close and re-open.
    The cover sheet will now be displayed when opening the portfolio.
    Updating the cover sheet
    Also, most likely if you want the coversheet displayed when opening the portfolio, and do not want the default cover sheet:
    Here are the steps to replace the default cover sheet:
    Open the Portfolio.
    Perform a View > Portfolio > cover sheet to open the cover sheet.
    Open the Pages panel for the cover sheet.
    Right click on the cover sheet page in the pages panel, select “Replace Pages”.
    Replace the cover sheet page with the desired cover from a page in another pdf.
    Save the portfolio.
    Regards,
    Rave

  • How much is a new screen for a mac book pro

    how much is a new screen for a mac book pro? - mine is cracked and shattered, everything else seems to work at mo?

    check this link ifixit.com

  • Can we have two different logon screen for the Portal

    Can we have two different logon screens for the Portal?
    We should split the Logon application in two different applications:
    Login # 1
    should be read a DataSource.XML reading the Active Directory (Microsoft), to read-only the profiles from the AD, and block some IP address range.
    Login # 2
    should be read a DataSource.XML reading the Portal user only
    Is this possible?

    Hello Developer,
    Did you find an answer to this problem. I also have a similar issue at hand and am wondering if anybody has a solution for this.
    Thanks, Akhilesh

  • HT4528 How much would a cracked screen for iphone 4S cost, if my phone is still under warranty?

    How much would a cracked screen for iphone 4S cost, if my phone is still under warranty?

    Razmee209 is correct, out of warranty repair/replacement cost for and iPhone 4s is $199, and the reason you would have to pay for that Kats524 is because accidental damage is not covered under your limited hardware warranty. Hope this helps, best of luck to you.

  • HT1349 How much is a new screen for iphone 4s?

    Does anyone know how much is a new screen for Iphone 4s?
    Many thanks!!
    C.

    Apple does not sell iPhone parts, and for the iPhone 4S, the replace the phone. Cost is US $199.

  • How to customize portal logon screen

    Hi,
    I am new to Enterprise Portal.Can anybody tell me how to customize the logon screen.
    Thanks in Advance!!!
    Yerramilli

    Hello Yerramilli ,
    Please post your query in Portal Forum .
    In SDN we have varies Fourms like
    Portal Content Development , Portal Implementation ,Enterprise Portal Migration ,Unification, Connectivity and Object Based Navigation .
    You can post your query in Portal Content Development
    Regards ,
    Santosh

  • RFC logon failed with message: Failed: Connect to SAP  gateway failed

    I installed CI instance fine and i am stopped here with this error at the end of DB instance install. Could someone let me know what could  be the reason for this. Is there any fix or workaround to continue the install.
    INFO       2006-09-16 01:13:02 [iaxxrfcimp.cpp:398]
              CAbRfcImpl::setRfcConnectParam
    RFC parameter ASHOST set to value hostSAP.
    INFO       2006-09-16 01:13:02 [iaxxrfcimp.cpp:398]
              CAbRfcImpl::setRfcConnectParam
    RFC parameter SYSNR set to value 09.
    INFO       2006-09-16 01:13:02 [iaxxrfcimp.cpp:543]
              CAbRfcImpl::checkConnectInfo
    RFC connection information checked successfully.
    ERROR      2006-09-16 01:13:02 [iaxxrfcimp.cpp:450]
              CAbRfcImpl::openRfcConn
    FRF-00007  Unable to open RFC connection.
    ERROR      2006-09-16 01:13:02
              CJSlibModule::writeError_impl()
    FRF-00063  RFC logon failed with message: Failed: Connect to SAP  gateway failed
    Connect_PM  GWHOST=hostSAP, GWSERV=sapgw09, ASHOST=hostSAP, SYSNR=09
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       partner not reached (host hostSAP, service 3309)
    TIME        Sat Sep 16 01:13:02 2006
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -10
    MODULE      nixxi_r_mt.cpp
    LINE        8528
    DETAIL      NiPConnect
    SYSTEM CALL connect
    ERRNO       146
    ERRNO TEXT  Connection refused
    COUNTER     4
    Thanks,
    Ram

    at the end of the database instance installation SAPInst is doing some RFCs to the CI.
    The logfile states that the gateway on host hostSAP with the systemnumber 09 is not reachable.
    Please check if you have started the central instance on this machine.
    peter

Maybe you are looking for

  • Using Select all to create multiple lines in a sales order

    Hello SAP experts, In our business practice users create multiple line sales orders with reference to contracts and use the copy paste method and then assign each line to the contract manually. After a few years of this practice i found a new way to

  • Limit on apps?

    Hallo. I would like to know if there is a limit on how many pages I can have on my iphone 3G. Is there a limit of 10 pages plus the original one? Because I have 3GB free memory on my iphone but if I download many apps that need more than 10 pages on

  • Update to iTunes 7.7 Release - Now I have a problem.

    I am curious if anyone is having this problem. I updated to iTunes 7.7 release today on my development system (a mistake as I have been chasing this now all evening). The problem I am having is that when I build my app for the device the app installs

  • How to convert HD movies that I have bought to SD so that I can play them on my iPod Classic?

    I want to sync the new movies I have bought to my ipod classic but it wont let me. I think it is because I have them in HD. I bought them without realising that the ipod classic wouldnt sync them, and I dont want to buy them again. Is there any way o

  • Comparing equality between 2 strings using '=='

    Sorry if this seems a pretty trivial question, but it has me rather puzzled. when comparing reference types (objects) for equality using '==' , it normally only returns true if the two operands are one and the same object. Now say I were to test this