Adding a customer table (e.g zcust) to a transaction

Hi,
A limitation i EEW is that you can not add a customer tables to a transaction (maintainable in transaction CRMD_ORDER) as one can do to a business partner (maintainable in transaction BP). Does any one know how to accomplish that with out EEW.
KR
Jan

Hi,
I have worked on a similar scenario where I added a table conttrol on the custom tab at contract line item.
As you already have a custom screen, please follow the following steps;
1. Create a new global internal table (git_cust) that corresponds to the your custom table.
2. Create a table control on the custom screen and link that with the global internal table (git_cust).
3: populate git_cust in the PBO of the custom screen with data of current transaction.
4. Use statement
LOOP at git_cust INTO wa_cust WITH CONTROL contrl.
to fill table control with data from the internal table.
5. In PAI, use
LOOP AT git_cust.
chain
endchain
ENDLOOP.
to update the internal table with the modified data.
6. Create a subroutine (subX) that should be called on commit. In this subroutine, update the custom table with data in the internal table.
7. Create a function module and link it to 'SAVE' event for object ORDERADM_H. In the function module, call the subroutine (subX) on commit.
These are the basic steps required. Please letme know the specific requirements so thatI can help you point by point.
Regards
Kaushal

Similar Messages

  • How to manage data in a custom table added in SBO?

    Hello,
    I'm developing a addon for one client that needs to control an aditional step, after each Invoice is posted.
    Since SBO does not allow me to add additional fields to Invoice header table (OINV), I thought to add a custom table to SBO database to control the process for each Invoice (simple table with 2 columns: DocNum to hold the Invoice number, and Status to keep track if the Invoice was processed or not).
    When I added a Custom Table in SBO and checked the table definition in SQL Manager, I found that SBO added automatically 2 new columns (Code and Name).
    Since the PK is defined at Code column (and not the DocNum has I wanted), I found that it not very handy to manage data (insert, delete & update) with this table definition.
    I tried to find a DI object that could manage easily the data of this table type but had no sucess.
    Then I thought in adding the custom table directly in SQL Manager, and manage it directly with Recordet objects.
    However this seems not a standard process to manage data since it interacts directly with the DBMS, which can be dangerous...
    Is there any way or DI object to manage this custom tables added in SBO?
    Thanks all!
    Manuel Dias

    Hi Manuel,
    What do you mean by SBO does not allow me to add additional fields to Invoice header table (OINV).
    Have you tried it add a UDF to OINV,if so what is the exception you got while adding.
    If you Have not tried Use the following code to create.
    Dim oUserFieldMD As SAPbobsCOM.UserFieldsMD
            oUserFieldMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            If (Not isColumnExist(TableName, ColumnName)) Then
                oUserFieldMD.TableName = "OINV"
                oUserFieldMD.Name = ColumnName
                oUserFieldMD.Description = Description
                oUserFieldMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                oUserFieldMD.EditSize = Size
                (objUserFieldMD.Add() )
            End If
    if the field is added successfully.
    Then open the Invoice screen and goto View menu and click on user defined fields then it will show you one form which contains the field you added,
    You can access this field using DIAPI of Invoice object
    regards
    Vishnu

  • Profile count zero for custom table related attributes

    Hi,
    We added a custom table as an assignment block in the business partner and we are using this in segmentation.
    If I connect with the standard marketing authorisation role, when I create a profile using attributes of this table it returns a count of 0. 
    If I connect using my user with (sap_all) I have no problem with the count.
    Do I need to add a specific authorisation object for the custom table or should this be handled automatrically in  EEWB?
    In the authorisation trace I cannot find anything significant to help.
    regards
    Tim

    Indeed, an authorisation issue, object S_TABU_DIS required.

  • Custom table can be displayed and not maintainable using SE16n.

    Hi Gurus,
    I have created a custom table with DATA BROWSER/TABLE VIEW MAINT. equal to 'N' (Display/Maintainance not allowed) in SAP ECC 6. The the requirment is, this custom table can be displayed using the transaction SE16n.
    This requirement is existing in ECC 5. with same setting DATA BROWSER/TABLE VIEW MAINT. equal to 'N' (Display/Maintainance not allowed) and this table can be viewed using transaction SE16n.
    would there be possible that this requirement be implemented in SAP ECC6? would this be due to the version?
    Please help.
    Thank you..
    Regards,
    SAI

    Hi Kiran,
    Thanks for your answer but unfortunately this is not what I'm looking for. Iam also familiar with &SAP_EDIT.
    Well, my problem is, the custom table setting Data browser/Table view Maint. is set to "N Display / Maintainance not Allowed" ( under Delivery and Maintainance Tab). Also there is no table maintainance generator setup.
    So basically with this setting, in transaction SE11 'Contents' is disabled. And with transaction SE16n, when you execute and tried to view the table, error "You cannot display zcustom_table with standard tool". (checkboxs are hidden)
    What the requirement is looking, the custom table can be viewed (this is with the same setting above but can be viewed using SE16n and the checkbox maintain entries is automatically tick but when executed "auth failed" so, basically to view the entries, untick the checkbox then entries can now be viewed.)

  • Create a custom table

    Hi All,
    I have to create a custom table for sales dept. Can some one please give me the entire process to create a custom table.
    Thanks,
    Veni.

    Go to transaction SE11.
    Enter table name as per naming conventions(it should start with z or y)
    go to table fileds and enter the required filds, remeber to have mandt as first table field.
    the enetr the key fields as per your requirement.
    assign foreign keys as applicable.
    create data elements and domains if required.(or craete them before craeting the table so that you can directly use)
    finally after entring the all table filds activate it.

  • Adding button to a custom table cell (and handling them)

    Hi
    I'm wondering if it's possible to add a button on each row of a table view using a custom table cell view. If it's possible, I'm really wondering how I can handle the click events on these buttons.
    Thanks

    No.
    Try creating a view and adding it to a cell. Let us know what problems you have, and we can try to help.

  • Problem in adding custom table's field in MM46

    Hi,
    I have a complex requirement of adding fields of custom table in MM46 for mass maintance.
    I did most of the part but dont know what is missed.
    Steps that i followed
    1. used tcode MASSOBJ- I Added Ztable name to application table for Object type - BUS1001001.Here i dont know what to provide in other attributes of entry example Number, DB table etc. [SCREENSHOT OF MASSOBJ|https://plus.google.com/photos/114088763388693559922/albums/5704943614516268609]
    2. Used tcode OMSR- I added entry of Ztable'field  here i gave selection group as 211, maint status as KDEVALBQPSZXCFG
    alv group- blank. [screen shot of OMSR |https://plus.google.com/photos/114088763388693559922/albums/5704943614516268609]
    After doing these steps Table name and field of table is visible in mm46. But problem is  Field is not editable that is in display mode only. 
    Pleae see this snapshot - [error image|https://plus.google.com/photos/114088763388693559922/albums/5704938582830478801]
    Please help me by telling what i missed and am i adding right attributes for entries in MASSOBJ AND OMSR?
    Thanks.
    Waiting for expert's comments.
    Reagards
    Rahul
    Please do not use words like 'urgent'
    Edited by: Rob Burbank on Feb 3, 2012 11:31 AM

    Hi Rahul,
    Wellcome to SDN. Perhaps you know it, and although it's for older releases, perhaps it could help you. Please, see SAP Note 381942 - Mass changes for logistics data in the article master.
    I hope this helps you
    Regards
    Eduardo

  • Regarding adding a Custom field to Standard Table

    Hi ABAPers,
    Can any one explain the below spec-description.
    "The purpose of this design is to provide the foundation for a more automated solution to the invoice reconciliation process.  This design calls for adding a custom field to the standard SAP table EINE as well as a data maintenance tool for the same.  There will also be a new custom table for storing values associated with the new EINE field.  These new tables will also provide users with the ability to determine which PIR are soon to expire."
    We have to add one custom field to standard table EINE, how we can add this custom field to STND table.
    According to me we can add it through append structure. is it correct or not.
    and what is data maintenance tool.
    Pls.............Explain in details.
    Thanks in advance.
    Regards,
    Ramana Prasad. T

    Hi,
    Goto SE11 ,give ur table name.Then press display button.Then in the application tool bar press on append structure ...Now create a zstructure and add ur custom field and then activate the table.
    Regards,
    nagaraj

  • Adding new field in customized table ZPM_QMEL_EXT

    Hi all,
    My requirement is  to add a new field in ZPM_QMEL_EXT table numeric field no of  months due (ZZ_CO_MON_DUE) .
    Its value will be calculated as the # of invoices that were paid vs. what has not been paid and then from there, value of this field will be fetched.It has to be populated during the time of notifcation screen entry (iw51). The logic will be similar to this
      SELECT FAEDN FROM DFKKOP INTO TABLE IT_DU_DT
                                  WHERE GPART EQ WA_QMEL-KUNUM AND
                                        VKONT EQ WA_QMEL-ZZ_VKONT.
        SORT IT_DU_DT BY FAEDN ASCENDING.
        READ TABLE IT_DU_DT INTO WA_DU_DT INDEX 1.
        MOVE WA_DU_DT-FAEDN TO DUE_DT.
        CALL FUNCTION 'HR_MONTHS_BETWEEN_TWO_DATES'
          EXPORTING
            I_DATUM_BIS = SY-DATUM
            I_DATUM_VON = DUE_DT
          IMPORTING
            E_MONATE    = NO_MT.
        IF NO_MT IN P_DU_MT.
          WA_QMEL-DUE_MONTHS = NO_MT.
    Awaiting your kind help .
    Thanks
    hariom.

    Hi,
    There is only one option to include extra field for standard tables that is Append Structure other than we don't have any option.
    For Customizing tables we can use Append structure as well as Include Structure.
    Rules: Append Structure should be in last in Field column but include structure you can insert in any where it means between the fields.
    Delivery class option  and data class will take care automatically while upgrading the sap system one version to Another version.(upgrading).
    For that you should maintain the those properties when data base table creation.
    i hope the above information may helpful to you.
    Best Regards
    Sreenivas Pachva

  • Prompt for transport request if records are added/modified for custom table

    Hello Experts,
    A couple of questions,
    1. How do we prompt user to create a TR whenever he changes a record in my custom table
    via SM30? my custom table has a maintenance type of 'C' - customizing already.
    2. How do we transport the custom table contents to another client?
    Thank you guys and take care!

    Hello
    Regarding (1) just have a look at a standard maintenance view like V_T001W (SE11 -> menu Utilities -> Table Maintenance Generator ):
    Here you can see that the option Standard Recording Routine is chosen which is responsible for prompting for a transport request as soon as records of the table/view are changed.
    Regards
      Uwe

  • Adding custom table

    Hello,
    The goal is to add a table where some custom parameters will be stored in order to speed up custom SQL queries.
    Is it allowed/recommended to add a custom table to the HDS database?
    Is it possible to add a table to the CUIC database? Is it possible to access the CUIC database?
    Thanks,
    Justine.

    I would not add any tables to the HDS DB, pretty sure it's not supported.  As for the CUIC database, I don't think you have access to the actual DB itself.  Why don't you just build the table in another DB and create a new datasource in CUIC to pull data from this table?
    david

  • Custom Table Control in VA21/22/23 Tranaction Issue

    Hi Friends,
    Working on SAP R/3 Release 4.6C.
    There is a custom Table Control in one of the screen of VA21 Transaction.
    My requirement is to insert one more Field/Column to this table Control.
    The following are the sequence of fields in Table Control.
    Column1
    Column2
    Column3
    Column4
    After Inserting the Field in the middle of Column1 and Column2.
    The Sequence of Table Control is getting Changed.
    The Table Control has to show like this.
    Column1
    Column2     "New Field which is added
    Column3
    Column4
    Column5
    But I'm getting as below
    Column5
    Column3
    Column2     "New Field which is added
    Column1
    Column4
    When executing the Table Control Screen in SE51 with Screen Name and Screen Number,I am getting the perfect output.
    When executing thro VA21/22/23, Iam getting sequence mismatch.
    Anyone come across this scenario. Please guide to solve this.
    Thanks.

    Solved.
    Thanks.

  • How to track changes in a custom table and based on that run an interface

    I have an interface. The pre-condition for running the interface is "Run the interface only if there is new entry added to the table( a custom table). Now I have created a change document object using tcode SCDO for the custom table. Now how do i proceed further. Please tell me the steps which i need to follow to check if the custom table has been changed and also the entries changed  before running the interface.

    Hello,
    SAP has provided many changes tracking related programs for Sales order, Vendor changes etc.
    They all use the standard function Module
      call function 'CHANGEDOCUMENT_READ_HEADERS'
    call function 'CHANGEDOCUMENT_READ_POSITIONS'
    so with these you can get the changed records
    Let me know if this helps you
    Thanks and Regards
    Pushkar Joshi

  • Downloading blob content from a custom table

    In our hosted Apex application, the following code from the Application Express Developer's Guide works great for allowing a user to download blob content from one of our custom tables via a download button. However, the code doesn't work on the Oracle Cloud because the "owa_util" package is no longer available. The code is as follows:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    Besides using web services, does anyone know of a way to do this? Is there a way to add access to the "owa_util" package in the cloud? I have also tried apex_util.get_blob_file_src but that is also unavailable in the Oracle Cloud.
    Thanks,
    Steve

    Following Joel's advice:
    The way I solved this was to split the code between two page processes and one application process. The download button first calls a page process to move the report data into a blob column and then calls another page process which is of "run application process" type. This calls the application level process where the download code, shown below, is called.
    Notice the following changes to the code from the one posted earlier (also from Joel)
    1) added sys.htp.init;
    2) "sys." to all htp, owa and wpg_docload calls
    3) added apex_application.stop_apex_engine; after the wpg_docload statement at the bottom of the script.
    Now the download button launches a "save as" dialog box and the report content is downloaded to the client.
    The code now looks like:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM oehr_file_subject
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    sys.htp.init;
    sys.owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    sys.htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    sys. htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    sys.owa_util.http_header_close;
    -- download the BLOB
    sys.wpg_docload.download_file( Lob_loc );
    apex_application.stop_apex_engine;
    end download_my_file;
    Thanks Joel for your help.
    Steve

  • Custom table Not deleting the line items on the order.

    Hi All
    I have an issue, In SAP  we have created a custom table which is related to ship to party, as and when we delete any line items in the order(VBAP)  it should update /delete the custom table but it is not deleting, while when we create any line items in the order (VBAP) it is updating  the entries in the custom table which is suppose to happen.
    Please let me know your inputs.
    Thanks,
    Ram

    UPDKZ is not a field name. it is the processing status of a line or order.
    If UPDKZ is I , its initial, like adding a new line
    If UPDKZ is U, its update. Like changing or modifying an existing line
    ....so on...
    Regards
    Sai

Maybe you are looking for

  • Vibrate Profile - not working

    When I receive texts, calls, emails, the device is not Vibrating, although it is set to "Vibrate" and all the Vibrate settings in 'Advanced' seem ok...Am I overlooking something obvious?

  • IPod with click wheel, refuses to restore

    This problem is hapening with my first iPod, click wheel model. I am trying to restore it but it doesn't allow to do so. When the iPod is disconnected from the Mac, pressing the MENU and/or Selection button, I get a folder's clipart while turning it

  • Forms Generator - pro's & contra?s

    Hi all Does somebody have a list of pro's and contra's concerning generation of Forms modules in Designer6i respectively 9i? Best regards Martin

  • SCCM Report for Software Updates that show the required update and its size

    Hello- I created multiple windows update deployments, but was looking to view a report that shows me the update name (like the KB and MS) along with the size of the update. Does anyone know if there's a pre-made report?  If not, does anyone know of a

  • Can not connect to the internet

    I just upgraded my girlfriends computer to Tiger from Panther. Now She can not get on the internet at all, neither can I while her powerbook is on. When it is asleep or turned of I have access for some reason. Anyone know how to fix this? I have a Po