2008 Oct 22 10:31 AM
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
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).
2008 Oct 22 10:36 AM
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.
2008 Oct 22 10:40 AM
As you are using 'AND' , even if you entered correct value also, it fails in the check.
Regards,
Bhupal
2008 Oct 22 10:43 AM
Hello,
I m getting the data in main_table but it is not displaying, but when i comment it is displaying 2 .
Priyanka
2008 Oct 22 10:53 AM
Can you place you whole code here. Are you using events properly.
2008 Oct 22 10:54 AM
2008 Oct 22 11:03 AM
>
> 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.
2008 Oct 22 11:05 AM
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).
2008 Oct 22 11:14 AM
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 ?
2008 Oct 22 11:15 AM
2008 Oct 22 11:49 AM
Hello Naveen,
U r right , i miss to place start-of-selection.
Now i m getting an o/p
Thanks
2008 Oct 22 11:53 AM
2008 Oct 22 12:01 PM
2008 Oct 22 12:22 PM
>
> Please close the thread
Sorry Bro i don't have enough rights to close this thread
Tell priyanka.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |