07-04-2007 6:50 AM
Hi,
My requirement in function module is to call transaction code VT70 createa predefined variant for print profile ,outputdevice and shippment no ,the input selection screeen values for transaction is the predefined variant ,and this program sholud set execute buttonVT70, how to do this
Thanks,
lavanya
07-04-2007 6:55 AM
lavi,
ABAP4_CALL_TRANSACTION
ALINK_CALL_TRANSACTION
COPF_CALL_TRANSACTION
Check these Fn Mod,it may give you some lead.
Variants you can create in SHD0.
K.Kiran.
07-04-2007 7:31 AM
Hi
How to call the predefined variant for a transaction code
Thanks,
lavanya
07-04-2007 6:58 AM
Hi Lavi,
Check out these FM's
ABAP4_CALL_TRANSACTION
ALINK_CALL_TRANSACTION
<b>Reward points if that was helpful.</b>
Kiran
07-04-2007 6:59 AM
Hi,
You can use this code:
SET PARAMETER ID 'TNR' FIELD shipment-no.
CALL TRANSACTION 'VT70' AND SKIP FIRST SCREEN.
For other field (output device, etc), you can add the SET PARAMETER ID by finding the correct parameter ID (by clicking F1 on the field in VT70, click technical, and find it under 'Parameter ID')
Hope it'll help