Creation Idcos using Master_Idoc_distribute

Hi Folks
I am using FM 'Master_Idoc_distribute' to generate Idocs for Idoc type Delvryo3
it has segments e1edl20 in level 2, which is topmost level and other segments in level 3
i used hlevel segnam psgnam fields to assign levels, but whole data is stored in  same level
how to assign this levels in programs so that , data wil be stored in appropriate levels
Cheers
Anil

the following is the developed code for the Same idoc type
Create IDoc Structure.
For Segment E1EDL20
- Set delivery number
  ls_e1edl20-vbeln = lv_arg_1.
- Fill control structure segment E1EDL20
  ls_edidd-segnam = 'E1EDL20'.
  ls_edidd-sdata  = ls_e1edl20.
  APPEND ls_edidd TO lt_edidd.
For Segment E1EDL24
  LOOP AT lt_info_pos INTO ls_info_pos.
  - Set Delivery Item Number and Material
    ls_e1edl24-posnr = ls_info_pos-param_value.
    READ TABLE lt_info_mat
      WITH KEY param_index = ls_info_pos-param_index
      INTO ls_info_mat.
    IF sy-subrc is initial.
      ls_e1edl24-matnr = ls_info_mat-param_value.
    ELSE.
      ls_e1edl24-matnr = ''.
    ENDIF.
  - Fill control structure segment E1EDL24
    ls_edidd-segnam = 'E1EDL24'.
    ls_edidd-sdata  = ls_e1edl24.
    APPEND ls_edidd TO lt_edidd.
  For E1EDL53
  - Reason Code if exsits
    IF lv_reason_code IS NOT INITIAL.
      ls_e1edl53-grund = lv_reason_code.
      READ TABLE lt_info_quan
        WITH KEY param_index = ls_info_pos-param_index
        INTO ls_info_quan .
      IF sy-subrc = 0.
        ls_e1edl53-lfimg_diff = ls_info_quan-param_value.
      ELSE.
        ls_e1edl53-lfimg_diff = '0'.
      ENDIF.
    - Fill control structure segment E1EDL53
      ls_edidd-segnam = 'E1EDL53'.
      ls_edidd-sdata   = ls_e1edl53.
      APPEND ls_edidd TO lt_edidd.
    ENDIF.
  ENDLOOP.
Set IDoc Type'DELVRY03' and Message Type 'STPPOD'
- Fill control structure EDIDD
  ls_edidc-idoctp = 'DELVRY03'.
  ls_edidc-mestyp = 'STPPOD'.
Application interface to the ALE layer on outbound processing side
  CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
    EXPORTING
      master_idoc_control                  = ls_edidc
    OBJ_TYPE                             = ''
    CHNUM                                = ''
    TABLES
      communication_idoc_control           = lt_edidc
      master_idoc_data                     = lt_edidd
   EXCEPTIONS
     error_in_idoc_control                = 11
     error_writing_idoc_status            = 12
     error_in_idoc_data                   = 13
     sending_logical_system_unknown       = 14
     OTHERS                               = 15.
  e_return_code = 0.
  IF sy-subrc <> 0.
    e_return_code = sy-subrc.
  ENDIF.
dont forgot to reward if its helpful
regards,
Surya

