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

at selection-screen.

Former Member
0 Likes
1,375

Hello experts,

I want a field PO Document type(bwsart in EKKO)in selection screen.

But my problem is against this field F4 help appears,but i want that if user enter PO document type other than import ,it will flash error message.

I m getting this, but than not getting the output.

But if i comment this piece of code, i m getting the required data.

at selection-screen.

IF doc_type IS not INITIAL .

if ( doc_type NS 'IMDY' ) and

( doc_type NS 'IMSC' ) and

( doc_type NS 'IMED' ) and

( doc_type NS 'IMSG' ) and

( doc_type NS 'IMGU' ) and

( doc_type NS 'IMPR' ) and

( doc_type NS 'IMSP' ) and

( doc_type NS 'IMSC' ) .

message e000(01) with 'Enter the Imported PO Document Type'.

endif.

endif.

plz tell why i m not getting data, on the successful execuion of the above cade

Priyanka

13 REPLIES 13
Read only

Former Member
0 Likes
1,350

Hi,

Change code as:

if ( doc_type NE 'IMDY' ) and

( doc_type NE 'IMSC' ) and

( doc_type NE 'IMED' ) and

( doc_type NE 'IMSG' ) and

( doc_type NE 'IMGU' ) and

( doc_type NE 'IMPR' ) and

( doc_type NE 'IMSP' ) and

( doc_type NE 'IMSC' ) .

Thanks & Regards,

Navneeth K.

Read only

Former Member
0 Likes
1,350

As you are using 'AND' , even if you entered correct value also, it fails in the check.

Regards,

Bhupal

Read only

0 Likes
1,350

Hello,

I m getting the data in main_table but it is not displaying, but when i comment it is displaying 2 .

Priyanka

Read only

0 Likes
1,350

Can you place you whole code here. Are you using events properly.

Read only

0 Likes
1,350

Have you placed

Start-of-selection. event

Read only

0 Likes
1,350

>

> Have you placed

>

> Start-of-selection. event

Naveen,

Please see this statement:

I m getting the data in main_table but it is not displaying,

So my guess you should look at some other reason as Start-of-selection event might not be an problem.aa data is already placed in main table.

Read only

0 Likes
1,350

Amit, as she is telling that when she is commenting the above piece of code, she is getting output, may be she as not placed start-of-selection and all other piece of code is falling in at selection-screen (just a guess).

Read only

Former Member
0 Likes
1,350

Please Confirm in between IF(IF doc_type IS not INITIAL) and ENDIF is there any executable statements except:

if ( doc_type NS 'IMDY' ) and
( doc_type NS 'IMSC' ) and
( doc_type NS 'IMED' ) and
( doc_type NS 'IMSG' ) and
( doc_type NS 'IMGU' ) and
( doc_type NS 'IMPR' ) and
( doc_type NS 'IMSP' ) and
( doc_type NS 'IMSC' ) .
message e000(01) with 'Enter the Imported PO Document Type'.
endif.

after conmmenting ?

Read only

Former Member
0 Likes
1,350

Hi Can you place whole code here.

Read only

0 Likes
1,350

Hello Naveen,

U r right , i miss to place start-of-selection.

Now i m getting an o/p

Thanks

Read only

0 Likes
1,350

Great!!

Read only

0 Likes
1,350

Please close the thread

Read only

0 Likes
1,350

>

> Please close the thread

Sorry Bro i don't have enough rights to close this thread

Tell priyanka.