Processing mode - DELETE not working in Synchronous mode (File - RFC - File

Hi ,
I need to the delete the files from source folder once the processing is done, so i am giving the Processing mode as Delete in the Sender C.C.
But after execution it doesnt get deleted. what could be the reason?
We are using a file - RFc - file scenario.
also could anyone let me know what is the command to move a file from one folder to another in UNIX.
i tried
mv /home/out        but it doesnt work
pls help.

Hi,
you can use AL11: navigate to the folder, where the file is inside, mark it and press button "Attributes". Then look to value "Mode": 777 means owner, group and everybody else has right for write (in your case delete), read and execute. UNIX command to change is may be ch mod (i m not good in UNIX).
My suspect is that the file adapter user has not the right for write, but ur direct user has.
Regards,
Udo

Similar Messages

  • Javascript is not working in the published file

    Hi ,
    I using the javascript in the captivate 5.5 to generate the text from variable in the textbox. It is working when I press the F12 button, But it is not working in the Published file.
    I called the function in the button and I written the script in the slide.
    Please let us know how to proceed..
    Thanks
    Sathish BC

    This is the Script I used in the captivate 5.5 and I called the text using variable in the text box.
    var objCP = document.Captivate;
    function valText()
    var a  = objCP.cpEIGetValue('A');
    var b  = objCP.cpEIGetValue('B');
    if (b>=5)
    objCP.cpEISetValue('B',0);
    GetAryVal(b);
    objCP.cpEISetValue('rdcmndGotoFrameAndResume', objCP.cpEIGetValue('currSlide'));
    function GetAryVal(e)
    var a1  = objCP.cpEIGetValue('Txt');
    var b1 = a1.split("#");
    var c1 = b1[e-1].split("$");
    objCP.cpEISetValue('C', c1[0]);
    objCP.cpEISetValue('D', c1[1]);
    valText();

  • Camera raw is not working on my NEF files D600

    camera raw is not working on my NEF files D600.. I ALREADY TRIED all of the updates ( first 7.3, 7.4 even the 8.1) i have the photoshop cs6 and im not finding a way to make it read my files!!! even the DMG converter its not reading them!!

    It might be the way you are downloading them. I believe that Nikon Transfer has been updated to overcome a corruption bug which affects Adobe products.
    If you are using Nikon Transfer, it might be worth updating to the latest version, and downloading your photos again. Or use Adobe Photodownloader instead (I would).
    Also, accepted wisdom is to download photos off the memory card using a card reader, rather than via the camera USB, as it is less prone to problems. YMMV.

  • Why my DELETE not WORK with  BULLKCOLLECT ?

    Cursor Cur_Del (p_AnoMes IN varchar2) IS
    SELECT A.OBJECTID
    FROM mytable A
    WHERE A.YEAR_MONTH = p_AnoMes;
    OPEN Cur_Del(p_YEARMONTH);
    LOOP
              FETCH Cur_Del BULK COLLECT INTO v_obj_tab LIMIT 200;
              FORALL i IN 1 .. v_obj_tab.COUNT
              DELETE FROM CIRCUITSOURCECUSTCLASS_DB WHERE OBJECTID = v_obj_tab(i);
              COMMIT;
              EXIT WHEN Cur_Del%NOTFOUND;
    END LOOP;

    SQL> create table mytable
      2  as
      3  select l objectid, '20060' || to_char(mod(l,2)+1) year_month
      4    from (select level l from dual connect by level <= 1000)
      5  /
    Tabel is aangemaakt.
    SQL>
    SQL> create table circuitsourcecustclass_db
      2  as
      3  select l objectid from (select level l from dual connect by level <= 1000
      4  /
    Tabel is aangemaakt.
    SQL>
    SQL> create type muttleychess_type as table of number;
      2  /
    Type is aangemaakt.
    SQL>
    SQL> select year_month,count(*) from mytable group by year_month
      2  /
    YEAR_MONTH
                                  COUNT(*)
    200601
                                       500
    200602
                                       500
    SQL>
    SQL> select count(*) from circuitsourcecustclass_db
      2  /
                                  COUNT(*)
                                      1000
    SQL>
    SQL> declare
      2    Cursor Cur_Del (p_AnoMes IN varchar2)
      3    IS
      4    SELECT A.OBJECTID
      5    FROM mytable A
      6    WHERE A.YEAR_MONTH = p_AnoMes;
      7    v_obj_tab muttleychess_type;
      8  begin
      9    OPEN Cur_Del('200601');
    10    LOOP
    11      FETCH Cur_Del BULK COLLECT INTO v_obj_tab LIMIT 200;
    12      dbms_output.put_line(v_obj_tab.count);
    13      FORALL i IN 1 .. v_obj_tab.COUNT
    14      DELETE FROM CIRCUITSOURCECUSTCLASS_DB WHERE OBJECTID = v_obj_tab(i);
    15      COMMIT;
    16      EXIT WHEN Cur_Del%NOTFOUND;
    17    END LOOP;
    18  end;
    19  /
    200
    200
    100
    PL/SQL-procedure is geslaagd.
    SQL>
    SQL> select count(*) from circuitsourcecustclass_db
      2  /
                                  COUNT(*)
                                       500So it seems to work.
    A couple of remarks:
    - Please change the datatype of p_AnoMes to a date or maybe a number
    - Please post everything next time, because we can only guess what exactly does "not work" with your example.
    Regards,
    Rob.

  • Command+Delete not working in iTunes 10.1.2

    Just noticed this since updating. The 'Delete' option under 'Edit' is not selectable and the Command+Delete option yields no results.
    Anyone else have this problem?

    It's been intermittently working for me. Dragging the song to the Trash does not work either. Usually a restart takes care of it but I've also repaired permissions as well as an Archive and Install of the OS. Odd.

  • Process Success Message not working

    Hi
    I have created a process to send a mail on some button click...
    The process success message i have given that
    Mail Sent Successfully!
    Though the mail is coming I am not getting the Mail Sent Message!
    Can someone help to let me know what am I missing?
    Thanks
    Ankit

    Ok another fishy question
    Can a process sent a Successful Message without completing the task?
    I get the message Mail Sent though I never receive the mail...
    In test environment apex.oraclecorp.com it is working sending the mail.
    But in production database.us.oracle.com it is not working :(
    I have made the exact copy in production site!
    What can i be missing?

  • XI to RFC processed successfully but not working

    Hello,
    I finally configured my RFC - XI - RFC async scenario.
    If I go to SXMB_MONI the message is processes OK, the mapping is OK too because I can see the output payload data in the technical routing tab.
    But, the destination RFC must change a DataBase table in the his R3 server and it didn't happened so something is wrong.
    How can I know where is the problem? It looks like XI runs fine, then I think the problem is in R3 destination. How can I check if the RFC has been called?

    HI Marshal,
    Which RFC you are calling? Check if you need commit work after calling RFC.
    Also you can check if messages are not stuck in XI trfc queue using transaction code :SM58.
    Hope this will help.
    Nilesh
    And how I know if I have to commit work? And how I commit work from XI?
    The RFC it's a custom RFC and it has only one line code:
    ---> MODIFY ZTABLE FROM IT_TABLE.
    IT_TABLE is the parameter from XI and ZTABLE is a custom transparent table. I've tested and it works fine.
    I also checked SM58 in XI and nothing is there.
    The RFC destination parameters are filled OK too, I've checked in SXMB_MONI from XI.
    I don't know what else can I check

  • Process Trigger is not working in OIM 11gR2

    Hi Experts,
    The Lookup.USR_PROCESS_TRIGGERS is not working. Assigned some process task on user attribute changes but it is not working as of now. Earlier it was working fine. Even I am not able to update the existing lookup value in Lookup.USR_PROCESS_TRIGGERS as we are getting below errror:
    The security level for this data item indicates that it cannot be updated.
    We are not able to figure out what is the issue behind this. might be some sandbox issue or some database value problem.
    Please provide me pointer to solve my problem.
    Thanks,

    Select LKV.LKV_DATA_LEVEL from LKU LKU, LKV LKV where LKU.LKU_KEY = LKV.LKU_KEY AND LKU.LKU_TYPE_STRING_KEY='Lookup.USR_PROCESS_TRIGGERS'
    If it is 1, make it 0 and try again. No need to change it for OOTB tasks/rows.

  • Insert , Update & Delete Not working in BDB Berkley Database

    Hi,
    Anybody has used Oracle ADF & BDB ,to insert/ update & delete?
    imported db.jar,dbexample.jar,sqlite.jar ,derby.jar. still not working (Only Query working)
    Pls lets us know

    Hi,
    Do you have a small test case program that demonstrates this? A JDeveloper project showing what exactly is the problem when trying to use the BDB SQL JDBC driver to insert data into the BDB SQL database? What do you mean by "not working", do you get any errors, you do not get errors but you do not see the data in the database etc?
    What are the versions of Java, JDeveloper, ADF and BDB SQL you are using, and on what OS?
    Regards,
    Andrei

  • Multi-Row insert/update/delete not working via db-link

    App. Version: 2.0.0.00.49
    DB: Oracle 9i, not sure about the build
    Problem: Multirow Update/Insert/Delete doesn't work via db-link.
    Error received: ....ORA-1460: unimplemented or unreasonable conversion requested....
    Where: Tabular Form generated via Wizard
    Side note: It's working properly when local table(s) is/are used, it's not working via db-link or view.
    I've encountered this error with single update/insert/delete operations before, but was able to fix it via using temp-variables (v_xyz := :Px_xyz; as the proposed v('Px_xyz') was really slow with my scripts)...but with the automated DML-action I don't see a way to edit it accordingly.
    Workaround found:
    1a) Use local* collection on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
    1b) Use local* table on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
    * Local = on the same server that HTML-DB is running on...
    So,...to my questions:
    1. Can someone confirm that this is a "known feature" (aka bug)?
    2. Can someone tell me if this "known feature" has been eliminated in the newer version of HTML-DB/APEX (> 2.0.0.00.49)?
    Thanks.
    Ingo

    Hi,
    Do you have a small test case program that demonstrates this? A JDeveloper project showing what exactly is the problem when trying to use the BDB SQL JDBC driver to insert data into the BDB SQL database? What do you mean by "not working", do you get any errors, you do not get errors but you do not see the data in the database etc?
    What are the versions of Java, JDeveloper, ADF and BDB SQL you are using, and on what OS?
    Regards,
    Andrei

  • ERecruiting:Process Template link not working

    Hi All,
    Recently we have applied a patch "nw eph1 sp05" after which the Process template link is not working.
    We have raised an OSS note in this regard and they have a provided Note 1342091 to apply.
    We have implemented that note and found that the Process Template link is working, but it is failing in one place:
    Recruiter start page>View/Manage Candidates within Requisitions>Assignments>Select candidate and click on the 'Process Activities' button>click on the Process Template link
    When we click on the Process template link a blank page appears.
    However we have replied back to them, meanwhile I would like to know if anybody have faced any similar issue can provide some ideas in this regard.
    Thanks,
    PoojaM

    The issue has been resolved.

  • Sap document link on process chain is not working

    Hi all,
    This link is not working
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045.
    Please give me the correct like for the sap document on process chain.
    Thanks,
    Madhu

    Hi Madhu,
    Go through the below wiki where you will get most information related to Process chains.
    https://wiki.sdn.sap.com/wiki/display/BI/Processchainscreationandmonitoring
    Process chain creation step by step
    /people/juergen.noe/blog/2008/01/11/process-chain-creation--step-by-step
    Process chain Scheduling
    /people/debjani.das/blog/2009/04/05/scheduling-process-chain
    New features in BI process chains
    /people/mallikarjuna.reddy7/blog/2007/02/08/new-features-in-bi-2004s-process-chains
    However, if you are looking for the process chain from a SAP BI perspective, then please check the below link:
    http://help.sap.com/saphelp_nw04/helpdata/EN/8f/c08b3baaa59649e10000000a11402f/content.htm
    Hope this links helps
    Regards
    KP

  • Table Data delete not working

    Hi,
    I m trying to simply delete all records in a Z table. I insert data into this table from another program. Until 1/2 hr ago both insertions and deletions were working fine. But now suddently the delete program is hanging on statement
    DELETE FROM SAPR3.ZMYTABLE.
    The table has no lock objects, nor m I explicitly locking the table in the insert program. Please help at the earliest, points will be given to right answer. Thank you for reading.

    Hi Srikrishna,
    Please try to use standard program RADCVBTC to delete all records from your custom program.
    OBJ_NAME = <custom table>
    OBJ_TYPE = 'TABL'
    FCT      = 'MDF'
    Hope this will help.
    Regards,
    Ferry Lianto

  • Cascade delete not working

    Hi,
    I can't seem to get cascade deleting to work even though I've set it up on
    the db side (SQL Server 2000)as well as follow the documentation to use
    the dependendent extension:
    From my 'package.jdo':
    <package name="test">
    <class name="Person" objectid-class="Person$ID" >
    <field name="personId" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="PersonId"/>
    </field>
    <field name="addresses" default-fetch-group="true">
    <collection element-type="Address"/>
    <extension vendor-name="kodo" key="element-dependent"
    value="true"/>
    </field>
    </class>
    <class name="Address" objectid-class="Address$ID" >
    <field name="personId" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="PersonId"/>
    </field>
    <field name="addressId" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="AddressId"/>
    </field>
    </class>
    </package>
    When I run the following code:
    Person.ID id = new Person.ID("" + 3);
    object = persistenceManager.getObjectById(id,false);
    if (object != null) {
    persistenceManager.currentTransaction().begin();
    persistenceManager.deletePersistent(object);
    persistenceManager.currentTransaction().commit();
    I get this exception:
    com.solarmetric.jdbc.ReportingSQLException: [MYDB]Incorrect syntax near
    the keyword 'WHERE'. {prepstmnt 6504030 UPDATE dbo.Address SET  WHERE
    PersonId = ? [params=(int) 5] [reused=0]} [code=156, state=01000]
    It looks like Kodo is trying to do an update on the dependent object,
    instead of a delete. Any ideas?
    D. May

    I got the same error even after changing the package.jdo to the following:
    <package name="org.uscentral.webach.domain.test">
    <class name="Address" objectid-class="Address$ID" >
    <field name="personId" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="PersonId"/>
    </field>
    <field name="addressId" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="AddressId"/>
    </field>
    </class>
    <class name="Person" objectid-class="Person$ID" >
    <field name="personId" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="PersonId"/>
    </field>
    <field name="addresses" default-fetch-group="true">
    <collection element-type="Address"/>
    <extension vendor-name="kodo" key="jdbc-delete-action"
    value="cascade"/>
    </field>
    </class>
    </package>
    Marc Prud'hommeaux wrote:
    Darrin-
    If you have cascade deletion happening on the server-side, they you want
    to use the "jdbc-delete-action" extension to notify Kodo of this, rather
    than the "dependent" extension (which tells Kodo to perform client-side
    cascading deletion).
    In article <[email protected]>, Darrin May wrote:
    Hi,
    I can't seem to get cascade deleting to work even though I've set it up on
    the db side (SQL Server 2000)as well as follow the documentation to use
    the dependendent extension:
    From my 'package.jdo':
    <package name="test">
    <class name="Person" objectid-class="Person$ID" >
    <field name="personId" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="PersonId"/>
    </field>
    <field name="addresses" default-fetch-group="true">
    <collection element-type="Address"/>
    <extension vendor-name="kodo" key="element-dependent"
    value="true"/>
    </field>
    </class>
    <class name="Address" objectid-class="Address$ID" >
    <field name="personId" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="PersonId"/>
    </field>
    <field name="addressId" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="AddressId"/>
    </field>
    </class>
    </package>
    When I run the following code:
    Person.ID id = new Person.ID("" + 3);
    object = persistenceManager.getObjectById(id,false);
    if (object != null) {
    persistenceManager.currentTransaction().begin();
    persistenceManager.deletePersistent(object);
    persistenceManager.currentTransaction().commit();
    I get this exception:
    com.solarmetric.jdbc.ReportingSQLException: [MYDB]Incorrect syntax near
    the keyword 'WHERE'. {prepstmnt 6504030 UPDATE dbo.Address SET  WHERE
    PersonId = ? [params=(int) 5] [reused=0]} [code=156, state=01000]
    It looks like Kodo is trying to do an update on the dependent object,
    instead of a delete. Any ideas?
    D. May
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Bapi_document_create2 does not work correctly with attached file.

    Hi all.
    I hava a problem with bapi. I programmed below.
            ls_docdata-documenttype = 'BBS'.
            ls_docdata-description  = 'JJW test'.
            ls_file-documenttype = 'BBS'.
            ls_file-ORIGINALTYPE = 1.
            ls_file-storagecategory = 'ZSTW_KPRO'.
            ls_file-wsapplication = 'TXT'.
            ls_file-docfile = entity_filename.
            append ls_file to lt_files.
            CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
              EXPORTING
                documentdata       = ls_docdata
                PF_FTP_DEST = 'SAPFTP'
                PF_HTTP_DEST = 'SAPHTTP'
              IMPORTING
                documenttype               =      lv_documenttype
                documentnumber           =     lv_documentnumber
                documentpart                =     lv_documentpart
                documentversion           =     lv_documentversion
                return                           =     ls_return
              tables
                documentfiles     = lt_files.
            call function 'BAPI_TRANSACTION_COMMIT'.
    If I don't attach the file, DIR is created but if attach some files, it does not work. What should I do??
    regards.

    Hi,
    You can use the below to attach the file from BSP to SAP. But it doesnt use the BAPI - 'BAPI_DOCUMENT_CREATE2'. It works perfectly for me. Let me know if you have any questions.
    Note: This code put the file into SAP Directory "/userapps/master_data/" as well as it upload the file into Transaction WTY since i am using Business object:BUS2222. You may need to modify the Business object if you ahve the one, otherwise you can just put it into SAP DIR.
    FUNCTION ZATTACH_CREATE.
    *"*"Update function module:
    *"*"Local interface:
    *"  IMPORTING
    *"     VALUE(FILE) TYPE  SAPB-SAPFILES
    *"     VALUE(STR_FILE_CONTENT) TYPE  XSTRING
    *"     VALUE(OBJECT_KEY) TYPE  BAPIBDS01-OBJKEY
      DATA: LOGICAL_SYSTEM TYPE BAPIBDS01-LOG_SYSTEM,
            CLASSNAME TYPE  BAPIBDS01-CLASSNAME,
            CLASSTYPE TYPE  BAPIBDS01-CLASSTYPE.
      DATA:  IT_FILES TYPE TABLE OF  BAPIFILES,
            IT_SIGNATURE TYPE TABLE OF  BAPISIGNAT,
       FILES TYPE  BAPIFILES,
      SIGNATURE TYPE   BAPISIGNAT.
      DATA: I_TOADD TYPE TOADD,
            FILENAME_ALL TYPE SAPB-SAPFILES,
            FILE_PATH TYPE SAPB-SAPFILES,
            FILE_PATH_MEMORY(250) TYPE C,  " path für SAP memory
            FILE_PATH_LENGTH TYPE I,       " length of the file_path
           FILE_CONTENT_LENGTH TYPE I,       " length of the file_CONTENT
           FILE_NAME TYPE SAPB-SAPFILES,
            FILE_EXTENSION TYPE TOADD-DOC_TYPE.     " file-extension.
      DATA: I_FILE_CONTENT TYPE TABLE OF BAPICONTEN.
      DATA: WA_FILE_CONTENT TYPE  BAPICONTEN,
       STRING_CONTENT TYPE STRING,
       STRING_CONTENT1 TYPE STRING.
      DATA:
       I_FILES TYPE TABLE OF BAPIFILES ,
            I_SIGNATURE TYPE TABLE OF BAPISIGNAT ,
            I_COMPONENTS TYPE TABLE OF BAPICOMPON ,
           COMPONENTS TYPE BAPICOMPON ,
            I_PROPERTIES TYPE TABLE OF SDOKPROPTY ,
            I_PROPERTIES2 TYPE TABLE OF BAPIPROPER ,
            I_PROPERTIES_DEL TYPE TABLE OF BAPIDPROPT ,
           MIMETYPE TYPE TOADD-MIMETYPE,
      COMPID TYPE BAPICOMPON-COMP_ID,  " compid for popup
            COMPID_FLAG(1) TYPE C,           " compid can't be changed
            MODIFY_FLAG(1) TYPE C,           " document is modified
            ATTRI_FLAG(1) TYPE C,            " attri can't be changed
            TITLE_FLAG(1) TYPE C,            " titel of the popup
            CANCEL_FLAG(1) TYPE C,           " cancel button Yes/No
            BUTTON_TEXT(10) TYPE C,
            INFO_TEXT(100) TYPE C,
      VERSION_NR TYPE BDN_CON-DOC_VER_NO,     " version_nr for popup
            VERSION_LANGU2 TYPE T002T-SPTXT, " language field in POPUP
            VERSION_LANGU TYPE BDN_CON-LANGU," SPRAS language field
            TITLE_TEXT(100) TYPE C,          " title of the popup
            DESCRIPTION TYPE BDN_CON-DESCRIPT.      " descr. for popup
    *FILENAME_ALL = fileUpload_event->file_name.
    * Transfering into SAP File server.
      FILE_CONTENT_LENGTH = XSTRLEN( STR_FILE_CONTENT ).
      FILENAME_ALL = FILE .
      STRING_CONTENT = STR_FILE_CONTENT.
      DATA: OUT_LINES TYPE TABLE OF XSTRING.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = STR_FILE_CONTENT
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    *   OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_FILE_CONTENT.
      DELETE DATASET '/userapps/master_data/claim1.txt'.
      OPEN DATASET '/userapps/master_data/claim1.txt' FOR APPENDING
        IN TEXT MODE ENCODING DEFAULT.
    *  LOOP AT I_FILE_CONTENT INTO WA_FILE_CONTENT.
    *    TRANSFER STR_FILE_CONTENT TO '/userapps/master_data/claim1.txt'.
      TRANSFER STRING_CONTENT TO '/userapps/master_data/claim1.txt'.
    *  ENDLOOP.
      CLOSE DATASET '/userapps/master_data/claim1.txt'.
      OPEN DATASET '/userapps/master_data/claim1.txt' FOR INPUT
           IN TEXT MODE ENCODING DEFAULT.
      READ DATASET '/userapps/master_data/claim1.txt'  into STRING_CONTENT1.
    * -- split filename                                                 -- *
        DATA: LENGTH TYPE I.
      DATA: PATH2(1200).  " LIKE sapb-sapfiles.
      DATA: L_FILE(1200),
            L_DIR(1200),
            L_DELIMITER        TYPE C,
            L_OFFSET           TYPE I,
            L_BYTES            TYPE I,
            L_DELIMITER_OFFSET TYPE I,
            L_DELIMITER_BYTES  TYPE I,
            L_CHAR             TYPE C,
            L_PREVIOUS_CHAR    TYPE C,
            L_LAST_CHAR        TYPE C.
      PATH2 = FILENAME_ALL.
      LENGTH = STRLEN( PATH2 ).
      L_OFFSET = 0.
      WHILE L_OFFSET < LENGTH.
        L_LAST_CHAR = L_CHAR. "remember last character
        L_BYTES = CHARLEN( PATH2+L_OFFSET ).
        L_CHAR = PATH2+L_OFFSET(L_BYTES). "get current character
        IF L_CHAR = '/' OR L_CHAR = '' OR L_CHAR = ':'.
          IF L_DELIMITER IS INITIAL OR L_DELIMITER = ':'.
            "Typically we deal with absolute paths, so the first
            "delimiter is best. This allows for UNIX paths with
            "'' in the directory or file name
            L_DELIMITER = L_CHAR.
          ENDIF.
          IF L_CHAR = L_DELIMITER.
            L_DELIMITER_OFFSET = L_OFFSET.
            L_DELIMITER_BYTES = L_BYTES.
            "remember character in front of delimiter:
            L_PREVIOUS_CHAR = L_LAST_CHAR.
          ENDIF.
        ENDIF.
        L_OFFSET = L_OFFSET + L_BYTES.
      ENDWHILE.
      IF NOT L_DELIMITER IS INITIAL.
        L_OFFSET = L_DELIMITER_OFFSET + L_DELIMITER_BYTES.
        L_FILE = PATH2+L_OFFSET.
        IF L_PREVIOUS_CHAR = ':' OR L_DELIMITER = ':'.
          "path ends with or after drive identifer, include the delimiter
          L_DIR = PATH2(L_OFFSET).
        ELSEIF NOT L_DELIMITER_OFFSET IS INITIAL.
          "do not include a trailing delimiter for compatibility reasons
          L_DIR = PATH2(L_DELIMITER_OFFSET).
        ELSE.
          CLEAR L_DIR.
        ENDIF.
      ELSE.
        L_DIR = SPACE.
        L_FILE = PATH2.
      ENDIF.
      FILE_PATH = L_DIR.
      FILE_NAME = L_FILE.
    * -- set new file_path to SAP memory                                -- *
      FILE_PATH_LENGTH = STRLEN( FILE_PATH ).
      IF FILE_PATH <> SPACE AND FILE_PATH_LENGTH < 250.
        FILE_PATH_MEMORY = FILE_PATH.
        SET PARAMETER ID 'OAP' FIELD FILE_PATH_MEMORY.
      ELSE.
        FILE_PATH_MEMORY = SPACE.
        SET PARAMETER ID 'OAP' FIELD FILE_PATH_MEMORY.
      ENDIF.
    * -- data declaration ------------------------------------------------ *
      DATA:
            SINGLE_C TYPE C.
      CLEAR: SINGLE_C.
      LENGTH = STRLEN( FILE_NAME ).
      IF LENGTH > 0.
        WHILE LENGTH > 0.
          SINGLE_C = FILE_NAME+LENGTH(1).
          IF SINGLE_C CO '.'.
            LENGTH = LENGTH + 1.
            EXIT.
          ELSE.
            LENGTH = LENGTH - 1.
          ENDIF.
        ENDWHILE.
        IF LENGTH > 0.
          FILE_EXTENSION = FILE_NAME+LENGTH.
        ELSE.
          FILE_EXTENSION = SPACE.
        ENDIF.
      ELSE.
        FILE_EXTENSION = SPACE.
      ENDIF.
      IF FILE_EXTENSION <> SPACE.
        SET LOCALE LANGUAGE SY-LANGU.
        TRANSLATE FILE_EXTENSION TO UPPER CASE.              "#EC TRANSLANG
        SET LOCALE LANGUAGE SPACE.
      ENDIF.
    * TR001++
      DATA: I_TOADV TYPE TABLE OF TOADV.
      DATA: WA_TOADV TYPE TOADV.
      DATA: OBJECT TYPE SAEOBJART.
      SELECT * FROM TOADV INTO CORRESPONDING FIELDS OF TABLE
              I_TOADV WHERE STANDARD = 'X'.
      DELETE I_TOADV WHERE AR_OBJECT CS 'BDS' OR AR_OBJECT CS 'ZSEST'.
      READ TABLE I_TOADV INTO WA_TOADV WITH KEY DOC_TYPE = FILE_EXTENSION.
    * -- get name and description for the document                      -- *
      CLEAR: COMPID,
             DESCRIPTION,
             VERSION_NR,
             MODIFY_FLAG,
             COMPID_FLAG,
             ATTRI_FLAG,
             TITLE_FLAG.
      COMPID_FLAG    = ' '.              " -> compid can't be changed
      MODIFY_FLAG    = 'S'.              " -> popup in save modus
      ATTRI_FLAG     = 'X'.              " -> attri's can be changed
      COMPID         = FILE_NAME.
      VERSION_NR     = '00000001'.
      VERSION_LANGU2 = SY-LANGU.
      TITLE_FLAG     = '1'.              " -> BDN
    * -- get the mimetype of the docuclass                              -- *
    *PERFORM MIMETYPE_GET(OAALL) USING FILE_EXTENSION
    *                            CHANGING I_TOADD.
      DATA: I_DOCUMENTCLASS TYPE TOADD-DOC_TYPE.
      MOVE FILE_EXTENSION TO I_DOCUMENTCLASS.
      SET LOCALE LANGUAGE SY-LANGU.
      TRANSLATE I_DOCUMENTCLASS TO UPPER CASE.               "#EC TRANSLANG
      SET LOCALE LANGUAGE SPACE.
      SELECT SINGLE * FROM TOADD INTO I_TOADD WHERE
                                 DOC_TYPE EQ I_DOCUMENTCLASS.
      IF SY-SUBRC NE 0.                    " nothing found -> default!
        I_TOADD-DOC_TYPE = I_DOCUMENTCLASS.
        I_TOADD-MIMETYPE = 'application/x-docType'.             "#EC NOTEXT
      ENDIF.
      MOVE I_TOADD-MIMETYPE TO MIMETYPE.
    * -- fill file and signature structure                              -- *
      CLEAR: I_FILES, I_SIGNATURE.
      REFRESH : I_FILES, I_SIGNATURE.
      DESCRIPTION = FILE_NAME.
      FILES-DOC_COUNT = 1.
      FILES-DIRECTORY = FILE_PATH.
      FILES-FILENAME  = FILE_NAME.
      FILES-MIMETYPE  = MIMETYPE.
      APPEND FILES TO I_FILES.
    * -- fill components and signature structure                        -- *
      COMPONENTS-DOC_COUNT  = 1.
      COMPONENTS-COMP_COUNT = 1.
      COMPONENTS-MIMETYPE   = MIMETYPE.
      COMPONENTS-COMP_ID         = FILE_NAME.
      APPEND COMPONENTS TO I_COMPONENTS.
      SIGNATURE-DOC_COUNT  = 1.
      SIGNATURE-PROP_NAME  = 'BDS_DOCUMENTCLASS'.
      SIGNATURE-PROP_VALUE = FILE_EXTENSION.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME = 'BDS_CONTREP'.
    *IF BDS_DOCTYPE_LIST-CONTREP = SPACE.
      SIGNATURE-PROP_VALUE = ' '.                               "#EC NOTEXT
    *ELSE.
    *  I_SIGNATURE-PROP_VALUE = BDS_DOCTYPE_LIST-CONTREP.
    *ENDIF.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'BDS_DOCUMENTTYPE'.
      SIGNATURE-PROP_VALUE = WA_TOADV-AR_OBJECT. "'ZSRVCXLS'."TR001+
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'DESCRIPTION'.
      SIGNATURE-PROP_VALUE = DESCRIPTION.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'LANGUAGE'.
      SIGNATURE-PROP_VALUE = VERSION_LANGU.
      APPEND SIGNATURE TO I_SIGNATURE.
      CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREA_TAB'
        EXPORTING
    *   LOGICAL_SYSTEM        =
          CLASSNAME             = 'BUS2222' "classname_select
          CLASSTYPE             = 'BO'" classtype_select
        CLIENT                = SY-MANDT
          OBJECT_KEY            = OBJECT_KEY
        BINARY_FLAG           = 'X'
    * IMPORTING
    *   OBJECT_KEY            =
        TABLES
          SIGNATURE             = I_SIGNATURE
          COMPONENTS            = I_COMPONENTS
        CONTENT               = I_FILE_CONTENT
    *   ASCII_CONTENT         =
    * EXCEPTIONS
    *   NOTHING_FOUND         = 1
    *   PARAMETER_ERROR       = 2
    *   NOT_ALLOWED           = 3
    *   ERROR_KPRO            = 4
    *   INTERNAL_ERROR        = 5
    *   NOT_AUTHORIZED        = 6
    *   OTHERS                = 7
      COMMIT WORK AND WAIT.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFUNCTION.
    Message was edited by:
            Raja T

Maybe you are looking for

  • The repository URL MASTER IS NOT COMPATIBLE WITH THE JDBC DRIVER

    Hello, I have windows 7 (64 bits), java 7 , OracleXE112_Win32 , ofm_rcu_win_11.1.1.7.0_64_disk1_1of1 ,ofm_odi_win_11.1.1.7.0_32_disk1_1of2 On  install ODI (c:\tmp\DISK1\install\setup.exe)     show message above Starting Oracle Universal Installer ...

  • Inbound delivery creation using VL31N

    Hi All, I could find that the message type DESADV, IDoc type DELVRY01 and process code DELS is used for creation of this. Let me know if this is correct. When i checked in my system I could not find process code DELS. Do i need to do some additional

  • BAPI_MOSRVAPS_SAVEMULTI3 Taking longer time to complete

    I am calling this bapi passing 100k records in the background job and it takes more than 5hrs to complete. Is there any way this run time can be reduced. I cannot slice the file as I need to create the master schedule either all or none. also I tried

  • Why Bean does not ????

    Hi, please clerify me why does Bean class does not implement remote interface. Raj

  • Line break problem

    Hi all, line breaks that i'm giving in text area's text are not been showed by JSP's simple function recordset.getObject(). for instance, if u know PHP...i want a function that perform task similar to nl2br(); desperately waiting for replies. Regards