Application Development and Automation 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: 
Read only

DDIC EVENT

Former Member
0 Likes
1,667

Hi,

I want to call T-Code from ddic table .

scenario : The custom Z-table updated dynamically from a program.we are not create entries manually.

when table field flag set to be 'X' at that time one transaction code 'IW31' will execute.

Example: Ztest table

fields are :

Name        : Ajmera

Id               :4590e

Registered : X.

can you tell me what will be the code in event '05'.

Thanks in Advance.

Ajmera

11 REPLIES 11
Read only

0 Likes
1,471

Hi Ajmera,

Do you want IW31 to get displayed when the event trggers or do some processing?

to just display IW31.you could just write :

IF Ztest_table-indicator EQ 'X'.

  CALL TRANSACTION 'IW31' AND SKIP FIRST SCREEN.

ENDIF.

If it is for some processing, you could use BAPI_ALM_ORDER_MAINTAIN.

Regards,

Shilpa

Read only

Former Member
0 Likes
1,471

Hi Ajmera,

The requirement what you have cited is little contradicting with the case you have elaborated.

If you are not creating any entry manually then why do need to code in TMG event ?

TMG event suppose to trigger for the manual entry .

Regards

Saifur Rahaman

Read only

0 Likes
1,471

Hi Saifur,

My requirement is.

I am updating table from Zprog.

insert table 'ZTEST' from wa_itab

when new record is insert into database table 'ZTEST' .

that time i have to check table's field flag and call custom tcode for execute another report.

like.  If ZTEST-flag = 'X'.

       call transaction 'ZEMAIL'.

     endif.

I want to catch only dynamic table entries through report/program. please share knowledge on the same.

Read only

sai_krishna24
Active Participant
0 Likes
1,471

Did you try with table maintenance generator Events? Hope those will help you. Try that

Read only

0 Likes
1,471

Hi Sai ,

I have tried with event 05 and 01.

But for dynamic table update , Debugger not stopped at the subroutine.

Read only

0 Likes
1,471

Ajmera,

Still you requirement is not clear please explain what you have and what you want to do?

if debuger is not getting stopped, Try with update debugging may be as per your requirement the subroutine calls in update task.

Thanks

Deependra

Read only

0 Likes
1,471

Hi Ajmera,

I am still bit confused with your requirement. If you have work-area of table and you are going to insert an entry from work-area itself, then you can check flag field from work-area ifself and call transaction.

Or if flag field is updated on come condition during an insert, there should be a program/module to update the value of flag field. In this case you can call your custom T-code from there itself.

Regards,

Nisarg

Read only

hiriyappa_myageri
Participant
0 Likes
1,471

Hi Ajmera,

as per my understanding you are creating an entry to the ztable using zprogram.  No problem you can create it using insert statement.

after inserting you can check you database table and fetch the same entry using you work area and check you flag and here its self you can call what ever the transaction you want.

you can trigger you transaction without using events also.

if you want you can use TMG events.

Regards,

Hiriyappa.

Read only

Former Member
0 Likes
1,471

Hi All,

My requirement is in below .

One Z-Table( 'ZFI_PAY' ) is updated from existing custom report(ZFI_PROG).

I dont want to modify the existing report from where 'ZFI_PAY' table is updated.

Now depending on new insert record in ZFI_PAY table, i have to call one t-code ( what ever be T-code).

So I want to write code in TMG event.

Like : In TMG event 01/05.

Form Call T-code.

If ZFI_PAY-FLAG = 'X'.

Call Transaction 'MM01' .

Endif.

Endform.

Issue:From SE11, when we are inserting the new record by create entry option,  the code is working.

But when the table is updated by above report, the above code is not working.

my Question:Is any option in TMG event to catch dynamic insert record? where we can write the code.

or TMG is only work for manual entry from TABLE option.

Please help me on this.

Read only

0 Likes
1,471

Hi Ajmera,

When you create entries through SM30 (TMG) it is working fine because all events are incorporated with relevent function group . In you case where you are creating entry throught a custom program these events(functionality) won't be triggered.

For this you need to write code for call transaction itself in program . i am not sure that there would be other way to do this.

Deependra

Read only

0 Likes
1,471

Hi Ajmera,

It should work for both cases.

You can write a code in the event 05.

In you report you are using INSERT statement .any if the data is inserted to the your ZFI_PAY table means the sy-subrc equlas to zero.

By using this concept you can  go ahead.

Reagrds,

Hiriyappa