Dynamic Data: Character Type Declaration

Hello Experts,
I would like to get your feedback regarding declaration of a character type field with dynamic length?
For example, I would like to declare data like: char(size) type c, where size is dynamic.
How can I do this? Thanks in advance.
Regards,
Jerome

Hi,
DATA r_elemdescr TYPE REF TO cl_abap_elemdescr.
r_elemdescr ?= cl_abap_elemdescr=>describe_by_name( 'DATA_ELEMENT_HERE' ).
DATA r_field TYPE REF TO data.
FIELD-SYMBOLS <field> TYPE ANY.
CREATE DATA r_field TYPE HANDLE r_elemdescr.
ASSIGN r_field->* TO <field>.
<field> = .....
now <field> is your dynamic field value
Regards,
Ravi

Similar Messages

  • Dynamic Data Type declaration from Parameter value

    Hi,
      I have a silly question..
    Is it possible to dynamically declare a variable based on the contents of a parameter...like:
    Tables: RSDUPD.
    Parameter: p_Daty like RSDUPD-DATU
    Data: l_last_day like (p_Daty)
    Thanks

    ok....thanks for the answer but its time to make the question harder. 
    I have the following code:
    DATA: it_query_results TYPE REF TO data.
    PARAMETER: prxy_cls(30).
    CREATE DATA it_query_results TYPE STANDARD TABLE OF (prxy_cls).
    ASSIGN it_query_results->* TO <l_it_query_result>.
    ....I do all sorts of processing with <l_it_query_result>.....then
    CALL METHOD o_query_result->execute_asynchronous
        EXPORTING
           output = <l_it_query_result>.
    only problem is method execute_asynchronous doesnt expect a type ref and only expects table type ZBWCOPA9030V00_QUERY_RESULT1...which is what I am entering in the parameter prxy_cls..
    need help badly..
    thanks

  • Unicode  - "DMBTR" must be a character-type field (data type C,N,D or T)

    Greetings Experts!
    I am trying to convert legacy code to Unicode for a current ERP6.0 reinstallation and have encountered the syntax error "DMBTR" must be a character-type field (data type C,N,D or T)
    The field is part of a structure and the fields attributes are as follows:
    COMPONENT = DMBTR     
    COMPONENT TYPE = DMBTR     
    DATA TYPE = CURR     
    LENGTH = 13     
    DECIMALS = 2     
    DESCRIPTION = Amount in Local Currency
    The code in question is as follows:-
    macro Move_Zoned.
    Converts a numeric variable to zoned format and moves it to a
    target variable.
    DEFINE move_zoned.
         &1 - source variable
         &2 - Number of Decimal Places
         &3 - 'To'
         &4 - Target Variable.
      write &1 to w_zoned no-grouping decimals &2.
      condense w_zoned.
         Remove the Decimal Points.
      search w_zoned for '...'.
      while sy-subrc = 0.
        move sy-fdpos to w_to_point.
        if w_to_point = 0.
          w_to_point = 1.
        endif.
        compute w_from_point = sy-fdpos + 1.
        concatenate w_zoned+0(w_to_point)
                    w_zoned+w_from_point
               into w_zoned.
        search w_zoned for '...'.
      endwhile.
      shift w_zoned right deleting trailing space.
      translate w_zoned using ' 0'.
      call function 'Z_TRANSLATE_ZONED_DECIMALS'
        exporting
          i_input              = w_zoned
        importing
          i_output             = w_zoned
        exceptions
          x_invalid_zoned_char = c_invalid_zoned_char
          x_numeric_info_lost  = c_numeric_info_lost
          others               = c_other_zoned_error.
         Get the length of the recipient field so we don't truncate the
         numbers....
      describe field &4      length w_flength in character mode.
      describe field &4      type   w_type.
      describe field w_zoned length w_zoned_len in character mode.
      if w_zoned_len <= w_flength.
        move w_zoned to &4.
        shift &4 right deleting trailing space.
        translate &4 using ' 0'.
      else.
            Get the start position....
            If it's a packed field allow for values up to 6 figures
        compute w_zoned_len = w_zoned_len - w_flength.
        if w_type = 'P'.
          subtract 2 from w_zoned_len.
          clear w_type.
        endif.
        move w_zoned+w_zoned_len &3 &4.
      endif.
    END-OF-DEFINITION. "Move_zoned
      LOOP AT t_single_kunnr.
        move_zoned t_single_kunnr-postamt 2
                to t_single_kunnr-dmbtr.
        DIVIDE t_single_kunnr-dmbtr BY 100.
        MODIFY t_single_kunnr.
      ENDLOOP.
    Is there a solution to get past this syntax error as I would rather not change the datatype of the field in the structure.
    Much Obliged
    Elphick.

    Type X is not allowed in Unicode. When a field is declared as Type X with Value u201809u2019 or any other value, it can be resolved by using classes.
    Before Unicode
                      CONSTANTS: c_hex TYPE x VALUE '09'.
    Resolution:
    Itu2019s work for any value of x.
    First a temporary field of Type c should declare. Following class will convert Type x variable into type c.
    Example:
    CONSTANTS: c_hex TYPE x VALUE '09'.
    DATA: LV_TEMP TYPE STRING.
    DATA: LV_TMP TYPE C.
    TRY.
    CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP
    EXPORTING
    UCCP   = c_hex
    RECEIVING
    CHAR   = LV_TMP   .
    CATCH CX_SY_CONVERSION_CODEPAGE.
    CATCH CX_PARAMETER_INVALID_TYPE.
    CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
    ENDTRY.
    CONCATENATE I_OUTPUT-BKTXT I_OUTPUT-BVORG            
    I_OUTPUT-BUDAT I_OUTPUT-MESSAGE INTO
    SEPARATED BY LV_TMP.                      
    I_BUFFER = LV_TEMP.
    CLEAR LV_TEMP.
    CLEAR LV_TMP.
    OR
    Note: It works only for type x value  09.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    CONSTANTS: c_hex TYPE c VALUE
                             abap_char_utilities=>HORIZONTAL_TAB.

  • In 6.0 get error "END_OF_RECORD" must be a character-type data object .....

    Hi All,
    following piece of code was working fine in 4.6 C   but in ECC 6.0 I get the following error:
    "   "END_OF_RECORD" must be a character-type data object (data type C, N,D, T or STRING) .  " 
    I tried type-casting with field symbols but still not able to remove the error.  Cannot convert end_of_record directly to type C as it may hamper the functionality. Plz advice how to remove the error without converting type x to type C
    In the following code :
    DATA:  DELIMITER   TYPE C VALUE   CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
            end_of_record             TYPE x.
    SPLIT data_file_i AT delimiter INTO it_ekko-rtype
                                              it_ekko-ebeln
                                              it_ekko-bsart
                                              it_ekko-lifnr
                                              it_ekko-bedat
                                              it_ekko-ekorg
                                              it_ekko-ekgrp
                                              it_ekko-bukrs
                                              it_ekko-zterm
                                              it_ekko-zbd1t
                                              it_ekko-zbd1p
                                              it_ekko-zbd2t
                                              it_ekko-zbd2p
                                              it_ekko-zbd3t
                                              it_ekko-inco1
                                              it_ekko-inco2
                                              it_ekko-waers
                                              it_ekko-wkurs
                                              it_ekko-kufix
                                              it_ekko-verkf
                                              it_ekko-telf1
                                              it_ekko-ihrez
                                              it_ekko-unsez
                                              it_ekko-angnr
                                              it_ekko-ihran
                                              it_ekko-submi
                                              it_ekko-loekz
                                              end_of_record.
    where all these fields except  " end_of_record " are of character type and  "data_file_i " is a character type structure as defined below:
    DATA :
      BEGIN OF data_file_i OCCURS 0,
        record(1000),
      END OF data_file_i,

    Type X is not allowed in Unicode. When a field is declared as Type X with Value u201809u2019 or any other value, it can be resolved by using classes.
    Before Unicode
                      CONSTANTS: c_hex TYPE x VALUE '09'.
    Resolution:
    Itu2019s work for any value of x.
    First a temporary field of Type c should declare. Following class will convert Type x variable into type c.
    Example:
    CONSTANTS: c_hex TYPE x VALUE '09'.
    DATA: LV_TEMP TYPE STRING.
    DATA: LV_TMP TYPE C.
    TRY.
    CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP
    EXPORTING
    UCCP   = c_hex
    RECEIVING
    CHAR   = LV_TMP   .
    CATCH CX_SY_CONVERSION_CODEPAGE.
    CATCH CX_PARAMETER_INVALID_TYPE.
    CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
    ENDTRY.
    CONCATENATE I_OUTPUT-BKTXT I_OUTPUT-BVORG            
    I_OUTPUT-BUDAT I_OUTPUT-MESSAGE INTO
    SEPARATED BY LV_TMP.                      
    I_BUFFER = LV_TEMP.
    CLEAR LV_TEMP.
    CLEAR LV_TMP.
    OR
    Note: It works only for type x value  09.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    CONSTANTS: c_hex TYPE c VALUE
                             abap_char_utilities=>HORIZONTAL_TAB.

  • Dynamic data declaration refering to local data defined in another program

    Here is the situation:
    The standard program SAPICP__ , SAPICF__ and several other of same series have a form routine REPOSITORY_DEVCLASS_ADD. this subroutine in all SAPI* programs has parameter REPOSITORY of type REPOSITORY (declared as internal table with header lines) and type REPOSITORY is declared with different component in each program.
    Now the problem is that i need to call subroutine REPOSITORY_DEVCLASS_ADD dynamically from my program and so i want to dynamically declare the table REPOSITORY in my program to pass to this subroutine and as program is not yet loaded into memory i have no way to achieve this.
    Can some one help in achieve this?
    Edited by: Gaurav B. on Jan 30, 2012 4:02 PM

    Hello Fred,
    That's a big task, even if it looks "easy". My first idea is, your request can not be covered by dynamic programming. a) every node has a different structure (I guess), b) the code itself has to be adjusted to the nodes in use as well. I.e. when a dynamic data declaration would be possible, the coding has to adhere the used number of nodes.
    My recommendation:
    - declare as many standard tables (nodes) as possible
    - the code for  each node has to be implemented
    - define the number of used nodes by a parameter or an interface
    Have success,
    Heinz

  • Dynamic Type Declaration

    Hi.
    I need to declare an internal table TYPE based on a dynamic table whose name at design time is unknown. I tried the following codes, but it is not working and generated an error:
    DATA: TXT_FILENAME_VALUE(14) TYPE C.
    FIELD-SYMBOLS: <FS_TXT_FILENAME_VALUE>.
    TXT_FILENAME_VALUE = ''.
    CONCATENATE 'TXT_FILENAME' TXT_FILENUMBER INTO TXT_FILENAME_VALUE.
    ASSIGN (TXT_FILENAME_VALUE) TO <FS_TXT_FILENAME_VALUE>.
    DATA UPLOAD_ITAB TYPE TABLE OF (<FS_TXT_FILENAME_VALUE>).
    Error Generated: The type "(<FS_TXT_FILENAME_VALUE>)" is unknown.
    Any help would be appreciated.

    REPORT z_dynamic_program.
    TABLES:dd02l,
           vlcvehicle.
    FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE,
                   <fs_warea> TYPE ANY,
                   <fs_any>   TYPE ANY.
    DATA:t_anytable TYPE REF TO data,
         f_warea    TYPE REF TO data,
         tb_condition(72) TYPE c OCCURS 0 WITH HEADER LINE.
    DATA:w_dynproname TYPE sy-repid,
         w_msg(70)    TYPE c.
    DATA:t_code(72) TYPE c   OCCURS 0 WITH HEADER LINE.
    PARAMETERS:pa_tnam  LIKE dd02l-tabname.
    SELECT-OPTIONS:so_comm  FOR vlcvehicle-zz_commnos.
    START-OF-SELECTION.
      SELECT SINGLE * FROM dd02l WHERE tabname = pa_tnam.
      IF sy-subrc NE 0.
        STOP.
      ENDIF.
      APPEND 'Program SubPool.' TO t_code.
      APPEND  ' '               TO t_code.
      CONCATENATE 'TYPES TY_TABLE TYPE ' pa_tnam ' OCCURS 0.'
      INTO t_code SEPARATED BY space.
      APPEND t_code.
      CONCATENATE 'TYPES TY_WAREA TYPE ' pa_tnam '.'
      INTO t_code SEPARATED BY space.
      APPEND t_code.
      APPEND 'Form generate_table changing p_table type ref to data '
                                TO t_code.
      APPEND '                             p_warea type ref to data.'
                                TO t_code.
      APPEND ' create data p_table type (''TY_TABLE''). '
                                TO t_code.
      APPEND ' create data p_warea type (''TY_WAREA''). '
                                TO t_code.
      APPEND 'Endform. '        TO t_code.
      GENERATE SUBROUTINE POOL t_code
                          NAME w_dynproname
                          MESSAGE w_msg.
      IF sy-subrc NE 0.
        WRITE : / w_msg.
        STOP.
      ENDIF.
    Call the subroutine to get reference to dyn table
      PERFORM generate_table  IN PROGRAM (w_dynproname)
                     CHANGING t_anytable
                              f_warea.
      ASSIGN t_anytable->* TO <fs_table>.
      ASSIGN f_warea->*    TO <fs_warea>.
    Fetch the data from the database based on the Commission number
    and the Table name
      SELECT *
      INTO TABLE <fs_table>
      FROM (pa_tnam)
      WHERE Z_COMMNOS IN so_comm.
      IF sy-subrc NE 0.
        STOP.
      ENDIF.
      DELETE FROM (pa_tnam) WHERE Z_COMMNOS IN so_comm.
      IF sy-subrc EQ 0.
        WRITE:/ sy-dbcnt.
      ENDIF.
    END-OF-SELECTION.
    You can also search the forum to see the method using OOPs concept
    Reward if useful
    Regards,
    Aj

  • Dynamic Field type declaration in a structure

    Hi All,
       How to declare the data element of a field dynamically in the structure i.e, how to define a field type dynamically in the structure?
       Please find below example for better understanding of my query and share your ideas if we have a solution for such requirement.
    TYPES: BEGIN OF ts_struc,
            fld1 TYPE matnr,
            fld2 TYPE maktx,
            fld3 TYPE mtart,
            fld4,
            fld5,
            fld6,       
           END OF ts_struc.
    DATA: it_struc TYPE STANDARD TABLE OF ts_struc.
    PARAMETERS: p_cc RADIOBUTTON GROUP rg1,
                p_us RADIOBUTTON GROUP rg1.
    if p_cc eq 'X'.
    fld4, fld5, fld6 should be of type WOG0XXX.
    elseif p_us eq 'X'.
    fld4, fld5, fld6 should be of type WKG0XXX.
    endif.
    Regards,
    Shano

    data: dref type ref data.
    field-symbols: <fs_str> type WOG0XXX.
      CREATE DATA dref TYPE WOG0XXX.
      ASSIGN dref->* TO <fs_str>.
    now <fs_str> can be used as WOG0XXX.
    Edited by: ssm on Jul 28, 2011 4:58 PM
    For ex:
    DATA: lv_kunnr TYPE kunnr.
    DATA: kunnr TYPE REF TO data.
    field-symbols: <fs_kunnr> TYPE ANY.
    CREATE DATA kunnr TYPE kunnr.
    lv_kunnr = '123'.
    ASSIGN kunnr->* TO <fs_kunnr>.
    move lv_kunnr to <fs_kunnr>.
    write: <fs_kunnr>.
    Edited by: ssm on Jul 28, 2011 5:00 PM

  • How do you save dynamic data type, from the DAQ assistant, for use in Excel or matlab?

    Currently, I have the following basic VI setup to save Data from my PCI6221 Data Aquisition Card.  The problem I'm having is I keep getting the last iteration of the while loop in the measurement file and that's pretty much it.  When I try to index the data leaving the loop it gives me a 2D array of Data which cannot be input into the "Write to Measurement File" VI.  How would I save this to a useful Data/time step format?  I was wondering of a way to continuously collect the Data and then save it in a large measurement file that I would manipulate in Matlab/excel?  Am I using the wrong type of loop for this application?  I also noticed my Dynamic Data array consists of data, time, timestep and then a vector of the data taken.  Is it possible to just get a vector of the time change per sample alongside the data?    Sorry for the barrage of questions but any help would be greatly appreciated, and thanks in advance!
    -Bryan
    Attachments:
    basic DAQ.vi ‏120 KB

    There is a VI in the Express > Signal Manipulation palette called "From DDT" that lets you convert from the Dynamic Data Type to other data types that are more compatible with operations like File I/O....for instance, you could convert your DDT into a 2D array and use the Write To Spreadsheet File.vi.  Just a thought...
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Function module to convert character type to required data type

    Hi,
    Is there a function module which can convert data in character type to any other required data type?
    Like i have a date 12.2.2008 and it is stored as character now i want to convert it into type d.
    so that when i use
    Describe field <field_name> type <type>.
    statement afterwards then it gives me  D not C as its data type.
    The requirement does'nt stick to conversion of just one data type.I need an FM which can convert data in character type to any data type.
    Hope you understood the problem.
    Thanks for your time.

    Hi,
    Use the code.
    data : date like sy-datum.
    call function 'CONVERT_DATE_TO_INTERNAL'
      exporting
        date_external                  =  '01.01.2008'
    IMPORTING
       DATE_INTERNAL                  = date
    EXCEPTIONS
       DATE_EXTERNAL_IS_INVALID       = 1
       OTHERS                         = 2
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Regards,
    Morris Bond.
    Reward Points if Helpful.

  • Create dynamic data type in structure

    Hi Experts,
    I am new to ABAP.
    In my scenario data type is varying for the field. for that I need to create dynamic data type in structure, this structure I am using for  internal table for OVS search input.
    Please suggest the solution for this.
    Advance thanks,
    Regards,
    BBC

    Thanks for your quick reply,
    I used your logic like this.
    data:
    ls_component type abap_componentdescr,
    lt_component type abap_component_tab.
    *... (1) define structure components :
    clear ls_component.
    ls_component-name = 'NVALUE'.
    ls_component-type ?= cl_abap_typedescr=>describe_by_name( <fs_seg_v>-fieldname ).
    insert ls_component into table lt_component.
    *... (2) create structure
    data lr_strucdescr type ref to cl_abap_structdescr.
    data lr_data_struc type ref to data.
    lr_strucdescr = cl_abap_structdescr=>create( lt_component ).
    create data lr_data_struc type handle lr_strucdescr.
    field-symbols <fs> TYPE any.
    assign lr_data_struc->* to <fs>.
    your logic is working fine.
    here I am getting feild name (<fs_seg_v>-fieldname) from internal table.
    But I need to assign same field name structure to query parameter.
    FIELD-SYMBOLS: <ls_query_params> TYPE lty_stru_input.
    Please can you suggest how I can refer the field name structure?
    Regards,
    BBC

  • Enable "dynamic date calculation" variable type

    When saving reporting date/period in a report variant, we may use "dynamic date calculation" to specific date as selection parameter.  But the "Dynamic date calculation" is not visible in some ABAP reports - only "Table Variable from TVARVC"  type is available for selection. 
    For those reports that are missing that variable type, how can we enable the "Dynamic date calculation" variable type to be visible?

    Hi Paco:
    Yes, they are z-reports, both have the same almost everything, created by the same ABAPer, for the same application SD, just grouping the data differently.
    It seems a screen (#100?) is missing,  In the old version, it's screen 100 where to activate the "D" and "B" variable types.  Now it goes to screen 281.
    Stacy

  • Source XML data type declaration querry

    Hi all,
    I am very confused in below XML data type declaration.
    I am dealing first time with this type of XML.
    In source XML header items are mentioned in header node(address).
    <address addressline1="6th & Hunt" addressline2="" city="Pryor" state="OK" country="Sun" zip="74361">
    - <phoneinfo>
      <phone type="work">9999999999</phone>
      </phoneinfo>
    - <faxinfo>
      <fax>100000001</fax>
      </faxinfo>
    </address>
    Please Help in the "Data type declaration" of above source XML????
    How can i use this data type in message mapping????
    Thanks & Regards

    Hi Umesh,
    You can use Data types with Attributes in XI.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3b/d2a3f7a166514abb8cf5635b71974f/frameset.htm
    And you can even try with the External Definition also.
    Hope this helps,
    regards,
    Moorthy

  • [svn] 3571: Update SWFLoader ASDoc comment to remove &emdash and data type declaration .

    Revision: 3571
    Author: [email protected]
    Date: 2008-10-10 11:07:09 -0700 (Fri, 10 Oct 2008)
    Log Message:
    Update SWFLoader ASDoc comment to remove &emdash and data type declaration. ASDoc adds that automatically.
    Doc the new types in IndexChangedEvent.as
    Checkin Test Passed: Yes
    QA: No
    Bug:
    Doc: No
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/events/IndexChangedEvent.as

    lunke you shoude change svn update http://svn.foo-projects.org/svn/xfce/modules/trunk to svn up $startdir/src/trunk
    hers a PKGBULID for thunar
    pkgname=thunar
    pkgver=0.0.2.r17470
    pkgdesc="Thunar is a file manager designed for Xfce. It is currently under development."
    url="http://thunar.xfce.org/wiki/"
    depends=('exo-svn')
    makedepends=('subversion')
    source=()
    md5sums=()
    build() {
    if [ ! -d $startdir/src/thunar ]; then
    echo "Fetching sources..."
    svn checkout http://svn.foo-projects.org/svn/xfce/thunar/trunk/ /thunar
    else
    echo "Updating sources..."
    svn up $startdir/src/thunar/
    fi
    cd $startdir/src/thunar
    ./autogen.sh --prefix=/opt/xfce4-svn
    make || return 1
    make DESTDIR=$startdir/pkg install
    find $startdir/pkg -name '*.la' -exec rm {} ;
    you will need exo from svn as well
    pkgname=exo-svn
    pkgver=r17470
    pkgdesc="Extensions to Xfce by os-cillation"
    url="http://libexo.os-cillation.com/"
    conflicts=(exo)
    provides=(exo)
    depends=('xfce4-svn')
    makedepends=('subversion')
    source=()
    md5sums=()
    build() {
    if [ ! -d $startdir/src/trunk ]; then
    echo "Fetching sources..."
    svn checkout http://svn.foo-projects.org/svn/xfce/libexo/trunk/
    else
    echo "Updating sources..."
    svn up $startdir/src/trunk
    fi
    cd $startdir/src/trunk
    ./autogen.sh --prefix=/opt/xfce4-svn
    make || return 1
    make DESTDIR=$startdir/pkg install
    find $startdir/pkg -name '*.la' -exec rm {} ;
    "Operation libtool-slay" compliant

  • How do I Change the plot waveform colour on a Dynamic Data type Graph?

    I have multiple different plots on different graphs, and I want to set the colours of the different waveforms.
    In order to display the waveforms on different graphs, I switched to Dynamic data type and then split the wire
    according to how many channels I have.
    I can set the graph background colour with a property node, and create cursors of different colours no problem
    using the array of references that I have created, so there is nothing wrong with my array of references or the property node.
    As soon as I try and wire a colour box into the Plot>Plot Colour control, I get error 1055 out of the property node.
    I was wondering if it was an error between the keyboard and the chair, but now I am thinking it is someting more sinister.
    The Error box pops up and can't be dismissed remaining the focus until I run TASKKILL on LabVIEW and terminate it.
    Any ideas on how to achieve my goal would be appreciated.
    (LabVIEW 8.6)
    Solved!
    Go to Solution.

    Hi Sheela,
    It's 1 plot per graph, up to 4 graphs displayed on different tabs.
    Here are some screenshots
    Attachments:
    graph_display.JPG ‏135 KB
    set_Plot_colour.JPG ‏79 KB

  • URGENT:data type declaration of container within the method

    Hi
    My requirement is when the user revceives mail to approve/reject invoice ,the user attaches an attachmnet in the workitem stating the reson for approval/rejection of invoice.The attached attachement should be uploaded to invoice as an attachment.
    I have observed that the attachment attached by the user is stored in the container "office_document" and the type of the container is SOFM.
    To capture the attachment and send it to invoice i have created new task and new method in ZBUS2081.
    i created a container "office_doc_atta" in the workflow .the type of office_doc_atta is SOFM .
    in the method  as well as task i also declared parameter "office_doc_atta" of type sofm.
    to fetch the data from Task to method i have declared following table
    data:office_doc_atta type swc_object occurs 0 with header line.
    swc_get_table container 'office_doc_atta' office_doc_atta.
    I think that data type of "office_doc_atta" decalred within the method
    is wrong and i am unable to fetch data from the container.
    If anyone know what should be the data type of office_doc_atta within the method and how to fetch data from the task kindly let me know.
    Points will be rewarded.

    Try using SWOTOBJID instead of SWC_OBJECT.
    SWOTOBJID is the data type for a persistent object ID, while SWC_OBJECT is the data type for a runtime object ID (or reference or handle, if you are more familiar with any of those terms).
    Normally, an object will be passed by the persistent object ID. As the name reveals, the ID is persistent, i.e. remains the same. Therefore it can be stored in a database, and passed to the next step in a workflow - even if this step is executed by a different person another day.
    <i>Message was edited by Kjetil Kilhavn:</i>
    Please don't use the word urgent in your subject (or in the question for that matter). There are many reasons for this, some of which are:
    1) This is not a help desk or service organization, there are no response time guarantees based on how important a problem is for you.
    2) Most people visit SDN when time permits.
    3) Due to the previous 2 that particular word annoys more than it inspires.
    4) It is specifically mentioned in the guidelines that you should not use that word.
    5) It is a word with no accuracy. It would be better if you wrote (in the question, not the subject) that you need to solve this within 2 days - then we know your deadline.
    6) If I'm in the right mood I will ignore all questions marked as urgent for at least one day. Just for the heck of it.

