Folder selection in webdynpro abap

Hi,
I have a requirement to read all the files present in a folder,i have searched for frontend classes but doesnot work in webdynpro abap can any one suggest how to acheve the functionality
Thanks,
Shailaja Ainala.

You have to remember that you are in a Web Browser and therefore are subject to the sandbox security restrictions that the web browser enforces. This means very limited access to the frontend client machine compared to SAPGUI applications. 
>I think Thomas Jung has written an e-Learning on this topic, but I believe the premise is that you can use ACFExecute to cause a directory listing to be executed and then ACFUpDownload to download that listing and then download the files.
Its not quite that easy I'm afraid.  ACFExecute can't return data to the Web Dypro Application. It is desgined to trigger interactive applicactions not become a data interface between them (although you can pass startup parameters for the application).  ACFUpDownload will let you silently upload multiple files (thanks to the use of a Java Applet), but doesn't have any file selection dialog.  It was originally designed for KPRO - where you have file check-ins and know the file locations from the document records. A file open/save dialog for ACFUpDownload isn't added until 7.02.  Even with the dialog you would still need user interaction to select the files - it can't just read all the files in a directory.  Note: both ACFExecute and ACFUpDownload are new in NetWeaver 7.0 Enhancement Package 1.
You could also try a FlashIsland (also new in 7.01). I have a sample of multiple file uploads using Islands as well on SDN. However same issue here - you can't just read the file structure of a directory.  Even in Flash/Flex you are somewhat sandboxed - and the user must select the files they wish to upload (although they could select all files in a directory and upload them all at once).
The other solution (which can be done on 7.0) is to have the user manually ZIP the entire directory and then upload the single ZIP file with the normal FileUpload UI element.  On the ABAP side you can use CL_ABAP_ZIP to parse and process out the individual files within the ZIP content.

