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

Regarding screen program

Former Member
0 Likes
520

Hi,

plz send me how we fetch the data from report to module pools screen.

thank u

-Sudhakar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
483

Hi,

Write your select statements in the PAI of the program.

For example, go through the standard program SAPMTZ10 .

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
483

hi

Step1 : create a Module pool program with a screen no

eg : YCOE_MODULE_SH8

in se51 click on layout and in the screen painter layout create one input/output field

eg : WK_SNAME, in the attributes of that field define

Parameter id : SAT &

select the GET Paramter check box save & activate.

then declare the field like

DATA : wk_sname TYPE ysrtmm-sname in the se38 program.

se51 screen

PROCESS BEFORE OUTPUT.

MODULE status_8900.

PROCESS AFTER INPUT.

MODULE user_command_8900.

set the PF Status in PBO & define PAI User Command Module then save and activate the program

create a tcode for it in se93 eg : YMODULE_SH8.

Step2 : Create a executable program in se38

eg : YCOE_MODULE_PARAM

declare the field like

DATA : wk_sname TYPE ysrtmm-sname here also with the same name for the field.

start-of-selection.

wk_sname = 'SACHIN'.

set parameter id 'SAT' field wk_sname.

call transaction 'YMODULE_SH8'.

Regards

Murali.M

Read only

Former Member
0 Likes
484

Hi,

Write your select statements in the PAI of the program.

For example, go through the standard program SAPMTZ10 .

Regards

Read only

Former Member
0 Likes
483

Hello Sudhakarmarri,

use this keyword.

CLAA TRANSACTION <tcode> USING bdc_tab.

in bdc_tab you can pass your details .

Component Description

PROGRAM Name of the program of the called transaction

DYNPRO Number of the dynpro to be processed

DYNBEGIN Flag for the beginning of a new dynpro (possible values are "X" and " ")

FNAM Name of a dynpro field to be filled or batch input control statement, for example, to position the cursor

FVAL Value to be passed to the dynpro field or to the control statement

Using the internal table bdc_tab, you can provide any number of screens of the called transaction with input and user actions.

Hope this discussion was helpful.

Cheers,

Suvendu

Read only

0 Likes
483

Hi,

Thank for your kind information.

Regards

Sudhakar M