Similar Messages

  • Can we get database creation script using any packages?

    Hi Friends,
    we will get table creation script using dbms_metadata.get_ddl package. just like that is there any way to get database creation script? i know that we can add some lines to controlfile trace to convert it into database creation script. but i would like to know whether it is possible through packages?
    thanks in advance.

    I think there's no package to use it for getting database creation script. But anyway, you can search it in [Oracle Database PL/SQL Packages and Types Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • One Time recover media creation allows use of SDCard

    One Time recover media creation allows use of SDCard  yet on the HP Envy Spectre There is no option in the bios to boot from media card.
    Am I missing something?

    Yes. Use USB thumbdrive or DVD disks to create your recovery media.  Since it is a one time operation it is wise to use a media that is known to work.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Collective inbound idocs into R/3 system using master_idoc_distribute FM

    Hi All,
    I want to process inbound idocs (4 idocs collectively) in R/3 using master_idoc_distribute function module. The idoc is coming into system as one idoc having 4 segments (each segment for each idoc and contains sub segments too). I want to call master_idoc_distribute for each idoc for sending it to external system. I am using a custom FM for calling the master_idoc_distribute and assigning it into process code inbound for processing the incoming idoc.
    The FM is working for one idoc perfectly but throwing error for more than idocs coming in collectively. Any help is appreciated.
    Thanks

    use commit work saparately after each function module call

  • Sample triggering prografor outbound using'MASTER_IDOC_DISTRIBUTE'

    Hi
    Can anyone send me the code for triggering program for outbound idoc using 'MASTER_IDOC_DISTRIBUTE' .
    Regards
    Rinku.

    Hi ,
    FORM sub_send_delivery USING ent_retco ent_screen.
    Put the control data to the IDoc control record
      idoc_control-mestyp = c_message_type.     " message type
      idoc_control-idoctp = c_base_idoc_type.    "basic idoc type
      idoc_control-cimtyp = c_extended_type.     " extended type
    idoc_control-mescod = c_mes_code.          "message code
    *Partner information
      idoc_control-rcvpor = c_port_no.       "port number of receiver
      idoc_control-rcvprn = c_part_num.      "partner number of receiver
      idoc_control-rcvprt = c_part_type.     "partner type of receiver
    Generate data record
      CALL FUNCTION 'IDOC_OUTPUT_DELVRY'
        EXPORTING
          object                        = nast
          control_record_in             = idoc_control
        TABLES
          int_edidd                     = t_idoc_data
        EXCEPTIONS
          error_message_received        = 1
          data_not_relevant_for_sending = 2
          OTHERS                        = 3.
    Send IDOC generated to partner
      IF sy-subrc EQ 0.
        CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
          EXPORTING
            master_idoc_control            = idoc_control
          TABLES
            communication_idoc_control     = t_comm_control
            master_idoc_data               = t_idoc_data
          EXCEPTIONS
            error_in_idoc_control          = 1
            error_writing_idoc_status      = 2
            error_in_idoc_data             = 3
            sending_logical_system_unknown = 4
            OTHERS                         = 5.
    IDOC passed to the partner
        IF sy-subrc EQ 0 .
    Clear status variable
          CLEAR ent_retco.
         MESSAGE s001(zm) with t_comm_control-docnum .
              CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
                EXPORTING
                  msg_arbgb = syst-msgid
                  msg_nr    = syst-msgno
                  msg_ty    = 'S'
                  msg_v1    = syst-msgv1
                  msg_v2    = syst-msgv2
                EXCEPTIONS
                  OTHERS    = 0.
    IDOC not passed successfully
        ELSE.
          ent_retco = '800'.
           MESSAGE s001(zm).
          CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
            EXPORTING
              msg_arbgb = syst-msgid
              msg_nr    = syst-msgno
              msg_ty    = 'E'
              msg_v1    = syst-msgv1
              msg_v2    = syst-msgv2
            EXCEPTIONS
              OTHERS    = 0.
          EXIT.
        ENDIF.
    IDOC not created successfully
      ELSE.
        ent_retco = '800'.
        MESSAGE s001(zm).
        CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
          EXPORTING
            msg_arbgb = syst-msgid
            msg_nr    = syst-msgno
            msg_ty    = 'E'
            msg_v1    = syst-msgv1
            msg_v2    = syst-msgv2
          EXCEPTIONS
            OTHERS    = 0.
        EXIT.
      ENDIF.
    clear ent_retco.
    ENDFORM.                    "Send_Delivery

  • Valid size not available for this creation when using Greeting Card feature

    Using PSE9 with a Mac.  When attempting to create a greeting card, after selecting the photo, the Greeting Card, I receive a pop up error message as follows:
    "Valid Size Not Available For This Creation".  (All other Create functions such as Photo Book, Photo Calendar, and Photo Collage appear to be working).  I have been in contact with Adobe Support and have been instructed to do a number of things from creating a new preferences file to uninstalling and re-installing the PSE software, with no result.  Has anyone else run into this problem, and if so have found a fix?  Thanks.

    I've been tearing my hair out over this one also. I've been on hold for over 10 hrs with Adobe Support waited over almost 2 weeks and still no resolution. I'm trying to create the Save the Date cards for my wedding and I can't wait for Adobe. Removing the preferences file and uninstalling/reinstalling does not fix the problem.
    That said I did figure out a workaround for this. It's easy but it does require Windows. For me this was no big deal as I do own a Windows box.
    Get the free trial version of PE9 for Windows and install it. If you don't have a Windows computer get to a friend that has one
    Upload some of your photos to the PE9 Windows Organizer (it's identical to the mac version)
    Select Create and then Greeting card. Photoshop will launch the guided edit feature for greeting cards.
    Select the Layout feature and once you find out that you like save it as Photoshop project. Repeat this step for as many layouts as necessary.
    Copy your Photoshop project files (and any folders) to your mac.
    Open the project files as you would with any other Photoshop file.
    You can now select the Create feature. You will be able add your pictures and resize them, you will be able to add/remove text, you'll be able to change the backgound/borders, add graphics...pretty much anything...EXCEPT automatically modify the layout. If you click on Layout, PE9 returns nothing. You can however go into full edit mode and if you have decent Photoshop skills you can make any changes to the layout manually.
    If I had to put money on this I'd say that there is a problem with the PE9 Mac installation package. For some reason it is not deploying the layout data/files or it is not putting them in the right place. For this reason the program can't find the layouts when the user selects the greeting card guided edit.
    Good luck.

  • OIM 11g R2 installation Issue. OIM Schema creation failed using RCU 11.1.2

    I have been trying to install OIM 11g R2 on a Windows server 2008 R2 64 Bit and have been encountering the following error during the OIM schema creation. The other schemas, such as Metadata, SOA, user messaging services and other associated schema creation was successful. But, the OIM schema creation was taking more than 2 minutes and finally it fails with the below error.
    RCU-6130: Action failed
    RCU-6135: Error while trying to execute java action.
    Components used:
    OS: Windows Server 2008 R2 64 Bit
    DBS: 11gR2 (11.2.0.1)
    RCU: 11.1.2
    The first error occured was ora-12637 packet receive failed followed by Table or View does not exist. I could not fetch much information from the oim and rcu.log.
    I have set the processes, open_cursors and session_cached_cursors as suggested in the preinstallation step of OIM 11g R2 installation.
    Any pointers on this will be highly appreciated.
    Thanks,
    Srini

    Copy the msvcr71.dll file from rcuHome\jdk\jre\bin inside rcu installer and paste it in C:\Windows\SysWOW64.
    Try running the rcu again with the new user i.e. instead of DEV_OIM, run it with DEV_OIM1.
    Or drop the DEV_OIM user first and then use the same user.

  • TSW-Ticket Creation & Actualization using BDC

    Hi,
    I am using BDC for Ticket creation using transaction O4TEN.
    After execution of this BDC, Ticket get created and Saved but it does not actualize ticket even if we click actualize button using BDC.
    In real scenario, after ticket creation the status and substatus values should be "C"(Planned) and "6" (Complete) but in this case the status and substatus values are "B"(Checked) and "4"(Positive).
    If we create ticket directly using O4TEN then it actualizes ticket properly.
    I am not able to find out why BDC is not actualizing tickets.
    Any idea?
    Regards,
    Umesh

    Hi,
    I tried BDC for SAVE but still not getting Ticket Key.
    So now I am using FM: OIJ_EL_A_TICKETS_MAINTAIN_N.
    It creates ticket but in Ticket Item table Ticket item field is blank. Purpose is blank.
    Also OIJ_EL_TKT_I_O1 and OIJ_EL_TKT_I_O2 are not populated.
    In header I am passing: TICKET_PURPOSE, TICKET_TYPE, UPDKZ = 'I'
    and In item I am passing: NOMNR, NOMTK, NOMIT, MENGE, MEINS, TIME_ST_LOAD_STA, TIME_ST_LOAD_END, BUDAT UPDKZ = 'I'.
    am I missing something?
    Code is as follows:
    Replace BDC with function module: OIJ_EL_A_TICKETS_MAINTAIN_N
    1) Call FM: OIJ_EL_A_TICKETS_MAINTAIN_N
    2) Call FM: ENQUEUE_E_OIJTKT
    3) Call FM: OIJB_GENERATE_DOCUMENTS_N
    4) Call FM: DEQUEUE_E_OIJTKT
      DATA: ls_tkt_h            TYPE roij_el_ticket_hvb,
            ls_tkt_i            TYPE roij_el_ticket_i_io,
            ls_oijnomi          TYPE oijnomi,
            ls_roijnomiio       TYPE roijnomiio,
            ls_ticket_item      TYPE oij_el_ticket_i,
            ls_ticket_item_o1   TYPE oij_el_tkt_i_o1,
            ls_ticket_item_o2   TYPE oij_el_tkt_i_o2,
            ls_ticket_header_pv TYPE oij_el_ticket_h,
            ls_ticket_header    TYPE oij_el_ticket_h,
            ls_tkt_i_o1         TYPE oij_el_tkt_i_o1,
            ls_tkt_i_o2         TYPE oij_el_tkt_i_o2.
      DATA: lv_time             TYPE sy-uzeit.
      DATA: it_tkt_i            TYPE roij_el_ticket_i_io_t,
            it_tkt_h_evt        TYPE roijte_t,
            it_tkt_h_evt_txt    TYPE oij_txt,
            it_tkt_i_evt        TYPE roijte_t,
            it_tkt_i_evt_txt    TYPE oij_txt,
            it_tkt_i_o1         TYPE roij_el_tkt_i_o1_t,
            it_tkt_i_o2         TYPE roij_el_tkt_i_o2_t,
            it_tkt_err_log      TYPE oij_el_err_log_tt,
            it_tkt_doc_flow     TYPE roij_el_doc_flow_io_t,
            it_return           TYPE bapiret2_t,
            it_oijnomh          TYPE oijnomh_t,
            it_oijnomi          TYPE oijnomi_t,
            it_ticket_item      TYPE STANDARD TABLE OF oij_el_ticket_i,
            it_ticket_item_o1   TYPE STANDARD TABLE OF oij_el_tkt_i_o1,
            it_ticket_item_o2   TYPE STANDARD TABLE OF oij_el_tkt_i_o2.
      ls_tkt_h-ticket_purpose = '1'.
      ls_tkt_h-ticket_type = lv_ticket_type.
      IF lv_ticket_type EQ c_yp2.
      If Ticket type is YP2 then
        ls_tkt_h-yy_mct_cat = fp_mct_cat.
      ENDIF.
      ls_tkt_h-yy_pat_alc = lv_alloc_rule.
      ls_tkt_h-updkz = 'I'.
      ls_tkt_i-nomnr = fp_s_tc1-nomnr.
      ls_tkt_i-nomtk = fp_s_tc1-nomtk.
      ls_tkt_i-nomit = fp_s_tc1-nomit.
      ls_tkt_i-menge = lv_menge.
      ls_tkt_i-meins = fp_s_tc1-units.
      CLEAR ls_oijnomi.
      SELECT SINGLE * FROM oijnomi INTO ls_oijnomi
             WHERE nomtk = fp_s_tc1-nomtk
               AND nomit = fp_s_tc1-nomit.
      IF sy-subrc EQ 0.
        MOVE-CORRESPONDING ls_oijnomi TO ls_roijnomiio.
      ENDIF.
      PERFORM get_timestamp USING    fp_sdate
                                     lv_time
                                     ls_roijnomiio
                            CHANGING ls_tkt_i-time_st_load_sta.
      PERFORM get_timestamp USING    fp_edate
                                     lv_time
                                     ls_roijnomiio
                            CHANGING ls_tkt_i-time_st_load_end.
      CONCATENATE lv_budat(4) lv_budat5(2) lv_budat8(2) INTO ls_tkt_i-budat.
      ls_tkt_i-updkz = 'I'.
      APPEND ls_tkt_i TO it_tkt_i.
      CALL FUNCTION 'OIJ_EL_A_TICKETS_MAINTAIN_N'
        EXPORTING
          is_tkt_header           = ls_tkt_h
        IT_HEADER_EVT           =
        IT_HEADER_EVT_TXT       =
          it_items                = it_tkt_i
        IT_ITM_EVT              =
        IT_ITM_EVT_TXT          =
        IT_ITM_O1               =
        IT_ITM_O2               =
        IT_TKT_ERROR_LOG        =
          it_tkt_doc_flow         = it_tkt_doc_flow
          iv_commit               = 'X'
        IV_LOCK                 =
        IV_ADD_TO_LOG           =
        IV_CALL_TO_OUTPUT       =
        IMPORTING
          es_tkt_header           = ls_tkt_h
        ET_HEADER_EVT           = it_tkt_h_evt
        ET_HEADER_EVT_TXT       = it_tkt_h_evt_txt
          et_items                = it_tkt_i
        ET_ITM_EVT              = it_tkt_i_evt
        ET_ITM_EVT_TXT          = it_tkt_i_evt_txt
          et_itm_o1               = it_tkt_i_o1
          et_itm_o2               = it_tkt_i_o2
        ET_TKT_ERROR_LOG        = it_tkt_err_log
          et_tkt_doc_flow         = it_tkt_doc_flow
          et_return               = it_return
        EXCEPTIONS
          ticket_locked           = 1
          OTHERS                  = 2
      IF sy-subrc NE 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        COMMIT WORK AND WAIT.
    Lock the ticket
    There is no check neccessary if the ticket has already
    been locked by an other user because it has just been
    created.
        CALL FUNCTION 'ENQUEUE_E_OIJTKT'
          EXPORTING
            mode_oij_el_ticket_h = 'E'
            mandt                = sy-mandt
            ticket_key           = ls_tkt_h-ticket_key
            ticket_version       = ls_tkt_h-ticket_version
            ticket_purpose       = ls_tkt_h-ticket_purpose
          EXCEPTIONS
            foreign_lock         = 1
            system_failure       = 2
            OTHERS               = 3.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'OIJB_GET_NOMINATION_DATA'
        EXPORTING
        ACTIVITY                     =
          is_ticket_header             = ls_tkt_h
          is_ticket_item               = ls_tkt_i
        IV_ADD_TO_LOG                =
        CHANGING
          ct_oijnomh                   = it_oijnomh
          ct_oijnomi                   = it_oijnomi
        RETURN                       =
        EXCEPTIONS
          ticket_data_error            = 1
          no_nomination_selected       = 2
          OTHERS                       = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ls_ticket_header = ls_tkt_h.
      LOOP AT it_tkt_i  INTO ls_tkt_i.
        MOVE-CORRESPONDING ls_tkt_i TO ls_ticket_item.
        APPEND ls_ticket_item TO it_ticket_item.
      ENDLOOP.
      LOOP AT it_tkt_i_o1 INTO ls_tkt_i_o1.
        MOVE-CORRESPONDING ls_tkt_i_o1 TO ls_ticket_item_o1.
        APPEND ls_ticket_item_o1 TO it_ticket_item_o1.
      ENDLOOP.
      LOOP AT it_tkt_i_o2 INTO ls_tkt_i_o2.
        MOVE-CORRESPONDING ls_tkt_i_o2 TO ls_ticket_item_o2.
        APPEND ls_ticket_item_o2 TO it_ticket_item_o2.
      ENDLOOP.
      CALL FUNCTION 'OIJB_GENERATE_DOCUMENTS_N'
        EXPORTING
          i_ticket_header                = ls_ticket_header
          i_ticket_header_pv             = ls_ticket_header_pv
        I_CLOSE_SHIPMENT               = ' '
        TABLES
          t_ticket_item                  = it_ticket_item
          t_ticket_item_o1               = it_ticket_item_o1
          t_ticket_item_o2               = it_ticket_item_o2
        T_TICKET_ITEM_PV               =
        T_TICKET_ITEM_O1_PV            =
        T_TICKET_ITEM_O2_PV            =
          t_oijnomh                      = it_oijnomh
          t_oijnomi                      = it_oijnomi
        T_DOC_FLOW                     =
        T_ERR_LOG                      =
        T_REVERSAL_DOCS                =
        T_ORIGINAL_DOCS                =
        T_TICKET_SUBITEM               =
        EXCEPTIONS
          error_during_cip_process       = 1
          error_during_checks            = 2
          nomination_lock_error          = 3
          nomination_read_error          = 4
          cip_process_read_error         = 5
          OTHERS                         = 6
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        COMMIT WORK AND WAIT.
      ENDIF.

  • Need links for creation varaibles using different processing types....

    Hi All,
    can you provide me   links for creation of variables  using diiferent processing types...
    it would be grateful if you  peovide any links which covers all most all the topics in bi reporting....
    Thanks All.

    Hi,
    Pl refer to following link as well
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0b25093-b548-2e10-0cba-fcac7890585f?QuickLink=index&overridelayout=true
    Customer exit for text variables
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d343131313235%7d
    http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d313535373530%7d
    Thanks and regards
    Kiran

  • Can I script the changing of creation date, using the file name?

    Normally people are doing this in reverse, but let me paint the picture.
    I pulled 204 video files from an old HDD based JVC camera.  JVC records in .MOD format which iPhoto won't import.  I imported them into iMovie just fine, and iMovie even set the file name to clip-2007-11-04 04;42;29.mov which is great, but it now has a new creation date of whatever date I imported it.  Which then causes problem when I want the videos stored in iPhoto and sorted appropriately by creation date.
    I've used the application "A Better Finder Attributes 5" to individually edit the creation and modify, but I'm sure I don't want to do this 203 more times, as you can't just type in the date and time, you have to type in each part of the date/time, or select it on a calendar.
    I've used the application "Name Changer" to batch convert the file names to the format YYYYMMDDhhmm which would be helpful if I were going to use the terminal command touch -t, but again I don't want to have to type it in 203 more times, plus drag and drop the file into finder to populate the location.
    Now, if I were more handy with automator, or maybe some (any) scripting language this would be easy peasy.  I'd batch rename all the files to the YYYYMMDDhhmm.mov and then have a script that just took the file name, passed that to touch -t along with the file location, and a few seconds later, they would all be done!
    Anybody have any suggestions to how I can do this, and tips to what commands to use or ANY advice?  I'm more than happy to RTFM, but I have no idea which manual to read!
    Thanks

    If your file names are precisely as you have written, this script will do what you want.
    Copy the script into an AppleScript Editor document, select one or more files in a Finder window, return to the AS Editor and press Run.  Note: you will need to provide your password when the script runs.
    Make sure you have a backup of any files you are working on (try using duplicates first, perhaps). The script has no error handling.
    tell application "Finder"
              set FileList to selection
              repeat with theFile in FileList
                        set fileName to name of theFile
                        set filePath to quoted form of (POSIX path of (theFile as alias))
                        set crYear to text 6 thru 9 of fileName
                        set crMonth to text 11 thru 12 of fileName
                        set crDay to text 14 thru 15 of fileName
                        set crHour to text 17 thru 18 of fileName
                        set crMins to text 20 thru 21 of fileName
                        set crDate to crYear & crMonth & crDay & crHour & crMins
                        set shellString to "touch -t " & crDate & " " & filePath
      do shell script shellString with administrator privileges
              end repeat
    end tell

  • Changing the Content of a Document at creation time using Java

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

  • How to filter tasks on the Creation date using the IWorklist API in Java

    Hi all,
    I'm currently developing a java gui application to display usertasks set by the BPM.
    I use the WorkList API to communicate with the TaskActionActionHandler.
    I only want the tasks that has a creation that is after a specified date. Therefore I add a filter. The code for retrieving the usertasks now becomes:
    Map filterMap = new HashMap();
    SimpleDateFormat d = new SimpleDateFormat("dd-mm-yyyy");
    Date date = d.parse((String) dForm.get("filterdate"));
    Calendar cal = Calendar.getInstance();
    cal.setTime(date);
    filterMap.put(IWorklistService.FILTER_TYPE_CREATE_DATE_FROM_FILTER,
    cal);
    RemoteWorklistServiceClient client = new RemoteWorklistServiceClient();
    client.init();
    IWorklistContext ctx = client.authenticateUser(user, password);
    List tasks = client.getWorklistTasks(ctx, filterMap,
    IWorklistService.SORT_FIELD_TASK_TITLE,
    IWorklistService.SORT_ORDER_ASCENDING);
    You can see from the above code-fragment that I specify a FILTER_TYPE_CREATE_DATE_FROM_FILTER filter that is given a Calendar object. This is not working properly. Also a Date value gives a runtime error.
    The error I get is :
    ORABPEL-10150 Worklist Service Task List Error. An error occured in the Worklist Service while retrieving the task list for user jcooper. Check the task filter criterion and the error stack and fix the cause of the error. Contact oracle support if error is not fixable. at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1602) at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553) at
    Can anyone tell me what kind of dateformat I have to specify for the filter option FILTER_TYPE_CREATE_DATE_FROM_FILTER?
    Thanks in advance!
    Tom

    Hi,
    Enter the format that you have defined in the configuration of the property in the Additional Metadata parameter. Use the syntax customFormat=<pattern>.
    In this link, you have at the end screenshots where to navigate in KM to see the property metadatas of your property:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf
    Here see the Defenitions of the KM Metadata Properties:
    https://wiki.sdn.sap.com/wiki/display/KMC/DefenitionsoftheKMMetadata+Properties
    Regards,
    Praveen Gudapati

  • How to view creation date using 'ls' command?

    Hi all,
    Anyone know how to get the 'ls' command to display creation date? When I do 'ls -la' I get the mod date, but cannot figure out how to view the creation date.
    Thanks!
      Mac OS X (10.4.2)  

    While there is NO way to do this as ls will only show the mod time there is using another program
    DL this HFSDebug.
    Running it on any file will display to you Create, Mod and access times. An example for you
    sudo hfsdebug /usr/local/bin/hfsdebug\ 2.04\ BETA\ G5
    path = Firefly:/usr/local/bin/hfsdebug 2.04 BETA G5
    # Catalog File Record
    type = file
    file ID = 20112378
    flags = 0000000000001010
    . File has a thread record in the catalog.
    . File has security data (ACLs).
    reserved1 = 0
    createDate = Wed Dec 14 00:57:14 2005
    contentModDate = Wed Dec 14 00:57:14 2005
    attributeModDate = Wed Dec 14 00:57:14 2005
    accessDate = Thu Dec 15 20:42:53 2005
    backupDate = Fri Jan 1 00:00:00 1904
    # BSD Info
    ownerID = 0 (root)
    groupID = 20 (staff)
    adminFlags = 00000000
    ownerFlags = 00000000
    fileMode = -rwxr-xr-x
    linkCount = 0
    textEncoding = 0
    attrBlocks = 0
    # Finder Info
    fdType = 0
    fdCreator = 0
    fdFlags = 0000000000000000
    fdLocation = (v = 0, h = 0)
    opaque = 0
    # Data Fork
    logicalSize = 121744 bytes
    totalBlocks = 30
    fork temperature = not a hot file
    clumpSize = 101 bytes
    extents = startBlock blockCount % of file
    0x362cd4 0x1e 100.00 %
    30 allocation blocks in 1 extents total.
    30.00 allocation blocks per extent on an average.
    # Resource Fork
    logicalSize = 0 bytes
    Enjoy!
    Peter
    PowerMac G5 DP 2.5Ghz   Mac OS X (10.4.3)  

  • Creation date used during ingest File Rename incorrect

    Hi
    System:
    Windows 7 64-bit SP1
    Prelude CC v2.0.1 (118)
    I've been using Prelude about 9 months now and have got used to it's foibles.  Hopefully some of these are being addressed for future releases.
    But the recent update seems to have introduced some problems that I didn't notice in previous versions.
    My query is on the new File Rename feature (the lower part of the Ingest panel).
    I have a preset for renaming my clips.  I want to rename using:
    Custom Text - I type this in depending on which location
    Date - I select DDMMYY Creation Date
    Auto Increment - (01)
    I have two issues using this preset, it could be me idk.
    The first is that the Creation Date appears as today's date, not the one from the file as I would understand it.  I would prefer it to pick up the actual Creation Date as it shows in the Metadata of the clip and also the time (i know this has already been suggested by an FCP user).
    The second is that If i rename a batch of files using the Auto Increment and then decide I want to add some more footage shot at a later date but maybe the same location.   I already have for example files labelled location_01 to location_15.  Now i want to ingest some more but starting at location_16.  Currently, I can't change the AutoIncrement field setting as you can in Bridge CC. 
    How I wish u could just implement the Batch rename features of Bridge in Prelude.  I am trying to switch from Bridge as it doesn't play nicely with video on my system.  It's a pain.  I love Prelude but can u please improve the renaming function.
    If the creation date was correct the auto increment feature would not be an issue because the files would be named differently.  As it is, ingesting tons of footage on the same day results in chaos.  Having to remember to manually change the date (I have it as a Custom Text field) is a nightmare and I can see forgetting to do it then it will be a mess.
    Perhaps my workflow is slightly different to someone who works in say TV but it would be nice when I know the features present in Bridge applied to all the other Suite apps.
    Any pointers would be REALLY useful because this is driving me insane at the moment.  And you guys are understandably reluctant to release details of future changes and features, so who knows you could be working on it right now.
    Thanks
    Just found there is another post asking more or less the same but no comments
    http://forums.adobe.com/message/5823964#5823964
    Message was edited by: GraphiteGal

    I'd like to second the request to be able to change the starting value of the auto increment function when ingesting in Prelude CC. 
    If I'm ingesting batches of footage either from different cards or at different times, it creates a mess of both manual file renaming in Finder (or batch renaming—same issue of additional, unnecessary work) and also (sometimes?) getting "file ingest error" messages from Prelude because I've already imported a file with the Custom_Text_(01) name.
    For anyone else with the same issue: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Thanks!

  • Restrict IDoc creation by using deactivate change pointers

    Hi Experts,
    I am trying to restrict the creation of IDOCS by deactivate the change pointers from a ztable. if the record in ztable and BDCP table match then i should deactivate the change pointer. And restrict the creation of Idocs.
    pls, suggest me soon... its urgernt.......
    Regards,
    CHK

    Maybe using program RBDCPCLR to delete change pointers you don't want to use?

