How to Upload/Open pdf or excel ?

1. How to upload a Excel or PDF file into SAP through ABAP WedDynpro?
    Upload file name convention is <salesordernumber>_<itemnumber>_YYYYMMDD.xls or
    <salesordernumber>_<itemnumber>_YYYYMMDD.pdf
2. There is a sales order report which contains header and item details. With addition to these details there is 'Reamrks'    
    column. Previous uploaded filename (it can appear either as icon with file name or just file name with file type)  needs to   
    display in reamrks column.
    Can anybody help me how to do part 2? I know only how to do part 1.
Regards,
Meera.

Hi Sahai,
I fallowed your instructions and able to call Component2 in a seperatre browser
but unable to see the value. Please see below sample piece of design and code
and correct me.  Variable lv_contract_number contains null value.
Creating Application 2
Go to SE80,
Step1.
Create Webdynpro Componet:
Name:           ZAPPLICATION2
Description:     Application 2(Data Receiver)
Type:          Web Dynpro Component
Window Name:      ZAPPLICATION2
View Name:     MAIN2     
Save and Activate Component
Step2.
Create WebDynpro Application:
Place the mouse cursor on component name(ZAPPLICATION2) and
right click and choose CREATE->Webdynpro Application
In the pop-up box enter enter applicaiton name and description
Application: ZBROWSER_TAB2
Name:        Example program 2
Save and Activate Component
Step3.
Create a node in COMPONENT CONTROLLER
Click on 'COMPONENT CONTROLLER' and go to context tab & create a node with field 'CONTRACT_NUMBER'.
Attribute property is 'EBELN'
Node Name:      ZCONTRACT_DETAIILS
Attribute Name: CONTRACT_NUMBER
Go to property tab of node and check the field "Interface Node"
SAVE the application.
Step4.
View design
Go the View "MAIN2" and Place a UI Element 'INPUT'.
Bind the attribute "CONTRACT_NUMBER" to 'value' parameter in the properties tab.
Go to "Methods" tab in the same view and write below code in the "WDDOINIT" method
  DATA lo_nd_contract_detaiils TYPE REF TO if_wd_context_node.
  DATA lo_el_contract_detaiils TYPE REF TO if_wd_context_element.
  DATA ls_contract_detaiils TYPE wd_this->element_contract_detaiils.
  DATA lv_contract_number TYPE wd_this->element_contract_detaiils-contract_number.
  lo_nd_contract_detaiils = wd_context->get_child_node( name = wd_this->wdctx_contract_detaiils ).
  lo_el_contract_detaiils = lo_nd_contract_detaiils->get_element( ).
get single attribute
  lo_el_contract_detaiils->get_attribute(
    EXPORTING
      name =  `CONTRACT_NUMBER`
    IMPORTING
      value = lv_contract_number ). 
"=========================================
Creating Application 1
Go to SE80,
Step1.
Create Webdynpro Componet:
Name:           ZAPPLICATION1
Description:     Application 1(Data Sender)
Type:          Web Dynpro Component
Window Name:      ZAPPLICATION1
View Name:     MAIN1     
Save and Activate Component
Step2.
Create WebDynpro Application:
Place the mouse cursor on component name(ZAPPLICATION1) and
right click and choose CREATE->Webdynpro Application
In the pop-up box enter enter applicaiton name and description
Application: ZBROWSER_TAB1
Name:        Example program 1
Save and Activate Component
Step3.
Create a interface node in COMPONENT CONTROLLER
Click on 'COMPONENT CONTROLLER' and go to context tab & create a node with field 'CONTRACT_NUMBER'.
Attribute property is 'EBELN'
Node Name:      ZCONTRACT_DETAIILS
Attribute Name: CONTRACT_NUMBER
Go to property tab of node and check the field "Interface Node"
SAVE the application.
Step4.
View design
Go the View "MAIN1" and Place Two UI Elements 'INPUT', 'LABEL' & 'BUTTON'.
Go to properties tab of UI Element "INPUT' and Bind the attribute "CONTRACT_NUMBER"
to 'value' parameter in the properties tab.
Button name is "Call Application 2"
On Action (Event) for the button (call application 2) is 'APP2'.
Go to "Actions" tab and click on event "APP2" and write below code to call application 2.
DATA LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
DATA LO_WINDOW         TYPE REF TO IF_WD_WINDOW.LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
  EXPORTING
    URL            = 'HTTPS://XXXXXXXXXXXXXXXXXXX/xyz'
    MODAL          = ABAP_FALSE
    HAS_MENUBAR    = ABAP_TRUE
    IS_RESIZABLE   = ABAP_TRUE
    HAS_SCROLLBARS = ABAP_TRUE
    HAS_STATUSBAR  = ABAP_TRUE
    HAS_TOOLBAR    = ABAP_TRUE
    HAS_LOCATION   = ABAP_TRUE
  RECEIVING
    WINDOW         = LO_WINDOW.LO_WINDOW->OPEN( ).
    IF SY-SUBRC EQ 0.
      ENDIF.
