Attach File in WebDynpro ABAP Application

Hi everyone
I need your help to attach files in custom WebDynpro ABAP application. Kindly share if there is any sample standard WebDynpro ABAP application or share some sample code.
Best Regards
Iftikhar Ali

This question has been answered in following link.
[http://forums.sdn.sap.com/thread.jspa?forumID=249&threadID=2137285]
Regards
Iftikhar Ali

Similar Messages

  • Uploading CSV file into Webdynpro abap application

    Hi all,
    Please let me know the process of uploading .csv file in Webdynpro(ABAP) using FILE_UPLOAD UI element.
    Thanks
    Subathra

    Hi,
    you can use the following code ..........
    assumiing the file cointain tow colums name and age
    TYPES :
           BEGIN OF str_itab,
           name(10) TYPE c,
           age(10) TYPE c,
           END OF str_itab.  DATA : t_table1 TYPE STANDARD TABLE OF str_itab,
             i_data TYPE STANDARD TABLE OF string,
             lo_nd_sflight TYPE REF TO if_wd_context_node,
             lo_el_sflight TYPE REF TO if_wd_context_element,
             l_string TYPE string,
             fs_table TYPE str_itab,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.  DATA : t_table TYPE if_main=>elements_data_tab,
             data_table TYPE if_main=>elements_data_tab.
    get single attribute 
    wd_context->get_attribute(    EXPORTING      name =  `DATASOURCE`    IMPORTING      value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
    SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    Bind With table Element.  LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.   
        READ TABLE fields INTO lv_field INDEX 1.
        fs_table-name = lv_field.   
        READ TABLE fields INTO lv_field INDEX 2.
        fs_table-age = lv_field.    APPEND fs_table TO t_table1.
      ENDLOOP.
      lo_nd_sflight = wd_context->get_child_node( 'DATA_TAB' ).
      lo_nd_sflight->bind_table( t_table1 ).
    Thanks,
    Shaik Shadulla.
    Edited by: shaik shadulla on Jul 16, 2009 3:27 PM

  • Uploading and downloading files in webdynpro abap

    how to up load axl file and download file in webdynpro abap application .

    Hello Pradeep,
    you might see the following documentation for [Download|http://help.sap.com/saphelp_nw70/helpdata/EN/09/a5884121a41c09e10000000a155106/frameset.htm] and [Upload|http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm] containing also names of Web Dynpro Components as reference.
    Best regards,
      Andreas

  • Attach Interactive Forum to Workflow from a Webdynpro ABAP application

    I have a webdynpro ABAP application which has an Interactive form. After the user enters the form and clicks on 'Submit', I trigger a workflow for Approval. My requirement is to add this same form as an attachment to the workflow. I know I can do this by adding the Fileupload UI element and letting the user browse to the file after saving it. But I want to attach it directly without the user having to save the form to Desktop first.
    I tried passing the pdf_source(XSTRING) to the container and it does attaches a pdf to the workflow but when I open it, the form is blank and user entered values are missing.
    Please respond only if you know the solution and don't send me links to other forums on SDN, I have read them all.

    sharing the solution always helps some or the other person seeking similar answers to their problems. It would be good to share your solution in this open community. It helps.

  • Webdynpro abap application attached to SWFVISU is tested from se80

    hi,
    when webdynpro ABAP application is attached to workitem in SWFVISU the the workitem id is passed via url when calling the application. (though the url seen in the application in se80 in the webdynrpo abap component does not have workitem id paramter)
    [link1|http://forums.sdn.sap.com/thread.jspa?threadID=1209159]
    [link2|http://forums.sdn.sap.com/thread.jspa?threadID=226957]
    [link3|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?QuickLink=index&overridelayout=true]
    I am running this application from se80 - application - right click - test. (this is required to troubleshoot one of the issues.)
    at this time it does not ask for workitem id and directly runs the application . It picks the same workitem id everytime. I tried doing this with a couple of different user ids. but I cant figure out from where it picks this particular workitem id. the status of this workitem is complete in the system.
    thanks
    bhakti

    Hi-
    (though the url seen in the application in se80 in the webdynrpo abap component does not have workitem id paramter)
    It is required to have a parameter WI_ID (as an Application parameter) in your WDA. And via this Application parameter WDA will receive the workitem id, when the task is exceuted from UWL (provided configuration is done in swfvisu)
    Could you confirm, there is no Application parameter (WI_ID) in your WDA?
    It picks the same workitem id everytime. I tried doing this with a couple of different user ids. but I cant figure out from where it picks this particular workitem id
    If you defined WI_ID in Application parameter and there is an option to provide value and it seems, you have defined some value over there or other way might be in your method (inbound plug), you may gave default value to WI_ID in the parameter
    If your application is working properly from UWL and for testing purpose, you could put a breakpoint and change the workitem id, when executing from se80
    Vinoth

  • Error in opening webdynpro abap application

    hi All,
    I am facing below issue in opening webdynpro abap application, this is first WDA application in production system, please help me in resolving this issue.
    ============================================================================
    Error when processing your request
    What has happened?
    The URL http://grp.mysap.pg.com:9500/sap/bc/webdynpro/sap/zgpuvstapp/~ucfLOADING was not called due to an error.
    Note
    The following error text was processed in the system GRP : A request for server adln5412 has been sent to server adln5411; see Note 1364846
    The error occurred on the application server adln5411_GRP_10 and in the work process 3 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system GRP in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server adln5411_GRP_10 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 3 in transaction ST11 on the application server adln5411_GRP_10 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 400 -u: BS6402 -l: E -s: GRP -i: adln5411_GRP_10 -w: 3 -d: 20100929 -t: 140306 -v: ERROR_MESSAGE_STATE -e: A request for server adln5412 has been sent to server adln5411; see Note 1364846
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    ============================================================================
    Edited by: brahmanandam ausali on Sep 30, 2010 4:11 AM

    Hi Shibli,
    I'm facing the same issue with the POWL only if called from a part of the network outside our country (Italy) so I think it would be a network configuration problem as you suppose. Can you explain us the configuration of the balancer and dispatcher to solve the issue?
    Thanks
    Mattia

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

  • How to download a WebDynpro ABAP Application?

    Hi,
    I have created a Webdynpro ABAP application from SE80.
    now I want to move this same application to another SAP system.
    Is it possible via downloading to flat file and uploading from flat file to destination system or something like that?
    can anyone suggest some solution to this please?
    Helpful answers will be rewarded with points.
    Regards,
    Tejas

    Hi Tejas.
    Check <a href="https://forums.sdn.sap.com/click.jspa?searchID=2403670&messageID=2905500">this thread</a> out.
    Cheers,
    Sascha

  • How to read the excel file using webdynpro abap?

    Hi,
    how to read and modify excel file using webdynpro abap?
    Regards,
    Pavani

    For reading excel file follow the steps :
    1. Use a File upload UI element and bind it with xstring.
    2. Now your excel will be uploaded and stored in Xstring.
    3. Convert Xstring to String data using FM 'HR_KR_XSTRING_TO_STRING'.
    4. Now split the string at new line so as to make an internal table .
      Ex . SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE it_table.
      here it_table is type table of string.
    5.now loop at the internal table and separate the content of this table separated by tab.
      Ex. SPLIT wa_table AT cl_abap_char_utilities=>horizontal_tab INTO TABLE it_new.
    it_new type string_table.
    6. For more info , refer this thread :
    Re: How to upload excel file in Webdynpro application using ABAP

  • Apply custom themes to WebDynpro ABAP application in Portal

    Hi,
    We have just upgraded the E-Recruitment to EHP4. We have two instances of ECC in which one acts as HR instance and the other one for E-Recruitmet. We have created custom themes for portal and need to apply the same for the WebDynpro ABAP applications for E-REcruitment. I have downloaded the theme and from portal and uploaded the same in MIME folder using SE80 transaction. I have also added the parameter sap-cssurl=/sap/public/themes/<my custom theme folder name>.
    Also tried giving the url in application parameter as
    SAP-EP-THEMEROOT=http://<hostname>/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/customer/<custom theme>
    Is there any other way to apply themes for WD ABAP applications. I dont want to customize the standard applications and just want to apply the themes.
    Any suggession on this is highly appreciated.
    Kind Regards,
    Vivek.

    Hi,
    to create theme for webdynpro abap application, use Eclipse Plugin.  Please remeber to check the version of theme file before using theme.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d5ef40-465e-2c10-9ca9-f548bfc3f236
    setup custom theme for webdynpro abap application.
    FEATURED EVENTS
    Regards
    Baby

  • Junk Characters while opening a file from webdynpro ABAP

    Hi All,
    We have a Webdynpro ABAP application ,  in that application from a link we are opening DOC,PDF,JPG........files . When we click on that link it is opening in a Junk charcters .  We have another webdynpro ABAP application in portal , in that application the files are opening fine.
    Could you please let me know why it is opening in a junk characters in first application?
    Regards,
    Krishna.

    Hi ,
    The files are opening fine in IE7 but when we try to open in IE8 and IE9 they are opening in a junk characters.
    I am not sure in another webdynpro ABAP application the files opening correctly in IE 8 .
    Regards,
    Krishna.

  • Creating a PDF file in webdynpro abap.

    Hi friends,
        Can anybody tell me how to create PDF file in webdynpro abap and how to save and edit, copy etc., whatever you can do through normal pdf file?
    I have checked with the standard application WDR_TEST_ADOBE and WDR_TEST_ADOBE_ONLY. But none of the applications are working...
    Could anyone please suggest me how to do this?
    Regards
    Sireesha.

    Hello Sireesha,
    Good places to start are the online help and tutorials, which you can find here:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm</a>
    Best regards,
    Thomas

  • Calling Portal iView from a WebdynPro ABAP application

    Hi ,
    I have a requirement where I need to call an iView in my portal from the Webdynpro application also existing in the portal.
    Can anyone provide me the method with source code( if possible ) to call an iView existing in the portal from the WebDynPro ABAP application.
    Best Regards
    Sid

    Hi Siddharth,
    Well, I think you can go for Portal Navigation concept.
    Please check the required source code in WDR_TEST_PORTAL_NAV Web Dynpro component. That will illustrate both Page based Navigation and Object based Navigation.
    Hope that should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Error in webdynpro(ABAP) application development

    Hi,
           I am very new in webdynpro (ABAP) application development. I want to create some application based on webdynpro ABAP for few Z- Report. What is the prerequisite to develop a application based  on webdynpro( ABAP ) .Because when I am trying to create application in se80 and giving the related functional model name in wedynpro component field , I am getting the error like Web Dynpro Comp./Intf. ZOS_xxx_FM does not exist. How to proceed further?
    Thanks,
    Kundan

    Hi,
    Can you be more clear...
    Please refer this link  for Personalization-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/719f42f2ff7e5fe10000000a155106/content.htm
    Regards,
    Lekha.

  • Call WebDynpro Abap application with trasaction

    Hello Experts,
    can I call my WebDynpro Abap application with a trasaction ?
    Regards
    sas

    hi,
    Go through this link
    [****************/Tutorials/WebDynproABAP/TransactionCode/Create.htm]
    Hope it will help you.
    Regards,
    Rohit

Maybe you are looking for