Maybe you are looking for

  • Nested tables and multiset operators in Oracle 10g

    Consider the following scenario: We have two identical relations R and S defined as: CREATE TABLE R( a INTEGER, b table_type) NESTED TABLE b STORE as b_1; CREATE TABLE S( a INTEGER, b table_type) NESTED TABLE b STORE as b_2; where table_typ is define

  • Add Multiple records to G/L account group.

    Dear ABAP Experts, i have requirement that is using  BDC recording file  the Functional People wants to add records to the G/L Account group. The FI consultant gave the recording file, based on the recording file i developed a BDC program. This BDC p

  • Bank to Bank transfer of funds

    Hi, How do we process bank to bank transfer of funds in SAP? I mean automatic instructions from the sending bank to receiving bank and subsequent accounting entries.  (same company code) transfer of funds from one bank account to another bank account

  • Re: unable to update Premiere 2014 to 2014.1 (8.1) on PC (Windows 8.1). CC says it is 'up-to-date'

    I am having the same problem PP will not update from 8.0 to 8.2. i do see in the install logs that updater has attempted to install 8.2 so there must be an error somewhere. that said, am i correct in understanding the only fix is manually uninstallin

  • Tree alignment

    Apex 3.1.1 Hello, I have an example of a tree on page 6 of my sample application [http://apex.oracle.com/pls/otn/f?p=23292:1]. The alignment of the nodes works fine as long as I only have two levels (parent/child), but when I expand the levels to inc