save, activate and run the application.
Now you can see input field and a button with text "Call Application 2".
Enter '100002' in inputfield and click on button.
Then you will see second application in a separate browser.

Similar Messages

  • How to upload a PDF online, fill it, then save?

    Hi,
    I'm trying to figure out on how to upload a PDF to our own server (thru an FTP site) so users can fill it in, then save it to their computer's hard drive/desktop. i searched all over and cannot find a solution. Can someone please help?
    Thank you in-advance for any help you can provide.
    Current system:
    MacBook Pro
    Mac OS X 10.6
    Acrobat Pro 9.4.3
    Acrobat Reader 10.1

    You need to open the PDF and use File>Save as>Reader extended PDF.
    Keep in mind that there are strict limitations as to how many times you can collect data from an enabled PDF. It's basically a limit of 500 times. You'll want to read and understand section 15 of the end user license agreement before proceeding.

  • How To Upload OPening or Closing Balance In RG1 Register.

    How To Upload OPening or Closing Balance In RG1 Register.in this table with the help of bdc J_2IRG1BAL.
    I had seen all the links in sdn but didnt get.
    Edited by: Pritesh kumar on Apr 3, 2011 12:20 PM

    How To Upload OPening or Closing Balance In RG1 Register.in this table with the help of bdc J_2IRG1BAL.
    I had seen all the links in sdn but didnt get.
    Edited by: Pritesh kumar on Apr 3, 2011 12:20 PM

  • How to upload the data from excel(3 tabs) file to sap environment

    Hi all,
    This is Mahesh.
    how to upload the data from excel(3 tabs) file to sap environment (internal tables) while doing bdc.

    Hi,
    The FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' makes it possible to load a worksheet into an internal table in ABAP.
    However, if you want to get the data from several worksheets, I think you are stuck with OLE access to your Excel Workbook...
    You can find a solution for 2 worksheets in this post :
    TO UPLOAD DATA FROM 2 EXCEL SHEETS INTO TWO INTERNAL TABLES
    I think you can easily modify it to handle any number of worksheets.
    Hope it helps !
    Best regards,
    Guillaume

  • How do I open pdf docs in Safari 5.1.5?  Online suggestions have not worked.

    How do I open pdf docs in Safari 5.1.5?  Online suggestions have not worked.

    Back up all data.
    In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combinationshift-command-G. Copy the line of text below into the box that opens, and pressreturn:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    If you still have the issue, repeat the above steps using this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • How to Upload a PDF file into BLOB column in a table using Forms 9i

    Can anyone tell me how to upload a PDF file from client system using File dialog window and store its content in BLOB column in a table. The file to be uploaded will be in client side.

    Hi,
    please, search a bit on the forum before do a question:
    Just searching by "upload blob pdf" ...
    How to batch upload PDF files into database BLOB
    Regards,
    Jose.

  • How to Upload a PDF file into BLOB column in a table using Forms 6i

    Can anyone tell me how to upload a PDF file from client and store its content in BLOB column in a table. The file will be genered using reports and win be stored in db.The file to be uploaded will be in client side.
    Thank´s.

    If you are using version 9 or 10 use webutil.... Look in webutil.pll.
    Use either one these two fuctions...
    FUNCTION Client_To_DB( clientFile       in VARCHAR2,
                             tableName        in VARCHAR2,
                             columnName       in VARCHAR2,
                             whereClause      in VARCHAR2,
                             asynchronous     in BOOLEAN default FALSE,
                             callbackTrigger  in VARCHAR2 default NULL) return BOOLEAN;
      FUNCTION Client_To_DB_With_Progress
                         (   clientFile       in VARCHAR2,
                             tableName        in VARCHAR2,
                             columnName       in VARCHAR2,
                             whereClause      in VARCHAR2,
                             progressTitle    in VARCHAR2,
                             progressSubTitle in VARCHAR2,
                             asynchronous     in BOOLEAN default FALSE,
                             callbackTrigger  in VARCHAR2 default NULL) return BOOLEAN;

  • How to upload a PDF file in iCloud

    Hi everybody,
    I would like to know how to upload a PDF file in iCloud. I want to share some PDF files with my iPhone, MacBook and iMac.
    Thank you a lot!

    Yes, but the problem is will iBooks remember where I left off in that pdf file? Unlikely since it was deleted.  Also, what is handy about the kindle app is once you delete it an icon appears in the app to show that this file is in the cloud. I guess for reading pdfs the kindle app is better.  I am not saying that the kindle app would be that great for other things but at least with syncing and such it's much better.  Well, iCloud is meant for other things.  It's fine because I'll just use it for those other things and stick to the kindle app for reading pdfs.  Well I use endnote for reading technical pdfs, I'm just talking about novels and such on the kindle app. 

  • How can I open PDF files?  The usual procedures don't work for me.  Thanks.

    How can I open PDF files?  Until a couple of months ago, I had no problem.  Now I can open none of them.  I have Adobe Reader X.  Yesterday I uninstalled Adobe X, restarted the computer, and then reinstalled Adobe X.  No success.  Thanks.

    What happens if you open Reader first then use File>Open like Bernd suggested?
    Are you sure you are opening them in Reader and not a text editor or MS Word? I ask because Reader will not prompt you for a language.

  • How we can open pdf files in epic browser in English

    how we can open pdf files in epic browser in English
    message is appearing in epic browser during opening pdf files in browser " The adobreader /acrobat reader is running cannot be used to view pdf files , please exit and try again "

    I already fixed it. I never exited out of Firefox before deleting the mime file. it works now.

  • How do i open PDF files in ipad?

    How do i open PDF files in ipad?

    Have you got iBooks app ?
    This is what I use to open and read PDF files using my iPad3.
    My source of PDF files are emails.
    I tap on them and keep my fingers pressed.
    A pop up appears, and I select iBooks to start reading the PDF file.

  • How do I open PDF files and links

    How do I open PDF links and PDF files, heeelp! This is very confusing, I've tried everything (such as installing adobe reader etc) and nothing works for me, I'm very dissapointed with Apple right now, this suck! I'm studing and I really need this function to work for me!

    You don't need to, and should not, install any software to view PDF's. They open in Safari from the web, or in Preview from the Finder.

  • How to upload a pdf file and download/open it

    hi experts,
      i want to upload a pdf or word format files to server and let user download or open it when user click a button, how to do that, can you post some sample codes, hunger for your advices and thanks a lot !!

    Hi,
    We have 3 types of uploads n downloads Function Modules.in ABAP.
    1. UPLOAD 
    2.WS_UPLOAD
    3.GUI_UPLOAD
    1.DOWNLOAD
    2.WS_DOWNLOAD
    3.GUI_DOWNLOAD
    Now we r making use of only GUI_UPLOAD n GUI_DOWNLOAD in our programs.
      You can go through this code which will go u an idea about the GUI_Upload n gui_download. This may lead u to understand there function modules in more detail.
    REPORT  zjavacreate message-id zmsgnew.
    ************************Creation of Internal table******************
    DATA: BEGIN OF ti_record OCCURS 200,
    Line(250),
    END OF ti_record.
    DATA: BEGIN OF ti_rec OCCURS 200,
    Line(250),
    END OF ti_rec.
    *****************************Selection screen************************
    selection-screen begin of block b1 with frame .
    Parameters create radiobutton group g1.
    PARAMETERS: JavaName(30) lower case.
    parameters modify radiobutton group g1.
    selection-screen end of block b1.
    ******************Calling the java program creation page**************
    at selection-screen.
      if CREATE = 'X'.
        if javaname is not initial.
          refresh ti_record[].
       concatenate 'public class' javaname into ti_record-line separated by space.
       concatenate ti_record-line '{' into ti_record-line separated by space.
          Append ti_record.
          ti_record-line = 'public static void main(String []args){'.
          Append ti_record.
          ti_record-line ='//enter ur code here'.
          append ti_record.
          ti_record-line ='}'.
          Append ti_record.
          ti_record-line ='}'.
          Append ti_record.
          EDITOR-CALL FOR ti_record .
        else.
          Message e001.
        endif.
    **************************Saving the java program********************
    data tfile type string.
    concatenate 'D:\Programs\' javaname '.java' into tfile.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = tfile
        FILETYPE                        = 'ASC'
      TABLES
        DATA_TAB                        =   ti_record.
      endif.
    data new(15).
      if MODIFY = 'X'.
        new = 'ZJAVAMODIFY1'.
        CALL TRANSACTION NEW.
      endif.
    ZJAVAMODIFY:
    REPORT  zjavamodify.
    **********************selection screen.********************
    selection-screen begin of block b1 with frame .
    Parameters compile radiobutton group g1.
    Parameters modify radiobutton group g1.
    Parameters execute radiobutton group g1.
    PARAMETER : FILE(100) lower case.
    selection-screen end of block b1.
    DATA: BEGIN OF TI_RECORD OCCURS 1,
    LINE(200),
    END OF TI_RECORD.
    data: st1(30),st2(30).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
        DEF_FILENAME           = ' '
          DEF_PATH               = '.'
        MASK                   = ' '
        MODE                   = ' '
        TITLE                  = ' '
        IMPORTING
          FILENAME               = FILE
        RC                     =
    End-of-selection.
    ****************************MODIFY********************************
      if modify = 'X'.
        data: TXT_FILE1 TYPE STRING .
        txt_file1 = file.
    **************FM GUI_UPLOAD
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            FILENAME = txt_file1
          TABLES
            DATA_TAB = ti_recORD[].
    **********End FM GUI_UPLOAD
        EDITOR-CALL FOR ti_record .
    **************FM GUI_UPLOAD
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            FILENAME = txt_file1
            FILETYPE = 'ASC'
          TABLES
            DATA_TAB = ti_record.
    **********End FM GUI_UPLOAD
      endif.
    *******************end of modify*******************
    *******************BAT file for compilation n
    execution.****************
      if compile = 'X'.
        DATA: begin of itab_bat_create occurs 0,
           row(500) type c,
          end of itab_bat_create.
        data:comp_join1(250).
        concatenate 'java' 'jCompiler' file into comp_join1
         separated
         by space.
        itab_bat_create-row = 'c:'.
        append itab_bat_create.
        itab_bat_create-row = 'cd Documents and Settings\127740'.
        append itab_bat_create.
        itab_bat_create-row = comp_join1.
        append itab_bat_create.
    ********FM GUI_DOWNLOAD
        data: st type string.
        st = 'C:\Documents and Settings\127740\compile_java.bat'.
        call function 'GUI_DOWNLOAD'
          EXPORTING
            filename         = st
            filetype         = 'ASC'
          TABLES
            data_tab         = itab_bat_create[]
          EXCEPTIONS
            file_open_error  = 1
            file_write_error = 2
            others           = 3.
    ********end FM GUI_DOWNLOAD
    *****FM dvsvas_doc_ws_execute_50
        CALL FUNCTION 'DSVAS_DOC_WS_EXECUTE_50'
          EXPORTING
            PROGRAM = 'C:\Documents and Settings\127740\compile_java.bat'.
    *****end FM dvsvas_doc_ws_execute_50
      endif.
    ***********************end of compile*******************************
    output***********************
      if execute = 'X'.
        data: TXT_FILE3 TYPE STRING .
        split File AT '.java' into: st1 st2  .
        concatenate st1 'error.txt' into TXT_FILE3.
    **************FM GUI_UPLOAD
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            FILENAME = txt_file3
          TABLES
            DATA_TAB = ti_recORD[].
    **********End FM GUI_UPLOAD
        if not ti_record[] is initial.
          loop at ti_record.
            write:/ ti_record.
          endloop.
        else.
          data: TXT_FILE4 TYPE STRING .
          split File AT '.java' into: st1 st2  .
          concatenate st1 'output.txt' into TXT_FILE4.
    **************FM GUI_UPLOAD
          CALL FUNCTION 'GUI_UPLOAD'
            EXPORTING
              FILENAME = TXT_FILE4
            TABLES
              DATA_TAB = ti_recORD[].
    **********End FM GUI_UPLOAD
          loop at ti_record.
            write:/ ti_record.
          endloop.
        endif.
      endif.
    ************************end of
    output****************************************

  • How to auto open PDF after saving a file?

    Hi!!! How y'll doing? I just switch to Mac recently. So can you guys kindly advise how do set auto open PDF file after save as a PDF file.
    What am I trying to say is that, I have a excel file and I want it to auto open after I save as PDF file.

    We are currently having users processing a large number of PDF's and would like to know if this is possible as well. The Save as PDF... option right now does not open the PDF file after it is created.

  • How to upload the pdf file to the next view?....urgent

    Hi Experts,
    I need to upload the pdf file( a interactive form ) using the fileupload element in the A_view and the pdf file can be displayed in the b_view.
    But I don't know how to complete the function?
    Action:
    0.  Create a adobe form (c_form)in the R/3 using sfp with a inputfield.
    1.  Create a adobe interactive form (A_interactive_form)in the view(display_view) of the WDA for abap.
    2.  Create a context attribute(upload) in the display_view.
    3.  Bind the c_form to the A_interactive_form, so that the data can be transfered to the c_form.
    4.  Bind the "pdfSourth" property to context attribute "upload" in the A_interactive_form.
    4.  Type code in the WDA for abap for setting data("old") to the context.
    5.  Active the WDA and run the WDA.
    6.  In the IE, the interactive form is displayed with the value "old" in the field. Save the pdf form as "test.pdf" and close the IE.
    7.  Open the test.pdf, and type the inputfield "new" in the form, and save the test.pdf.
    8.  Create a context node(Pdfsourth) in the component controller, and create a attribute("upload") that type is xstring in the Pdfsourth.
    9.  Create a view(C_view), mapping the context node(Pdfsourth) in the component controller.
    10. Create a fileupload element in the C_view, and the "data" property is binded the "upload" attribute in the context node(Pdfsourth).
    11. Create a button(Display_form) and create the action with the outplug for upload the pdf file(test.pdf).
    12. Change the window and set the C_view as default view, and set the Navigation link from the C_view to B_view.
    13. Type code in the wddoinit method in the display_view for transfering the test.pdf file.
    method WDDOINIT .
    DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
    DATA upload                 TYPE        xstring.
    lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      lo_componentcontroller->getupload(
        IMPORTING
          upload = upload                         " xstring
      DATA lo_nd_pdfsourch TYPE REF TO if_wd_context_node.
      DATA lo_el_pdfsourch TYPE REF TO if_wd_context_element.
      DATA ls_pdfsourch TYPE wd_this->element_pdfsourch.
    navigate from <CONTEXT> to <PDFSOURCH> via lead selection
      lo_nd_pdfsourch = wd_context->get_child_node( name = wd_this->wdctx_pdfsourch ).
    get element via lead selection
      lo_el_pdfsourch = lo_nd_pdfsourch->get_element(  ).
    get single attribute
      lo_el_pdfsourch->set_attribute(
        EXPORTING
          name =  `UPLOAD`
          value = upload ).
    endmethod.
    15. Active the WDA and run the WDA.
    In the fileupload of the C_view, I select the test.pdf from my local machine. and click the button(Display_form), the display_view is displayed with the A_interactive_form.
    But in the A_interactive_form, the value "old" is in the field in the form rather than "new".
    I hope to display the test.pdf in the A_interactive_form. I don't know how to change my code or configuration?
    Do you give some example or some hint for this problem ?
    Thanks & Regards,
    Tao

    Now, The problem has been solved.Thanks a lot.

Maybe you are looking for