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

Hello Guys

Former Member
0 Likes
816

Can someone answer me the following question.

1. In module pool I have used one fields using stranded dictionary object,like matnr from mara. this fields have it own f4 help. I have written my own code on POV for f4 request. My question is which one trigger first.

2. I have created one internal table without header line,some data is there in the internal table.

what happed when i trigger the following code.

a. clear internal table name.

b. clear internal table().

3. Most common question .. 6 difference between select single and select upto one row.

4. In a module pool I have three screen , 101,102,103. I have entered some data in screen 101 and 102 after entering data in screen 103 by mistake user press cancel (RED Cross button ), what happen.

In IBM thay have ask the following question.

Thanks in Advance.

Swati..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

1. In module pool I have used one fields using stranded dictionary object,like matnr from mara. this fields have it own f4 help. I have written my own code on POV for f4 request. My question is which one trigger first.

<b>POV takes the precendence</b>

2. I have created one internal table without header line,some data is there in the internal table.

what happed when i trigger the following code.

a. clear internal table name.

b. clear internal table().

<b>both the statements will clear the body</b>

3. Most common question .. 6 difference between select single and select upto one row.

<b>features of select single: needs primary keys to be mentioned in where condition, it doesnot search for all the records and pick one, performs better, triggers the single line buffer</b>

http://www.sap-basis-abap.com/abap/difference-between-select-single-and-up-to-1-row.htm

4. In a module pool I have three screen , 101,102,103. I have entered some data in screen 101 and 102 after entering data in screen 103 by mistake user press cancel (RED Cross button ), what happen.

<b>if the redcross button is defined as the exit-button, and if it is coded in 'AT EXIT-COMMAND', then it will exit the screen.</b>

hope this info helps u

<b><i>**please reward if useful</i></b>

thx

pavan

Can someone answer me the following question.

1. In module pool I have used one fields using stranded dictionary object,like matnr from mara. this fields have it own f4 help. I have written my own code on POV for f4 request. My question is which one trigger first.

2. I have created one internal table without header line,some data is there in the internal table.

what happed when i trigger the following code.

a. clear internal table name.

b. clear internal table().

3. Most common question .. 6 difference between select single and select upto one row.

4. In a module pool I have three screen , 101,102,103. I have entered some data in screen 101 and 102 after entering data in screen 103 by mistake user press cancel (RED Cross button ), what happen.

In IBM thay have ask the following question.

Thanks in Advance.

Swati..

5 REPLIES 5
Read only

Former Member
0 Likes
790

1. ur own search help provided with the fm will get triggered

2.the effect of both the statements is same, the entries in the internal table will get deleted as the table doesn't has any header line

3.search the forum

4.control returns to the previous screen(std behavious)

Read only

Former Member
0 Likes
791

1. In module pool I have used one fields using stranded dictionary object,like matnr from mara. this fields have it own f4 help. I have written my own code on POV for f4 request. My question is which one trigger first.

<b>POV takes the precendence</b>

2. I have created one internal table without header line,some data is there in the internal table.

what happed when i trigger the following code.

a. clear internal table name.

b. clear internal table().

<b>both the statements will clear the body</b>

3. Most common question .. 6 difference between select single and select upto one row.

<b>features of select single: needs primary keys to be mentioned in where condition, it doesnot search for all the records and pick one, performs better, triggers the single line buffer</b>

http://www.sap-basis-abap.com/abap/difference-between-select-single-and-up-to-1-row.htm

4. In a module pool I have three screen , 101,102,103. I have entered some data in screen 101 and 102 after entering data in screen 103 by mistake user press cancel (RED Cross button ), what happen.

<b>if the redcross button is defined as the exit-button, and if it is coded in 'AT EXIT-COMMAND', then it will exit the screen.</b>

hope this info helps u

<b><i>**please reward if useful</i></b>

thx

pavan

Read only

former_member196299
Active Contributor
0 Likes
790

HI Swati ,

Below are the answers to your questions :

1) when you use a standard field which already have an F4 help , you need not write a code for the same in POV . that may lead to an error or your F4 hwlp will be shown 2 times ...

2) Clear statement without a header line clears the body of the itab .

4) when u click on Calncel , you come out of all the screens completely if the Cancel button is declarted as EXIT type system command ... or else it depends on the logic of your code ..

I hope my answers are useful to you.

Reward if helpful .

Thanks

Ranjita

Message was edited by:

Ranjita Kar

Read only

Former Member
0 Likes
790

2. I have created one internal table without header line,some data is there in the internal table.

what happed when i trigger the following code.

a. clear internal table name.

b. clear internal table().

Answer

while using internal table with header line.

<itab name>[] is internal table

<itab name> it is default work area which will be created implicitly.

clear <internal table name>..will clear the default work area which will be created implicitly when we create internal table.

clear <internal table name>[] is the internal table..this command will not work as we cannot clear the internal table.</b>

if u r convinced.please rewardwith points</b><b></b></b>

Read only

Former Member
0 Likes
790

Hi Swati,

check this example

REPORT zyh284_test1.

DATA:

begin of fs_mara,

matnr like mara-matnr,

end of fs_mara,

t_mara like standard table of fs_mara,

t_temp_mara like standard table of fs_mara.

select matnr

up to 5 rows

into table t_mara

from mara.

check sy-subrc eq 0.

t_temp_mara = t_mara.

loop at t_mara into fs_mara.

write:/ fs_mara-matnr.

endloop.

clear t_mara.

if t_mara is initial.

write:/'Table is empty'.

endif.

t_mara = t_temp_mara.

loop at t_mara into fs_mara.

write:/ fs_mara-matnr.

endloop.

clear t_mara[].

if t_mara is initial.

write:/'Table is empty'.

endif.