Help on the ADOC history table in SBO 2007

Hi
I am interested in writing a report on changes to sales orders so I thought the ADOC and ADO1 tables would be a good start
However if I place a sales order in my system I can't see the order in the ADOC table
Is there some setting I need in SAP so these tables are updated ?
Many thanks
Regards Andy

Thanks Gordon
Just discovered that for myself whilst testing more
Thanks again
Regards Andy

Similar Messages

  • Number of Visible rows on the "Leave History" Table

    Dear SDN,
    please, how can I set the height of the "Leave History" table on the PZ54 ESS transaction ?
    The user is requesting more visible rows, but the table only displays 2 rows, and I can't find on the SDN how I can set this table property.
    --> This transaction can be accessed through the Portal, under ESS -> Leave -> Leave Application / Leave History, which is an ITS for the PZ54 transaction.
    Thanks in advance,
    Fabio

    This issue was fixed on post ITS iView height is compressed at first run

  • Help:: Tracking the change history for a BP

    Hi All..
    I really need ur help.. Somebody please..
    I'm making a prog. to update BP (TCODE: BP) & it run well. But now, i'm getting to make report for change history in BP. As for it, i look up it in table CDHDR & CDPOS, but i didn't find it :(.
    I use these FM to update:
    1. BUP_BUPA_UPDATE.
    2. ADDR_SAVE_INTERN.
    Even i have tried to run FM ADRESSE_WRITE_DOCUMENT, but it still didn't work well.
    The questions are:
    1. Am i right for using FM ADRESSE_WRITE_DOCUMENT in order to get the history change in CDHDR & CDPOS.
    2. How to use FM ADRESSE_WRITE_DOCUMENT? What should i fill up in parameter: OBJECTID,PLANNED_CHANGE_NUMBER,PLANNED_OR_REAL_CHANGES,
    and NO_CHANGE_POINTERS ???
    3. Why do always i got the exception NO_POSITION_INSERTED in using FM ADRESSE_WRITE_DOCUMENT? How to solve it?
    4. Or are there any ways how to update well where i'm able to track the change history for BP? / Is that any functions to update BP like FM CRM_ORDER_MAINTAIN.
    Thx so much.. for ur attention
    Ur guidance is so much needed.
    Best Regards
    Daniel N.

    Hi Daniel,
    You can refer to table TCDOB for object class, it has a list of object class to which you can refer to and also the text description for each object class exists in that table.
    Regarding the object id, you need not pass the value of the object id unless and until you want to read the change history of a particular Business partner.
    Pass the value of the object class and if required the date of change to track the changes made to the BP's in that particular time period.
    Hope this helps.
    Regards,
    Karthik.

  • How to display the open file dialogue in SBO 2007

    Hi
    I have my own form on screen with a edit text box which will contain the path and name of a file entered by the user
    Is there any way I can display the windows open file dialogue so the user can search for a file ?
    Many thanks
    Regards Andy

    Hi Anoop
    Code below, simple and it seems to work well
    Thanks for your help
    Regards Andy
                fpath = ""
                Dim thread As New System.Threading.Thread(AddressOf openfile)
                thread.SetApartmentState(Threading.ApartmentState.STA)
                thread.Start()
                thread.Join()
                form.Items.Item("4").Specific.string = fpath
            Sub openfile()
                Dim abform As Form1
                abform = New Form1
                abform.Show()
                abform.OpenFileDialog1.Filter = "CSV Files|*.csv"
                If abform.OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
                    fpath = abform.OpenFileDialog1.FileName
                End If
                abform.Close()
            End Sub

  • Drill down SAP history table on Linux

    You may have noticed (or not noticed) that on some fields in SAP there is a History table that appears once you start entering (typing) information into the field.
    The History table is a field box that appears underneath a field when you start entering information. An example of one of the fields is the Fund field.
    This History table contains the last entries entered (by typing) into the field. Users have discovered that it allows a quick reference to regularly entered information.
    This we i m observing on windows platform , but when i am using SAP on Linux fedora
    same history table not creating.
    Please help us to maintain history table in SAP on Linux fedora core 3 platform
    Vijay Vadgaonkar
    India
    [email protected]

    Hi Vijay,
    I assume you are talking about the history table for SAP GUI? If this is correct, please move your post to a forum like e.g. "ABAP Development".  This here is dedicated to KMC in the SAP Enterprise Portal.
    Regards,
    Karsten

  • Update the change history for line items in CDHDR/CDPOS

    Hi,
    I have a problem in updating the sales order and line items in CDHDR/CDPOS when there is change in header level custom field..
    Actually i have a custom field in VBAK which added in additional data A in the header level of sales order.When we have change in that field only some line items only updating in the change history tables(CDHDR/CDPOS),but we need to capture all the line items when the custom field in the header level is changed.
    i have added change document flag in the data element of the custom field.
    Please advice me how to get all  the line items will reflect in CDHDR/CDPOS when the header level custom field has change .
    Thanks & Regards
    Kiran

    The purpose of CHANGE DOCUMENT tables is to flag the changes with Old and New values. So when Header data is changed only Header details will be tracked and same for Item tables too.
    If you need anything addtional from this then that would customizing.
    I am not sure what is your requirement but to make it simple and achive requirement add same field with same setting to line item tables VBAP, VBKD.. (as required, if that's doesnt impact your Order. These fields no need to be on screen). While changing your Custom field of Header level change the item level field too. Then CHANGE DOCUMENT will generate automatically for all the line item including header.

  • Purchase Requision History Table

    Can anyone tell me the name of the table in which  revision history of Purchase requisition is maintained?
    Like PO you have ekbe.
    But for PR which is the revision history table??

    Hi try this way...
    SELECT COUNT(*) FROM cdhdr INTO t_output-w_poc
                                      WHERE objectclas IN ('EINKBELEG',
                                      'BANF' , 'COND_A' , 'VERKBELEG' ,
                                      'INFOSATZ' , 'MM_SERVICE' , 'VBEX' )
                                      AND udate IN r_date
                                    AND tcode IN ('ME22' , 'ME22N','ME23N').
          IF sy-subrc EQ 0.
    "Join with table CDPOS where table name is EBAN
          ENDIF.
    Prabhudas

  • SBO 2007 PL06 - GetCompanyList fails

    Folks,
    I am not able to get the list of companies on SBO 2007. The following code fails with "Failed to connect to SBOCommon" error.
    try {
       SAPbobsCOM.Company c = new SAPbobsCOM.Company();
       c.Server = "Test17";
       c.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
       c.UseTrusted = "true";
       SAPbobsCOM.Recordset cl = c.GetCompanyList();
    } catch (Exception e) {
       Console.WriteLine(e.Message);
    Note that all other APIs work just fine. I am able to open connection to specific company and perform any programmatic operation. It is just that GetCompanyList fails.
    I am running this code on the machine where SBO server is installed. So there are no network issues.
    I have tried setting the server to "local," "(local)", "localhost", etc. Still no success.
    I also tried setting UseTrusted to false and specified DbUsername and DbPassword. Still no success. As far as I know, GetCompanyList always uses trusted connection and ignores usrename/password fields.
    Does anyone know what the problem could be?
    Thank you in advance for your help.
    Regards,
    Pradeep

    Hi
    pls try this code,
    oCompany = New SAPbobsCOM.Company
                If cmbServertype.Text = "SQL SERVER 2005" Then
                    oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005
                Else
                    oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL
                End If
                oCompany.Server = "Test"
                oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English
                oCompany.DbUserName = "sa"
                oCompany.DbPassword = "SQL"
                 oRecordSet = Me.oCompany.GetCompanyList()
                Me.oCompany.GetLastError(lErrCode, sErrMsg)
                If lErrCode <> 0 Then
                    MsgBox(sErrMsg)
                    Exit Sub
                Else
    Msgbox("Connection Success")
    endif
    Regards
    Senthil Kumar

  • Table name in which the trip history is stored.

    Hi All,
    I was trying to find out the table in which the trip history is stored but in vain could not. Can any one let me know the table name plz.
    Your help is very much appreciated.
    Thanks and Regards
    Sri

    FITV_REJECT                    Rejected Trips                            
    FTPT_IMR_SURFACE               IMR - Other Segments of Trip as Flights   
    FTPT_QT_ALTERN                 Quicktrip Trip Alternative                
    FTPT_QT_QTRIP                  Quicktrip Trip                            
    PTRV_ARCHIVE                   Administrative Table for Archived Trip Dat
    PTRV_BEIH_BEL                  Assignment of Receipts to a Subsidy for Tr
    PTRV_BEIH_TAG                  Assignment of Days to a Subsidy for Trips 
    PTRV_BEIH_WEG                  Assignment of Trip Segments to a Subsidy f
    PTRV_BEIHILFE                  Subsidies for Trips Home for Entire Separa
    PTRV_COMM_AMT                  Detail Data: Transfer to FM When Trip Save
    PTRV_COMM_ITM                  Header Data: Transfer to FM When Trip Save
    PTRV_F_FBLK                    Form Blocks of the Trip Costs Form        
    PTRV_F_FBLK_TXT                Form Blocks of the Trip Costs Form        
    PTRV_HEAD                      General Trip Data                         
    PTRV_PERIO                     Period Data of a Trip                     
    PTRV_REDUCTION                 Decision Fields: Change of Statutory Trip 
    PTRV_ROT_AWKEY                 Assignment of Trip Results to Posting Doc.
    PTRV_SADD                      Trip Statistics - Add. Receipt Data       
    PTRV_SBACKLOG                  Trip Statistics - Batch/Backlog Processing
    PTRV_SCOS                      Trip Statistics - Cost Assignment         
    PTRV_SHDR                      Trip Statistics - Trip Amounts            
    PTRV_SREC                      Trip Statistics - Receipts                
    PTRV_TRIP_CHAIN                Table of all Trip Destinations f. Processi
    PTRV_TRIP_DELETE               Trips Deleted in R/3 For Offline Travel Ma
    SFLTRIPBOK                     Individual Flight Bookings for a Flight Tr
    T702N                          Trip Provision Variants

  • How to insert past record after updating the master table in history table through store PROC

    Master Table
    Party Status
    A Active
    B Inactive
    C Active
    D Inactive
    Duplicate Table
    Party Status
    A Active
    B Active
    C Active
    D Inactive
    Updated Master Table
    Party Status
    A Active
    B Active
    C Active
    D Inactive
    Party History Table
    B Inactive
    I have two table one master and another duplicate I need to update master table based on duplicate table insert the record which updated into Party history table as shown above. need help to write store proc.

    Check MERGE syntax in BOL (example D). There should be a sample with output, e.g.
    insert into PartyHistory (Party, [Status])
    select Party, [Status] FROM
    (MERGE Master M using Duplicate D on M.[Party]=D.[Party]AND M.[Status]<>D.[Status]
    WHEN MATCHED THEN UPDATE
    SET [Status] = D.[Status]
    OUTPUT Deleted.[Party], Deleted.[Status], $Action) AS Changes (Party, [Status], Action) WHERE Action = 'UPDATE'
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Need some help with the Table Function Operator

    I'm on OWB 10gR2 for Sun/Solaris 10 going against some 10gR2 DB's...
    I've been searching up and down trying to figure out how to make OWB use a Table Function (TF) which will JOIN with another table; allowing a column of the joined table to be a parameter in to the TF. I can't seem to get it to work. I'm able to get this to work in regular SQL, though. Here's the setup:
    -- Source Table:
    DROP TABLE "ZZZ_ROOM_MASTER_EX";
    CREATE TABLE "ZZZ_ROOM_MASTER_EX"
    ( "ID" NUMBER(8,0),
    "ROOM_NUMBER" VARCHAR2(200),
    "FEATURES" VARCHAR2(4000)
    -- Example Data:
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (1,'Room 1',null);
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (2,'Room 2',null);
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (3,'Room 3','1,1;2,3;');
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (4,'Room 4','5,2;5,4;');
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (5,'Room 5',' ');
    -- Destination Table:
    DROP TABLE "ZZZ_ROOM_FEATURES_EX";
    CREATE TABLE "ZZZ_ROOM_FEATURES_EX"
    ( "ROOM_NUMBER" VARCHAR2(200),
    "FEATUREID" NUMBER(8,0),
    "QUANTITY" NUMBER(8,0)
    -- Types for output table:
    CREATE OR REPLACE TYPE FK_Row_EX AS OBJECT
    ID NUMBER(8,0),
    QUANTITY NUMBER(8,0)
    CREATE OR REPLACE TYPE FK_Table_EX AS TABLE OF FK_Row_EX;
    -- Package Dec:
    CREATE OR REPLACE
    PACKAGE ZZZ_SANDBOX_EX IS
    FUNCTION UNFK(inputString VARCHAR2) RETURN FK_Table_EX;
    END ZZZ_SANDBOX_EX;
    -- Package Body:
    CREATE OR REPLACE
    PACKAGE BODY ZZZ_SANDBOX_EX IS
    FUNCTION UNFK(inputString VARCHAR2) RETURN FK_Table_EX
    AS
    RETURN_VALUE FK_Table_EX := FK_Table_EX();
    i NUMBER(8,0) := 0;
    BEGIN
    -- TODO: Put some real code in here that will actually read the
    -- input string, parse it out, and put data in to RETURN_VALUE
    WHILE(i < 3) LOOP
    RETURN_VALUE.EXTEND;
    RETURN_VALUE(RETURN_VALUE.LAST) := FK_Row_EX(4, 5);
    i := i + 1;
    END LOOP;
    RETURN RETURN_VALUE;
    END UNFK;
    END ZZZ_SANDBOX_EX;
    I've got a source system built by lazy DBA's and app developers who decided to store foreign keys for many-to-many relationships as delimited structures in driving tables. I need to build a generic table function to parse this data and return it as an actual table. In my example code, I don't actually have the parsing part written yet (I need to see how many different formats the source system uses first) so I just threw in some stub code to generate a few rows of 4's and 5's to return.
    I can get the data from my source table to my destination table using the following SQL statement:
    -- from source table joined with table function
    INSERT INTO ZZZ_ROOM_FEATURES_EX(
    ROOM_NUMBER,
    FEATUREID,
    QUANTITY)
    SELECT
    ZZZ_ROOM_MASTER_EX.ROOM_NUMBER,
    UNFK.ID,
    UNFK.QUANTITY
    FROM
    ZZZ_ROOM_MASTER_EX,
    TABLE(ZZZ_SANDBOX_EX.UNFK(ZZZ_ROOM_MASTER_EX.FEATURES)) UNFK
    Now, the big question is--how do I do this from OWB? I've tried several different variations of my function and settings in OWB to see if I can build a single SELECT statement which joins a regular table with a table function--but none of them seem to work, I end up getting SQL generated that won't compile because it doesn't see the source table right:
    INSERT
    /*+ APPEND PARALLEL("ZZZ_ROOM_FEATURES_EX") */
    INTO
    "ZZZ_ROOM_FEATURES_EX"
    ("ROOM_NUMBER",
    "FEATUREID",
    "QUANTITY")
    (SELECT
    "ZZZ_ROOM_MASTER_EX"."ROOM_NUMBER" "ROOM_NUMBER",
    "INGRP2"."ID" "ID_1",
    "INGRP2"."QUANTITY" "QUANTITY"
    FROM
    (SELECT
    "UNFK"."ID" "ID",
    "UNFK"."QUANTITY" "QUANTITY"
    FROM
    TABLE ( "ZZZ_SANDBOX_EX"."UNFK2" ("ZZZ_ROOM_MASTER_EX"."FEATURES")) "UNFK") "INGRP2",
    "ZZZ_ROOM_MASTER_EX" "ZZZ_ROOM_MASTER_EX"
    As you can see, it's trying to create a sub-query in the FROM clause--causing it to just ask for "ZZZ_ROOM_MASTER_EX"."FEATURES" as an input--which isn't available because it's outside of the sub-query!
    Is this some kind of bug with the code generator or am I doing something seriously wrong here? Any help will be greatly appreciated!

    Hello Everybody!
    Thank you for all your response!
    I had changes this work area into Internal table and changed the select query. PLease let me know if this causes any performance issues?
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    I had removed the select single and insted of using the Structure it_rej, I had changed it into Internal table 
    select vkorg abgru from ZADS into it_rej.
    Earlier :
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    Now :
    DATA : BEGIN OF IT_REJ occurs 0,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    I guess this will fix the issue correct?
    PLease suggest!
    Regards,
    Developer.

  • How to add F4 help for the custom field of a custom table

    Hi All,
    How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
    PROCESS ON VALUE-REQUEST.
      FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
    But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
    Thanks&Regards
    mahesh

    Hi,
    Create a subroutine under the event and call the following FM
    1. Select all the related data into an itab, for ex i_kunnr
    2.    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
        DDIC_STRUCTURE         = ' '
           retfield               = 'KUNNR'
        PVALKEY                = ' '
           dynpprog               = sy-repid
           dynpnr                 = '1000'
           dynprofield            = <selection screen field>
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
           value_org              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
          TABLES
           value_tab              = <b>i_kunnr</b>
        FIELD_TAB              =
           return_tab             = < return table >
        DYNPFLD_MAPPING        =
         EXCEPTIONS
           parameter_error        = 1
           no_values_found        = 2
           OTHERS                 = 3

  • F4 help in the selection screen from a int table

    I collected the datas from the function module. and the internal table is populated.
    the internal table contains manny fields.
    among these fields i need to take only one field and this field value to be used for F4 help in the selection screen ( not a dynpro)
    for example : in the selection screen
    I have to select the PO.
    based on the user i have filtered the PO. (determined dynamically by using the user name this i have done it)
    then i have to assign the PO the selection screen.
    which FM will be better to use  for this type of scenario and help me out with some example codes particularly for my req
    Thanks

    Hi ,
    use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'
    This example is for search help for material type .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_mtart-low .
    select all material types you want to display in search help into table i_mtart.
    PERFORM select_material_type.
    PERFORM help_material_type.
    *& Form help_material_type
    text
    --> p1 text
    <-- p2 text
    FORM help_material_type .
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    retfield = 'MTART'
    PVALKEY = ' '
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    dynprofield = 'S_MTART-LOW'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    value_org = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    value_tab = i_mtart
    FIELD_TAB =
    RETURN_TAB =
    DYNPFLD_MAPPING =
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 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.
    ENDFORM. " help_material_type
    Regards,
    Balaji.

  • How to display table name in the Record history

    Hi,
    I have developed a new custom form. When I click on the record history, it displays details like updated_by , update_Date.
    But it doesnt show the table name ( of the data block ). Is there any coding to be done to display the table name ?
    Regards,
    Suresh

    Sounds like some custom form for the eBusines-suite. Maybe you get an answer in an eBusiness-suite related forum, maybe here OA Framework

  • Hi i need help on BAPI to Update the ADRT & ADR6 tables

    hi,
    i need help on BAPI to Update the ADRT & ADR6 tables
    these are the fields to be updated
    ADRT-Remark Table
    ADR6-SMTP_ADDR
    ADR6-DFT_RECEIV
    Please guide me what parameters to be passed to update
    ADR6 & ADRT tables

    Look at this function Group
    <b>BUBA_3                         SAP BP: External BAPI Function Modules     </b>                        
    BAPI_BUPA_ADDRESS_ADD          SAP BP, BAPI: Add Address                                          
    BAPI_BUPA_ADDRESS_CHANGE       SAP BP, BAPI: Change Address                                       
    BAPI_BUPA_ADDRESS_GET_NUMBERS  SAP BP, BAPI: Read Address Numbers                                 
    BAPI_BUPA_ADDRESS_GETDETAIL    SAP BP, BAPI: Read Address                                         
    BAPI_BUPA_ADDRESS_REMOVE       SAP BP, BAPI: Delete Address                                       
    BAPI_BUPA_ADDRESSES_GET        SAP BP, BAPI: Determine All Addresses                              
    BAPI_BUPR_CONTP_ADDR_ADD       SAP BP, BAPI: Add Contact Person Relationship Address              
    BAPI_BUPR_CONTP_ADDR_CHANGE    SAP BP, BAPI: Change Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDR_GETDETAIL SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_CONTP_ADDR_REMOVE    SAP BP, BAPI: Delete Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_EMPLO_ADDR_ADD       SAP BP, BAPI: Add Employee Relationship Address                    
    BAPI_BUPR_EMPLO_ADDR_CHANGE    SAP BP, BAPI: Change Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDR_GETDETAIL SAP BP, BAPI: Read Employee Relationship Address                   
    BAPI_BUPR_EMPLO_ADDR_REMOVE    SAP BP, BAPI: Delete Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    Look also at OSS <a href="https://service.sap.com/sap/support/notes/306275">Note 306275 - Transferring address data</a>
    Regards

Maybe you are looking for