cancel
Showing results for 
Search instead for 
Did you mean: 

Bapi to change the workcenter for CRQ2

former_member210804
Active Participant
0 Kudos

Hi Experts,


I want to change record for CRQ2 using function module. I found one FM CRAP_WORKCENTER_CHANGE. I passed the inputs and i tried to change the description IN_CRHD_API01-ktext = 'sample text' and  IN_CRHD_API01X-ktext = 'X. IN_CRHD_API01X-CHANGE_FLG.

But the record is not getting updated. Please let me know the correction that i need to do.

Thanks.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member210804
Active Participant
0 Kudos

Hi Experts,

I m able to change the work center. Entered wrong entries in header data (

IN_CRHD_API01

IN_CRHD_API02 )

Thanks

former_member210804
Active Participant
0 Kudos

Hi experts,

I am able to modify workcenter details using FM CRAP_WORKCENTER_CHANGE followed by commit work except scheduling and costing fields data. I have passed  IN_CRHD_API05 and  IN_CRHD_API05X for scheduling and IN_CRCO_API01 and IN_CRCO_API01X for costing.


Please check data passed and let me know what could be the mistake that i made.

in_crhd_api05-kapart = 'XXX'.

in_crhd_api05-fort1  = 'XXXF02'.

in_crhd_api05-fort2  = 'XXXF01'.

in_crhd_api05-fort3  = 'XXXF02'.

in_crhd_api05-fortn  = 'XXXF5'.

in_crhd_api05x-kapart = 'X'.

in_crhd_api05x-fort1  = 'X'.

in_crhd_api05x-fort2  = 'X'.

in_crhd_api05x-fort3  = 'X'.

in_crhd_api05x-fortn  = 'X'.

in_crhd_api05x-change_flg = 'U'.

IN_CRCO_API01-KOSTL    = 'XXXXXXXXX'

IN_CRCO_API01-BEGDA   = 23.05.2017

IN_CRCO_API01-ENDDA   = 28.06.2017

IN_CRCO_API01-LSTAR1      =  'XXXXXXX"

IN_CRCO_API01-LSTAR_REF1   = 'X'

IN_CRCO_API01-FORML1                  =  'XXXX'

IN_CRCO_API01-KOSTL    = 'X'

IN_CRCO_API01-BEGDA   = 'X'

IN_CRCO_API01-ENDDA   = 'X'

IN_CRCO_API01-LSTAR1      =  'X'

IN_CRCO_API01-LSTAR_REF1   = 'X'

IN_CRCO_API01-FORML1                  =  'X'

IN_CRCO_API01-CHANGE_FLG  = 'U'.

Thanks.

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

Refer SAP note   2097796 - API for Work center maintanance

Best Regards,

R.Brahmankar

former_member210804
Active Participant
0 Kudos

Hi Experts,

I m having doubt in passing fields in structures/table of FM CRAP_WORKCENTER_CHANGE. Please suggest on this.

Please guide how to update the workcenter (basic data, default values, capacities, scheduling, costing ) in CRQ2 transaction.

Thanks

former_member198406
Contributor
0 Kudos

Hi Narasimha,

Did you try BAPI_TRANSACTION_COMMIT this one?

You need to run a test sequence first run the FM CRAP_WORKCENTER_CHANGE and than run  BAPI_TRANSACTION_COMMIT as per the below screen shot of SE37.

Regards,

Dipeshkumar Bhavsar

former_member210804
Active Participant
0 Kudos

Hi Deepesh,

I tried. Still i m not able to update the work center details. Is there any other FM to change the work center details