Skip to Content
author's profile photo Former Member
Former Member

create (maintenance) transaction

Hello,

I need a maintenance transaction for a table view, that creates a new entry in the table.

I already made two maintenance transactions, for displaying and updating the table (at SE93, choosing Transaction with Parameters, calling SM30, and passing the parameters SHOW or UPDATE, resp.).

Would it be similar for adding a new entry into the table?

Thanks a lot,

Ivson

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 03:25 PM

    Hi Ivson, this will help u.

    Goto SE16 Transaction and enter TSTCP Table

    Here PARAM = /SM30 VIEWNAME=Table name*;UPDATE=X;

    enter table name in bold.

    kindly reward if found helpful.

    cheers,

    Hema.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 03:46 PM

    hi

    good

    You can go from an IMG activity to a customizing transaction via the maintenance object. A maintenance object is defined by the associated customizing object, a transaction and its transaction type. Customizing objects are managed in the table OBJH, which also contains their attributes. If the maintenance object is defined as a Business Add-In, the customer can link to a program enhancement (user exit) at this point in the IMG.

    http://help.sap.com/saphelp_sm32/helpdata/en/13/54e34150cb11d395cf00a0c930dcc1/content.htm

    thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you for your answers.

      I finally found a solution that I think is more "straightforward":

      In SM35 record the steps of the desired transaction (i. e., SM30 -> Update -> New entries).

      Create a report like this:

      REPORT z*** .

      INCLUDE z_macros_batch_input.

      DATA BEGIN OF wa_opt.

      INCLUDE STRUCTURE ctu_params.

      DATA END OF wa_opt.

      wa_opt-dismode = 'E'.

      wa_opt-updmode = 'S'.

      wa_opt-nobinpt = 'X'.

      wa_opt-nobiend = 'X'.

      p 'SAPMSVMA' '0100'.

      c 'VIEWNAME' 'ZTB_FI_OBR_03'.

      c 'VIMDYNFLDS-LTD_DTA_NO' 'X'.

      ok '=UPD'.

      p 'SAPLZTB_FI_OBR_03' '0001'.

      ok '=NEWL'.

      CALL TRANSACTION 'SM30' USING bdc_tab OPTIONS FROM wa_opt.

      Then create the transaction that calls this report.

      Thank you very much,

      Ivson

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.