02-07-2011 10:14 AM
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.
02-07-2011 11:22 AM
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
02-07-2011 11:22 AM
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
02-07-2011 12:34 PM
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.
02-07-2011 12:39 PM
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
02-08-2011 9:21 AM
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.
02-08-2011 10:35 AM
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
02-09-2011 6:53 AM
Hi Swanand,
Thanks, But how can get one selection screen output to second?? Like document contact person name,city etc.
02-09-2011 7:33 AM
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.
02-10-2011 10:38 AM