Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

create (maintenance) transaction

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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.

0 Kudos

Thank you Hema, but that is the same as updating the table. I want to go directly to the "new entry" screen, if possible.

Former Member
0 Kudos

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^

0 Kudos

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