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: 

at selection-screen.

Former Member
0 Kudos
104

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

Former Member
0 Kudos
80

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.

Former Member
0 Kudos
80

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

Regards,

Bhupal

0 Kudos
80

Hello,

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

Priyanka

0 Kudos
80

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

0 Kudos
80

Have you placed

Start-of-selection. event

0 Kudos
80

>

> 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.

0 Kudos
80

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).

former_member181995
Active Contributor
0 Kudos
80

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 ?

Former Member
0 Kudos
80

Hi Can you place whole code here.

0 Kudos
80

Hello Naveen,

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

Now i m getting an o/p

Thanks

0 Kudos
80

Great!!

0 Kudos
80

Please close the thread

0 Kudos
80

>

> Please close the thread

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

Tell priyanka.