Hi Hemanth,
Alternate Solution
For This you can make use of event type linkages. Goto SWE2 T-Code
Create a FM with the following paramaters :
When a Sales Order is created this event will trigger & objkey 'll contain the Sales Order No.
Just put the code
--------------------------------------------------------------------------------------
lv_vbeln = objkey
SELECT * from VBAK into Table GT_VBAK WHERE VBELN eq lv_vbeln.
READ TABLE GT_VBAK INTO GS_VBAK INDEX 1.
GS_VBAK-ZZXXX = lv_vbeln.
modify GT_VBAK FROM GS_VBAK TRANSPORTING ZZXXX.
modify vbak from table gt_vbak.transporting zzxxx.
----------------------------------------------------------------------------------------
fiNAL step : Just Assign the FM here.
Regards
Akshat


