12-23-2006 9:28 AM
HOW TO USE SELECTION SCREEN
I WANT TO INSERT PURCHASE DOCUMENT NUMBER
AND WANT TO SEE ALL INFORMATION FOR THAT PURCHASE DOCUMNET NUMBER.
THANKS IN ADVANCED.
12-23-2006 9:37 AM
Hi,
Your Issue is not clear . could you explain in detail.
Regards,
12-23-2006 9:39 AM
there are many selection screen elements to can refer help.sap.com .for the scenario that u have asked ,
u can use either parameters or select-options to declare selection-screen elements
ex :
tables :ekko.
select-options : s_ebeln for ekko-ebeln.
( or)
parameters : p_ebeln like ekko-ebeln.
data : i_ekko type table of ekko with header line.
select * from ekko into table i_ekko where ebeln in s_ebeln. "if v use select-options
select * from ekko into table i_ekko where ebeln eq p_ebeln. "if v use parameters
loop at i_ekko.
write : / i_ekko-ebeln.
endloop.
12-23-2006 10:12 AM
The main use of the selection-screen is to select screen in the back ground
ex :
-
TABNAME |
-
IN THE ABOVE FIGURE TABNAME IS THE FIELD AND THE BACK END IS CREATED SCREEN IN THE BACK END
THIS SCREEN CREATION WE CAN USED THE SCREEN SELECTION
12-23-2006 10:44 AM
below is the code for the selection screen.
selection-screen begin of block b1 with frame.
parameters: ebeln like ekko-ebeln .
selection-screen end of block b1.
if declare like this u will get f4 help for the field ebeln (purchase document no).
Regards,
chaitanya. k,
12-23-2006 11:42 AM
Hi Laxman
If the requirement is for displaying a single PO, you can consider using FM: 'BAPI_PO_GETDETAIL'.
Sample code:
PARAMETERS: P_EBELN LIKE BAPIEKKO-PO_NUMBER OBLIGATORY.
DATA: POHEAD LIKE BAPIEKKOL,
POITEM LIKE BAPIEKPO OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'BAPI_PO_GETDETAIL'
EXPORTING
PURCHASEORDER = P_EBELN
IMPORTING
PO_HEADER = POHEAD
TABLES
PO_ITEMS = POITEM.
Kind Regards
Eswar