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: 

Report with two selection screen

Former Member
0 Kudos

Hi,

I have one requirement for report.

When we execute the report then it should have two parameter (sales org, document number)

After pressing F8 it should display another screen or same screen with display customer name, city for that document and screen should have 2 more parameters (New customer kunnr).after pressing F8 program functionality should work.

Please suggest.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Add all field in the selection screen , but keep the old custmer name , city and new customer in disable mode and when you enter the sales org, document number then make these 3 fields enable and when press F8 do ur process..

Regards,

Madhukar Shetty

8 REPLIES 8

Former Member
0 Kudos

Hi,

Add all field in the selection screen , but keep the old custmer name , city and new customer in disable mode and when you enter the sales org, document number then make these 3 fields enable and when press F8 do ur process..

Regards,

Madhukar Shetty

0 Kudos

Hi,

Yes on this way i can. but requirment is when he press F8 then second screen should come with some output and additional parameter.

0 Kudos

Simply create additional screen with all the parameters you want, set gui status for it with execute button. Initially show selection-screen, then in start-of-selection use call screen .. then in PAI of that screen catch execute fcode and call subroutine which executes required logic.

Regards

Marcin

0 Kudos

Dear Marcin Pciak,

Thanks

May be I am going to worng. its not working for me. its displaying all parameters in one screen. could you please tell me step by step.

0 Kudos

please create 2 reports as given below.-

REPORT ZSZP_00007.

parameters a(5) .

parameters b(5) .

parameters c(5) .

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'A' or screen-name = 'B' .

get parameter id 'aaaaaaaaaaa' field a.

get parameter id 'bbbbbbbbbbb' field B.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

start-of-selection.

  • your logic

******************************************************************************

REPORT zszp_00005.

PARAMETERS a(5).

PARAMETERS b(5).

START-OF-SELECTION.

SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.

SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.

  • your logic

SUBMIT zszp_00007 VIA SELECTION-SCREEN.

******************************************************************************

i hope this approach will solve your problem.

thanks

Swanand

0 Kudos

Hi Swanand,

Thanks, But how can get one selection screen output to second?? Like document contact person name,city etc.

0 Kudos

hi,

as we passing input of first selection screen to second using set, get parameter, similarly you can pass extra information like field or structure using


 SET PARAMETER ID 's_name' FIELD s_name.  " in first program

GET PARAMETER ID 's_name' FIELD s_name2. " in second program

define s_name and s_name of same type.

please try this and let me know.

thanks,

Swanand Paranjape.

0 Kudos

Thanks Swanand.