on 04-20-2007 6:24 PM
Hi,
We have 2 SAPGUI scripts, one is transaction CO01 to create the production order. The other is CO02 to release the production order. In the first script I get production order number as parameter 1 in the message field. I need to export this field to second script for releasing order.
I am not able to pick the order.
Tried to use ABAP code
ABAP.
DATA: z_aufnr like CAUFVD-AUFNR.
get parameter id 'ANR' FIELD Z_AUFNR.
ENDABAP.
Still export parameter in log comes as empty. So if I create thrid script using ref# it errors out at second script start.
Your help is greatly appreciated.
Thanks,
Gajanan
Hi Prabhakar,
Thanks for your reply. My problem is when I create production order through script 1 it works correctly. In the script I could see the out put is stored on the last screen in message parameter1 field which is greyed out and I can not parameterize as an export parameter.
Your help is greatly appreciated.
Thanks,
Gajanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did u try to use message variable to pass the PO number to next script?
try this,
TCD(ur_Tcode,ur_Tcode_1).
v_export_type_Parameter = &ms1.
use v_export_type_Parameter as import parameter for the next script.
Hope this helps.
Cheers,
Prasad Babu,
Hi
you don't have to use abap for this .
in the command editor
choose first script recording interface and double click it ,observe the screen list on right side and now select the last screend and double click field and parameterize it say give it a name as variable1 by entering this in valin column.
Create a parameter and by param1 name and export type and default values as variable1.
Now for the second script create a parameter as import type and set it's value as ¶m1&.
Also pass this value to second script by the same as you done for first script.
This will work for sure.
To know more how to parameterize follow the links,
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
http://www.sapecc.com/tutorials/secat_create.htm
Please reward points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.