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

interview questions.......help me

Former Member
0 Likes
441

what is the main difference between move and move-corresponding?

what is default join when ur using join for two internal tables?

what is field group?where we can use this?

what is data analasys concept?

what is client concept?

give me some best sites for crossapplications(ALE,IDOC,BAPI,RFC,EDI....)?

thanq in advance...

what is the main difference between move and move-corresponding?

what is default join when ur using join for two internal tables?

what is field group?where we can use this?

what is data analasys concept?

what is client concept?

give me some best sites for crossapplications(ALE,IDOC,BAPI,RFC,EDI....)?

thanq in advance...

2 REPLIES 2
Read only

Former Member
0 Likes
416

1) Move

To assign the value of a data object <f1> to a variable <f2>, use the following statement:

MOVE <f1> TO <f2>.

or the equivalent statement

<f2> = <f1>.

MOVE-CORRESPONDING

To move values between the components of structures, use the statement

MOVE-CORRESPONDING <struct1> TO <struct2>.

This statement moves the contents of the components of structure <struct1> to the components of <struct2> that have identical names.

When it is executed, it is broken down into a set of MOVE statements, one for each pair of fields with identical names, as follows:

MOVE STRUCT1-<ci> TO STRUCT2-<c i>.

Fieldgroup

To define an extract, you must first declare the individual records and then define their structure.

Declaring Extract Records as Field Groups

An extract dataset consists of a sequence of records. These records may have different structures. All records with the same structure form a record type. You must define each record type of an extract dataset as a field group, using the FIELD-GROUPS statement.

FIELD-GROUPS <fg>.

This statement defines a field group <fg>. A field group combines several fields under one name. For clarity, you should declare your field groups at the end of the declaration part of your program.

A field group does not reserve storage space for the fields, but contains pointers to existing fields. When filling the extract dataset with records, these pointers determine the contents of the stored records.

You can also define a special field group called HEADER:

FIELD-GROUPS HEADER.

This group is automatically placed before any other field groups when you fill the extract. This means that a record of a field group <fg> always contains the fields of the field group HEADER. When sorting the extract dataset, the system uses these fields as the default sort key.

Defining the Structure of a Field Group

To define the structure of a record, use the following statement to add the required fields to a field group:

INSERT <f1>... <f n> INTO <fg>.

This statement defines the fields of field group <fg>. Before you can assign fields to a field group, you must define the field group <fg> using the FIELD-GROUPS statement. The fields in the field group must be global data objects in the ABAP program. You cannot assign a local data object defined in a procedure to a field group.

The INSERT statement, just as the FIELD-GROUPS statement, neither reserves storage space nor transfers values. You use the INSERT statement to create pointers to the fields <f i > in the field group <fg>, thus defining the structures of the extract records.

When you run the program, you can assign fields to a field group up to the point when you use this field group for the first time to fill an extract record. From this point on, the structure of the record is fixed and may no longer be changed. In short, as long as you have not used a field group yet, you can still extend it dynamically.

The special field group HEADER is part of every extract record. Consequently, you may not change HEADER once you have filled the first extract record.

A field may occur in several field groups; however, this means unnecessary data redundancy within the extract dataset. You do not need to define the structure of a field group explicitly with INSERT. If the field group HEADER is defined, an undefined field group consists implicitly of the fields in HEADER, otherwise, it is empty.

refer the following link for

bapi

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/7c/3ce38765ba11d395fe00a0c94260a5/frameset.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/7c/3ce38765ba11d395fe00a0c94260a5/frameset.htm</a>

RFC

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/05/02cbfa1c2f184eaa6ba151d1aaf4fe/frameset.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/05/02cbfa1c2f184eaa6ba151d1aaf4fe/frameset.htm</a>

EDI

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/f0/4228f5a97311d2897a0000e8216438/frameset.htm">http://help.sap.com/saphelp_47x200/helpdata/en/f0/4228f5a97311d2897a0000e8216438/frameset.htm</a>

ALE

[url=http://help.sap.com/saphelp_erp2005vp/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm]http://help.sap.com/saphelp_erp2005vp/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm[/url]

Read only

Former Member
0 Likes
416

Move statement is use to move the data between same structure.

ex: move wa_mara to wa_mara1.

Move-corresponding is used to move data between two dissimilar structure.

ex: move-corresponding wa_mara to wa_marc.