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

Input Screen before table maintainance genrator

Former Member
0 Likes
808

Hi all,

I m creating one table maintenance. before entering in that i want to give on input screen for that table maintenance . i want to do link between input screen and that table maintenance.

From

Nikhil

1 ACCEPTED SOLUTION
Read only

shishupalreddy
Active Contributor
0 Likes
783

Hello,

1 . Develop a report program and write the code as below .

Sample code:

REPORT zxxxx

TABLES: ztest.

DATA : itab LIKE < > OCCURS 0 WITH HEADER LINE.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP.

SELECT-OPTIONS : <selection varaibles which u wanted to have in selection screen>

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN.

IF sy-ucomm = 'ONLI'.

SELECT * FROM <>

INTO CORRESPONDING FIELDS OF TABLE itab

WHERE <condition>

EXPORT itab FROM itab TO MEMORY ID 'ABCD'.

CALL TRANSACTION '<Table maintanence transaction>' ENDIF.

endloop.

Now goto the Fun tion group of u r TMG and import the data from the internal table then

check the entries from TOTAL table of TMG do the necessary manipulations to display only the required data .

Regards

Hi all,

I m creating one table maintenance. before entering in that i want to give on input screen for that table maintenance . i want to do link between input screen and that table maintenance.

From

Nikhil

5 REPLIES 5
Read only

shishupalreddy
Active Contributor
0 Likes
784

Hello,

1 . Develop a report program and write the code as below .

Sample code:

REPORT zxxxx

TABLES: ztest.

DATA : itab LIKE < > OCCURS 0 WITH HEADER LINE.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP.

SELECT-OPTIONS : <selection varaibles which u wanted to have in selection screen>

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN.

IF sy-ucomm = 'ONLI'.

SELECT * FROM <>

INTO CORRESPONDING FIELDS OF TABLE itab

WHERE <condition>

EXPORT itab FROM itab TO MEMORY ID 'ABCD'.

CALL TRANSACTION '<Table maintanence transaction>' ENDIF.

endloop.

Now goto the Fun tion group of u r TMG and import the data from the internal table then

check the entries from TOTAL table of TMG do the necessary manipulations to display only the required data .

Regards

Read only

0 Likes
783

Please let me know if u still need further information

Read only

Former Member
0 Likes
783

Hi,

We could create a transaction code,

and call SM30 in it.

In the last section, we can give the name of the custom table which has to be maintained.

Regs,

Venkat

Read only

Former Member
0 Likes
783

1.) use radio button 'Enter Conditions' for inputs in SM30 or

2.) use FM VIEW_MAINTENANCE_CALL from program with view_name = table name

Read only

0 Likes
783

Hi,

We can use VIEW_MAINTANENCE_CALL Fm and can give view name as table name or we can do it by writing a program and call the Transaction for TMG.

Regards.