How to define object type in plsql

I create a type...
CREATE OR REPLACE TYPE t_Archive_Data_Obj AS OBJECT
(Archive_Name VARCHAR2(40), Archive_Data CLOB);
I create a type in plsql.....
TYPE tt_Archive_Data IS TABLE OF t_Archive_Data_Obj;
Can I, instead of creating the object type as a database object, some how define the same in plsql and then create a table type and use.
Thanks & Regards.

coz I'm using it as an out parameter in plsql procedure and this procedure is called by a java application.
Now to access this type in java to get the returned value I used Jpublisher to generate a class, this class is being used in java application.
I'm sorry I have not check one thing that now if I instead used record in plsql and try to access the returned value using the same class will it work or not. I should have tested then asked questions on forum.
Regards.

Similar Messages

  • Define Object type(s) to transform relational tables to xml

    I have the Object type and query defined below and output. My problem is that I want to add an attribute to the CLM_MNGT_PROC_STEP_TYPE_NAME node in the XML. The samples I am using from OTN only show either an attribute or a nodevalue, not both.
    CREATE OR REPLACE TYPE CONTEXTSTATECLAIM_TYPE AS OBJECT
    "@error" VARCHAR2(1),
    "CONTEXT_STATE_ID" VARCHAR2(36),
    "CONTEXT_TYPE_CODE" VARCHAR2(10),
    "CLM_MNGT_PROC_STEP_TYPE_NAME" VARCHAR2(50),
    "BATCH_NAME" VARCHAR2(30),
    "DATE_OF_SERVICE" DATE,
    "PATMRN" VARCHAR2(20),
    "PROVIDER_NAME" VARCHAR2(50),
    "MEMBER_NAME" VARCHAR2(50),
    "ASSIGNEDTO_NAME" VARCHAR2(50),
    "LOCKED" VARCHAR2(1)
    SELECT sys_xmlagg(
    sys_xmlgen(
    CONTEXTSTATECLAIM_TYPE(
    DECODE(context_state.xerror_id,NULL,'N','Y'),
    context_state.context_state_id,
    context_state.context_type_code,
    clm_mngt_proc_step_type.priority_indicator || clm_mngt_proc_step_type.clm_mngt_proc_step_type_name,
    --                         clm_mngt_proc_step_type.color,
    context_state.batch_name,
    context_state.date_of_service ,
    context_state.patmrn,
    context_state.provider_name,
    context_state.member_name,
    office_user.user_name,
    DECODE(context_state.lockedby_id,NULL,'N','Y')
    ),sys.xmlgenformattype.createFormat('CLAIM')
    ), sys.xmlgenformattype.createFormat('CLAIMS')
    ).GETCLOBVAL() "XML"
    FROM context_state,
    office_user,
    clm_mngt_proc_step_type
    WHERE context_state.assignedto_id = office_user.user_id (+)
    AND context_state.clm_mngt_proc_step_type_code = clm_mngt_proc_step_type.clm_mngt_proc_step_type_code
    AND context_state.office_id = '99'
    <?xml version="1.0"?>
    <CLAIMS>
    <CLAIM error="N">
    <CONTEXT_STATE_ID>34A5ED94-569E-49C0-904E-7483BFF566CE</CONTEXT_STATE_ID>
    <CONTEXT_TYPE_CODE>SAVECLAIM</CONTEXT_TYPE_CODE>
    <CLM_MNGT_PROC_STEP_TYPE_NAME>Phys.Not Found</CLM_MNGT_PROC_STEP_TYPE_NAME>
    <BATCH_NAME>20020122-1049</BATCH_NAME>
    <DATE_OF_SERVICE>22-JAN-02</DATE_OF_SERVICE>
    <PATMRN>03NMF87661234</PATMRN>
    <PROVIDER_NAME>Hamilton, D.R.</PROVIDER_NAME>
    <MEMBER_NAME>Collins, Jane</MEMBER_NAME>
    <LOCKED>N</LOCKED>
    </CLAIM>
    <CLAIM error="N">
    <CONTEXT_STATE_ID>D8C484E7-D413-43CF-B2F4-796B4778C00E</CONTEXT_STATE_ID>
    <CONTEXT_TYPE_CODE>SAVECLAIM</CONTEXT_TYPE_CODE>
    <CLM_MNGT_PROC_STEP_TYPE_NAME>Phys.Not Found</CLM_MNGT_PROC_STEP_TYPE_NAME>
    <BATCH_NAME>20020122-1049</BATCH_NAME>
    <DATE_OF_SERVICE>22-JAN-02</DATE_OF_SERVICE>
    <PATMRN>03NMF45385225</PATMRN>
    <PROVIDER_NAME>Willford, M.</PROVIDER_NAME>
    <MEMBER_NAME>Thomas, Lisa</MEMBER_NAME>
    <LOCKED>N</LOCKED>
    </CLAIM>
    </CLAIMS>

    Please follow the discussion in the following thread
    How does XML DB transform a Schema into object-relationals tables?

  • Need help on defining object-type dependent attributes for documents

    Hi everyone,
    I'm trying to define different attributes for documents (attachments), depending on document type.
    I performed customizing activities as specified in IMG notes (define structure and table for the attributes, attribute model, register attribute model with table and structure, map model to object type, map object type to document type)
    But I didn't find any new BOL in CM GenIL component with my attributes...
    I already have type-independent attributes defined, and I see them in the CMDocument BOL.
    I don't know how to use my attributes, nor in code niether in UI.
    Did I miss something?
    Thanks,
    Yulia

    return self.amount+self.depositamount;I counld not find any amount field in your type definitions
    if self.status='OPEN' thenIs it w_accountt.status ?? since there is no status field in accountmanager_t type
    return self.currentamount-self.withdrawalamount;same comments for currentamount
    member function deposit(d_accountt account_t,d_transno number default 1) return account_t asWhere as your return expression is a number??

  • How to Trigger  Object type Event programmatically  in ABAP ?

    Experts,
    How to Generate an Object Type Event  programmatically in ABAP ???  We know that SAP std. applications do this by default ,for eg:  Sales Order creation event generation,  similarly , i want to generate an Event  ( SAP or a Z object event ) in my Z program ,, How can i do it ???  Do we have any function module for this one ?  I can do an BDC  CALL TRANSACTION SWUE but i don't want to do that,  i want to use some other method other than BDC.
    Would appreciate your reply . Thanks
    Ashutosh

    Hi Ashutosh, if you are trying to raise a custom event you first must define the event within your business object, using TC SWO1.  If you like you can extend an existing business object or create a new one.  Once your business object is activated and your event is released you should be able to trigger it with the FM 'SWE_EVENT_CREATE'.
    P.S  If you are extending an existing business object, for example BUS2105 and your extended name is ZMBUS2105, refer to the original name, i.e. BUS2105 for the objtype field in the call to 'SWE_EVENT_CREATE'.
    Hope that helps,
    Kevin

  • How to define complex type with table per record?

    Hi,
    for one of my tasks I'm dealing with XML export. After short investigation of the postings in the forum I found an acceptable solution:
    Re: Convert ABAP to XML and Vice versa
    The issue is that I need an XML file like this:
    <plant>
      <material>
        <purchases>data</purchases>
        <purchases>data</purchases>
        <purchases>data</purchases>
        <sales>data</sales>
        <sales>data</sales>
        <sales>data</sales>
      </material>
      <next material>
      </next material>
    </plant>
    So here are the questions:
    1. Is it possible (and how) to define such deep structured type where for each record (means material) there is at least 1 internal table connected to that record? That would let me use a record-2-DOM conversion and a standard DOM-2-XML renderer.
    2. Could anyone please provide a very simple and short example?
    Of course, I could write my own XML renderer and achieve what I need (without using DOM, simply write to file all the desired XML tags while looping at my *nested* tables), but if there is a way to define such a structured type and further to fill it with data, it would help me learn a little bit more about abap opportunities and would save me a bit more time to create a renderer.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Hi,
    You can declare deep structure as below
    TYPES : BEGIN OF ty_address,
              house(10) TYPE c,
              street(10) TYPE c,
            END OF ty_address.
    TYPES : BEGIN OF ty_itab,
             name(10) TYPE c,
             age      TYPE i,
             address  TYPE ty_address OCCURS 0,
            END OF ty_itab.
    DATA : i_address TYPE STANDARD TABLE OF ty_address,
           i_itab    TYPE STANDARD TABLE OF ty_itab.
    DATA : wa_address TYPE  ty_address,
           wa_itab TYPE  ty_itab.
    CLEAR :  wa_address,
             wa_itab.
    wa_address-house = 'House1'.
    wa_address-street = 'Street1'.
    APPEND wa_address TO i_address.
    wa_address-house = 'House2'.
    wa_address-street = 'Street2'.
    APPEND wa_address TO i_address.
    wa_itab-name = 'Test'.
    wa_itab-age  = 10.
    wa_itab-address[] = i_address[].
    APPEND wa_itab TO i_itab.
    Also check structure BSPL_GRID_FIELDCAT field CELL_COLOR

  • How to Create Object Type

    Hi.
    I am Creating Task i found options ... Object Type and  method .. i think we can use user define/Created .. my question is what T Code is to create New Object type and method ...  and further help or suggestion about its development
    Regards
    Amamd

    Hi,
    You should try to use Standard BO. Go to tcode SWO1 and you can do a search related to your requirements. If it exists a BO but it doesn't fullfill your requirements you can create a subtype of this BO by menu Settings > Delegate. In this way, you can inherit all of the BO and create your owns.
    Regards,

  • How to use object type collection in my function?

    Hi,
    I want to declare Object type collection with in my function like same a Record type collection. But it is saying error like below
    PLS-00540: object not supported in this context.
    Can anyone tell me how can i resolve this? I don't want to go with create object type functionality.
    Thanks

    Hi below is my full query.
    SELECT  czci.config_hdr_id,
            czci.config_rev_nbr,
            asoqla.quantity,
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci1
                WHERE   czci1.config_hdr_id = asoqld.config_header_id
                AND     czci1.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND     NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci1.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = asoqld.config_header_id
                                                        AND sub_sub.CONFIG_REV_NBR = asoqld.config_revision_num
                                                        AND      sub_sub.PS_NODE_NAME = 'fittings')) fitting_material,
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci
                WHERE   czci.config_hdr_id = asoqld.config_header_id
                AND     czci.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = czci.CONFIG_HDR_ID
                                                        AND sub_sub.CONFIG_REV_NBR = czci.CONFIG_REV_NBR
                                                        AND      sub_sub.PS_NODE_NAME = 'tubing')) tubing_material,
            NVL((SELECT czci.item_val
             FROM cz_config_items czci
             WHERE     czci.config_hdr_id = asoqld.config_header_id
             AND czci.config_rev_nbr = asoqld.config_revision_num
             AND czci.value_type_code <> 4
             AND czci.ps_node_name = 'control_circuit_name'),
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci
                WHERE   czci.config_hdr_id = asoqld.config_header_id
                AND     czci.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = czci.CONFIG_HDR_ID
                                                        AND sub_sub.CONFIG_REV_NBR = czci.CONFIG_REV_NBR
                                                        AND      sub_sub.PS_NODE_NAME = 'pneumatic_schematics'))
             ) schematic_name
    FROM    aso_quote_lines_all asoqla,
            aso_quote_line_details asoqld,
            cz_config_items czci
    WHERE   asoqla.quote_header_id = 58455
    AND     asoqla.item_type_code = 'MDL'
    AND     asoqla.quote_line_id = asoqld.quote_line_id 
    AND     asoqld.config_header_id = czci.config_hdr_id
    AND     asoqld.config_revision_num = czci.config_rev_nbrBelow is my explain plan
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.11       0.11          0          0          0           0
    Execute      2      0.01       0.01          0          0          0           0
    Fetch        3      0.06       0.06          0       3429          0          19
    total        6      0.18       0.18          0       3429          0          19That's what i am planning to write each select queries in a pipelined function then join all the functions. If i run one each query it is giving less query fetch
    Thanks

  • How to use Object types with inheritance in design editor

    Does anyone know how to implement Oracle object sub types in Design editor.
    Is there a way of using the Database design transformer to convert entities to Object types rather than tables?
    Thanks in anticipation
    David

    What database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
    It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
    The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics.

  • How to find object type

    hi friends,
    i have a object type -BUS2081. which is bein used in MIR4 transaction.
    how to get the object type for transaction fb03.
    thank u,
    kat

    Hi,
    It is BUS1028
    Mark use full answers.
    Regards,
    Nanda.

  • Hi all How to define data type 'P' in structure.

    Hi all,
        I need to create data element having type <b>P</b> with 2 decimal pt in se11.
    Plz suggest me which type should I use to create such element as there is no data type as <b>P</b> in se11.

    Hi,
    Yes there is no data type 'P' in se-11 for data element.
    there two way you can define the D.E
    -one is by define with type 'CURR' and give length and decimal places suppose if you define cust_money as  curr length is 12 with in you can give decimal places as 2 or 3 etc a/c your requirement.
    -secon one is you can use the type as 'DEC' and give the legth and decimal places as explained above.
    before creating the data element you can check r they any built in dataelements avialbe suppose for DEC* give in se11 and press F4 then u can find out the list of D.E like there are already some d.E like dec8_2,dec25,DEC11_2 etc...
    <b>Reward with points if helpful.</b>
    Regards,
    Vijay

  • How to return object  type from external c procedure ?

    Hello all,
    I'm trying for the first time to return an object type as the return value of an external stored procedure (in C ).
    I don't have any issue to use an object type parameter for the function but not to return one to the caller.
    each time I try I get "ORA-03113: end-of-file on communication channel" and the connection is dropped.
    Thanks for any help,
    Roye Avidor
    here is the code :
    => object type
    SQL>create or replace type address as object ( age number, salary float );
    => address typ file
    CASE=SAME
    TYPE address as address
    => building the dependences structures.
    $>ott userid=scott/tiger intype=address.type code=c hfile=address.h
    => the package description
    create or replace package userTypeDefined_PKG
    is
    function getAddr( addr address ) return address;
    end;
    create or replace package body userTypeDefined_PKG
    is
    function getAddr( addr address ) return address
    AS LANGUAGE C
    NAME "addr"
    LIBRARY userTypeDefinedLib
    WITH CONTEXT
    PARAMETERS
    ( CONTEXT,
    addr,
    addr INDICATOR STRUCT ,
    return address,
    return INDICATOR STRUCT
    end;
    => The C code for the library in
    address* addr(OCIExtProcContext ctx, address address_obj, address_ind address_obj_ind, address_ind ret_ind){
    unsigned int tt;
    OCIEnv *envh;
    OCIError *errh;
    OCISvcCtx *svch;
    sword err;
    address* ret = NULL;
    int inum = 69;
    float fnum = 12.34;
    /* get OCI Environment */
    err = OCIExtProcGetEnv(ctx, &envh, &svch, &errh) ;
    /* allocate space for return sturcture*/
    ret = (address *)OCIExtProcAllocCallMemory(ctx, sizeof(address));
    /* set the AGE value */
    if ( OCINumberFromInt ( errh, &inum, sizeof(inum), OCI_NUMBER_SIGNED, &(ret->AGE) ) == OCI_ERROR )
    OCIExtProcRaiseExcp(ctx,(int)1476); // raise 1476 is fail
    /* set the SALARY value */
    if ( OCINumberFromReal ( errh, &fnum, sizeof(fnum), &(ret->SALARY) ) == OCI_ERROR )
    OCIExtProcRaiseExcp(ctx,(int)1477);// raise 1477 is fail
    // set the indicators for the structure as not null
    ret_ind->atomic = OCIIND_NOTNULL;
    ret_ind->AGE = OCI_IND_NOTNULL;
    ret_ind->SALARY = OCI_IND_NOTNULL;
    return (ret);
    }

    The return indicator should be declared as double pointer, and need to be allocated in the function body.

  • How to get object type and object key from Bapi_acc_gl_posting_post

    Hi,
      Currently iam implementing FB01 transaction thru Bapi_acc_gl_posting_post.
    I got object key by including document no, fiscal year and Document data
    I got object type from TTYP table. But iam not sure it is correct.
    After implemeting the BAPI return code is giving successfull and i commited the process.
    But at last data is not updating in BKPF table. There is no document number displayed at BKPF...Please go thru and do the needful its urgent.
    Thanks in advance....
    Regards,
    Ganga

    Hi Max,
            I have executed it and it is working only for GL posting but i need to make this for different accounting types like vendors, customers, material customers etc.
    I found BAPI_ACC_DOCUMENT_POST. when i executed it is giving error as 'Line entered several Times'.
    I following is my code. If time permits please go thru my code and do the need ful..
    Thanks in advance.
    REPORT  zk_fi_fb01                     .
    Data: v_objkey(20) type c.
    Data: Docheader type BAPIACHE09.
    Data: ACCOUNTGL LIKE BAPIACGL09 occurs 0 with header line,
         ACCOUNTRECEIVABLE like BAPIACAR09,
          ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,
          CURRENCYAMOUNT like BAPIACCR09 occurs 0 with header line,
          RETURN like BAPIRET2 occurs 0.
    Data: obj_typ like BAPIACHE09-OBJ_TYPE,
          OBJ_KEY like BAPIACHE09-OBJ_KEY,
          OBJ_SYS like BAPIACHE09-OBJ_SYS.
    *Data: gv_belnr type belnr_d.
    *Data:file_Na type String.
    Data: lsys like TBDLS-LOGSYS.
    *START OF SELECTION
    START-OF-SELECTION.
    *CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
       nr_range_nr                  = '19'
       object                       = 'RF_BELEG' "'FIAA-BELNR'
      QUANTITY                      = '1'
      SUBOBJECT                     = '7777'
      TOYEAR                        = '2007'
      IGNORE_BUFFER                = ' '
    IMPORTING
      NUMBER                        = gv_belnr
    QUANTITY                      =
    RETURNCODE                    =
    *CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
      OWN_LOGICAL_SYSTEM                   = lsys
    EXCEPTIONS
      OWN_LOGICAL_SYSTEM_NOT_DEFINED       = 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.
    *concatenate gv_belnr '7777' '2007' into v_objkey.
    *Filling Document Header Details
    *Docheader-OBJ_TYPE = 'BEBD'.
    *Docheader-OBJ_key = V_objkey.
    *Docheader-OBJ_SYS = lsys.
    docheader-BUS_ACT = 'RFBU'.
    Docheader-USERNAME = sy-uname.
    Docheader-COMP_CODE = '7777'.
    Docheader-DOC_DATE   = '20070724'.
    Docheader-PSTNG_DATE = '20070725'.
    Docheader-FISC_YEAR = '2007'.
    Docheader-DOC_TYPE = 'KZ'.
    *Item data for ACCOUNTGL
    ACCOUNTGL-ITEMNO_ACC = '0000000001'.
    ACCOUNTGL-GL_ACCOUNT = '0000000501'.
    ACCOUNTGL-DOC_TYPE   =  'KZ'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    *ACCOUNTGL-DE_CRE_IND = 'S'.
    append ACCOUNTGL.
    ACCOUNTGL-ITEMNO_ACC = '0000000002'.
    ACCOUNTGL-GL_ACCOUNT = '0000400002'.
    ACCOUNTGL-DOC_TYPE   = 'KR'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    *ACCOUNTGL-DE_CRE_IND = 'H'.
    append ACCOUNTGL.
    *Account payable
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000000102'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000002'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000400002'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    *Currency Amount
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE 1000 TO CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE '1000-' to CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    clear CURRENCYAMOUNT.
    clear ACCOUNTGL.
    clear ACCOUNTPAYABLE.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = Docheader
      CUSTOMERCPD             =
      CONTRACTHEADER          =
    IMPORTING
       OBJ_TYPE                =  obj_typ
       OBJ_KEY                 =  obj_key
       OBJ_SYS                 =  obj_sys
      tables
       ACCOUNTGL               = ACCOUNTGL[]
      ACCOUNTRECEIVABLE       =
       ACCOUNTPAYABLE          = ACCOUNTPAYABLE
      ACCOUNTTAX              =
        currencyamount          = CURRENCYAMOUNT
      CRITERIA                =
      VALUEFIELD              =
      EXTENSION1              =
        return                  = return.
    if sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = ' '.
    endif.
    if sy-subrc = 0.
    WRITE: / OBJ_KEY,
             OBJ_TYP,
             OBJ_SYS.

  • How to get object type`

    Hello,
    I want to know the object type in cocoa.
    Suppose object (id) is consider in which i store string,int,etc..
    But i want to know the type of (id).
    Thank you...

    You can't introspect basic scalar data types nor should you ever have any reason to given the fact that C is a strongly typed language where you are expected to keep track of such things yourself.
    #if _LP64_ || NSBUILD_32_LIKE64
    typedef long NSInteger;
    typedef unsigned long NSUInteger;
    #else
    typedef int NSInteger;
    typedef unsigned int NSUInteger;
    #endif
    That's all an NSInteger is.

  • Rfc--- jdbc, how to define data types for the rfc's

    i downloaded the rfc.xsd in to local hard drive. while i am defining the data type i am getting an error. do i have to change any thing the rfc.sxd file please help me
    thanks

    Hi there,
    How did you load the RFC metadata from the SAP system? I assume you are using the standard procedure via your Software component in the (Design)integration builder-Repository your namespace- > imported Objects -> RFC/IDOCS.
    From there after you have entered the necessary details for the SAP system where the RFC exists; you can select from a list the BAPI/RFC you need in your interface.
    Cheers,
    Roberto
    PS: Look at the below link for more information how to do that:
    http://help.sap.com/saphelp_nw04/helpdata/en/d3/35da4105aa3f5de10000000a1550b0/frameset.htm
    Message was edited by: Roberto Viana
    Message was edited by: Roberto Viana

  • How to define object id for ztable

    hi..can u pls tel me how do i define an object id in cdhdr for a new ztable i create?

    Hi
       Steps to Create an Object'
      1. Goto t-code SCDO.
      2. Press Create button.
      3.  Enter Object name as Change doc. object w/o name space prefix.
      4.  Press Continue. if you get the following message ..then press Yes.
      'Change document object ZJRM is not in your namespace.
       Do you still want to create the object?'
       5.  Give the Description for the Object in Text field.
       6 . Enter the Name of the table or tables you want to create the object.
       7.  Then press Insert Entries.
       8.  Save.
    Regards,
      Jayram..

Maybe you are looking for

  • How to rename a column name in a table? Thanks first!

    I tried to drop a column age from table student by writing the following in the sql plus environment as : SQL> alter table student drop column age ; but I found the following error ORA-00905: 缺少关键字 (Lack of Key word) I have oracle enterprise edition

  • Multi-Camera-Link Vision Acquisition using .avi

    So I'm trying to use two Camera-Link Cameras (JAI CM-200-MCL) with the NI PCIe 1430 frame grabber in order to obtain video of a y-axis tensile testing project, and I'm relatively new to the whole LabVIEW experience. Essentially, I want to be able to

  • How do i only disable the icloud on the ipad mini only?

    Hi, I have a macbook pro, iphone 5 and a ipad mini. I would like to know how do I disable the icloud settings on only my ipad mini? Basically, I do not want icloud Active  on the ipad mini.. I only want it active only on my macbook pro and on my ipho

  • How can I get a time stamp in the historyfile

    I can´t see date and time in the history file, how can I get that information on a MAC ?

  • Do you recommend iPhoto '11 and can I choose the language at installation?

    hi, I am thinking of buying iLife 11 to upgrade iPhoto. Do you recommend it? I am also buying Snow which I understand I need with iLife 11. Also, I would buy it in Italy, but need to have it installed in English. Is there an option to choose the lang