How to upload blob from forms6i

Hi,
Anyone has idea how to upload blob
using forms6i ?????
Mehul

Hi,
Set-AzureStorageBlobContent copies a file from the host it is run on to Azure Blob Storage. Running this cmdlet on your local machine means it will copy files from your local machine to Azure Blob Storage. Running this cmdlet in a runbook means it will copy
files from the sandbox running the runbook to Azure Blob Storage. Runbooks have no access to your local machine, since they run in Azure.
If you want to interact with files on your local machine from within runbooks, you need to put the local files into Blob Storage, and then download them from Blob Storage within the runbook.
Here's an example of PowerShell you could put in a runbook to download files from Blob Storage:
$AzureConnectionName = "SomeAzureConnectionAssetName"
$TempFileLocation = "C:\abc.cscfg"
$StorageAccountName = "MyStorageAccount"
$ContainerName = "MyContainer"
$BlobName = "MyDeploymentConfig.cscfg"
Connect-Azure -AzureConnectionName $AzureConnectionName
InlineScript {
Select-AzureSubscription -SubscriptionName $Using:AzureConnectionName
$StorageAccount = (Get-AzureStorageAccount -StorageAccountName $Using:StorageAccountName).Label
Set-AzureSubscription `
-SubscriptionName $Using:AzureConnectionName `
-CurrentStorageAccount $StorageAccount
$blob =
Get-AzureStorageBlobContent `
-Blob $Using:BlobName `
-Container $Using:ContainerName `
-Destination $Using:TempFileLocation `
-Force

Similar Messages

  • HOW TO UPLOAD DATA FROM EXCEL TO INTERNALTABLE

    HI,
    HOW TO UPLOAD DATA FROM EXCEL TO INTERNALTABLE?  & WITH EXAMPLE.

    hi,
    chk this, put the data into an excel file.
    fields inside it are name and age.
    sample excel sheet.
    coloumn 1 is name and column 2 is age
    name age
    A     8
    C     13
    D     55
    DATA : int_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    data : record like db_name_age occurs 0 with header line.
    DATA : v_start_col TYPE i VALUE '1', "starting col
           v_start_row TYPE i VALUE '1', " starting row
           v_end_col   TYPE i VALUE '2', " total columns
           v_end_row   TYPE i VALUE '10'. "total no of record
    FORM f_upload .
      CLEAR : int_excel, int_excel[].
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = wf_filename
          i_begin_col             = v_start_col
          i_begin_row             = v_start_row
          i_end_col               = v_end_col
          i_end_row               = v_end_row
        TABLES
          intern                  = int_excel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
    *Message is 'Unable to upload data from  '  wf_filename.
        MESSAGE e169(zm050) WITH wf_filename.
      ELSE.
        SORT int_excel BY row col.
        REFRESH : record.
        CLEAR   : record.
        LOOP AT int_excel.
          CASE int_excel-col. "go thru each column.
            WHEN 1.
              record-name  = int_excel-value.
            WHEN 2.
              record-age = int_excel-value.     
          ENDCASE.
          AT END OF row.
            APPEND record.
            CLEAR record.
          ENDAT.
        ENDLOOP.
    *inserting into table
    modfiy db_name_age from table record.
      ENDIF.
    <i><b>ANOTHER EXAMPLE</b></i>
    TYPE-POOLS truxs.
    types: begin of t_tab,
    col1(5) type c,
    col2(5) type c,
    col3(5) type c,
    end of t_tab.
    data : itab type standard table of t_tab,
           wa type t_tab.
    data it_type type truxs_t_text_data.
    parameter p_file type rlgrap-filename.
    data ttab type tabname.
    at selection-screen on value-request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = 'P_FILE'
    IMPORTING
    FILE_NAME = p_file
    start-of-selection.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER = 'X'
    i_tab_raw_data = it_type
    i_filename = p_file
    tables
    i_tab_converted_data = itab[]
    EXCEPTIONS
    CONVERSION_FAILED = 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.
    end-of-selection.
    loop at itab into wa.
    write : wa-col1,
            wa-col2,
            wa-col3.
    endloop.
    rgds,
    anver
    <i>if hlped pls mark points</i>

  • How to upload data from excel to SAP and options to be used

    How to upload data from excel to SAP and options to be used
    thank you,
    Regards,
    Jagrut Bharatkumar shukla

    Hi Jagrut,
        You can use gui_upload.
    chk the sample program mentioned below.
    REPORT ZFTP .
    DATA: BEGIN OF I_FILE OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE.
    DATA: BEGIN OF I_FILE2 OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE2.
    DATA: W_COUNT TYPE I.
    PARAMETERS: P_FILEN TYPE STRING,
    P_FILE2 TYPE STRING,
    P_NUM(4) TYPE N..
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILEN.
    PERFORM F_FILE_GET USING P_FILEN TEXT-G01.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
    PERFORM F_FILE_GET USING P_FILE2 TEXT-G01.
    START-OF-SELECTION.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = P_FILEN
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = I_FILE
    IF SY-SUBRC <> 0.
    MESSAGE E024(Z1).
    ENDIF.
    LOOP AT I_FILE.
    W_COUNT = W_COUNT + 1.
    IF NOT W_COUNT > P_NUM.
    MOVE I_FILE TO I_FILE2.
    APPEND I_FILE2.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = P_FILE2
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = I_FILE2
    FIELDNAMES =
    *& Form F_FILE_GET
    text
    -->P_P_FILEN text
    -->P_TEXT_G01 text
    FORM F_FILE_GET USING L_FILENA L_TEXT.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    DEF_PATH = ' '
    MASK = ',.,*.TXT.'
    MODE = 'O'
    TITLE = L_TEXT
    IMPORTING
    FILENAME = L_FILENA
    rc =
    EXCEPTIONS
    INV_WINSYS = 1
    NO_BATCH = 2
    SELECTION_CANCEL = 3
    SELECTION_ERROR = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Reward if helpful.
    Regards,
    Harini.S

  • How to upload logo from application server

    Hi all,
    Plz show me the way how to upload logo from application server into sap script.
    What is NGT.
    Thanks in advance
    Venkat

    Hi
    You have to import your logo in SAP by SE78 before using it in a SAPSCRIPT.
    So have you done it?
    If yes, it depends on how you have imported the logo:
    - As std text:
    INCLUDE <LOGO TEXT> OBJECT TEXT ID ST LANGUAGE <LANGUAGE>
    - As graphic:
    BITMAP <LOGO GRAPHIC> OBJECT GRAPHICS ID BMAP TYPE BCOL
    Max

  • How to upload file from Application Server?

    Dear Friends,
    How to upload file from Application Server?
    Plz. with example...
    Regards,
    Dharmesh

    hi,
    check the code for upload from application server.
    tables: kna1.
    types: begin of s_file,
             customer type kna1-kunnr,
             country  type kna1-land1,
             name     type kna1-name1,
             region   type kna1-regio,
           end of s_file.
    *--Internal tables
    data: it_file type s_file occurs 0 with header line.
    *-- Selection screen
    selection-screen: begin of block b1 with frame title text-001.
    parameter: p_file type rlgrap-filename default 'C:/customer.txt'
    obligatory.
    selection-screen: end of block b1.
    *-- At selection screen
    at selection-screen on value-request for p_file.
    perform file_help using p_file.
    *-- Process File
    start-of-selection.
      perform upload_file using p_file.
    *-- write File data to o/p
    end-of-selection.
      perform write_data.
    *&      Form  file_help
    form file_help  using    p_p_file.
      data: l_filepath type ibipparms-path.
      call function 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       importing
         file_name           = l_filepath
      p_p_file = l_filepath.
    endform.                    " file_help
    *&      Form  upload_file
    form upload_file  using    p_p_file.
      call function 'WS_UPLOAD'
       exporting
         filename                      = p_p_file
         filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
        tables
          data_tab                      = it_file
       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 i001.
      endif.
    endform.                    " upload_file
    *&      Form  write_data
    form write_data .
      loop at it_file.
        write:/ it_file-customer, it_file-country, it_file-name,
                it_file-region.
      endloop.
      endform.
    regards,
    keerthi.

  • How to upload pictures from laptop to iphone

    Dear friends,
    i have iphone 4 with IO6, could you please help me with tools how to upload pictures from my laptop to my Iphone?
    Best wishes.

    Use iTunes to sync them to your iPhone... http://support.apple.com/kb/HT4236

  • HT4890 how to upload photoes from icloud to my computer?

    Can someone tell me how to upload photoes from icloud to my computer?
    Thanks

    iCloud doesn't offer general file storage.
    You can save files to iCloud from iCloud aware applications in the save dialog of such apps.

  • HT4623 Can u guide me how to upload Vedeo from laptop to iPad Air

    Can anyone help me how to upload Vedeo from laptop to iPad Air

    iTunes: Frequently asked questions about viewing and syncing videos
    http://support.apple.com/kb/HT2729
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Using The iPad Camera Connection Kit
    http://support.apple.com/kb/HT4101
     Cheers, Tom

  • How to upload photos from iPhoto to Touch?

    Hello,
    I can't figure out how to upload albums from iPhoto onto the Touch.
    Thanks for an help.
    Neil

    Go to the photo pane and select the album that you want to sync.
    http://manuals.info.apple.com/enUS/iPod_touch_3.0_UserGuide.pdf

  • How to upload photos from elements 9 to Revel

    How to upload photos from elements 9 to Revel

    There is no direct link from PSE 9 to revel the way there was to photoshop.com. Revel didn't exist when PSE 9 was written and there's nothing in PSE 9 that can understand or connect with Revel. You are not going to be able to do everything you could do with photoshop.com, like keep your catalog synced. You use a web browser and find your photos to share exactly the same way you would if they were not in the organizer at all.

  • How to upload photos from HTC Evo to IPad

    How to upload photos from HTC Evo to IPad,then to a flashdrive ?

    One option would be via Dropbox. Following is a link to information re Dropbox on the HTC Evo. http://www.htc.com/us/support/htc-evo-4g-lte-sprint/howto/393916.html
    You can install Dropbox on the iPad via the App Store.
    Another option would be to email the photos to yourself.

  • How to upload photos from iPad to memory card or pc

    how to upload photos from iPad to memory card or PC

    You can't upload to a memory card.
    You can connect the iPad with your computer and then go to (this) Computer see there your iPad as external drive, open it and look for the maps with photos to copy them to your computer.
    Otherwise you can use free Dropbox to transfer and share your photos wireless to your computer and others;
    http://db.tt/VCNzkXr

  • Does anyone know how to upload footage from an SDHC to mac not using FCP or imovie?

    Does anyone know how to upload footage from an SDHC card on a mac that doesn't involve using Final Cut Pro or iMovie? Those don't have many options for import/encoding settings. They also upload the clips into an enormous file size. I always have to re-export them in MPEG streamclip or Compressor to lower the file size and it's getting annoying. HELP!

    Won't help the size methinks, but does Image Capture work?

  • How to upload picture from my computer to I phone?

    how to upload picture from my computer to I phone?

    Hi suhail Alabed,
    If you have questions about syncing photos to your iPhone, you may find the following article helpful:
    iTunes: Syncing photos
    http://support.apple.com/kb/ht4236
    Regards,
    - Brenden

  • How to upload songs from my windos to ipod, how to upload songs from my windos to ipod

    how to upload songs from my windos to ipod, how to upload songs from my windos to ipod

    By syncing from your iTunes libary. You have to imprt the songs into your iTunes libary
    To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions
    and then sync to the iPod
    iTunes 11 for Windows: Syncing overview
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

Maybe you are looking for