Maybe you are looking for

  • Why do I get an error message when trying to open PE 8.0 projects with PE9.0?

    I am trying to open a project in PE 9.0 that I made with PE 8.0. Each time, and with different projects, I get this error message: "Projects created with Adobe Premiere Pro and Adobe Premiere Elements are not compatible. Please use apropriate applica

  • Can't open pdf files posted in Facebook

    Instead of getting a dialogue box with the option to save the file I get redirected to a blank page. https://attachment.fbsbx.com/file_download.php?id=392022847530027&uid=1283073931&ext=13461 22360&hash=ASv7l5CiUPpVW0JI I have updated Adobe reader an

  • DLSMusicDevice Sound Bank menu greyed out

    When I launch the DLSMusicDevice from an instruments Details view, DLSMusicDevice Sound Banks menu is grayed out, and displays the QuickTime Music Synthesizer in the grayed out menu. I do have a .SF2 file in the Audio/Sounds/Banks folder. What am I d

  • External Task

    Hi Everyone, Have any body used external task for an interactive activity. If any body have samples to call prepareExternalActivity() and commitExternalActivity( ) from a standalone java program please help? Thanks

  • JSP Portlet help

    Here is our problem: We are running Oracle Portal. We want to create portlets using JSP. We can create and deploy JSP applications to the OC4J server which is running at http://server1:8888. Portal is deployed on http://server1 (port 80 I assume). We