Application Development 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: 

What is a Business Transaction

Former Member
0 Kudos

Hi All,

1. What is a Business Transaction ? What its use ? Where do we use them ?

-


2. I have 2 internal tables with the following data.

ITAB1 :

F1 F2

10 20

11 21

ITAB2:

F3 F4

30 40

31 41.

my requirement is to place both the internal in One Final table (By using Control Break Statements ).

i.e

ITAB:

F1 F2 F3 F4

10 20 30 40

11 21 31 41

How do we do this ?

-


3. What is the difference between INITIALIZATION and AT SELECTION-SCREEN OUTPUT Events ? Can i use AT SELECTION-SCREEN OUTPUT event in place of INITIALIZATION?

-


Thanks in advance

Malathi

3 REPLIES 3

Former Member
0 Kudos

For your second requirement, something like this should do the trick.

LOOP AT itab1 INTO wa1.

READ TABLE itab2 INTO wa2 INDEX sy-index.

MOVE fields_of_wa1 TO wa_of_new_itab.

MOVE fields_of_wa2 TO wa_of_new_itab.

APPEND wa_of_new_itab TO new_itab.

ENDLOOP.

Former Member
0 Kudos

Hi

Answer to your 2nd query is that, you need to have atlest 1 field in common to retrieve the data from two tables. So, in the given query, I have not noticed any common fild. Can you plz get back with the complete query.

The difference bet Initialization Event and At selection-screen output is as follows:

We generally use Initialization Event to provide the default values for the selection-screen fields or to Initialise these values, but where as the At selection-screen output is used to change the selection-screen fileds properties dynamically at run time.

Regards,

Reena.

Former Member
0 Kudos

hi check this..for business transaction.

http://help.sap.com/saphelp_nw04/helpdata/en/25/657b5237c9b041a75827bed0be6a8f/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/3d/7b5f3c31727d59e10000000a114084/frameset.htm

for the third question checkt this..

initialisation is for initializing the values for the parameters or for the fields in the screen...like if i want to give a value for a particular value for a field it is used..like this..

initialization.

p_field = '1000'.

the selection screen output means to loop the values in the selection screen like this..

REPORT ZVENKATTEST0.

TABLES:MARA.

SELECT-OPTIONS:S_TEST1 FOR MARA-MATNR MODIF ID M1 ,

S_TEST2 FOR MARA-MEINS MODIF ID M2 .

PARAMETERS:P_RAD1 RADIOBUTTON GROUP G1 USER-COMMAND UC1 DEFAULT 'X',

P_RAD2 RADIOBUTTON GROUP G1 ,

P_RAD3 RADIOBUTTON GROUP G1 .

AT SELECTION-SCREEN OUTPUT .

LOOP AT SCREEN.

IF P_RAD1 = 'X'.

IF SCREEN-NAME = 'S_TEST1-LOW' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'S_TEST1-HIGH' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'S_TEST2-LOW' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'S_TEST2-HIGH' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

IF P_RAD2 = 'X'.

IF SCREEN-NAME = 'S_TEST1-LOW' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'S_TEST1-HIGH' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

IF P_RAD3 = 'X'.

IF SCREEN-NAME = 'S_TEST2-LOW' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'S_TEST2-HIGH' .

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

regards,

venkat