on 11-27-2014 8:17 AM
Hello,
I know how to call a transaction, populate- and skip the first screen, this is not my question. HOwever certain transactions, for example MM03, also requires that you fill in subscreens before you open the actual transaction. Is this possible in WebDynpro abap. Please see screenshots below for example of mm03, what I want to achieve is to automatically prefill and skip these screens.
Regards
Mattias
Hi Mattias,
You can only pass one action while calling t-code from WD and hence can skip one screen.
I suggest you work around, create a custom program to call MM03 and with bdcdata supplied to skip all the required sub screens with data.
Create parameters like :
p_matnr,
p_select_view
P_plant
p_sales_org
in custom program
Prepare BDCDATA to pass all parameters to mm03 as required.
" Call custom MM03 tcode
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
EXPORTING
tcode = 'MM03'
MODE_VAL = 'E'
TABLES
USING_TAB = LT_BDCDATA
EXCEPTIONS
CALL_TRANSACTION_DENIED = 1
TCODE_INVALID = 2
OTHERS = 3
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
LEAVE PROGRAM.
Create t-code ZMM03 for your custom program
Call this t-code in WD by passing all parameters required.
Hope this help you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.