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: 

HOW TO USE SELECTION SCREEN

laxman_sankhla3
Participant
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Your Issue is not clear . could you explain in detail.

Regards,

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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,

Former Member
0 Kudos

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