on 03-19-2007 9:01 PM
Hi All,
Acc to my requirements, I have to print the total weight at the bottom of the page.
I tried with the following code,but its nor working out.
/: PERFORM GET_TOTAL IN PROGRAM ZSCM_GET_TOTAL
/:USING <AP-BRGEW&
/:CHANGING &VALUE1&
/:ENDPERFORM
ZL TOTAL: &VALUE1&
PROGRAM zscm_get_total.
&----
*& Form GET_TOTAL
&----
text
----
-->INT_COND text
-->OUT_COND text
----
FORM get_total TABLES int_cond STRUCTURE itcsy
out_cond STRUCTURE itcsy.
DATA : value LIKE ltap-brgew,
gv_total LIKE ltap-brgew.
STATICS value1 LIKE ltap-brgew.
READ TABLE int_cond WITH KEY 'LTAP-BRGEW'.
value = int_cond-value.
value1 = value1 + value.
READ TABLE out_cond WITH KEY 'VALUE1'.
out_cond-value = value1.
MODIFY out_cond INDEX 1.
ENDFORM. "GET_TOTAL
Please help me out with your valuable replies.
Thanks...
Praveen
Thanks all for your support...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Put the &VALUE1& in a window without having any text element reference.
Call this window after your calculation stuff i.e at bottom.
Please try this and let us know ur comments.
Regards,
Nara
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
VALUE1 needs to be defined in the sapscript and passed back from the FORM.
<b>/: DEFINE &VALUE1&</b>
/: PERFORM GET_TOTAL IN PROGRAM ZSCM_GET_TOTAL
/:USING <AP-BRGEW&
/:CHANGING &VALUE1&
/:ENDPERFORM
ZL TOTAL: &VALUE1&
PROGRAM zscm_get_total.
&----
*& Form GET_TOTAL
&----
text
----
-->INT_COND text
-->OUT_COND text
----
FORM get_total TABLES int_cond STRUCTURE itcsy
out_cond STRUCTURE itcsy.
DATA : value LIKE ltap-brgew,
gv_total LIKE ltap-brgew.
STATICS value1 LIKE ltap-brgew.
READ TABLE int_cond WITH KEY 'LTAP-BRGEW'.
value = value + int_cond-value.
*value1 = value1 + value.
READ TABLE out_cond WITH KEY 'VALUE1'.
out_cond-value = value.
MODIFY out_cond INDEX 1.
ENDFORM. "GET_TOTAL
Regards,
RIch Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.