Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

minus in layout

Former Member
0 Likes
548

how can i make

A = C - B

in layout????

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
533

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????

2 REPLIES 2
Read only

Former Member
0 Likes
533

Can you explain it clear

Read only

Former Member
0 Likes
534

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