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: 

How to set default value in Standard dialog screen?

Former Member
0 Kudos

Dear Experts,

In MM01, when ever new material has been created & extending it to sales view, then have to default value in field Distribution channel & it should be change based on Material type/plant.

For Eg: Material Type   Distribution channel

                   ROH                         06

                   FERT                        01

Please suggest me the BADI's or Enhancements available?

Thanks in advance..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Solved using Tcode: 'OMT3U'.

Thanks all

6 REPLIES 6

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

You can try SHDO.

Regards,

Madhu.

0 Kudos

Hi Madhu,

Thanks for your response, but as per my requirement have to do in Technical (Coding), so that no need to assign it to specific user..
Correct me if am wrong..

raymond_giuseppi
Active Contributor
0 Kudos

You could try with BADI_MATERIAL_REF?

Regards,

Raymond

0 Kudos

Hi Raymond,

Thanks for your Response.. Could you please guide me more where can i do that? & make sure that it (Hard coded Value) should have to appear in dialog screen before creating Sales view..

0 Kudos

In IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL method.

Loop at IT_MATERIAL_TABLES and when tbnam contains a table where you want to force a value, change it from data received in another parameter (the I_MARA, MARC, etc.) Also memorize in CT_MAT_REFTAB that you have already do the job for this table/status.

(Read BAdI documentation "BAdI Interface: Reference Handling for Materials" and analyze sample class)


Regards,

Raymond

Former Member
0 Kudos

Solved using Tcode: 'OMT3U'.

Thanks all