2007 Jan 18 5:53 AM
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
2007 Jan 18 5:58 AM
do u mean this -
parameters p_pernr like p0001-pernr.
set parameter ID 'PER' field p_pernr.
call transaction 'PA30'.
2007 Jan 18 6:00 AM
Hello,
Use this code:
parameters: p_vkorg type vkorg memory id VKO.
Regards,
Manoj
2007 Jan 18 6:01 AM
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
2007 Jan 18 6:09 AM
thats fine....but i need to default value on the selection screen of my report using set n get!!
2007 Jan 18 7:04 AM
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
2007 Jan 18 7:29 AM
2007 Jan 18 6:07 AM