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

report generation

former_member188827
Active Contributor
0 Likes
1,070

hi all

ive a requirment dat my after filling out enteries on screen my repot get generated only if user hits enter.

if user doesnt hit enter, he should b prompted to press enter by appropriare message and then after he presses enter only then report gets generated.

how to achieve dis.

rgds

points 'll b rewarded.

Message was edited by:

abapuser

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,052

Hi,

Y dont u use a pushbutton on application toolbar or after the fields ( Generate Report ), this name itself will prompt user to press it!!!

Regds

Seema

hi all

ive a requirment dat my after filling out enteries on screen my repot get generated only if user hits enter.

if user doesnt hit enter, he should b prompted to press enter by appropriare message and then after he presses enter only then report gets generated.

how to achieve dis.

rgds

points 'll b rewarded.

Message was edited by:

abapuser

7 REPLIES 7
Read only

Former Member
0 Likes
1,053

Hi,

Y dont u use a pushbutton on application toolbar or after the fields ( Generate Report ), this name itself will prompt user to press it!!!

Regds

Seema

Read only

Former Member
0 Likes
1,052

One thing you can do is after user clicks the save button you can give one information message to hit enter

WHEN 'SAVE'.

message i001(zz) with 'XXXXX XXXXXX'.

Generally users will be trained on how to use the reports , you can train them or prepare a End User Test documentation

Read only

Former Member
0 Likes
1,052

Hi

Or u can do one more thing give function code ENTER to ur last internal field which is mandatory by doing so report will be automatically generated.

Regds

Seema

Read only

0 Likes
1,052

actually da screen is a standard sap screen...

so can ny1 of u tell how dis can b done.since line items are read only at 'enter' and if the user doesnt press enter report gets generated with blank values....

Read only

Former Member
0 Likes
1,052

Hi..

you can not get that...without user interaction..

atleast...you can do like this...

PARAMETERS:

P_NUM(4) TYPE C.

PARAMETERS:

P_R1 RADIOBUTTON GROUP RAD USER-COMMAND RAM,

P_R2 RADIOBUTTON GROUP RAD DEFAULT 'X'.

AT SELECTION-SCREEN.

IF P_R1 EQ 'X'.

MESSAGE 'Pleas Press Enter...' TYPE 'I'.

ENDIF.

or..

select a value from list box./ or check box....then we can trigger an event...

PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

PARAMETERS: p1(10) TYPE c,

p2(10) TYPE c,

p3(10) TYPE c.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.

PARAMETERS: p4(10) TYPE c MODIF ID bl2,

p5(10) TYPE c MODIF ID bl2,

p6(10) TYPE c MODIF ID bl2.

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF show_all <> 'X' AND

screen-group1 = 'BL2'.

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Read only

Former Member
0 Likes
1,052

write a module to check every field is filled in and this module should be specified in a CHECK....ENDCHECK in the flow logic

Read only

Former Member
0 Likes
1,052

HI

disable all keys in the toolbar

add a menu item to generate report or

add a push button on the screen for user interaction .

(the condition, if the user wants to generate report the only option is to press the button )