Uploading order files

Hi All,
My customer will place(upload) orders in a particular folder, and it gets stored in Portal repository. they will place orders in excel file. this is mandatory. They have their own Plan codes.
My question is:
I need a program that picks a file from a particular folder and store it in DB.
How can i start with it.
Pl explain me.
Thx
PRAdeep

This is how I would do it, but it not the only way.
1. Create a .NET Service application to scan constantly scan the directory that users are uploading to.
2. When my .NET Service finds a new file, then I'd save the file in a binary object.
3. I'd save the binanry object to an MS SQL database with a field type of binary.
4. Delete the file from the upload directory.
I'm not sure what technologies your using (oracle/sql, java/.net) but either way, the algorithm is similar.
Regards,
Thomas Ficker

Similar Messages

  • How do I upload a file into my acrobat cloud?  I am needing to do this in order to convert the pdf to excel.

    How do I upload a file into my acrobat cloud?  I am needing to do this in order to convert the pdf to excel.

    Hi wesm34245063,
    Here's a quick tutorial on using the ExportPDF online service to convert PDF files to Excel: Getting Started with ExportPDF | Adobe Community.
    I think that you'll find it's pretty easy, but if you do run into questions/issues, please let us know.
    Best,
    Sara

  • To whom this may concern, I'm having troubles with uploading Flash Files Online throught Adobe Flash Professional and I would to correct the Error Messages I've received as an indication that I need to correct them in order to test a Flash and Shockwave F

    To whom this may concern, I'm having troubles with uploading Flash Files Online throught Adobe Flash Professional and I would to correct the Error Messages I've received as an indication that I need to correct them in order to test a Flash and Shockwave Files I have stored into the Software of Flash!. Could you please help me get this matter resolved? Gerard Hargrove.

    what exactly are you trying to do and attach a screenshot of the error message, if it's in english.

  • How do I upload a file to icloud in multiple formats?

    I have noticed that when I upload a file to the iWork app of iCloud and I wish to download it, it provides me with a drop down list multiple formats (i.e. Pages, PDF or Word) however only one option (the file type I uploaded it is availible). I wish to upload a single file in multiple formats for example I want to be able to download that file in Pages and Word formats. Currently I have to resort to uploading two separate files, one Word, one Pages but that results in a lot of clutter. Is there any way I can have a file availible to download in both formats all underneath the same icon?

    Documents added from a Mac need opening on an iOS device, in order for them to be able to be downloaded again, in any of the 3 formats.

  • BAPO_PO_CREATE1 giving errors while creating PO by uploading a file?

    Hi,
      when i am creating Purchase Order using BAPO_PO_CREATE1 by uploading a File, it is giving below errors
    1-> No instance of object type PurchaseOrder has been created. External reference:
    2-> PO header data still faulty
    3-> No master record exists for vendor 100017
    4-> Vendor 100017 does not exist
    5-> Can delivery date be met?
    and i passed data to bapi as below
    CONSTANTS: c_x              TYPE  c         VALUE 'X',
               c_err            TYPE  bdc_mart  VALUE 'E'.
    *Structures to hold PO header data
    DATA : header  LIKE  bapimepoheader   ,
           headerx LIKE  bapimepoheaderx .
    *Internal Tables to hold PO ITEM DATA
    DATA : item   LIKE bapimepoitem  OCCURS 0 WITH HEADER LINE,
           itemx  LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE,
    *Internal table to hold messages from BAPI call
           rettab LIKE bapiret2         OCCURS 0 WITH HEADER LINE.
    DATA:   bapi_err_count TYPE i,
            bapi_warnings  TYPE i,
            ponumber LIKE ekpo-ebeln,
            item_num   LIKE ekpo-ebelp.
    DATA : BEGIN OF i_dbtab OCCURS 0,
           bukrs LIKE ekko-bukrs, " company code
           bsart LIKE ekko-bsart, " Po document type
           bedat(10) TYPE c, " po document data
           lifnr LIKE ekko-lifnr, " vendor
           ekorg LIKE ekko-ekorg, " Purchase organisation
           ekgrp LIKE ekko-ekgrp, " Purchase group
           currency like ekko-waers,
           item like ekpo-ebelp,
           matnr(18) TYPE n, " Article
           werks LIKE ekpo-werks, " Werks
           mat_grp type matkl,
           menge(10) TYPE c, " Menge
           netwr type BAPICUREXT.  " nat value
    DATA : END OF i_dbtab.
    DATA : wa_dbtab LIKE i_dbtab.
                         SELECTION-SCREEN DESIGN                         *
    PARAMETERS: p_file LIKE rlgrap-filename MEMORY ID m01 OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          mask      = ''
          static    = ''
        CHANGING
          file_name = p_file.
    START-OF-SELECTION.
      PERFORM f_file_upload.
      IF i_dbtab[] IS NOT INITIAL.
        PERFORM f_po_create.
      ENDIF.
    *&      Form  f_file_upload
    FORM f_file_upload .
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = i_dbtab
        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 e004 WITH 'File upload Failed'.
      ENDIF.
    ENDFORM.                    " f_file_upload
    *&      Form  F_po_create
    FORM f_po_create.
      DATA : cc TYPE i,
             l_lifnr LIKE lfa1-lifnr.
      LOOP AT i_dbtab INTO wa_dbtab.
        cc = cc + 1.
        IF cc = 1.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = wa_dbtab-lifnr
            IMPORTING
              output = l_lifnr.
    *POPULATE HEADER DATA FOR PO
          header-comp_code = wa_dbtab-bukrs.
          header-doc_type   = wa_dbtab-bsart.           "Standard Order
          header-creat_date = sy-datum.
          header-vendor     = wa_dbtab-lifnr.
          header-purch_org  = wa_dbtab-ekorg.
          header-pur_group  = wa_dbtab-ekgrp.
          header-currency = wa_dbtab-currency.
    *POPULATE HEADER FLAG.
          headerx-comp_code  = c_x.
          headerx-doc_type   = c_x.
          headerx-creat_date = c_x.
          headerx-vendor     = c_x.
          headerx-purch_org  = c_x.
          headerx-pur_group  = c_x.
          headerX-currency = c_x.
         headerX-currency_iso = c_x.
        ENDIF.
    *POPULATE ITEM DATA.
        item-po_item  = wa_dbtab-item.
        item-material = wa_dbtab-matnr.
        item-plant    = wa_dbtab-werks.
        item-matl_group = wa_dbtab-mat_grp.
        item-quantity = wa_dbtab-menge.
        item-net_price   = wa_dbtab-netwr.
        APPEND item.
        CLEAR item.
    *POPULATE ITEM FLAG TABLE
        itemx-po_item    = wa_dbtab-item.
        itemx-po_itemx   = c_x.
        itemx-material   = c_x.
        itemx-plant      = c_x .
        itemx-matl_group = c_x.
        itemx-quantity   = c_x .
        itemx-net_price  = c_x.
        APPEND itemx.
        CLEAR itemx.
      ENDLOOP.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = header
          poheaderx        = headerx
        IMPORTING
          exppurchaseorder = ponumber
        TABLES
          return           = rettab
          poitem           = item
          poitemx          = itemx.
      PERFORM f_bapi_errors.
      IF bapi_err_count = 0.
        PERFORM bapi_commit.
         PERFORM f_bapi_errors.
        WRITE: 'Created Po no:', ponumber COLOR 5.
      else.
        PERFORM bapi_commit.
      ENDIF.
    ENDFORM.                    " F_po_change
          FORM f_bapi_errors                                            *
    FORM f_bapi_errors.
      CLEAR: bapi_err_count, bapi_warnings.
      LOOP AT rettab.
        CASE rettab-type.
          WHEN 'S' OR 'I'.
          WHEN 'W'.
            ADD 1 TO bapi_warnings.
            WRITE rettab-message COLOR 3.
          PERFORM zjnc_dump_list  USING 'RETTAB[]' 'RETTAB' 'Bapi Errors Table'.
          WHEN OTHERS.
            ADD 1 TO bapi_err_count.
            WRITE rettab-message COLOR 6.
         PERFORM zjnc_dump_list  USING 'RETTAB[]' 'RETTAB' 'Bapi Errors Table'.
        ENDCASE.
      ENDLOOP.     " LOOP AT RETTAB
    IF bapi_err_count <> 0.
       MESSAGE e999 WITH 'Note Messages and inform SAP Support'.
    ENDIF.
      REFRESH rettab.
    ENDFORM.                    "f_bapi_errors
    *&      Form  bapi_commit
    FORM bapi_commit.
    commit the changes
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'          " COMMIT WORK AND WAIT
        IMPORTING
          return = rettab.      " Confirmations
    ENDFORM.                    "bapi_commit
    can anyone me how to solve it.

    HI,
    Also 'Can delivery date be met ' is the usual information meesage u get when u give date atleast a day after today as date .
    Write an inner join for vendor master table and the PO details
    (Which is also a recommened way of checking  value from master table all the time )

  • ERROR WHILE UPLOADING TIFF FILE.

    Dear Sir/Madam,
             While i am trying to upload tiff file i got this error , i cannot understand where i made mistake , please guide me to solve this problem.
    Load File
    C:\Documents and Settings\dastagiri\Desktop\PARU.tiff
    The file contains      2,798  bytes
    This is a TIFF file with INTEL byte order
    First IFD offset:                                    2,612
    Reading IFD from offset      2,612  Number of Tags         15
    ImageWidth:                                            176
    ImageLength:                                           148
    BitsPerSample levels:                                    3
    BitsPerSample - level 1:                                 8
    BitsPerSample - level 2:                                 8
    BitsPerSample - level 3:                                 8
    Compression:                                             5
    Photometric Interpretation:                              2
    Number of StripOffsets:                                  7
    SamplesPerPixel:                                         3
    RowsPerStrip:                                           23
    Number of StripByteCounts:                               7
    XResolution:                                            96  /          1
    YResolution:                                            96  /          1
    ResolutionUnit:                                          2
    TIFF format error: No baseline TIFF 6.0 file
    Thanks in Advance,
    D@st@giri.

    Dear Vijay,
    I have one tiff 6.0 image which i am passing to program "RSTXLDMC".
    I have not done any conversion or changes in the file.
    Regards,
    Sagar Sontakke

  • Error while uploading tiff file using report "RSTXLDMC"

    Hi Experts,
    I am trying to upload .tif file into SAP usinf report "RSTXLDMC".
    Getting below error.
    Uploading TIFF Files to SAPscript Texts
    Load File
    c:\file.tif
    The file contains    134,412  bytes
    This is a TIFF file with MOTOROLA byte order
    First IFD offset:                                        8
    Reading IFD from offset          8  Number of Tags         13
    ImageWidth:                                          5,120
    ImageLength:                                         6,590
    Compression:                                             2
    Photometric Interpretation:                              0
    Number of StripOffsets:                                  5
    RowsPerStrip:                                        1,636
    Number of StripByteCounts:                               5
    XResolution:                                           600  /          1
    YResolution:                                           600  /          1
    ResolutionUnit:                                          2
    This is a baseline TIFF 6.0 BILEVEL file
    TIFF upload not possible, compression type 2 not supported
    How to solve this ????
    Please help.
    Regards,
    SVS

    Dear Vijay,
    I have one tiff 6.0 image which i am passing to program "RSTXLDMC".
    I have not done any conversion or changes in the file.
    Regards,
    Sagar Sontakke

  • 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

  • How to upload .CSV file from Application Server

    Hi Experts,
        How to upload .CSV file separated by ',' from Application server to an internal table.
    Invoice No,Cust No,Item Type,Invoice Date,days,Discount Amount,Gross Amount,Sales Amount,Customer Order No.,Group,Pay Terms
    546162,3233,1,9/4/2007,11,26.79,5358.75,5358.75,11264,HRS,11
    546163,2645,1,9/4/2007,11,3.07,305.25,305.25,10781,C,11
    Actually I read some already answered posts. But still I have some doubts.
    Can anybody please send me the code.
    Thanks in Advance.

    Hi Priya,
    Check this code
    Yhe logic used here is as follows,
    Get all the data into an internal table in the simple format ie: a row with one field contains an entire line
    After getting the data, we split each line of the table on every occurrence of the delimiter (comma in your case)
    Here, I have named the fields as field01, field02 etc, you could use your own names according to your requirement
    parameters: p_file(512).
      DATA : BEGIN OF ITAB OCCURS 0,
              COL1(1024) TYPE C,
             END OF ITAB,
             WA_ITAB LIKE LINE OF ITAB.
      DATA: BEGIN OF ITAB_2 OCCURS 0,
        FIELD01(256),
        FIELD02(256),
        FIELD03(256),
        FIELD04(256),
        FIELD05(256),
        FIELD06(256),
        FIELD07(256),
        FIELD08(256),
        FIELD09(256),
        FIELD10(256),
        FIELD11(256),
        FIELD12(256),
        FIELD13(256),
        FIELD14(256),
        FIELD15(256),
        FIELD16(256),
       END OF ITAB_2.
      DATA: WA_2 LIKE LINE OF ITAB_2.
        OPEN DATASET p_FILE FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.
        IF SY-SUBRC = 8.
          WRITE:/ 'File' , p_FILE , 'cannot be opened'.
          LV_LEAVEPGM = 'X'.
          EXIT.
        ENDIF.
        WHILE SY-SUBRC <> 4.
          READ DATASET p_FILE INTO WA_ITAB.
          APPEND WA_ITAB TO ITAB.
        ENDWHILE.
        CLOSE DATASET p_FILE.
      LOOP AT ITAB INTO WA_ITAB.
        SPLIT WA_ITAB-COL1 AT ','    " where comma is ur demiliter
         INTO WA_2-FIELD01 WA_2-FIELD02 WA_2-FIELD03 WA_2-FIELD04
         WA_2-FIELD05 WA_2-FIELD06 WA_2-FIELD07 WA_2-FIELD08 WA_2-FIELD09
         WA_2-FIELD10 WA_2-FIELD11 WA_2-FIELD12 WA_2-FIELD13 WA_2-FIELD14
         WA_2-FIELD15 WA_2-FIELD16.
        APPEND WA_2 TO ITAB_2.
        CLEAR WA_2.
      ENDLOOP.
    Message was edited by:
            Kris Donald

  • Uploading CSV file problem

    Hello everyone.
    I have a minor problem in uploading CSV file to HTMLDB.
    I don't know the exact reason, but HTMLDB threw
    "ORA-20001: Unable to create collection: ORA-06502: PL/SQL: numeric or value error" whenever I tried to upload my csv file. after a few repetition of deleting potential problem-causing columns and trying again, I found out the following:
    when numeric value and character value are stored together in single column, the upload fails. For example, we have a column which stores the employee number. The employee number is just a sequential numeric value, however temporary employees have 'T' in front of their employee number, so it begins something like T0032 and so on.
    So, then, I tried to enclose all the employee numbers which start with numeric value with " character, but that would just simply take too long to do it manually, and excel does not seem to support enclosing the values with " when it's saving the spreadsheet with CSV format.
    So, I'm kind of stuck right now.
    Can anyone give me a good way to deal it?
    THANK YOU!

    Thanks for updating my forum setting, my name is now clearly visible :-)
    anyway.. I went back and tested couple of things...
    It now appears that the problem is not caused from values inside the column... instead..
    I believe the size of csv file with certain character set is the issue here...
    This is a rough estimate, but file size larger than about 31.7 ~ 9kb caused errors IF THEY CONTAINED OTHER CHARACTER SET THAN ENGLISH.
    here are informations about my setting:
    1. Oracle database: initially 9.2.0.1 -> patched upgrade to 9.2.0.4
    2. HTMLDB: 1.4.0.00.21c (downloaded from otn)
    3. db character set : UTF-8
    4. OS: windows 2000 (with up-todate service pack and
    security patches and etc..)
    5. system: toshiba tecra 2100 with 1GB ram and 40GB hdd
    6. operation system locale: korean, south korea
    I tried uploading many other files in both english and korean, which is my national language. The english csv file worked beautifully, without any file size limitations. However, when I tried to upload a file with
    KOREAN characters in it, it failed.
    Intrigued by this behavior I started to test the file upload with various excel files, and found out that..
    1. english csv files caused absolutely no errors.
    2. engilsh file with single korean character immediately
    threw the error, if the size exceeded 31.8kb (or I
    think the size is 32kb)
    3. I tested korean file mixed english file, caused
    the same error if the size exceeded 32kb.
    the distribution of korean characters inside the
    csv file did not matter, just don't go beyond 32kb!
    Please reproduce this behavior (but I presume that some efforts will be required in order to reproduce this error perfectly, since it is not easy to obtain foreign OS in US regions.. is it?)
    anyway, thanks for your quick reply, and
    I hope this problem gets fixed, because in this manner,
    I have to split my file into 32kb chunks!
    - Howard

  • Creating a sales document using BAPI in web dynpro by uploading a file

    Hi ALL,
    Can some one help me how to create a sales document using  BAPI by uploading a file as input...Can someone  provide me a sample program....
    Thanks n Regards,
    Praveenn.
    Edited by: praveenn on Aug 23, 2011 12:42 PM

    Hi Sri,
    Thx for the response...
    Here is the code that i followed for creating a BAPI_SALESORDER_CREATE1 by uploading a text file as input.
    Just create a Attribute  in the VIEW CONTEXT of type String.
    method ONACTIONCREATE_SO .
    types : Begin of ty_data,
             sales_org  type vkorg,
             doc_type   type AUART,
             DISTR_CHAN type VTWEG,
             DIVISION   type spart,
             material   type matnr,
             partn_role type PARVW,
             PARTN_NUMB type kunnr,
           end of ty_data.
      DATA  :it_table TYPE  TABLE OF ty_data,
             i_data   TYPE  TABLE OF string,
             l_string TYPE string,
             wa_table TYPE ty_Data,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
    DATA: wa_order_header_in TYPE BAPISDHD1,
          it_order_items_in  TYPE TABLE OF BAPISDITM,
          wa_order_items_in  TYPE BAPISDITM,
          it_order_partners  TYPE TABLE OF BAPIPARNR,
          wa_order_partners  TYPE BAPIPARNR,
          it_return TYPE TABLE OF BAPIRET2,
          wa_return TYPE BAPIRET2.
    DATA : sales_doc type bapivbeln-vbeln.
    DATA:
       node_zfinal_node  TYPE REF TO if_wd_context_node,
       elem_zfinal_node  TYPE REF TO if_wd_context_element,
       stru_zfinal_node  TYPE if_main_view=>element_zfinal_node .
    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.
      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.
        wa_table-sales_org = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        wa_table-doc_type = lv_field.
        READ TABLE fields INTO lv_field INDEX 3.
        wa_table-DISTR_CHAN = lv_field.
        READ TABLE fields INTO lv_field INDEX 4.
        wa_table-DIVISION = lv_field.
        READ TABLE fields INTO lv_field INDEX 5.
        wa_table-material  = lv_field.
        READ TABLE fields INTO lv_field INDEX 6.
        wa_table-partn_role  = lv_field.
        READ TABLE fields INTO lv_field INDEX 7.
        wa_table-partn_numb  = lv_field.
    APPEND wa_table TO it_table.
      ENDLOOP.
    loop at it_table into wa_table.
    clear : wa_order_header_in.
    wa_order_header_in-sales_org   = wa_table-sales_org.
    wa_order_header_in-doc_type    = wa_table-doc_type.
    wa_order_header_in-distr_chan  = wa_table-distr_chan.
    wa_order_header_in-division    = wa_table-division.
    clear : wa_order_items_in.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-material
    IMPORTING
       OUTPUT        = wa_order_items_in-material.
    *wa_order_items_in-req_qty  = wa_table-req_qty.
    append wa_order_items_in to it_order_items_in.
    clear : wa_order_partners.
    wa_order_partners-partn_role = wa_table-partn_role.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-partn_numb
    IMPORTING
       OUTPUT        = wa_order_partners-partn_numb
    *wa_order_partners-partn_numb = wa_table-partn_numb.
    append wa_order_partners to it_order_partners.
    endloop.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
      SALESDOCUMENTIN               =
        order_header_in               = wa_order_header_in
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                 = sales_doc
      tables
       RETURN                        = it_return
       ORDER_ITEMS_IN                = it_order_items_in
      ORDER_ITEMS_INX               =
        order_partners                = it_order_partners.
      ORDER_SCHEDULES_IN            =
    get message manager
    DATA: l_current_controller TYPE REF TO if_wd_controller,
           l_message_manager    TYPE REF TO if_wd_message_manager.
           l_current_controller ?= wd_this->wd_get_api( ).
    DATA:  v_message_text TYPE string.
    When Sales Order is created commit the data
    IF NOT sales_doc IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING wait = 'X'.
      CONCATENATE 'Sales Document' sales_doc 'has been created.' INTO v_message_text SEPARATED BY space.
    Report Success message
      CALL METHOD l_message_manager->report_success
      EXPORTING
      message_text = v_message_text.
      ELSE.
      v_message_text = 'Error Creating Sales Order'.
    Report Error message
    CALL METHOD l_message_manager->report_error_message
    EXPORTING
    message_text = v_message_text.
    ENDIF.
    endmethod.
    Edited by: praveenn on Aug 30, 2011 2:41 PM

  • Keeping "CS Web Service session" alive while uploading big files.

    Hi.
    I have a problem when I'm uploading big files, which takes longer than the session timeout value, causing the upload to fail.
    As you all know uploading a file is a three step process:
    1). Create a new DocumentDefinition Item on the server as a placeholder.
    2). Open an HTTP connection to the created placeholder and transfer the data using the HTTPConnection.put() method.
    3). Create the final document using the FileManager by passing in the destination folder and the document definition.
    The problem is that step 2 take so long that the "CS Web Service Session" times out and thus step 3 can not be completed. The Developer guide gives a utility method for creating an HTTP connection for step 2 and it states the folllowing "..you must create a cookie for the given domain and path in order to keep the session alive while transferring data." But this only keeps the session of the HTTP Connection alive and not the "CS Web Service Session". As in my case step 2 completes succesfully and the moment I peform step 3 it throws an ORACLE.FDK.SessionError:ORACLE.FDK.SessionNotConnected exception.
    How does one keep the "CS Web Service Session" alive?
    Thanks in advance
    Regards.

    Okay, even a thread that pushes dummy stuff through once in a while doesn't help. I'm getting the following when the keep alive thread kicks in while uploading a big file.
    "AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (409)Conflict
    faultActor:
    faultNode:
    faultDetail:
    {}:return code: 409
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;409 Conflict&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;409 Conflict&lt;/H1&gt;Concurrent Requests On The Same Session Not Supported&lt;/BODY&gt;&lt;/HTML&gt;
    {http://xml.apache.org/axis/}HttpErrorCode:409
    (409)Conflict
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:732)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at oracle.ifs.fdk.FileManagerSoapBindingStub.existsRelative(FileManagerSoapBindingStub.java:1138)"
    I don't understand this, as the exception talks about "Concurrent Requests On The Same Session", but if their is already a request going on why is the session timing out in the first place?!
    I must be doing something really stupid somewhere. Aia ajay jay what a unproductive day...
    Any help? It will be greatly appreciated...

  • Re: uploading pdf file farmat into sap system

    Hi  Sap Guru's
    One of my client have requirement  of uploading PDF file into sap system
    client is getting scan copy in PDF format of sales order that  order , material number and qty should be uploaded into sap through
    va01
    as clent havint 200 customers and all tha customers having different styles of format in pdf
    i know that we can do by webdyopro / adobe forms  but for one customer i can do but here 200 customer are having different
    format
    can any one suggest me this requirement is fulfilled by SAP-XI, OR ANY OTHER
    Thanks & Regards
    T Bharat

    Hi,
    you can try using the method cl_gui_frontend_services=>file_open_dialog, this will open a popup allowing
    you to browse and selected the desired files from your system.
    Use this method along with the function module GUI_UPLOAD to upload all the desired files and their contents in SAP.
    Hope this was useful.
    Thanks and regards,
    Adithya.

  • Upload a file where no. of columns for each row is not fixed...

    Hi All,,
    I have to upload a file......
    number of columns for each rows are not fixed ....
    e.g.
    Posting Date     Company Code     Currency     Header Text     Cost Center     Internal Order     Ref 1     Ref 2     Line Text     Account no.     Amount     Account no.     Amount     Account no.     Amount     Account no.     Amount     Account no.     Amount     Account no.     Amount     Account no.     Amount
    31-05-09     1000     EUR     PAYROLL 05/2009     1234     123456     123456     seaman     RU     999999     9,999.99                                                            
    31-08-09     1000     EUR     PAYROLL 05/2009     678     98765     98765     officer     GB     600015     4,560.00      600035     2,125.50      600020     1,325.40      600025     245.75      600030     300.00      280010     1,000.00      281091     6,000.00
    its in tab delimited txt file.....
    how to upload this type of file..
    Plz suggest....
    thnx
    rahul

    Hi,
    Define your internal table like this.
         TYPES: BEGIN OF upload_type,
           upload(330),
           END OF upload_type.
    DATA: itab_upload TYPE STANDARD TABLE OF upload_type,
           wa_upload TYPE upload_type.
    Data: file type string.
    file = 'C:/test.txt'.
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename                = file
                filetype                = 'ASC'
               HAS_FIELD_SEPARATOR = 'X'
           TABLES
                data_tab                = itab_upload
           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 ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Use the sring operations to identify your coloumns.
    Regards,
    Satish

  • Error - The file must match the template type. Upload one file per language

    hi,
    Error - The file must match the template type. Upload one file per language and territory combination.
    i am getting above error while registering RTF template in oracle application e -business suite using XML publisher admistrator responsibility.
    My work :
    i generated xml output using concurrent program.
    for this i used standard PO report,
    the executable name: POXPRPOP.
    i designed the template using MS Office word (for RTF template)
    for this :
    <?start: body?>
    <? for-each: G_Headers?>
    VENDOR:
    <?POH_VENDOR_NAME?>
    <?POH_VENDOR_COUNTRY?>
    PURCHASEORDER NO.
    <?POH_PO_NUM?>
    SHIP TO:
    <?C_COMPANY?>
    <?POH_SHIP_ADDRESS_LINE1?>
    <?POH_SHIP_COUNTRY?>
    BILL TO:
    <?C_COMPANY?>
    <?POH_BILL_ADDRESS_LINE1?>
    <?POH_BILL_COUNTRY?>
    <?end for-each?>
    <?end body?>
    saved this file as "Purchasing.rtf" on desk top
    i registered data definition
    name:purchase order data definition.
    code : short name of concurrent program.
    i try to create template Or register the template in oracle e-business suite.
    name: purchasing template
    code: concurrent program short name
    type : RTF.
    file : browse from desk top (purchasing.rtf)
    language:english
    territory: US.
    but i am getting above error
    could any one help to come out of this problem.
    thank you
    regarding,
    sai krishna@cavaya

    Hi,
    I am getting the error as
    The file must match the template type. Upload one file per language and territory combination.
    I have checked the template name. It doesn't exist already. Please help me.
    Thanks in Advance,
    Jeganathan

Maybe you are looking for