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

default sales org on selection screen using set and get parameter!!

Former Member
0 Likes
1,595

Hi,

I need to default value on selection screen using SET n GET parameter...logic to be used should be:

Sales Organisation:

This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...

Hope i need to write the code in initialisation and what shud b the content?

Regards

Gunjan

Hi,

I need to default value on selection screen using SET n GET parameter...logic to be used should be:

Sales Organisation:

This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...

Hope i need to write the code in initialisation and what shud b the content?

Regards

Gunjan

7 REPLIES 7
Read only

Former Member
0 Likes
1,098

do u mean this -

parameters p_pernr like p0001-pernr.

set parameter ID 'PER' field p_pernr.

call transaction 'PA30'.

Read only

Former Member
0 Likes
1,098

Hello,

Use this code:

parameters: p_vkorg type vkorg memory id VKO.

Regards,

Manoj

Read only

Former Member
0 Likes
1,098

hi,

TABLES <table name>.

SET PARAMETER ID VKO FIELD <tablename-fieldname>.

call transaction 'zxx'.

try this sample program,

REPORT BOOKINGS NO STANDARD PAGE HEADING.

TABLES SBOOK.

START-OF-SELECTION.

WRITE: 'Select a booking',

/ '----


'.

SKIP.

GET SBOOK.

WRITE: SBOOK-CARRID, SBOOK-CONNID,

SBOOK-FLDATE, SBOOK-BOOKID.

HIDE: SBOOK-CARRID, SBOOK-CONNID,

SBOOK-FLDATE, SBOOK-BOOKID.

AT LINE-SELECTION.

SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,

'CON' FIELD SBOOK-CONNID,

'DAY' FIELD SBOOK-FLDATE,

'BOK' FIELD SBOOK-BOOKID.

CALL TRANSACTION 'BOOK'.

regards,

siva

Message was edited by:

Shan

Read only

0 Likes
1,098

thats fine....but i need to default value on the selection screen of my report using set n get!!

Read only

0 Likes
1,098

Use this code.

report zparam1.

parameters p_vkorg type vkorg.

initialization.

get parameter id vko field p_vkorg.

....

start-of-selection.

set parameter id vko field p_vkorg.

Manoj

Read only

0 Likes
1,098

req is to default vkorg on selection screen ....

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,098

Hi,

parameters p_vkorg type vkorg memory id vko.