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 Parameter ID not working

Former Member
0 Likes
2,443

Hi,

I had set the parameter for a customized program but it does not work.

set parameter id 'BUK' field COMPANY.

SET PARAMETER ID 'KUN' FIELD ITAB-CUSTOMER.

SET PARAMETER ID 'MAT' FIELD ITAB-MATERIAL.

CALL TRANSACTION 'ZRSWBP004'.

the 2nd and 3rd parameter are not passed to the customized program.

they are the select options in the program.

I checked that other programs are working fine.

Maybe someone out there can tell me if it is my code or the SAP cache or etc.

Tks in advance for all your help.

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
913

Possible causes of error

- Look at your ZRSWBP00 transaction, Are the parameters linked to the parameter id.? Referencing the data elements KUNNR and MATNR, or via LIKE definition, or explicitly in the parameter definition "MEMORY ID pid" .

Call transaction XD03 and MM03 so MEMORY ID are filled then call transaction ZRSWBP00, did the customer and material numbers appears ?

- Are the ITAB field (header line ?) filled. Maybe there is a work area

put a break-point in your code

Regards

Read only

Firoz_Ashraf
Contributor
0 Likes
913

Please check whether values are passed in ITAB-CUSTOMER and ITAB-MATERIAL. ITAB is with header line or not? If not are u passing the values through work area to ITAB-CUSTOMER and ITAB-MATERIAL?

Read only

former_member787646
Contributor
0 Likes
913

Hi,

Try this..

SET PARAMETER ID 'KUN' FIELD (ITAB-CUSTOMER).

SET PARAMETER ID 'MAT' FIELD (ITAB-MATERIAL).

if it for just one record then

SET PARAMETER ID 'KUN' FIELD WA-CUSTOMER.

SET PARAMETER ID 'MAT' FIELD WA-MATERIAL.

Hope it helps.

Murthy

Read only

Former Member
0 Likes
913

Hi Sally ,

i dont know how u are maintaining parameters of that calling program i mean to say selection screen parameters.

i done the sample program , but i havent find any issues with that ,

Program 1.

__TABLES:BKPF.__

__PARAMETERS: S_DATE LIKE BKPF-BUDAT MEMORY ID III.__

__WRITE: S_DATE.__

program 2.

SET PARAMETER ID 'III' FIELD '20070820'.

call transaction 'ZTESTZ' AND SKIP FIRST SCREEN.

regards

Prabhu