2006 Nov 23 3:39 PM
Hi,
I have this target:
I have two programs (A and B) called by two different transactions.
Now I had to use a single transaction that calls a screen with two TabStrips.
In the first, I must include the parameters of report A and in the second
the parameters of report B.
I can't modify report A and B.
Is it possible ? ..And how I can obtain this goal ?
Does anybody have a good example?
I Thank You in advance. Regards,
Valerio.
2006 Nov 23 3:52 PM
In the submitted program, the fields on the tabs are uniquely defined, so when using the SUBMIT statement you simply need to address the parameters that you want to pass. Take this example. Here we have two tabs, one parameter on each, we what to execute this program and pass "X" to P_FLD2 on the 2nd tab.
report zrich_0001.
selection-screen begin of screen 101 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_fld1 type c.
selection-screen end of block b1.
selection-screen end of screen 101.
selection-screen begin of screen 102 as subscreen.
selection-screen begin of block b2 with frame title text-002.
parameters: p_fld2 type c.
selection-screen end of block b2.
selection-screen end of screen 102.
selection-screen begin of tabbed block one for 20 lines.
selection-screen tab (15) name1 user-command ucomm1
default screen 101.
selection-screen tab (17) name2 user-command ucomm2
default screen 102.
selection-screen end of block one.
initialization.
name1 = 'Tab 1'.
name2 = 'Tab 2'.
start-of-selection.
write:/ 'Value of P_FLD1 is', p_fld1.
write:/ 'Value of P_FLD2 is', p_fld2.
So when submitting this program just pass the value to the parameter
submit zrich_0001
with p_fld2 = 'X' and return.
Regards,.
Rich Heilman
Hi,
I have this target:
I have two programs (A and B) called by two different transactions.
Now I had to use a single transaction that calls a screen with two TabStrips.
In the first, I must include the parameters of report A and in the second
the parameters of report B.
I can't modify report A and B.
Is it possible ? ..And how I can obtain this goal ?
Does anybody have a good example?
I Thank You in advance. Regards,
Valerio.
2006 Nov 23 3:48 PM
If I understand correctly you want to create a report to submit those 2 other reports.
If that is the case, you just create a new report, write your own selection screens (tabs or not) and then in the start of selection you submit those 2 transactions in the sequence you decide, passing parameters.
You can pass parameters to the other transaction using a few different ways:
If it is a report you can call SUBMIT with... passing your parameters individually from your selection screen to the report. If it is a transaction you can call it directly creating a parameter transaction (it is atransaction type that calls anothher and passes parameters). Also you can call a BDC (call transaction) and process what you need.
Hope it helps,
Leonardo De Araujo
2006 Nov 23 3:52 PM
In the submitted program, the fields on the tabs are uniquely defined, so when using the SUBMIT statement you simply need to address the parameters that you want to pass. Take this example. Here we have two tabs, one parameter on each, we what to execute this program and pass "X" to P_FLD2 on the 2nd tab.
report zrich_0001.
selection-screen begin of screen 101 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_fld1 type c.
selection-screen end of block b1.
selection-screen end of screen 101.
selection-screen begin of screen 102 as subscreen.
selection-screen begin of block b2 with frame title text-002.
parameters: p_fld2 type c.
selection-screen end of block b2.
selection-screen end of screen 102.
selection-screen begin of tabbed block one for 20 lines.
selection-screen tab (15) name1 user-command ucomm1
default screen 101.
selection-screen tab (17) name2 user-command ucomm2
default screen 102.
selection-screen end of block one.
initialization.
name1 = 'Tab 1'.
name2 = 'Tab 2'.
start-of-selection.
write:/ 'Value of P_FLD1 is', p_fld1.
write:/ 'Value of P_FLD2 is', p_fld2.
So when submitting this program just pass the value to the parameter
submit zrich_0001
with p_fld2 = 'X' and return.
Regards,.
Rich Heilman
2006 Nov 23 3:54 PM
Create pus button in each tabstrip. You can call the report when the pushbutton is pressed using SUBMIT... VIA SELECTION-SCREEN
SUBMIT programname VIA SELECTION-SCREEN
WITH SELECTION-TABLE it_sel_val
AND RETURN.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |