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

event structure bdc

Former Member
0 Likes
584

what is on change of event

what is append structure and include structure

what is difference between bdc and bapi

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
543

Hii

1. what is on change of event

It is triggered in any loop only when the Given field value chanes.

AT NEW <FIELD> can be used only in LOOP .. ENDLOOP.

SELECT * FROM MARC INTO WA.

ON CHANGE OF WA-WERKS.

ENDON.

ENDSELECT.

2. what is append structure and include structure

Append structures are created on tables to add new fields to Standard tables

Inlcude structures are reusable structures

3. what is difference between bdc and bapi

both these are used in Data migration:

BDC will migrate the data by processing transaction screens .. it will be slow.

BAPI will not process screens .. directly updates the Tables.. so it is faster.

<b>reward if Helpful</b>

3 REPLIES 3
Read only

Former Member
0 Likes
543

Hi,

on change of

of chek this code

data: itab like ekko occurs 0 with header line.

data: itab1 like ekpo occurs 0 with header line.

select * from ekko into table itab up to 20 rows.

if itab[] is not initial.

select * from ekpo into table itab1 for all entries in itab where ebeln = itab-ebeln.

endif.

sort : itab by ebeln,

itab1 by ebeln ebelp.

loop at itab1.

on change of itab1-ebeln.

write:/ itab1-ebeln .

endon .

write: /20 itab1-ebelp.

endloop

thanks & regards,

Venkatesh

Read only

Former Member
0 Likes
543

Hi,

Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.

An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.

The following enhancements can be made to a table or structure TAB with an append structure:

· Insert new fields in TAB,

· Define foreign keys for fields of TAB that already exist,

· Attach search helps to fields of TAB that already exist,

These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.

When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.

Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.

The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.

Include Structure :

Here we have to add an Existing Structure to a Table .. So it can be reused.
We cannot Include structure to Standard Table
It can be inserted anywhere in the Table.


Batch Data Communication: Batch Input



Batch input is typically used to transfer data from non-R/3 systems to R/3 systems or to transfer data between R/3 systems.

It is a data transfer technique that allows you to transfer datasets automatically to screens belonging to transactions, and thus to an SAP system. Batch input is controlled by a batch input session.

Batch input session



Groups a series of transaction calls together with input data and user actions . A batch input session can be used to execute a dialog transaction in batch input, where some or all the screens are processed by the session. Batch input sessions are stored in the database as database tables and can be used within a program as internal tables when accessing transactions.


BAPI

BAPIs are standardized programming interfaces (methods) enabling external applications to access business processes and data in the R/3 System.

BAPIs provide stable and standardized methods to achieve seamless integration between the R/3 System and external applications, legacy systems and add-ons.

BAPIs are defined in the BOR(Business object repository) as methods of SAP business object types that carry out specific business functions.

BAPIs are implemented as RFC-enabled function modules and are created in the Function Builder of the ABAP Workbench.

Regards,

Padmam.

Read only

varma_narayana
Active Contributor
0 Likes
544

Hii

1. what is on change of event

It is triggered in any loop only when the Given field value chanes.

AT NEW <FIELD> can be used only in LOOP .. ENDLOOP.

SELECT * FROM MARC INTO WA.

ON CHANGE OF WA-WERKS.

ENDON.

ENDSELECT.

2. what is append structure and include structure

Append structures are created on tables to add new fields to Standard tables

Inlcude structures are reusable structures

3. what is difference between bdc and bapi

both these are used in Data migration:

BDC will migrate the data by processing transaction screens .. it will be slow.

BAPI will not process screens .. directly updates the Tables.. so it is faster.

<b>reward if Helpful</b>