2005 Jun 30 2:34 PM
Hi,
in
program01
i´ve got he following code snipet:SUBMIT program02 USING SELECTION-SCREEN '1000'
WITH S_BUKRS IN R_BUKRS
WITH S_CTA IN R_CTA1
WITH S_VTO IN R_VTO
AND RETURN.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '572000'.
R_CTA1-HIGH = '572999'.
APPEND R_CTA1.
CLEAR R_CTA1.
it is as if program02 only took into consideration one of the three values passed to R_CTA1(only the 2nd one).
why is this happening?
Best regards.
2005 Jun 30 2:48 PM
Hi Rich,
although i´ve changed the code thus:
CLEAR R_CTA1.
REFRESH R_CTA1.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '170000'.
R_CTA1-HIGH = '171999'.
APPEND R_CTA1.
CLEAR R_CTA1.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '520101'.
R_CTA1-HIGH = '520104'.
APPEND R_CTA1.
CLEAR R_CTA1.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '572000'.
R_CTA1-HIGH = '572999'.
APPEND R_CTA1.
CLEAR R_CTA1.
whithin program02 there´s a select where i use R_CTA1:
SELECT * FROM VBSEGS AS A
join SKAT AS B
on aSAKNR = bSAKNR
into corresponding fields of table i_VBSEGS
WHERE a~BUKRS = p_bukrs
AND a~VALUT in s_VTO
AND a~SAKNR in
s_CTA
AND b~SPRAS = 'S'
and b~KTOPL = 'AC'.
and here the select seems not to consider the three values i´ve passed.
Regards.
2005 Jun 30 2:40 PM
The statment is BOLD is clearing your internal table. Remove this statement.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '170000'.
R_CTA1-HIGH = '171999'.
APPEND R_CTA1.
CLEAR R_CTA1.
CLEAR R_CTA1.
<b>REFRESH R_CTA1.</b>
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '520101'.
R_CTA1-HIGH = '520104'.
APPEND R_CTA1.
CLEAR R_CTA1.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '572000'.
R_CTA1-HIGH = '572999'.
APPEND R_CTA1.
CLEAR R_CTA1.
Regards,
Rich Heilman
2005 Jun 30 2:48 PM
Hi Rich,
although i´ve changed the code thus:
CLEAR R_CTA1.
REFRESH R_CTA1.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '170000'.
R_CTA1-HIGH = '171999'.
APPEND R_CTA1.
CLEAR R_CTA1.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '520101'.
R_CTA1-HIGH = '520104'.
APPEND R_CTA1.
CLEAR R_CTA1.
R_CTA1-SIGN = 'I'.
R_CTA1-OPTION = 'BT'.
R_CTA1-LOW = '572000'.
R_CTA1-HIGH = '572999'.
APPEND R_CTA1.
CLEAR R_CTA1.
whithin program02 there´s a select where i use R_CTA1:
SELECT * FROM VBSEGS AS A
join SKAT AS B
on aSAKNR = bSAKNR
into corresponding fields of table i_VBSEGS
WHERE a~BUKRS = p_bukrs
AND a~VALUT in s_VTO
AND a~SAKNR in
s_CTA
AND b~SPRAS = 'S'
and b~KTOPL = 'AC'.
and here the select seems not to consider the three values i´ve passed.
Regards.
2005 Jun 30 2:59 PM
Hi,
Does field r_cta1 need a conversion exit ?
So use fm conversion_exit_alpha
Or :
PERFORM ALPHAFORMAT(SAPFS000) USING r_cta1-low r_cta1-low
.
...
Regards Andreas
2005 Jun 30 3:02 PM
2005 Jun 30 3:03 PM
2005 Jun 30 3:08 PM
Hi,
if i use:
R_CTA1-LOW = '0000170000'.
R_CTA1-HIGH = '0000171999'.
instead of:
R_CTA1-LOW = '170000'.
R_CTA1-HIGH = '171999'.
The result is correct.
Best regards.
2005 Jun 30 3:10 PM