cancel
Showing results for 
Search instead for 
Did you mean: 

GET REPORT ON SELECTION CRITERIA

0 Kudos

Dear ABAP experts,

I want data on the basis of select options in alv like if user enters PO number the BOC#1 will execute and if the user enters PR number BOC#2 will execute. The BOC can be 2 different reports as well.

Regards,

Sherry.

FredericGirod
Active Contributor

Could you clarify? select options in ALV ?? BOC ??

Sandra_Rossi
Active Contributor
0 Kudos

I don't understand. What is the question?

0 Kudos

Block of code

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Sherry,

1. First you need to find if the order entered in selection screen is PO (Purchase Order) or PR(Purchase Requisition)

2. According to Order Type , call the relevant logic/report.

Example:

Lets say input parameter is P_order

select single bstyp from EKKO into data(lv_bstyp) where ebeln = @p_order.

IF lv_bstyp = 'F' "Which means entered order is PO

call BOC#1 logic or report

ELSEIF lv_bstyp = 'B' "Which means entered order is PR

call BOC#2 logic or report

ENDIF.

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor
0 Kudos

In the AT SELECTION-SCREEN block, run a SUBMIT report based on the input criteria. Where are you stuck?

(What do you mean with BOC?)

mohdsap
Active Participant
0 Kudos

Hi

I Don't know terms but it is possible you can execute in both way , see requirement and put condition give option for both and also put logic what will happen if both are put to gether