‎2008 Aug 12 9:16 AM
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.
‎2008 Aug 12 9:29 AM
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
‎2008 Aug 12 10:01 AM
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?
‎2008 Aug 13 11:02 AM
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
‎2008 Aug 13 11:22 AM
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