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

Unable to use Set Parameter .

former_member375795
Participant
0 Likes
1,207

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 .

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 .

3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
1,119

Hi,

did you check in debug if the program clear the field after your statement ?

regards

Fred

Read only

former_member226225
Contributor
0 Likes
1,118

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 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 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

Read only

DominikKraemer
Active Participant
0 Likes
1,118

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.