Opportunity Header and Item tables

I am looking at the keys on the Opportunity Header and Item table which are GUIDs.
I have the following scenario.
1. My source table contains the Opportunity Header GUID
2. My target table requires all the fields from the source table and some Opportunity Header and Item attributes
I can write WHERE clause logic for my Opportunity Header attributes
For my Opportunity item attributes I was going to introduce a count - this is not possible with Item GUID unless a part of the GUID is incremental for each line by 1 or there is a maintained field otherwise as part of the Opportunity Item which is a number representation for each line.
Can someone advise
Thanks

Hi,
In the CRMD_ORDERADM_H table you have the Opportunity GUID as well as the Object ID which is the opportunity id.  In the CRMD_ORDERADM_I table, you have the GUID and also the NUMBER_INT which is the item number.  See if you can use the item number.
Thanks.

Similar Messages

  • Difference between  header and item table

    hi experts
    I have doubt in choosing header and item table. what is the difference between them. on what situations they can be choosed, how can i conclude that my object needs only item or header table.
    thanks in advance.
    maaya

    Hi
    Header will be always a single time data in a transaction
    where as Item data is Multiple lines of data
    Item data in most of the times consists of more number of lines.
    see the header and Item related tables for some Tcodes
    Tcode      Header   Item
    VA01       VBAK    VBAP  Sales order
    VL01N     LIKP       LIPS    Delivery
    VF01       VBRk      VBRP   Invoice/Billing Doc
    ME21N    EKKO     EKPO   Pur order
    Regards
    Anji

  • Header and Item table - Form Design Question

    Hi All,
    I have a header table and Item table. For every record in the header table I have multiple records in the item table. I want to have a adobe form in the following way
    1. A new page starts for every record in the header table and Items in the item table for this header record can span multiple pages with the same header information.
    2. When all the items are displayed for that particular header record, a new page should start for the next header record.
    I created one internal table in the following way
    Header_field1 Header_field2 Item_table(with all the items for this header record)
    Header_field1 Header_field2 Item_table(with all the items for this header record)
    I am not sure how to use a table for this scenario (Should It be a nested table?).
    Please provide me some ideas.
    Thanks,
    Ganesh.

    Hi Balasubramani,
    I made some changes and have the following now. Can you please let me know how I can achieve page break for every BP_NUMBER.
    I have a nested table like the one below.
    Main table u2013 Has header and Items information. Every header record has some header information like BP number, name and all line items for that BP in a nested table .
    IT_HEADER:
    BP_NUMBER     BP_NAME           IT_ITEMS(Items table)
    BP_NUMBER     BP_NAME           IT_ITEMS
    BP_NUMBER     BP_NAME           IT_ITEMS
    To display this information I created the following
    Subform1 u2013 overflow u2013bound to $record.IT_HEADER.DATA[*] u2013 (Repeat sub form for
    |                                             each data item)
    |->Header sub form u2013 Positioned
    |     |
    |     |-> Text Field u2013 bound to BP_NUMBER
    |
    |
    |->Item sub form -
         |     
         |->Item Table u2013 bound to IT_ITEMS
              |
              |->Data u2013 bound to IT_ITEMS.DATA[*] u2013(Repeat row for each data item)
    In the output BP number in the first record of IT_HEADER gets displayed and then all the Item records in IT_ITEMS for that BP get displayed. This is repeated all the records in IT_HEADER which is perfectly fine.
    Please provide me some suggestions to solve the following issues I am having
    1.     I need a page break between records of IT_HEADER. I want the new subform1 for the next header record to start in a new page. I tried conditional break option, on the only field BP number in header sub form. I have two master pages and two body pages. All the above information is in master page 2 and body page 2.  I am also not sure what to select in the TO section of the conditional break screen.
    2.     When there is an overflow in IT_ITEMS I need the Header sub form to be shown in the next page too.
    Thanks,
    Ganesh.

  • How can i join the header and item table to fetch the data

    hi experts,
                   i have a doubt in using inner join or for all entries, for fetching the data from the item table mseg, by taking the doc.no from mkpf. Plz sort out the difference, what happens, if i use the both statements for fetching data

    Hi,
    Both has same functionality.
    but if u are using FAE, u ahev to check for the
    ~intial condition of the source table,
    ~ duplicate entries, if any
    Inner join will fetch the data from all the join tables at once. FAE will fetch the date from a table first then use that data to fetch data from subsequent table.
    say in ur case, if u r using FAE,
    1.select from mkpf.
    2.select from mseg fae in I_MKPF.
    first try using JOIN. if it is taking lots of time, then try FAE.
    regards,
    madhu

  • Header and item details

    Hi all,
          How to link Header and Item details
                                                    Ranjith

    Hi,
    The Line item table always have the header tables key as one of the key field. so u can use it.
    for eg : VBAK-vbeln and VBAP-vbeln
    Vbeln is the link between sales header and item table.
    Hope this helps.

  • Display constant values in header and items from table in ALV

    Hello all,
    I have to dispaly the header and Item entires in the output . and the point is header values are all constant and they are not related to item data .  item data is to dispalyed from VBAP table .
    so how can i achive this .. can i use this FM REUSE_ALV_HIERSEQ_LIST_DISPLAY ...
    example of outpput..
    Header inforamtions..
    name             city                  areacode              areazone            postzip
    abcde            xyz                   1244                    abc                      123456
    and the item details should be right below the header details
    Cnt     Vbeln            vkorg                vtweg               matnr       etc           etc
    1         xxx               xx                         xx                 xxxx         xxx          xxxx
    2        xxx               xx                         xx                 xxxx         xxx          xxxx
    3       xxx               xx                         xx                 xxxx         xxx          xxxx
    4      xxx               xx                         xx                 xxxx         xxx          xxxx
    5    xxx               xx                         xx                 xxxx         xxx          xxxx
    6   xxx               xx                         xx                 xxxx         xxx          xxxx
    I am able to dispaly the line items with the FM 'REUSE_ALV_GRID_DISPLAY' plz advice  the best solution to achive this
    thanks
    Raj
    Edited by: abaprthree on Oct 28, 2009 12:30 PM

    Hi,
    For this you will need to define header for the ALV. Here is a simple example how to do this:
    First you need to write one Header form like following:
    FORM f004_header  USING it_head TYPE slis_t_listheader..
      DATA : wa_line TYPE slis_listheader.
      CLEAR wa_line.
      wa_line-typ = 'H'. " H = Header, S = Selection, A = Action
      wa_line-info = 'List of Sales Orders'.
      APPEND wa_line TO it_head.
    " Here type out all the required data one by one in work are and append it to internal table
    ENDFORM.                    "f004_header
    before calling REUSE_ALV_GRID_DISPLAY you need to call following
    TO HEADER EVENT
    FORM f006_top.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = it_header.
    ENDFORM.                                                   
    and for REUSE_ALV_GRID_DISPLAY call as following
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_callback_top_of_page   = 'F006_TOP'
          it_fieldcat              = t_fieldcatalog[]
        TABLES
          t_outtab                 = it_data.
    Let me know if any other help is needed.

  • What table stores delivery header and item texts?

    Hi Gurus,
    Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
    Can you please tell me which table store the texts?
    Best regards,
    Pavan

    >
    Pavan1 wrote:
    > Hi Gurus,
    >
    > Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
    >
    > Can you please tell me which table store the texts?
    >
    > Best regards,
    > Pavan
    This stores in text objects so you need to pass
    Here is simple thing to find what to pass to the read_text function module.
    Go to delivery - If you want to find header text - GOTO (on application menu) - Header -texts - Double click on the text where you enter text - GOTO (on application menu) - Header - This will give you a popup kind of screen where you can find the
    text name (if it is header - only delivery number and if it is item - deliverynumber + item number ) , lang, Text id, Text object
    This will give you the required parameters... .

  • Tables for Purchase Requistion Header and Item Texts

    Hi,
    In which Tables does Purchase Requistion Header and Item Texts will be stored.
    Thanks in advance

    Not sure , you can try with T166K , T166P

  • Loop through header and item internal table

    Hi,
        My scenario will be like this, i have two internal tables which is populated based on certain conditions, now i have to call one bapi to update values that am going to store values in a tree structure say for eg mat01 is header and mat02 and mat03 are item values.
          What is the efficient method to call that bapi one time for header creation and consequte times for item creation respectively.
      shall i have to loop thro two internal tables i.e header and item?
    suggestions are welcomed from the experts...
    Thanks in advance...
    Regards,
    Babu

    Hi Babu
    you can do something like that.
    loop it_header.
    *Call bapi to create header
      loop it_item where field_key = it_header-field_key.
    *  Call bapi to create item  
      endloop.
    endloop.
    The important part is the where sentence in the second loop.
    Regards
          David N.

  • Header and Item Text is not replicating from ECC6.0 to SAP CRM 7.0

    Hi SAP Experts,
    When the text is added at header and item in Texts tab from SAP CRM then this is transferring into ECC6.0 but the otherway round is not working i.e., from ECC6.0 to SAP CRM.
    Would appreciate for giving solution.
    Thanks in advance.
    Best Regards
    Succhi

    Hi Succhi
    There are a number of oss notes to check: 1169856, 720147, 550343, and 549209
    Please make sure that the text tables are included in the filter as per note 720147.
    Also include the configuration as per note 549209.
    It is necessary that the same text types exist in both systems so please review the configuration carefully.
    I hop this helps.
    Best Regards
    Gavin

  • How to header and item data of sales order using bapi interface

    hi friends,
       i am geetha, i having a problem like how to upload sales oder header and item data through va01 tcode using BAPI FUNCTION MODULES.
    i need bapi function modules for header adn item data  and brief explation on that , how to pass importing and tables  parameters to get exact output .
    regards
    geetha.

    Use : BAPI_SALESORDER_CREATEFROMDAT2
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
    Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
    If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
    Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
    If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
    Notes
    1. Mandatory entries:
    ORDER_HEADER_IN : DOC_TYPE     Sales document type
                       SALES_ORG    Sales organization
                       DISTR_CHAN   Distribution channel
                       DIVISION     Division
    ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party
                       PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..: MATERIAL     Material number
    2. Ship-to party:
    If no ship-to party is entered, use the following: Ship-to party =
    sold-to party.
    3. Commit control:
    The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
    4. German key words:
    The following key words must be entered in German, independantly of
    the logon language:
    DOC_TYPE     Sales document type, for example: TA for standard order
    PARTN_ROLE   Partner role, for example: WE for ship-to party
    Further information
    You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
    Parameters
    SALESDOCUMENTIN
    ORDER_HEADER_IN
    ORDER_HEADER_INX
    SENDER
    BINARY_RELATIONSHIPTYPE
    INT_NUMBER_ASSIGNMENT
    BEHAVE_WHEN_ERROR
    LOGIC_SWITCH
    TESTRUN
    CONVERT
    SALESDOCUMENT
    RETURN
    ORDER_ITEMS_IN
    ORDER_ITEMS_INX
    ORDER_PARTNERS
    ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX
    ORDER_CFGS_REF
    ORDER_CFGS_INST
    ORDER_CFGS_PART_OF
    ORDER_CFGS_VALUE
    ORDER_CFGS_BLOB
    ORDER_CFGS_VK
    ORDER_CFGS_REFINST
    ORDER_CCARD
    ORDER_TEXT
    ORDER_KEYS
    EXTENSIONIN
    PARTNERADDRESSES
    Exceptions
    Function Group
    2032

  • Transaction to Mass Update Header and Item text in Purchase Order

    Dear All
    Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
    One Single Text For Ex :" This is a Dummy PO" .
    This text needs to be updated in large number of POs.
    Please let me know your views
    Reg
    Shyam

    Hi Shyam,
    You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
    "You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
    for services in the PoServicesText table. Texts can only be replaced complete."
    Regards,
    Purnima.

  • Header and Item Odata through SEGW

    Hi,
    I know that this Topic was raised million times, but still raising this query. I have already consulted http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0d92637-3d0d-2f10-ebb2-efc1f40a85e8?QuickLink=index&… link.
    Requirement: Create Header and Item Odata THROUGH SEGW.
    Steps I have followed:
    1. Created Header and Item Structure and have added them in the Export Parameters of an RFC.
    2. Created the RFC and have populated the the internal tables corresponding to the Header and Item structures.
    3. Go to Transaction SEGW and Imported the Header from the RFC. Then created Read and Query mapping for Header.
    4. Go to Transaction SEGW and Imported the Item from the RFC. Then created Read and Query mapping for Item.
    5. Created an association between "ID" of Header with "ID" of Item. Cardinality- 1:N
    Observation:
    Now when I run the Odata and execute /sap/opu/odata/sap/ZTEST_SRV/HDRSet(2)/ITEMSet, I get all the Items from the Item table for Each and every Header. But I guess for every header corresponding Items should have been enlisted.
    Is there any step that I am missing?
    Important: In the MPC class(ZCL_TEST_MPC), I could see a method named DEFINE_ASSOCIATION. I have put an external Breakpoint in it, but this breakpoint is not triggered.
    -Regards
    Dhrubajyoti

    Hii Dhru,
    In addition to the steps followed, you have to create navigation property using association created.
    You have to implement Get_expand_entityset method in DPC method for multiple headers and corresponding items and for single header and corresponding items you have to implement GET_EXPANDENTITY method.
    The URL is as format below :
    /sap/opu/odata/sap/<service name>/<Header entity set>/?$expand=<navigation property from header to item>&$filter= eq '<ID>' '<value>'
    Example URL : https://<server>:<port>/.../<service_name>/SalesOrders?$expand=SalesOrderItems
    For reference :
    https://help.sap.com/saphelp_gateway20sp08/helpdata/en/ca/c683e803494b77a2e1290b987556e2/content.htm
    When GET_EXPANDED_ENTITYSET method invoked
    For get_expanded_entity_set method implementation please refer the below URL
    http://scn.sap.com/community/gateway/blog/2014/07/18/implementing-expand-entityentity-set
    Regards,
    Lokeswar Reddy byni.

  • Header and Item data in a module pool

    Hi Friends,
    I designed a screen in that i have header data and item data.
    Here in my screen header i have vendor number,Vendor name,
    bank Name, Branch, LC value and Due date fields.
    and for item details i have to take table control.In the item details i have the fields Sl No, PO Number and Po Value.
    and Two push buttons i need to put.SAVE and CANCEL.
    When i click on SAVE all my screen details should be saved in a ZTABLE and should generate a LCDOCUMENT-Number from the system.
    So my question is shell i take the two tables for header and item data or one is enough and if i take two tables(one is header and one is item data) how i write the logic to store into the ztables.
    How can i proceed.Plz provide me with ur inputs
    Thanks and Regards.

    Hi!
    you have to take one table.....in which u have to move the header and item data into that b'coz according to the header data the items are to be displayed.......
    select the data for which ever tables they came and then take a final table in which include all the fields of header and item .loop on all the tables from which data u have taken and inside it move the data of those fields into the fields of the final table.
    In the ALV u need to call the function module to display the ALV with that final table in which ur all data is there and prepare a field catalog of those fields you want to display in the item list.
    for example a sample code is there...
    types:
      begin of type_s_vbak,
        vkorg type vbak-vkorg,             " Sales Organization
        aufnr type vbak-aufnr,             " Sales Order Number
        auart type vbak-auart,             " Sales Order Type
        kunnr type vbak-kunnr,             " Customer Number
        vbeln type vbak-vbeln,             " Sales Document
        knumv type vbak-knumv,             " Number of Document Condition
      end of type_s_vbak.                  " BEGIN OF TYPE_S_VBAK
    types:
      begin of type_s_konv,
        kwert type konv-kwert,             " Condition Value
        kbetr type konv-kbetr,             " Rate (Condition Amount)
        knumv type konv-knumv,             " Number of Document Condition
        kschl type konv-kschl,             " Condition Type
      end of type_s_konv.                  " BEGIN OF TYPE_S_KONV
    types:
      begin of type_s_material,
        kunnr      type vbak-kunnr,          " Customer Number
        matnr      type vbap-matnr,          " Material Number
        arktx       type vbap-arktx,          " Material Description
        steuc       type marc-steuc,          " Fiscal Classification
        kwmeng   type vbap-kwmeng,         " Quantity
        knumv      type vbak-knumv,          " Number of Document Condition
        vbeln        type vbak-vbeln,          " Document Number
        kwert       type konv-kwert,          " Condition Value
        total         type p length 14 decimals 2,
                                           " Total
        ipitype  type p length 9 decimals 3,
                                           " IPI Type
        ipivalue type konv-kwert,          " IPI Value
      end of type_s_material.              " BEGIN OF TYPE_S_MATERIAL
    data:
      fs_vbak type type_s_vbak.
    data:
      fs_mati type type_s_material.
    data:
      fs_konv type type_s_konv.
    data:
       t_vbak like
    standard table
           of fs_vbak.
    data:
       t_konv like
    standard table
           of fs_konv.
    data:
       t_mati like
    standard table
           of fs_mati.
    loop at t_konv into fs_konv where kschl eq 'ZPNF'.
        move fs_konv-kwert to fs_mati-kwert.
        modify t_mati from fs_mati
        transporting kwert
        where knumv eq fs_konv-knumv.
      endloop.                             " LOOP AT T_KONV INTO FS_KONV
    * Modifying Total Field of Material Table.
      loop at t_mati into fs_mati.
        w_total = fs_mati-kwmeng * fs_mati-kwert.
        move  w_total to fs_mati-total.
        modify t_mati from fs_mati
        index sy-tabix
        transporting total.
        clear w_total.
      endloop.                             " LOOP AT T_KONV INTO FS_KONV
    * Modifying IPI-Type Field of Material Table.
      loop at t_konv into fs_konv where kschl eq 'IPI3'.
        w_total = fs_konv-kbetr div 10.
        move w_total to fs_mati-ipitype.
        modify t_mati from fs_mati
        transporting ipitype
        where knumv eq fs_konv-knumv.
        clear w_total.
      endloop.                             " LOOP AT T_KONV INTO FS_KONV
    * Modifying IPI-Value Field of Material Table.
      loop at t_konv into fs_konv where kschl eq 'IPI3'.
        move fs_konv-kwert to fs_mati-ipivalue.
        modify t_mati from fs_mati
        transporting ipivalue
        where knumv eq fs_konv-knumv.
      endloop.                             " LOOP AT T_KONV INTO FS_KONV
    and then fill the fieldcatalog and display the ALV
    Edited by: Richa Tripathi on Apr 15, 2009 3:28 PM

  • Header and item data in po

    Hi,
    What are all the tables from which the data would be taken to display in header and item data in process PO ? From where these data would be taken ?
    Thanks alot.
    Regards, Sunayana N

    ADR10 Printer (Business Address Services)
    ADR11 SSF (Business Address Services)
    ADR12 FTP and URL (Business Address Services)
    ADR13 Pager (Business Address Services)
    ADR2 Telephone Numbers (Business Address Services)
    ADR3 Fax Numbers (Business Address Services)
    ADR4 Teletex Numbers (Business Address Services)
    ADR5 Telex Numbers (Business Address Services)
    ADR6 E-Mail Addresses (Business Address Services)
    ADR7 Remote Mail Addresses (SAP - SAP - Communication; BAS)
    ADR8 X.400 Numbers (Business Address Services)
    ADR9 RFC Destinations (Business Address Services)
    ADRCOMC Comm. Data Serial Number Counter (Business Address Services)
    ADRCT Address Texts (Business Address Services)
    ADRG Assignment of Addresses to Other Address Groups (BAS)
    ADRGP Assignment of Persons to Further Person Groups (BAS)
    ADRT Communication Data Text (Business Address Services)
    ADRU Table for Communication Usages
    ADRV Address Where-Used List (Business Address Services)
    ADRVP Person Where-Used List (Business Address Services)
    BBP_PDACC Account Assignment
    BBP_PDATT Document Attachment
    BBP_PDBEH Backend Specific Header Data
    BBP_PDBEI Backend Specific Item Data
    BBP_PDBGP Partner Extension Gen. Purchasing Data
    BBP_PDBINREL Transaction Object Linkage (EBP)
    BBP_PDCON Purchase Order Item Confirmation
    BBP_PDHAD_V Business Transaction Versions
    BBP_PDHCF Set for Tabular Customer and Solution Fields on Hdr
    BBP_PDHGP Business Transaction Purchasing Information
    BBP_PDHSC Header Extension for Customer Fields
    BBP_PDHSS Hdr Extension for SAP Internal Enhancements (IBUs and so on)
    BBP_PDIAD_V Business transaction item
    BBP_PDICF Set for Tabluar Customer and Solution Fields on Itm
    BBP_PDIGP Business Transaction Item-Purchasing Information
    BBP_PDISC Item Extension for Customer Fields
    BBP_PDISS Item Ext. for SAP Internal Enhancements (IBUs and so on)
    BBP_PDLIM Value Limit
    BBP_PDLINK_V Transaction - Set - Link
    BBP_PDORG Purchasing Organizational Unit
    BBP_PDPSET Further Procurement Information
    BBP_PDTAX Tax
    BBP_PDTOL Tolerances
    CDCLS Cluster structure for change documents
    CDHDR Change document header
    CDPOS_STR Additional Change Document - Table for STRINGs
    CDPOS_UID Additional Table for Inclusion of TABKEY>70 Characters
    CRMD_LINK Transaction - Set - Link
    CRMD_ORDERADM_HBusiness Transaction
    CRMD_ORDERADM_IBusiness Transaction Item
    CRMD_PARTNER Partners
    CRM_JCDO Change Documents for Status Object (Table JSTO)
    CRM_JCDS Change Documents for System/User Statuses (Table JEST)
    CRM_JEST Individual Object Status
    CRM_JSTO Status Object Information
    SROBLROLB Persistent Roles of BOR Objects
    SROBLROLC Persistent Roles of Business Classes
    SRRELROLES Object Relationship Service: Roles
    STXB SAPscript: Texts in non-SAPscript format
    STXH STXD SAPscript text file header
    STXL STXD SAPscript text file lines
    TOA01 Link table 1
    TOA02 Link table 2
    TOA03 Link table 3
    TOAHR Container table for HR administration level
    TCURR- Exchange table

Maybe you are looking for