cancel
Showing results for 
Search instead for 
Did you mean: 

Calling subscreen in WD Abap

Mattias
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

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

Mattias
Active Participant
0 Kudos

Hello,

Thank you for the reply. I was thinking of that solution, but wanted to avoid it as far as possible, to me it feels like a "hack", but I guess that's the work around we have.

Regards

Answers (0)