Application Development and Automation 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: 
Read only

SET/GET PARAMETER for URL transfer

Former Member
0 Likes
565

Hi

I want to pass URL(255) path from One program(module pool)

to another program(modulepool)

Module Pool prg1.

DATA : P_URL(255) VALUE 'Http://google.com'.

I am using SET PARAMETER 'ZURL' FIELD P_URL.

CALL TRANSACTION 'ZVIEWER' AND SKIP FIRST SCREEN.

Module Pool prg2 tr-cd ZVIEWER.

PBO

MODULE STATUS_0100 OUTPUT.

GET PARAMETER ID 'ZURL' FIELD URL.

ENDMODULE.

I have created custom Parameter id in TPARA table and

added PARAEMTER ID 'ZURL' in Screen parameter with check of SET/GET.

I am not using any data element in this case to set parameter.

Why URL value is not passed to Prg2 in above case.

Should i have to use Dataelement for transfer?

255 character value transfer is not possible using SET/GET?

Pls advice

Regards

Chandra

1 ACCEPTED SOLUTION
Read only

raviahuja
Contributor
0 Likes
527

Hi,

In second pool program, change your field name to P_URL from URL.

Thanks.

Ravi

Hi

I want to pass URL(255) path from One program(module pool)

to another program(modulepool)

Module Pool prg1.

DATA : P_URL(255) VALUE 'Http://google.com'.

I am using SET PARAMETER 'ZURL' FIELD P_URL.

CALL TRANSACTION 'ZVIEWER' AND SKIP FIRST SCREEN.

Module Pool prg2 tr-cd ZVIEWER.

PBO

MODULE STATUS_0100 OUTPUT.

GET PARAMETER ID 'ZURL' FIELD URL.

ENDMODULE.

I have created custom Parameter id in TPARA table and

added PARAEMTER ID 'ZURL' in Screen parameter with check of SET/GET.

I am not using any data element in this case to set parameter.

Why URL value is not passed to Prg2 in above case.

Should i have to use Dataelement for transfer?

255 character value transfer is not possible using SET/GET?

Pls advice

Regards

Chandra

3 REPLIES 3
Read only

raviahuja
Contributor
0 Likes
528

Hi,

In second pool program, change your field name to P_URL from URL.

Thanks.

Ravi

Read only

koolspy_ultimate
Active Contributor
0 Likes
527

Hi,

Either use data element or use p_url (because you declared data element already)


MODULE STATUS_0100 OUTPUT.
GET PARAMETER ID 'ZURL' FIELD p_URL. "here
ENDMODULE.

Read only

0 Likes
527

Thank you guys

It works.

let me reward points to all.