Similar Messages

  • Is there any way to create a folder in presentation server - webdynpro abap

    Hello,
    My requirement is to create a folder in presentation server using webdynpro abap..
    I tried on this CL_GUI_FRONTEND_SERVICRES classes ..but its getting an short dump.
    Is there any way to create folder using classes / FM..
    Regards,
    Praveen kumar reddy s.

    Hi PRaveen,
    Check this.. WD_TEST_APPL_ACFEXECUTE
    Check Thamos article..
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    go for help..
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b91539878a2d67e10000000a42189c/content.htm
    Cheers,
    Kris.
    Edited by: kissnas on May 10, 2011 2:24 PM

  • OnSelect event for a Drop down UI Element in Webdynpro ABAP Select Options

    Hi Experts
    We have built our UI based on the webdynpro ABAP Select Options. We have a requirement that, when we change the value of a drop down box in the UI, I need to hide some fields. Can anybody help me out in handling of OnSelect event of a drop down box built using webdynpro ABAP Select Options. We are on SAP Netweaver 7.0 EHP1.
    Rrgards,
    Srikanth.
    Edited by: Srikanth Kancherla on Apr 29, 2010 10:43 PM

    Hi Srikanth,
    as you seem to be already aware, the component is dynamically built.
    so you would have to enhance the code that builds the element and insert a reference to a new action (enhancement) that could handle the onSelect event.
    What is it about this that you particularly want help with?
    Cheers,
    Chris

  • Select-options in Webdynpro abap

    Hi,
    I want to use select options in webdynpro abap ,I checked links available in net but want a simple step by step procedure .
    -Sandeep

    Hi,
    What do you mean by simple steps? You need to write little code to add select options in WDA. You can check this wiki for reference: Web Dynpro ABAP - Complex select-options component usages - Code Gallery - SCN Wiki
    And there are lot more documents available in SCN. search here
    Regards,
    Kiran

  • Default Values for Select-options In Webdynpro-ABAP

    Hi Freinds,
    Kindly,Help me in setting the Default values for the Select-options in Webdynpro ABAP.
    Here the Node and the Attributes are Created Dynamically, and then Displayed Select-options Component View.
    Regards,
    Xavier.P

    Xavier Reddy Penta sent me this question via email and I answered it directly yesterday. Here is the solution that I provided to him, so that it is stored with the original question:
    I believe your problem is that you are not setting the value into the range correctly.  You are setting it directly into the field symbol of the range like such:
    <FS> = L_STRING2.
    But ranges are deep objects. They have four fields: Sign, Option, High, and Low. This is from the online help:
    1.     sign of type c and length 1. The content of sign determines for every row whether the result of the condition formulated in the column is included or excluded in the entire resulting set for all rows. Evaluable values are "I" for include and "E" for exclude.
    2.     option of type c and length 2. option contains the selection option for the condition of the row in form of logical operators. Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP" and "NP" if column high is initial, and "BT", "NB" if column high is not initial. With the options "CP" and "NP", the data type of the columns low and high must be of the data type c, and special rules apply for entries on the selection screen.
    3.     low of the data type defined after FOR. This column is designated for the comparison value or the lower interval limitation.
    4.     high of the data type defined after FOR. This column is designated for the upper interval limitation.
    So when you are moving the value into the field symbol you are setting it into the sign column.
    Here is an example of how you can access the components of the range:
    * create a range table that consists of this new data element
        lt_range_table =
          wd_this->lv_sel_handler->create_range_table(
               i_typename = l_typename ).
        IF l_fieldname = 'CARRID'.
          FIELD-SYMBOLS: <tab>         TYPE INDEX TABLE,
                             <struct>      TYPE ANY,
                             <wa>          TYPE ANY,
                             <option>      TYPE char2,
                             <sign>        TYPE char1,
                             <high>        TYPE ANY,
                             <low>         TYPE ANY,
                             <wa_values>   TYPE ANY.
          ASSIGN lt_range_table->* TO <tab>.
          APPEND INITIAL LINE TO <tab> ASSIGNING <wa>.
          ASSIGN COMPONENT 'OPTION' OF STRUCTURE <wa> TO <option>.
          ASSIGN COMPONENT 'HIGH' OF STRUCTURE <wa> TO <high>.
          ASSIGN COMPONENT 'LOW' OF STRUCTURE <wa> TO <low>.
          ASSIGN COMPONENT 'SIGN' OF STRUCTURE <wa> TO <sign>.
          <sign> = 'I'.
          <option> =  'EQ'.
          <low> = 'AA'.
        ENDIF.

  • Webdynpro ABAP ALV in SAP ECC6 - EHP4: To disable Column Selection

    Hi All,
    We are using SAP ECC6 EHP4 and  for Webdynpro ABAP application, after each column a vertical white line is appearing, and I need to hide this..
    SAP suggested us to disable COLUMN SELECTION I have tried the below code but still I am not able to get this done..
    Can you please suggest the appropriate method to achieve the same.
    Code:
    * show tab COLUMN SELECTION in Settings page
    CALL METHOD wd_this->alv_conf_table->if_salv_wd_std_functions~set_column_selection_allowed
      EXPORTING value = ABAP_false..
    here alv_conf_table refers to CL_SALV_WD_CONFIG_TABLE.
    Thanks in advance.
    Thanks
    Srinivas
    Edited by: Srinivas Manchi on Apr 22, 2010 11:35 AM
    Edited by: Srinivas Manchi on Apr 22, 2010 1:06 PM

    You have to disable the DDic binding on the column before your override text will show up:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      data l_salv_wd_table type ref to iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      data l_table type ref to cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      data l_column type ref to cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'POSTING_DATE' ).
      data l_header type ref to cl_salv_wd_column_header.
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_text
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_text( `Posting Date` ).

  • Upload from clipboard option in webdynpro abap selection screen

    Hello Gurus,
    We have a requirement in select-options in webdynpro.i have implimented select-options successfully using
    WDR_SELECT_OPTIONS used component.now i need to impliment 'upload from clipboard' option when ever i click on advance options arrow mark. this option we can get in normal abp from selection screen.in selection screen against select-option field we have multiple options arrow mark.when ever we click this arrow mark we can able to see the upload from clipboard button at lowe level.exact same option how can we impliment in webdynpro abap selection screen.
    Could anyone please suggest solutions?
    if possible could you send me the sample code or relevent links for the same.
    Thanks in Advance for your replies.
    Regards,
    babu

    Hi,
    Which server version are you working on...Is it ECC6 or nwetweaver 7..
    I guess that option is avaialbel in Netweaver 7.0..Need to check there is an option for Clipboard in select-options..
    Regards,
    Lekha.

  • Parameters in selection screnn  in webdynpro abap

    Hello Gurus,
    We have a requirement to maintain parameters in selection screnn  in webdynpro abap.
    now we are able to create parameters  using wdr_select_options componet usage of method add_parameter_field.
    we need f4 help also for this parameter.
    how can we pass exporting parameters to this method.
    Could anyone please suggest solutions?
    and if possible send me the sample code for this requirement.
    Thanks in Advance for your replies.
    Regards,
    Babu

    Hi Rajsekhar,
    this is sample code of select option for carr id field. so you can guess and change according to your requirement.
    Observe the highlited code in below coding.
    nOTE: S_CARR_ID IS THE DATA ELEMENT OF CARR ID  FIELD, FOR THAT I AM APPLYING SELECT OPTIONS IN BELOW CODING.
    WRITE THE BELOW CODE IN WDDOINT( ) METHOD OF REQUIRED VIEW
    Data: lt_range_table type ref to data,
         read_only type abap_bool.
    WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
    WD_THIS->M_HANDLER = WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECT_SCREEN( ).
    WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
         I_DISPLAY_BTN_CANCEL = ABAP_FALSE
         I_DISPLAY_BTN_CHECK = ABAP_FALSE
         I_DISPLAY_BTN_RESET = ABAP_FALSE
         I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
    LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
    WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
    *          I_ID = 'S_CARR_ID'*
    *          IT_RESULT = LT_RANGE_TABLE*
    *          I_READ_ONLY = READ_ONLY* ).
    BELOW CODE IN REQUIRED ACTION( SAY IN SOME BUTTON ACTION WHICH WILL RETRIEVE THE DATA FROM DATABASE TABLE USING SELECTI OPTIONS VALUES)
    fIRST THE GET REFERENCE TO NODE( CTRL F7->READ CONTEXTB-FLIGHT NODE )
    ***THEN BELOW CODE
    DATA: RT_CARRID TYPE REF TO DATA.
    DATA:IS_FLIGHT TYPE TABLE OF SFLIGHT.
    FIELD_SYMBOLS: <FS_CARRID> TYPE TABLE.
    RT_CARRID = WD_THIS-> M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    ASSIGN RT_CARRID->* TO <FS_CARRID>.
    SELECT * INTO CORRRESPONDING FIELDS OF TABLE IS_FLIGHT
       FROM SFLIGHT WHERE CARRID IN <FS_CARRID>
    NODE_FLIGHT->BIND_TABLE( IS_FLIGHT ).

  • Saving Selection Screens in Webdynpro Abap

    Hi ,
    Could you please throw some light on how to save the selection screens in Webdynpro Abap ?? Just like variants in normal Abap?
    Thanks and Regards
    Alok Sharma

    HI,
    I dont think there is automatic saving of varients in web dynpros  just like normal selection-screen.
    Just check this link you might get some idea.
    Link[Save Varient|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f028c2b9-1730-2d10-71ae-ce300ea00573?quicklink=index&overridelayout=true]
    Regards and Best wishes.

  • Issue on Creating RFx in webdynpro ABAP application - SRM Business Package

    Hi
    We are in to SRM 7.0 with the same version of Business Package in SAP Portal also.
    I am trying to create a RFx from Portal which in turn calls the webdynpro ABAP application (Strategic Purchasing->Strategic Sourcing->Create Documents->RFx)
    sap/bc/webdynpro/sapsrm/wda_l_fpm_oif.
    This Application has some button called "Tech RFx", "Permissions" etc., When I click on those buttons it throws the error as below :
    "There is no iView available for system "SAP_SRM": object "TechResp". For more information, contact your administrator."
    Please let me know where we are missing. I have checked all the Portal permissions. Even I can able to access all other iviews except this two buttons.
    Any settings or parameters required on webdynpro ABAP side.
    Regards,
    Raja.J

    Dear Raja,
    this behavior occurs if the IView com.sap.pct.srm.gp.iv_tech_resp
    is not assigned to the role which is assigned to the user.
    Please assign this IView to the desired user.
    Here are the steps to follow in your systems:
    STEP 1: Login to the Portal with Content Admin Authorization.
    STEP 2: Navigate to Portal Content -> Content Provided by SAP ->
    specialist -> SRM7.0 -> Core -> Roles -> Open the desired role and
    choose Navigation Folder.
    STEP 3: Now navigate to Portal Content -> Content Provided by SAP ->
    specialist -> SRM7.0 -> PPS -> iViews -> Tendering -> Select Tech
    Responses (Technical name is iView com.sap.pct.srm.gp.iv_tech_resp) and
    right click and choose 'Add iView to Role' -> Delta Link and save.
    STEP 4: Log off and login with the user and check the issue.
    Best regards,
    Tamas

  • How to Generate New Version of Enhancements done to Std WebDynpro ABAP obj

    Hi Experts,
    We have enhanced a SAP Std WebDynpro ABAP component (HAP_DOCUMENT_BODY) using Enhancement framework provided by SAP. Multiple enhancements were done on the same component for different requirements. Now, under the Enhancement Implementations folder of this component, you can see 5 enhancements of the component each referring to the 5 different changes done (most of the changes were done to the same view ).
    These changes has now been transported to the Quality System. Now, the client wants one of the changes to be removed. I am not sure of the impact of removing, for eg: the 3rd enhancement,  on the other changes done as multiple enhancements were done in a mixed manner.
    What i want to do is to generate a new version of WebDynpro component on Dev which has all the enhancements done so far using Utilities -> Versions -> Generate new version. Then try to delete the 3rd enhancement folder, so that if something goes wrong, I can always revert to this newly created version on DEV which has all changes available.
    Questions:
    1)  Before that, I would like to know if I can generate versions of the enhancements done of WebDynpro ABAP using enhancement framework by using Utilities -> Versions -> Generate new version ?
    2) If yes, I want to generate one version which has all the enhancements done so far using enhancement framework. For doing so, where should i do the click or selection (Is it Std Main Component or is it Enhancements in the enhancements folder-if so, there are 5 of them, and which one??) before i go to  Utilities -> Versions -> Generate new version. I am not clear where i should select or keep the cursor selected on before generating a new version? 
    Please guide with step by step details.
    Thanks,

    I have moved this post to the HTML5 layouts forum, which is more appropriate.
    I am guessing you are using Rh11 as you have a trial copy. I have some instructions for Rh10 and the only difference should be the script used. See the contact page on my site and request those details. Include a link to this thread.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Portal Theme in Webdynpro ABAP

    Hi Experts,
         I want my portal theme to get applied to the webdynpro abap application.But WDA application is not adapting the portal theme.
    This is the version of the theme's style sheet in portal=7.1.3.0.1;ur=7.1.3.0.1;7.1.3.0.0(Major version.minor version.SP.patch.generation run)
    The version of Webdynpro abap theme is 7.11.3.2.0.
    Portal Version is NetWeaver 7.0 Ehp1
    and SAP Basis Version is 701 and level 5.
    Is there  version incompatibility?
    How can I solve this.
    Thanks and Regards
    M.Karthiheyan.

    Hi M.Karthiheyan,
    Please follow below steps to apply Portal theme in Webdynpro ABAP.
    1. Go to transaction SE80 and navigate to the MIME Repository
    2. Create a folder in the MIME repository that will contain all the custom theme files. Make sure the folder is created in following directory /SAP/PUBLIC/BC/UR/<theme_name>
    3. Go to the Repository browser in SE80 and select u201CProgramsu201D from the drop down list.
    4. Enter BSP_UPDATE_MIMEREPOS in the input field and hit Enter
    5. Execute the program and enter the MIME repository path to the folder that is to contain the custom theme. Our custom theme is located in MIME path /SAP/PUBLIC/BC/UR/<Theme Name>
    6. Execute the program and select root folder that contains all the custom theme files.  The custom theme can be directly pulled down from the file server on portal or can be exported from Portal Theme Editor and imported into Eclipse Theme Editor in order to generate the necessary css files. We only need the root folder that contains the actual css files and images. The upload process might take a while depending on the size.
    7. Once the upload is complete, go back to the MIME Repository and check if the files were uploaded.
    8. To specify a theme at the global level you can execute WebDynpro component WD_GLOBAL_SETTING. Maintain parameter u2018Stylesheet URIu2019 with the MIME Repository path of the custom theme (i.e. /SAP/PUBLIC/BC/UR/<custom_theme>).
    9. Enter the path under "Stylesheet URI:" and select the check box which says "Force use of External Stylesheet".
    Thanks.
    Sushil S Aher

  • Portal application parameters for webdynpro ABAP

    I have read several posts that indicate we can get the portal user login id in WDA by adding:
    userid=<User.LogonUid> to the application parameter property in the portal iview, and then adding a corresponding parameter in the Webdynpro ABAP method HANDLEDEFAULT of the Window.
    I'd like to know if there are other such system parameters (besides <User.LogonUid>) that one can pass from Portal to a Webdynpro? A list of such parameters, or a link to such a list would be very helpful.
    Best regards,
    Tarun

    Hi,
    In the Portal,
    go to content Adminsittration ->Portal Content->PCD folder->Content Provided by SAP->Select your specifc folder->Select IView ->Select Application (Ex-Purchasing)->we can pass paramteres like Iviewid, IviewMode, SessionKeys Available. etc
    Pls refer this if helpful.
    Company.UserName
    Company.UserSignature
    Pls refer to this link -
    http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpServletRequest.html#getUserPrincipal
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • Webdynpro ABAP export/import

    Hi,
    I have create a webdynpro application with SAP Netweaver 2004s an I will use this application on a portal with SAP Netweaver 2004.
    How can I get the files in the other system?
    Can I do this with download/upload or transport ?

    Hi Klaus,
    So you have created a WebDynpro ABAP Application using the SAP NW-Dev Studio.
    -o I suppose you can export the complete the WebDynpro Application as  Jar File / Zip File etc. This for Backup.
    -o To make it show itself on a SAP Portal, you have register the WAS Server(your SDM where you deployed your application).
    -o Nextly you can transport your WebDynpro Appl by doing
    --oo open your SAP Portal :: like sapsrvr://test:50400/irj/portal
    --oo next login and click on the Content Administration, you would see below a list of tabs like Portal Content, Multiple
    Property Replacement ... and also Web Dynpro.
    --oo  Now click on Portal Content
    --oo  Go to Browse tab below
    --oo  Select your folder (where you want to show ur application)
         ---ooo Right click on it and select new -> iView
         ---ooo Select 'SAP Web Dynpro iView' from radio buttons and click Next
            ---ooo Enter a name , id of the iView ( they can be same, dont enter white spaces between words), click next
         ---ooo Select ABAP or Java ( in ur case ABAP)
         ---ooo Enter all the values like namespace, application name of ur application ( u can find them when u run the
    WebDynpro ABAP application, like local/WebTut_UI and WEb_UI respectively)
         ---ooo save it and see the summary
    now you must be able to see your application as an iView in the Portal Application.
    Please do let us know if you could solve your problem or if you need any other information / Clarification.
    Sreenivas.

  • Webdynpro ABAP content authorization object in SAP portal ?

    Hi
    We are on EHP 6.06 , we have an authorization problem in sap portal for the webdynpro abap content. our standart users got the error "page can not be found" for the services provided from webdynpro abap. when I assign the user to administrator group in sap portal the services working fine. I also checked the SAP ERP roles no problem is there.  I guess I should create a new portal role for them cause its the only difference between users who can reach or not but have no idea what to put in it in SAP portal. Any idea ?

    in portal content directory => double click on the Content provided by sap folder. Than you should have a dropdown somewhere where you can select "Authorizations". You should add the group endusers and check the checkbox.

Maybe you are looking for

  • A-B DH-485 communicat​ion port

    how can i connect the DH-485 port of A-B link coupler to my computer? do i need to purchase a RS 485/232 converter?

  • Passing internal tables into smartforms

    Hi All, I am testing a smartform for PO. But the smartform is already designed and it has two internal tables of type EKKO and EKPO. When i run the smartform its displaying the layout correctly but with no data ,which is true as the two internal tabl

  • CSS Class Ignored

    I'm trying to override the default css class for static styled text/message styled text/rawtext items by specifying a css class in the property pallette for these items. When i run the page through jdeveloper it is not taking any effect. I'vnt tried

  • Scrap qty in planned order in COOISPI

    Hi When using COOISPI for planned orders the result does not show the field SCRAP. The field SCRAP can be choosen in the result screen, but for planned orders it is alway zero (0). When running COOISPI for process orders the scrap field is filled cor

  • Installing VirtualBox on devops machines

    Hi, Is it possible to install "Oracle VM VirtualBox" on devops machines (the machines that are allocated to us from devops.oraclecorp.com), given that devops machines themselves are virtual machines? When I install VirtualBox on a physical machine on