‎2008 Aug 26 12:26 PM
Hi Expert,
I need to execute the tranaction MD04 by passing the material and plant from
my report and return when back button i s pressed.
pls give solution to do this
thanks in advance
sai
‎2008 Aug 26 12:30 PM
‎2008 Aug 26 12:30 PM
‎2008 Aug 26 12:31 PM
Initially set the parameter id's for Material and plant.
Now use CALL Transaction method and skip first screen.
‎2008 Aug 26 12:39 PM
Hi,
Try like this:
set parameter id 'AUN' field wa_vbak-vbeln. "Set the vbeln value into parameter id of vbeln in transaction va03
call transaction 'VA03' and skip first screen. "Calling the VA03 Screen for display Sales Document
Regards,
Bhaskar
‎2008 Aug 26 12:49 PM
Hi
set parameter id fnam value fval.
Using the above statement, first set the parameter ID's with your required values in the report and then call the transaction using statement
call transaction md04.
I hope the above code will be useful to you.
Regards,
Meshack Appikatla
‎2008 Aug 26 1:00 PM
parameters:matnr type marc-matnr.
parameters:werks type marc-werks.
SET PARAMETER ID 'MAT' FIELD MATNR.
SET PARAMETER ID 'WRK' FIELD WERKS.
call transaction 'MD04'.
‎2008 Aug 26 1:01 PM
Hi Sai,
If u want to pass the values from ur report o/p try this...
AT LINE-SELECTION.
GET CURSOR FIELD M1 VALUE M2.
IF M2 IS NOT INITIAL.
SET PARAMETER ID 'BES' FIELD M2.
CALL TRANSACTION 'MD04'.
‎2008 Aug 26 1:04 PM
This is fine
parameters:matnr type marc-matnr.
parameters:werks type marc-werks.
SET PARAMETER ID 'MAT' FIELD MATNR.
SET PARAMETER ID 'WRK' FIELD WERKS.
call transaction 'MD04' and skip first screen.