No Authorization To Upload Text file for a Variable

Hi Experts,
I am trying to upload a text file from Multiple Selection screen of a Query in Business Explorer and it gives the error message of 'No Upload Authorization'
An additional Information: I could able to Upload the text file when we were in SP17. Its recently upgraded to SP 21. Does this Upgradation of service pack has any Impact on this??
An idea about this error, PLEASE ?
Many Thanks in Advance.
Cheers,
Krishna

Hi Panagiotis,
Have a look into the Portal Desktop link below.
http://help.sap.com/saphelp_nw70/helpdata/EN/ac/dc4f3eeb684212e10000000a11405a/frameset.htm
Somewhere mid section, you will find Portal Favourites (http://help.sap.com/saphelp_nw70/helpdata/EN/3a/d609e5803111d5992f00508b6b8b11/frameset.htm).
Make sure that Knowledge Management is installed on your system and that you have activated the Add to Portal Favorites property (this entry is displayed in the options menu of your page title bar).
http://help.sap.com/erp2005_ehp_03/helpdata/EN/84/a30a48887d4cb690b4f1754f651ba1/frameset.htm
If all above if set, then checkout the needed activities within the Portal Favourite iview setting.
http://help.sap.com/saphelp_nw70/helpdata/EN/1e/62eae2357c4596bda2476d0a6503e3/frameset.htm
Checkout on both the page title bar Options menu and the context menu of the Detailed Navigation iView display an Add to Portal Favorites item, allowing users to store links to favorites (thats where I believe your missing permission).
The Portal Favorites iView is part of the Knowledge Management installation and is integrated into the portal. Thus if the above steps are done and the settings activated, then your standard user should not see error in the Portal Favourites with the role that you have already assigned to the user.
Also look into Standard User (eu_role), which basic functionality (portal personalization iViews) for the core portal platform and default content for the Knowledge Management and Collaboration capabilities of SAP NetWeaver. By default, the Everyone group in the portal is assigned to this role.
http://help.sap.com/saphelp_nw70/helpdata/EN/47/f0f7415e639c39e10000000a155106/frameset.htm
Hope that helps.
Ray

Similar Messages

  • Error while uploading standard text files for the Global rule set

    Hi all,
    As part of Post Installation Activities we have uploaded standard text files for business process, functions, risks and rule set obtained with the installable Software.
    While uploading the text files we have uploaded the Basis Functions Authorizations first and then R/3 text files.
    When we checked no actions are appearing in the rule architect under respective functions except for the BASIS Module.
    Is this because we have uploaded the Basis functions before the R/3 text files?If yes, how to replace the Basis with the R/3 ones.
    We tried to replace the Basis function authorizations by re-uploading the R/3 text files again but we got the below error message u201CORA-00001:unique constraint (SAPSR3DB.SYS_C004479) violatedu201D
    Can somebody please help in this regard how to get the standard rule set in our system?
    Thanks and Best Regards,
    Srihari.K

    Hi Sri,
    you should upload first the static text files and the authorization objects first and then the GRC standard rule set files following the instructions of the SAP Configuration Guide available in Service Market Place under http://service.sap.com/instguides .
    The GRC standard rule set contains files named Basis_functions_action.txt and R3_function_action.txt. The first one contains ONLY function definitions in terms of transcation codes for basis only, whereas the second one contains functions definition for basis AND ERP modules. The same holds for the *_function_permission.txt files. There are also function definition files for other SAP solutions such as APO, CRM, HR  etc.
    You can open a customer message and request a deletion script for the rule sets files you have uploaded already. After their application of this script all rule set data will be deleted from your database. If you have uploaded static text and authorization files correctly, you can then upload the GRC standard rule set files as needed again.
    best regards,
    Frank

  • Upload text file to oracle table with checking and aggregation

    Hi Friends,
    I am new to ODI.  I have encountered a problem which is specific to ODI 11G (11.1.1.6.3) to upload text file to oracle table with checking and aggregation.  Would you please teach me how to implement the following requirement in ODI 11G?
    Input text file a:
    staffCode, staffCat, status, data
    input text file b:
    staffCodeStart, staffCodeEnd, staffCat
    temp output oracle table c:
    staffCat, data
    output oracle table d:
    staffCat, data
    order:
    a.staffCode, a.staffCat, a.status
    filter:
    a.status = ‘active’
    join:
    a left outerjoin b on a.staffCode between b.staffCodeStart and b.staffCodeEnd
    insert temp table c:
    c.staffCat = if b.staffCat is not null then b.staffCat else a.staffCat
    c.data = a.data
    insert table d:
    if c.staffCat between 99 and 1000 then d.staffCat = c.staffCat, d.data = sum(c.data)
    else d.staffCat = c.staffCat, d.data = LAST(c.data)
    Any help on fixing this is highly appreciated. Thanks!!
    Thanks,
    Chris

    Dear Santy,
    Many thanks for your prompt reply.  May I have more information about the LAST or SUM step?
    I was successful to create and run the following interfaces p and q
    1. Drag text file a to a newly created interface panel p
    2. Filter text file a : a.status = ‘active’
    3. Lookup text file a to text file b : a.staffCode between b.staffCodeStart and b.staffCodeEnd
    4. Drag oracle temp table c to interface panel p
    5. Set c.staffCat : CASE WHEN b.staffCat IS NULL THEN a.staffCat ELSE b.staffCat END
    6. Set c.data : a.data
    7. Drag oracle temp table c to a newly created interface panel q
    8. Drag oracle table d to interface panel q
    9. Set UK to d.staffCat
    10. Set Distinct Rows to table d
    11. Set d.staffCat = c.staffCat
    12. Set d.data = SUM(c.data)
    However, the interface q should be more than that:
    If c.staffCat is between 99 and 1000, then d.data = the last record c.data; else d.data = sum(c.data)
    Would you please teach me how to do the LAST or SUM steps?  Moreover, can interface p and interface q be combined to one interface and do not use the temp table c?  Millions thanks!
    Regards,
    Chris

  • Uploaded text file has a new line added at the top using BSP MVC applicatio

    I have a BSP MVC application that uploads data on to the application server. When I open the uploaded text file, the very first line on the file looks like the line below. ->
    htmlb:button:click:nullhtmlb_form_1UploadUpload0htmlbdfsdf
    But the rest of the file looks okay. This is causing other than .txt files to get corrupted.
    Here is the code from my DO_HANDLE_EVENT.
    data: entity   type ref to if_http_entity,
          name     type string,
          content  type xstring,
          content_type type string,
          idx      type i value 1,
          v_root(26) value '
    houappl131\SRM_Download\',
          v_unxfile(100),
          v_transfer type xstring,
          v_type(6),
          v_len type i,
          v_dirfile type zfileinfo,
          v_ofile(80),
          v_guid type guid_32.
      class cl_htmlb_manager definition load.
      data:        v_asn(10) type n.
      data: fu        type ref to cl_htmlb_fileupload,
                       file_id   type string value 'batchfile'.
      data: o_page_context type ref to if_bsp_page_context.
      data: parent type ref to cl_bsp_controller2,
            lo_model                       type ref to cl_sus_m_asn_detail.
      o_page_context = me->get_page_context( ).
      cl_htmlb_manager=>dispatch_event_ex( request = request
      page_context = o_page_context
      event_handler = me ).
      refresh z_batch->message.
      if htmlb_event->server_event = 'Upload'.
        fu ?= cl_htmlb_manager=>get_data( request = request id = file_id name
                                             = 'fileUpload' ).
        if fu->file_name gt space.
              z_batch->parameters-fpath = fu->file_name.
              v_len = strlen( z_batch->parameters-fpath ).
              if v_len gt 4.
                v_len = v_len - 3.
              endif.
              v_type = z_batch->parameters-fpath+v_len(3).
              search z_batch->parameters-fpath for '.'.
              if sy-fdpos gt 0 and v_len gt 0.
                v_len = v_len - sy-fdpos.
                v_type = z_batch->parameters-fpath+sy-fdpos(v_len).
              endif.
              clear v_asn.
              v_asn = z_batch->parameters-asnhdr.
              concatenate v_asn
                          z_batch->parameters-asnitem
                          z_batch->parameters-batch
                          v_type
                          into v_unxfile separated by '.'.
              concatenate v_root v_unxfile into v_unxfile.
              condense v_unxfile no-gaps.
              open dataset v_unxfile for output in binary mode.
                while idx <= request->num_multiparts( ).
                  entity = request->get_multipart( idx ).
                  name = fu->file_name .
                  if name is not initial.
                    content_type = entity->get_header_field( 'Content-Type' ).
                    clear content.
                    content      = entity->get_data( ).
                    v_transfer = content.
                    transfer content to v_unxfile.
                    append content to z_batch->filetab.
                  endif.
                  idx = idx + 1.
                endwhile.
                close dataset v_unxfile.
            endif.
      endif.
    Here is my fileupload button in the view
    <htmlb:page title="File Upload " >
        <htmlb:form method       = "post"
                    encodingType = "multipart/form-data" >
          <htmlb:label id     = "Batchnum"
                       design = "Label"
                       for    = "Batchnumber"
                       text   = "Batch" />
          <htmlb:inputField id    = "Batchinput"
                            value = "//zbatch/parameters.batch" />
          <htmlb:fileUpload id="batchfile" />
          <htmlb:button id      = "Upload"
                        text    = "Upload"
                        onClick = "Upload" />
          <htmlb:button id      = "Close"
                        text    = "Close window"
                        onClick = "Close" />
    Any of you gurus know why this is happening?

    I solved it myself

  • How to upload text file

    hi
    i want to create BDC program for the data uploding.. but i dont hv much knwloadge of about it. i need to sample code the data upload program. i hv to upload text file format. im using gui_upload funtion  if u hv any sample plz send me it plz... thnx
    regad
    nawa

    Check the following code:
    Selection screen :
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-020.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
    PARAMETERS: p_locl  RADIOBUTTON GROUP g1                   " desktop file
                        DEFAULT 'X' USER-COMMAND fil,
                p_phys  RADIOBUTTON GROUP g1.                  " appln server file
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .
    PARAMETERS: p_ifile  TYPE   dxfile-filename LOWER CASE,       " source file
                p_afile  TYPE   dxfile-filename LOWER CASE,       " asset class file
                p_cfile  TYPE   dxfile-filename LOWER CASE,       " Cost center file
                p_dfile  TYPE   dxfile-filename LOWER CASE,       " Depr key  file
                p_ofile  TYPE   dxfile-filename LOWER CASE.       " Audit file
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-015.
    PARAMETERS: p_test RADIOBUTTON GROUP g2 DEFAULT 'X',        " test run
                p_create RADIOBUTTON GROUP g2.                  " data migretion
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN END OF BLOCK b4.
    Main program :
    REPORT  zfaac900
            LINE-SIZE 132
            LINE-COUNT 65
            NO STANDARD PAGE HEADING
            MESSAGE-ID ZFAA.
    * includes
    INCLUDE: zfaac900_top,
             zfaac900_selection_screen,
             zfaac900_subroutine.
    * AT SELECTION SCREEN ON VALUE REQUEST
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ifile.
      PERFORM help_input_file USING p_phys p_locl CHANGING p_ifile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_afile.
      PERFORM help_asset_file USING p_phys p_locl CHANGING p_afile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cfile.
      PERFORM help_cost_file USING p_phys p_locl CHANGING p_cfile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dfile.
      PERFORM help_depr_file USING p_phys p_locl CHANGING p_dfile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ofile.
      PERFORM help_audit_file USING p_phys p_locl CHANGING p_ofile.
    * AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
      PERFORM check_screen USING p_ifile p_afile p_cfile p_dfile
                                 p_ofile p_locl p_phys.
    * TOP-OF-PAGE
    TOP-OF-PAGE.
      ULINE.
       PERFORM sjm_heading IN PROGRAM zacai0005.
      ULINE.
    * START_OF_SELECTION
    START-OF-SELECTION.
      PERFORM get_input USING    p_ifile p_afile p_cfile p_dfile
                        CHANGING i_input i_asset i_cost i_depr.
    Subroutines :
    *&      Form  help_input_file
    *        text
    FORM help_input_file  USING    p_phys_file   TYPE c
                                   p_locl_file   TYPE c
                          CHANGING p_source_path TYPE any.
      IF p_phys_file EQ 'X'.
        CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
          EXPORTING
            dynpfield_filename = 'P_IFILE'
            dyname             = sy-repid
            dynumb             = sy-dynnr
            filetype           = 'P'
            location           = 'A'.
      ELSEIF p_locl_file EQ 'X'.
        PERFORM help_local_file CHANGING p_source_path.
      ENDIF.
    ENDFORM.                    " help_input_file
    *&      Form  help_asset_file
    *       text
    FORM help_asset_file  USING    p_phys_file   TYPE c
                                   p_locl_file   TYPE c
                          CHANGING p_source_path TYPE any.
      IF p_phys_file EQ 'X'.
        CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
          EXPORTING
            dynpfield_filename = 'P_AFILE'
            dyname             = sy-repid
            dynumb             = sy-dynnr
            filetype           = 'P'
            location           = 'A'.
      ELSEIF p_locl_file EQ 'X'.
        PERFORM help_local_file CHANGING p_source_path.
      ENDIF.
    ENDFORM.                    " help_asset_file
    *&      Form  help_cost_file
    *       text
    FORM help_cost_file  USING     p_phys_file   TYPE c
                                   p_locl_file   TYPE c
                          CHANGING p_source_path TYPE any.
      IF p_phys_file EQ 'X'.
        CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
          EXPORTING
            dynpfield_filename = 'P_CFILE'
            dyname             = sy-repid
            dynumb             = sy-dynnr
            filetype           = 'P'
            location           = 'A'.
      ELSEIF p_locl_file EQ 'X'.
        PERFORM help_local_file CHANGING p_source_path.
      ENDIF.
    ENDFORM.                    " help_cost_file
    *&      Form  help_depr_file
    *       text
    FORM help_depr_file  USING     p_phys_file   TYPE c
                                   p_locl_file   TYPE c
                          CHANGING p_source_path TYPE any.
      IF p_phys_file EQ 'X'.
        CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
          EXPORTING
            dynpfield_filename = 'P_DFILE'
            dyname             = sy-repid
            dynumb             = sy-dynnr
            filetype           = 'P'
            location           = 'A'.
      ELSEIF p_locl_file EQ 'X'.
        PERFORM help_local_file CHANGING p_source_path.
      ENDIF.
    ENDFORM.                    " help_depr_file
    *&      Form  help_audit_file
    *        text
    FORM help_audit_file  USING    p_phys_file TYPE c
                                   p_locl_file TYPE c
                          CHANGING p_audit_path TYPE any.
      IF p_phys_file EQ 'X'.
        CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
          EXPORTING
            dynpfield_filename = 'P_OFILE'
            dyname             = sy-repid
            dynumb             = sy-dynnr
            filetype           = 'P'
            location           = 'A'.
      ELSEIF p_locl_file EQ 'X'.
        PERFORM help_local_file CHANGING p_audit_path.
      ENDIF.
    ENDFORM.                    " help_audit_file
    *&      Form  help_local_file
    *       Local File Path
    FORM help_local_file  CHANGING p_path TYPE any .
      DATA:  lt_file_table TYPE filetable,
             la_file_table LIKE LINE OF lt_file_table,
             l_rc TYPE i,
             l_pcdsn TYPE cffile-filename.
      REFRESH lt_file_table.
      CLEAR la_file_table.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        CHANGING
          file_table = lt_file_table
          rc         = l_rc.
      READ TABLE lt_file_table INTO la_file_table INDEX 1.
      l_pcdsn = la_file_table-filename.
      MOVE l_pcdsn TO p_path.
    ENDFORM.                    " help_local_file
    *&      Form  check_phys_file
    *      Validation of Physical  File
    FORM check_phys_file  USING  p_file TYPE any.
      DATA: l_str(300) TYPE c.
      CLEAR l_str.
      OPEN DATASET p_file IN TEXT MODE FOR INPUT ENCODING DEFAULT.
      IF sy-subrc <> 0.
        IF g_file_flag = 'I'.
          MESSAGE e000 WITH text-021.
        ELSEIF g_file_flag = 'A'.
          MESSAGE e000 WITH text-095.
        ELSEIF g_file_flag = 'C'.
          MESSAGE e000 WITH text-096.
        ELSEIF g_file_flag = 'D'.
          MESSAGE e000 WITH text-097.
        ENDIF.
      ENDIF.
      READ DATASET p_file INTO l_str.
      IF sy-subrc <> 0.
        IF g_file_flag = 'I'.
          MESSAGE e000 WITH text-017.
        ELSEIF g_file_flag = 'A'.
          MESSAGE e000 WITH text-098.
        ELSEIF g_file_flag = 'C'.
          MESSAGE e000 WITH text-099.
        ELSEIF g_file_flag = 'D'.
          MESSAGE e000 WITH text-100.
        ENDIF.
      ENDIF.
      CLEAR: g_file_flag.
      CLOSE DATASET p_file.
    ENDFORM.                    " check_phys_file
    *&      Form  check_local_file
    *       Validation of Local File
    FORM check_local_file  USING    p_file TYPE any.
      DATA:  l_size       TYPE     i.
      CLEAR: l_size.
      CALL FUNCTION 'TMP_GUI_GET_FILE_EXIST'
        EXPORTING
          fname          = p_file
        IMPORTING
    *      exist          = l_exist
          filesize       = l_size
        EXCEPTIONS
          fileinfo_error = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
        IF g_file_flag = 'I'.
          MESSAGE e000 WITH text-016.
        ELSEIF g_file_flag = 'A'.
          MESSAGE e000 WITH text-101.
        ELSEIF g_file_flag = 'C'.
          MESSAGE e000 WITH text-102.
        ELSEIF g_file_flag = 'D'.
          MESSAGE e000 WITH text-103.
        ENDIF.
      ENDIF.
      IF l_size IS INITIAL.
        IF g_file_flag = 'I'.
          MESSAGE e000 WITH text-024.
        ELSEIF g_file_flag = 'A'.
          MESSAGE e000 WITH text-107.
        ELSEIF g_file_flag = 'C'.
          MESSAGE e000 WITH text-108.
        ELSEIF g_file_flag = 'D'.
          MESSAGE e000 WITH text-109.
        ENDIF.
      ENDIF.
      CLEAR: g_file_flag.
    ENDFORM.                    " check_local_file
    *&      Form  get_input
    *       To gate input data from local file or from application server
    FORM get_input USING     p_ifilename TYPE   any
                             p_afilename TYPE   any
                             p_cfilename TYPE   any
                             p_dfilename TYPE   any
                   CHANGING  p_input_table TYPE t_input_table
                             p_asset_table TYPE t_asset_table
                             p_cost_table  TYPE t_cost_table
                             p_depr_table TYPE t_depr_table.
    * to populate the input table
      PERFORM upload_file USING p_ifilename CHANGING i_local.
      g_file_flag = 'I'.
      PERFORM split_localtable CHANGING p_input_table p_asset_table
                                        p_cost_table  p_depr_table.
      CLEAR g_file_flag.
      REFRESH i_local.
    * to populate the asset class table
      PERFORM upload_file USING p_afilename CHANGING i_local.
      g_file_flag = 'A'.
      PERFORM split_localtable CHANGING p_input_table p_asset_table
                                        p_cost_table  p_depr_table  .
      CLEAR g_file_flag.
      REFRESH i_local.
    * to populate the cost center table
      PERFORM upload_file USING p_cfilename CHANGING i_local.
      g_file_flag = 'C'.
      PERFORM split_localtable CHANGING p_input_table p_asset_table
                                        p_cost_table  p_depr_table  .
      CLEAR g_file_flag.
      REFRESH i_local.
    * to populate the depr key table
      PERFORM upload_file USING p_dfilename CHANGING i_local.
      g_file_flag = 'D'.
      PERFORM split_localtable CHANGING p_input_table p_asset_table
                                        p_cost_table  p_depr_table  .
      CLEAR g_file_flag.
      REFRESH i_local.
    ENDFORM.                    " get_input
    *&      Form  upload_file
    *       text
    FORM upload_file  USING    p_filename TYPE any
                 CHANGING p_local_table TYPE t_local_table.
    * To get the input data from desktop file
      IF p_locl = 'X'.
        DATA:  l_file TYPE string.
        CLEAR: l_file,
               p_local_table.
        l_file = p_filename.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                = l_file
            filetype                = 'ASC'
          TABLES
            data_tab                = p_local_table
          EXCEPTIONS
            file_open_error         = 1
            file_read_error         = 2
            no_batch                = 3
            gui_refuse_filetransfer = 4
            invalid_type            = 5
            no_authority            = 6
            unknown_error           = 7
            bad_data_format         = 8
            header_not_allowed      = 9
            separator_not_allowed   = 10
            header_too_long         = 11
            unknown_dp_error        = 12
            access_denied           = 13
            dp_out_of_memory        = 14
            disk_full               = 15
            dp_timeout              = 16
            OTHERS                  = 17.
        IF sy-subrc <> 0.
          MESSAGE e002 WITH l_file.
        ENDIF.
      ELSE.
    *    To get the data from application server file
        OPEN DATASET p_filename IN TEXT MODE FOR INPUT ENCODING DEFAULT.
        IF sy-subrc <> 0.
          MESSAGE e001 WITH p_filename.
        ENDIF.
        CLEAR: wa_local.
        DO.
          READ DATASET p_filename INTO wa_local.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          APPEND wa_local TO p_local_table.
          CLEAR: wa_local.
        ENDDO.
        CLOSE DATASET p_filename.
      ENDIF.
    ENDFORM.                    " upload_file
    *&      Form  split_localtable
    *       text
    FORM split_localtable CHANGING p_input_tab TYPE t_input_table
                                   p_asset_tab TYPE t_asset_table
                                   p_cost_tab  TYPE t_cost_table
                                   p_depr_tab TYPE t_depr_table.
      DATA: l_cnt TYPE i.
      CLEAR: l_cnt, wa_local.
      LOOP AT i_local INTO wa_local.
        REFRESH i_split[].
        SPLIT wa_local AT c_tab INTO TABLE i_split.
        CLEAR l_cnt.
        ADD 1 TO l_cnt.
        CLEAR wa_split.
        LOOP AT i_split INTO wa_split.
          IF g_file_flag = 'I'.
            ASSIGN COMPONENT l_cnt OF STRUCTURE wa_input TO <fs_field>.
          ELSEIF g_file_flag = 'A'.
            ASSIGN COMPONENT l_cnt OF STRUCTURE wa_asset TO <fs_field>.
          ELSEIF g_file_flag = 'C'.
            ASSIGN COMPONENT l_cnt OF STRUCTURE wa_cost TO <fs_field>.
          ELSEIF g_file_flag = 'D'.
            ASSIGN COMPONENT l_cnt OF STRUCTURE wa_depr TO <fs_field>.
          ENDIF.
          CLEAR <fs_field>.
          <fs_field> = wa_split-col.
          ADD 1 TO l_cnt.
          CLEAR wa_split.
        ENDLOOP.
        IF g_file_flag = 'I'.
          APPEND wa_input TO p_input_tab.
          CLEAR: wa_input .
        ELSEIF g_file_flag = 'A'.
          APPEND wa_asset TO p_asset_tab.
          CLEAR: wa_asset .
        ELSEIF g_file_flag = 'C'.
          APPEND wa_cost TO p_cost_tab.
          CLEAR: wa_cost .
        ELSEIF g_file_flag = 'D'.
          APPEND wa_depr TO p_depr_tab.
          CLEAR: wa_depr .
        ENDIF.
        CLEAR: wa_local .
      ENDLOOP.
    ENDFORM.                    " split_localtable

  • Problem in Uploading TEXT field for PR

    Hi all,
    I am using FM 'GUI_UPLOAD ' for uploading text file .
    There are three coloumns in my text file ie(PR number, item and TEXT id (long text) seperated by TAB
    As there are long text in the last coloumn and in between there are tab space i was unable to get the entire text
    To over come that problem , i have used multiple coloumn in the internal table of input table so that even if there are tab space
    i can store it in the other coloumn .
    But the problem is when im using FM"BAPI_REQUISITION_CREATE" and passing the table by breaking into 132 charactes
    in requisition_item_text im completely , getting different format.
    I mean the format of the uploaded text is completely messed up.:(
    Please help.
    Regards,
    Chandan

    HIII Chandan,
    When we use GUI_UPLOAD function module
    Call function GUI_UPLOAD
        Exporting
                 Filenmae = "the one which we are passing on to selection screen" should be of type File name 
                                     i.e IBIPPARMS-PATH.
                                     It is of type char and size 128
    So i think this is the reason u r unable to transport the data

  • BEX variable - uploading text file

    Hi,
    Does any one know if it is possible to upload a file to a variable rather than selecting individual values in the Web BEx analyser. (e.g. a list of material codes).. 
    Regards
    Mark J

    Hi Mark Johnson
    Your right in R/3 you have an option where as in BW you have to restrict in the query by entering the materials.if some range is preset i mean sequence of materials then you enter it as value range.
    Hope its clear a little..!
    Thanks
    K M R
    ***"Give me six hours to chop down a tree and I will spend the first four
    sharpening the axe." - Abraham Lincoln****
    >
    Mark Johnson wrote:
    > Thanks for reply..
    >
    > To clarify what i need, I have a report by for Sales vs Material codes... 
    >
    > We want to analyse how 100 materials perform over time of which we have a list of these materials in a text file..   I want to therefore upload this text file to filter by these materials rather than using the selection screen and searching one by one..
    >
    > This list of 100 materials could change at any point of time for different users...
    >
    > I've seen / used similar functionallity on ECC when filtering a list - i wondered if type of  functionallity was available in the web BEx frontend.
    >
    >
    > Thanks
    > Mark

  • Error while importing a text file for a list of values

    Hi Experts,
    While importing a text file for a list of values in designer, I am getting error message as below:
    "Invalid setting in Excel key of the Engines section of the Windows Registry. (3433)".
    I am using BO XI R3. Universe Designer version : 12.1.0.882
    Any suggestion ?
    Regards

    plzzzzzzzzzzzzzzzzz.............sme1 help me out

  • Upload text files with non-english characters

    I use an Apex page to upload text files. Then i retrieve the contents of files from wwv_flow_files.blob_content and convert them to varchar2 with utl_raw.cast_to_varchar2, but characters like ò, à, ù become garbage.
    What could be the problem? Are characters lost when files are stored in wwv_flow_files or when i do the conversion?
    Some other info:
    * I see wwv_flow_files.DAD_CHARSET is set to "ascii", wwv_flow_files.FILE_CHARSET is null.
    * Trying utl_raw.cast_to_varchar2( utl_raw.cast_to_raw('àòèù') ) returns 'àòèù' correctly;
    * NLS_CHARACTERSET parameter is AL32UTF8 (not just english ASCII)

    Hi
    Have a look at csv upload -- suggestion needed with non-English character in csv file it might help you.
    Thanks,
    Manish

  • SoD Risk Summary and Rule Text Files for CC 5.1

    Hi,
    Could anyone share with me where could I find the SoD Risk Summary and Rule Text Files for CC 5.1? I have looked into SAP Marketplace but I was not able to find such information. In the installation files we downloaded, these files are not included either
    Thanks in advance. Regards,
        Imanol

    Hi,
    These rules were available on the market place for CC 40: they were included in the support package 1 or 2.
    For CC 51, we had the same issue as you: we did not find the rules on the market place. Apparently, they are not.
    My customer had to send a OSS message to SAP in order to receive the rules (.txt files).
    Regards,
    Nicolas.

  • I would like to upload a file for a client and have it expire (lock them out of it) at a prescribed time

    I would like to upload a file for a client and have it expire (lock them out of it) at a prescribed time, say, 2 days after delivery. Any way to put a time limit on a file?

    No.
    Mylenium

  • How to prepare the Format of Flat file(Excel or Text file) for sales order

    Hi All,
    My requirement is to prepare the Flat File formats(Excel or Text file) for sales order Conversion using BAPI by COB.
    Needed Sample Excel or Text flat file .
    Thanks for all.
    Regards,
    Chowdary
    Moderator message : Search for available information. Thread locked. 
    Your similiar question [Flat files formats|Flat files formats] has been already locked for similiar reason.  Read forum rules before posting.
    Edited by: Vinod Kumar on Jul 8, 2011 9:36 AM

    Hi,
    You can use something like this:
    switch(cell.getCellType()) {
      case Cell.CELL_TYPE_STRING:
        System.out.println(cell.getRichStringCellValue().getString());
        break;
      case Cell.CELL_TYPE_NUMERIC:
        if(DateUtil.isCellDateFormatted(cell)) {
          System.out.println(cell.getDateCellValue());
        else {
          System.out.println(cell.getNumericCellValue());
        break;
        case Cell.CELL_TYPE_BOOLEAN:
          System.out.println(cell.getBooleanCellValue());
          break;
        case Cell.CELL_TYPE_FORMULA:
          System.out.println(cell.getCellFormula());
          break;
        default:
          System.out.println();
    Hope it helps,
    Daniel

  • Error while uploading text file....

    Halo Friends,
    I am uploading 4 text files which contain three columns separated by a tab, but when i am trying to upload those files using WS_UPLOAD Function Module i am getting a runtime error saying 'error while uploading/downloading'.
    Please solve this problem as soon as possible.
    Thanks in Advance,
    rama

    Halo again,
    Now that i am able to upload the files, i need to update the database table the update statement is executing correctly but when i debug i see that the sy-subrc value is 4 but not 0.
    and hence the it is not committed.
    Any suggestions. i am pasting my code here for your reference:
    Tables: qmfe.
    data: begin of gt1_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr20 like qmfe-/itml/usr20,
          end of gt1_qmfe.
    data: begin of gt2_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr21 like qmfe-/itml/usr21,
          end of gt2_qmfe.
    data: begin of gt3_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr19 like qmfe-/itml/usr19,
          end of gt3_qmfe.
    data: begin of gt4_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr07 like qmfe-/itml/usr07,
          end of gt4_qmfe.
    data: gs1_qmfe like line of gt1_qmfe,
          gs2_qmfe like line of gt2_qmfe,
          gs3_qmfe like line of gt3_qmfe,
          gs4_qmfe like line of gt4_qmfe.
    data: ls_lines1 type i,
          ls_lines2 type i,
          ls_lines3 type i,
          ls_lines4 type i.
    parameters: ip_file1 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\StoDt.txt'     obligatory,
                ip_file2 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\RcDtCust.txt'  obligatory,
                ip_file3 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\DockDate.txt'  obligatory,
                ip_file4 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\AWB.txt'       obligatory.
    field-symbols: <fs1> like gs1_qmfe,
                   <fs2> like gs2_qmfe,
                   <fs3> like gs3_qmfe,
                   <fs4> like gs4_qmfe.
    perform upload_gt1_qmfe.
    perform upload_gt2_qmfe.
    perform upload_gt3_qmfe.
    perform upload_gt4_qmfe.
    perform update_qmfe.
    *&      Form  upload_gt1_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt1_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file1
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt1_qmfe.
    describe table gt1_qmfe lines ls_lines1.
    write: / ls_lines1.
    ENDFORM.                    " upload_gt1_qmfe
    *&      Form  upload_gt2_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt2_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file2
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt2_qmfe.
    describe table gt2_qmfe lines ls_lines2.
    write: / ls_lines2.
    ENDFORM.                    " upload_gt2_qmfe
    *&      Form  upload_gt3_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt3_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file3
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt3_qmfe.
    describe table gt3_qmfe lines ls_lines3.
    write: / ls_lines3.
    ENDFORM.                    " upload_gt3_qmfe
    *&      Form  upload_gt4_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt4_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file4
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt4_qmfe.
    describe table gt4_qmfe lines ls_lines4.
    write: / ls_lines4.
    ENDFORM.                    " upload_gt4_qmfe
    *&      Form  update_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM update_qmfe .
    data ls_cnt type i.
    loop at gt1_qmfe assigning <fs1>.
    update qmfe set    /itml/usr20 = <fs1>-/itml/usr20
                where  qmnum       = <fs1>-qmnum
                and    fenum       = <fs1>-fenum.
    if sy-subrc = 0.
    commit work.
    add 1 to ls_cnt.
    endif.
    endloop.
    write: / ls_cnt.
    ENDFORM.                    " update_qmfe

  • Upload text file from PC to table control

    Hi Experts,
    I realize that this question was posted many times in SDN, but I am not able to find a clear answer. I have uploaded the file into internal table using GUI_UPLOAD function module (PAI module - MODULE UPLOAD_FROM_PC - I have created a push button using screen painter and included the logic based of fcode). Now, I want to append this internal table to the internal table linked to the table control. But I am not able to find the internal table which is linked to the table control. The EXTRACT is not an internal table. So, could you tell me how I could accomplish this logic.
    PROCESS BEFORE OUTPUT.
      MODULE LISTE_INITIALISIEREN.
      LOOP AT EXTRACT WITH CONTROL TCTRL_ZKK_EXAMPLE1 CURSOR NEXTLINE.
        MODULE LISTE_SHOW_LISTE.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
      MODULE LISTE_BEFORE_LOOP.
      LOOP AT EXTRACT.
        MODULE LISTE_INIT_WORKAREA.
        CHAIN.
          FIELD ZKK_EXAMPLE1-ANLKL .
          MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
        ENDCHAIN.
        FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
        CHAIN.
          FIELD ZKK_EXAMPLE1-ANLKL .
          MODULE LISTE_UPDATE_LISTE.
        ENDCHAIN.
      ENDLOOP.
      MODULE UPLOAD_FROM_PC.
      MODULE LISTE_AFTER_LOOP.
    Thanks
    Sri

    Hi
    First of all convert excel or text file into tabular format
    (meanse same as we use in BDC).
    here table I_EXCL structure is same as your table control structure.
    for ex.
    yr table control structure is
    u can write down this coding in yr button press event.
    data:begin of extract occurs 0,
            matnr like matnr,
           maktx like maktx,
         end of extract.
    data:i_excl like extract occurs 0 with header line.
    GET THE FILE PATH
    DATA:W_FILENAME LIKE RLGRAP-FILENAME.
    CLEAR:W_FILENAME,extract[].
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
       PROGRAM_NAME        = SYST-REPID
       DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
      STATIC              = ' '
      MASK                = ' '
      CHANGING
        FILE_NAME           = W_FILENAME
    EXCEPTIONS
       MASK_TOO_LONG       = 1
       OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF W_FILENAME IS NOT INITIAL.
    CONVERT EXCEL FILE INTO INTERNAL TABLE
    CLEAR:I_EXCL.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = W_FILENAME
       FILETYPE                      = 'DAT'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = I_EXCL
    EXCEPTIONS
       CONVERSION_ERROR              = 1
       FILE_OPEN_ERROR               = 2
       FILE_READ_ERROR               = 3
       INVALID_TYPE                  = 4
       NO_BATCH                      = 5
       UNKNOWN_ERROR                 = 6
       INVALID_TABLE_WIDTH           = 7
       GUI_REFUSE_FILETRANSFER       = 8
       CUSTOMER_ERROR                = 9
       NO_AUTHORITY                  = 10
       OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    After this in PBO module u can write
    process before output
      MODULE TAB_ENTRY_CHANGE_TC_ATTR.
    MODULE TAB_ENTRY_CHANGE_TC_ATTR.
      loop at i_excl.
        extract-matnr  = i_excl-matnr.
        extract-maktx  = i_excl-maktx.
       append extract.
      endloop.
    endmodule.
    I hope this is helpfull to solve yr problem.
    Edited by: Pavan Gajjar on Mar 26, 2008 9:57 AM

  • Webutil - issue with uploading text files with client_get_file_name

    Hi,
    I'm using webutil client_get_file_name to upload files from the client machine to the server.
    It works fine for xls,pdf,doc files etc. but not for txt files it seems.
    It doesn't display any error at all either.
    Has anyone seen this type of issue before?
    Kind regards,
    Tom
    Windows XP
    Forms v10.1.2.0.2

    Hi Sarah et al,
    The code that I'm using to upload any file type format is:
    vfilename := client_get_file_name('c:\',file_filter => 'All files (*.*)');
    it works for doc/pdf/xls/rtf/csv etc.
    but not for text files i.e. .txt
    Also, could someone tell me how to open a .msg (Outlook message) file
    as it gives the output:
    'Cannot read item' upon the opening of the Outlook application.
    I'm using the following to try and open it:
    CLIENT_HOST( 'cmd /C start '||p_filename);
    Your help would be appreciated.
    Kind regards,
    Tom

Maybe you are looking for