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: 

Call Transaction MD04

Former Member
0 Kudos

Hi,

I have to call transaction MD04 from basic list.

And in tht MD04 transaction, Material and Plant value should be same as of basic list's plant and material.

Can anybody tell me how to pass the values dynamically ????

1 ACCEPTED SOLUTION

Former Member
0 Kudos
SET PARAMETER ID 'MAT' FIELD 'xxxxxx'. " material ID
SET PARAMETER ID 'WRK' FIELD 'xxxx'.  "werks ID
CALL TRANSACTION 'MD04' AND SKIP FIRST SCREEN.
4 REPLIES 4

Former Member
0 Kudos

hI,

Use SET PARAMETER statment to set value for plant and material in MD04. then use CALL TRANSACTION statement to call T.Code MD04.

Former Member
0 Kudos
SET PARAMETER ID 'MAT' FIELD 'xxxxxx'. " material ID
SET PARAMETER ID 'WRK' FIELD 'xxxx'.  "werks ID
CALL TRANSACTION 'MD04' AND SKIP FIRST SCREEN.

0 Kudos

Thanks Andrey Markin

My problem is solved.

I was trying the same code but i was passing wrong parameters.

May i know from where to get 'WRK' for Plant and 'MAT' for Material.

0 Kudos

You can press F1 on any screen field and see technical information. ID parameter in last line (only placed if available for element).