2007 Jun 05 3:41 PM
Hi all,
Please find below code.. parameters KS7 and KS8 are on static slection parameter and GJR, VPE, BPE are on dynamic selection parameters for transaction KSB2. But, when I run program, values are passing to parameters KS7 and KS8 but not to GJR, VPE, BPE.
set parameter id 'KS7' field co_podat-low. "from date
set parameter id 'KS8' field co_podat-high. "to date
set parameter id 'GJR' field P_RYEAR.
set parameter id 'VPE' field SO_PERIO-LOW.
set parameter id 'BPE' field SO_PERIO-HIGH.
submit rkaep000
with p_tcode = 'KSB2' "non display param
with p_kokrs = p_kokrs "non display param
with kostl = it_outputsum-profctr
with kstar = it_outputsum-acct
with p_disvar = '1SAP' "non display param
and return.
What would be reason?
Thanks
Shashi.
2007 Jun 05 3:57 PM
at the time of you code being executed the fields may not be available (Defined)..
You can put a breakpoint on the same & check the RC (Sy-Subrc) for the SET PARAMETER statement
Regards,
Gaurav
Hi all,
Please find below code.. parameters KS7 and KS8 are on static slection parameter and GJR, VPE, BPE are on dynamic selection parameters for transaction KSB2. But, when I run program, values are passing to parameters KS7 and KS8 but not to GJR, VPE, BPE.
set parameter id 'KS7' field co_podat-low. "from date
set parameter id 'KS8' field co_podat-high. "to date
set parameter id 'GJR' field P_RYEAR.
set parameter id 'VPE' field SO_PERIO-LOW.
set parameter id 'BPE' field SO_PERIO-HIGH.
submit rkaep000
with p_tcode = 'KSB2' "non display param
with p_kokrs = p_kokrs "non display param
with kostl = it_outputsum-profctr
with kstar = it_outputsum-acct
with p_disvar = '1SAP' "non display param
and return.
What would be reason?
Thanks
Shashi.
2007 Jun 05 3:57 PM
at the time of you code being executed the fields may not be available (Defined)..
You can put a breakpoint on the same & check the RC (Sy-Subrc) for the SET PARAMETER statement
Regards,
Gaurav
2007 Jun 05 4:01 PM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |