2005 Dec 13 5:16 PM
2005 Dec 13 5:22 PM
are you talking about scripts...
if so you can acheive using perform.
/: PERFORM GET_VALUE IN PROGRAM ZGET_VALUE
/: USING &B&
/: USING &C&
/: CHANGING &A&
/: ENDPERFORM
the implementation of the perfrom in program ZGET_VALUE
REPORT zget_master .
.
FORM get_Value TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.
READ TABLE in_tab INDEX 1.
if sy-subrc = 0.
x_b = in_tab-value.
endif.
READ TABLE in_tab INDEX 2.
if sy-subrc = 0.
x_c = in_tab-value.
endif.
READ TABLE out_tab INDEX 1.
MOVE (x_b - x_c)TO out_tab-value.
CONDENSE out_tab-value.
MODIFY out_tab INDEX sy-tabix.
ENDFORM.regards
vijay
Message was edited by: Vijay Babu Dudla
how can i make
A = C - B
in layout????
2005 Dec 13 5:21 PM
2005 Dec 13 5:22 PM
are you talking about scripts...
if so you can acheive using perform.
/: PERFORM GET_VALUE IN PROGRAM ZGET_VALUE
/: USING &B&
/: USING &C&
/: CHANGING &A&
/: ENDPERFORM
the implementation of the perfrom in program ZGET_VALUE
REPORT zget_master .
.
FORM get_Value TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.
READ TABLE in_tab INDEX 1.
if sy-subrc = 0.
x_b = in_tab-value.
endif.
READ TABLE in_tab INDEX 2.
if sy-subrc = 0.
x_c = in_tab-value.
endif.
READ TABLE out_tab INDEX 1.
MOVE (x_b - x_c)TO out_tab-value.
CONDENSE out_tab-value.
MODIFY out_tab INDEX sy-tabix.
ENDFORM.regards
vijay
Message was edited by: Vijay Babu Dudla
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |