cancel
Showing results for 
Search instead for 
Did you mean: 

Error for linking ecatt Script for exporting parameter

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member181959
Contributor
0 Kudos

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,

http://prasadbabu.blogspot.com/

Former Member
0 Kudos

Hi Prasad babu,

Thanks for the reply. When I use v_export_type_Parameter = &ms1. In the log export parameter comes as blank instead of production order. In the message field production order could be seen as parameter 1 which is greyed out.

Your reply is greatly appreciated.

Thanks,

Gajanan

Former Member
0 Kudos

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 &param1&.

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.