2014 Nov 06 6:35 AM
Hi ,
I am unable to use Set parameter id for the Tcode CWBQM field Work_area .
parameter id 'WAR'
I am using syntax .
set parameter id 'WAR' field lv_field.
help me out form this problem .
2014 Nov 06 6:36 AM
Hi,
did you check in debug if the program clear the field after your statement ?
regards
Fred
2014 Nov 06 7:09 AM
Hi Alok,
You can't set the parameter id for the Current Working area field because if you check the properties of Current working area field doesn't contain the checkboxes for the set parameter and get parameter .
But you can do implementing an exit in the Tcode CWBQM.
implement the exit in write the below code and it is showing the value and going to next screen also.
Please find the below code and screen shot.
MODULE d1100_initialize OUTPUT.
ENHANCEMENT-POINT CP_SEL_PBO_01 SPOTS ES_SAPLCPSC.
*$*$-Start: CP_SEL_PBO_01-----------------------------------------------------------------------$*$*
ENHANCEMENT 1 DIMP_GENERAL_SAPLCPSC. "active version
* no iPPE modification...........!!!!!!!!!!!!!!!!
* save sy-tcode
g_tcode = sy-tcode.
if not g_tcode = cwb_tcode-PP1 and
not g_tcode = cwb_tcode-PP2 and
not g_tcode = cwb_tcode-QM.
message X049.
endif.
ENDENHANCEMENT.
ENHANCEMENT 1 ZSAPLCPSC. "active version
if sy-tcode = 'CWBQM'.
cwb_workarea-work_area = 'Q_OPR_000000000010'.
endif.
ENDENHANCEMENT.
I hope this will be helpful.
Thanks & Regards,
Raghunadh Kodali
2014 Nov 06 9:01 AM
Actually the default parameters for this field are maintained in table cwb_workarea_def for each user individually.
Even if you would set it any other way, it would be overwritten by the value from the table.
(See CP_SEL_PBO line 58 - 63)
So the only way is, to implement the exit as mentioned by Raghunadh.