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: 

Function module

Former Member
0 Kudos

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

4 REPLIES 4

kiran_k8
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi

How to call the predefined variant for a transaction code

Thanks,

lavanya

Former Member
0 Kudos

Hi Lavi,

Check out these FM's

ABAP4_CALL_TRANSACTION

ALINK_CALL_TRANSACTION

<b>Reward points if that was helpful.</b>

Kiran

Former Member
0 Kudos

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