Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Open a Particular view in MM03

Former Member
0 Kudos

Hi all

I want to open the MRP4 view of MM03 (directly) by passing the value of Material plant & Storage loc to the tcode.

I have tried using the BAPI -> MATERIAL_MAINTAIN_DIALOUGE, but it opens the MRP1 view

any pointers will be helpful.

Regards

Ravish

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

U can create a transaction event using SHD0 for that MM03.

Here u can give the Default View as MRP4.

awrd points if helpful

Bhupal

3 REPLIES 3

gopi_narendra
Active Contributor
0 Kudos

Check this FM : MATERIAL_BTCI_SELECTION_NEW

Regards

Gopi

glio_ad
Active Participant
0 Kudos

Hi.

You can try a simple batch-input in mode N. Do a recording in SM35 and create the batch-input.

PERFORM bdc_dynpro TABLES my_bdc USING 'SAPLMGMM' '0060'.

PERFORM bdc_field TABLES my_bdc USING 'RMMG1-MATNR' '91'.

PERFORM bdc_field TABLES my_bdc USING 'BDC_OKCODE' '/00'.

PERFORM bdc_dynpro TABLES my_bdc USING 'SAPLMGMM' '0070'.

PERFORM bdc_field TABLES my_bdc USING 'MSICHTAUSW-KZSEL(15)' 'X'.

PERFORM bdc_field TABLES my_bdc USING 'BDC_OKCODE' '=ENTR'.

PERFORM bdc_dynpro TABLES my_bdc USING 'SAPLMGMM' '0080'.

PERFORM bdc_field TABLES my_bdc USING 'RMMG1-WERKS' '1001'.

PERFORM bdc_field TABLES my_bdc USING 'BDC_OKCODE' '=ENTR'.

CALL TRANSACTION 'MM03'

USING my_bdc

MODE 'E' UPDATE 'S'.

-


FORMS ---

  • FORM BDC_DYNPRO ------------------------------------------------------

  • Creates a dynpro line: program - screen no

  • <-> PT_BDCDATA

  • --> PW_PROGRAM Program name

  • --> PW_DYNPRO Screen number

  • CHANGES: SY-TABIX

*----


form bdc_dynpro tables pt_bdcdata structure bdcdata

using pw_program pw_dynpro.

clear pt_bdcdata.

pt_bdcdata-program = pw_program.

pt_bdcdata-dynpro = pw_dynpro.

pt_bdcdata-dynbegin = 'X'.

append pt_bdcdata.

endform. " BDC_DYNPRO

  • FORM BDC_FIELD -------------------------------------------------------

  • Creates a field line: field name + value

  • <-> PT_BDCDATA

  • --> PW_FNAM Field name

  • --> PW_FVAL Field value

  • CHANGES: SY-TABIX

*----


form bdc_field tables pt_bdcdata structure bdcdata

using pw_fnam pw_fval.

clear pt_bdcdata.

pt_bdcdata-fnam = pw_fnam.

pt_bdcdata-fval = pw_fval.

append pt_bdcdata.

endform. " BDC_FIELD

Reward if it helps,

Regards,

George

Former Member
0 Kudos

Hi,

U can create a transaction event using SHD0 for that MM03.

Here u can give the Default View as MRP4.

awrd points if helpful

Bhupal