Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to get the display based on selection-screen criterio

hi friends,

I have to generate an alv list with PO data,Delivery data,shipment data etc.

i have the following fields in my sel-screen.

1) In block 1

- PO date(EKET-EINDT)

- Shipment start date(VTTK-DPTBG)

- Shipment end date(VTTK-DPTEN)

2) In block 2 (all primary keys)

- MATNR

- WERKS

- LIFNR

- EBELN

- VBELN

- SIGNI(container id)

So, the main logic is they have six sel-screen conditions.

1) if the user selects the PO date in 1st block then they need the data based on PO date and the fields in 2nd block should serve as additional filters and it should display a list.

2) if the user selects the shipment start date in 1st block then they need the data based on shipment number and shipment start date and the fields in 2nd block should serve as additional filters and it should display a list.

3) if the user selects the shipment end date in 1st block then they need the data based on shipment number and shipment end date and the fields in 2nd block should serve as additional filters and it should display a list.

4) if either or multiples of the fileds in 2nd block r selected and the date range in 1st block in blank then they need the display based on the PO item with the respective material.

5) If VBELN is selected in 2ND block and the date range in 1st block is blank then they need the display based on the VBELN only.

6) If SIGNI is selected in 2ND block and the date range in 1st block is blank then they need the display based on the SIGNI and TKNUM in VTTK .

I am getting all the report fields into a final output internal table by using for all entries and reading those tables and then moving them into the final output table.

i am getting the way to write the logic in at selection-screen on the same field whcih ever the user selects .

Can anybody suggest me with the proper and perfect logic for all of the above conditions.

Regards

Mahesh

Tags:
Not what you were looking for? View more on this topic or Ask a question