on 07-04-2022 1:14 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
11 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.