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

problem while creating the CRAP_WORKCENTER_CREATE

Former Member
0 Likes
2,027

Hai all,

presently I am working on CRAP_WORKCENTER_CREATE, for creating a work center. I am getting an error called " capacity no not assigned to this work center ".

If possible send me the parameters and structures to implement the bapi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,263

You may also want to take a look at program RCRAPDX2 as to how its using *CRAP_WORKCENTER_CREATE)

  • Create work center from input structures

CALL FUNCTION 'CRAP_WORKCENTER_CREATE'

EXPORTING

in_crhd_api01 = crapi01_lst

in_crhd_api02 = crapi02_lst

in_crhd_api03 = crapi03_lst

in_crhd_api05 = crapi05_lst

comment = gv_comment

test = const-flg_no

TABLES

in_kapa_api01 = kaapi01_tab

in_kapa_api02 = kaapi02_tab

in_crhd_api04 = crapi04_tab

in_crco_api01 = coapi01_tab

in_kazy_api01 = kzapi01_tab

in_kapa_api04 = kaapi04_tab

EXCEPTIONS

OTHERS = 1.

2 REPLIES 2
Read only

Former Member
0 Likes
1,264

You may also want to take a look at program RCRAPDX2 as to how its using *CRAP_WORKCENTER_CREATE)

  • Create work center from input structures

CALL FUNCTION 'CRAP_WORKCENTER_CREATE'

EXPORTING

in_crhd_api01 = crapi01_lst

in_crhd_api02 = crapi02_lst

in_crhd_api03 = crapi03_lst

in_crhd_api05 = crapi05_lst

comment = gv_comment

test = const-flg_no

TABLES

in_kapa_api01 = kaapi01_tab

in_kapa_api02 = kaapi02_tab

in_crhd_api04 = crapi04_tab

in_crco_api01 = coapi01_tab

in_kazy_api01 = kzapi01_tab

in_kapa_api04 = kaapi04_tab

EXCEPTIONS

OTHERS = 1.

Read only

0 Likes
1,263

Hai jaten,

I passed the bapi structure with the same structures and i also checked the executable programs, i am getting error in capacity category field. i tried in diffrent ways but i dint get the result.

and I checked the executable program also, based on that i created the error log etc.