Application Development 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: 

assign "cost center" to a new PR by ABAP

Former Member
0 Kudos

Hi experts,

I need assign cost center to a new PR now. I read the code written by sap consultant, the mechanism is that call IDOC_INBOUND_SINGLE to generate new Purchase Requisition.

So, how to update the idoc to assign "cost center" to PR?

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Why not use BAPI BAPI_REQUISITION_CREATE or BAPI_REQUISITION_CHANGE?

Hope that helps.

3 REPLIES 3

Former Member
0 Kudos

Why not use BAPI BAPI_REQUISITION_CREATE or BAPI_REQUISITION_CHANGE?

Hope that helps.

0 Kudos

Which filed should I fill the cost center infomation to?


 wa_pr_header    TYPE e1bpmereqheader,  " Structure PR - Header
 wa_pr_headerx   TYPE e1bpmereqheaderx, " Parameter PR - Header
 wa_pr_itemimp   TYPE e1bpmereqitemimp, " Toolbar   PR - Item
 wa_pr_itemx     TYPE e1bpmereqitemx,   " Parameter PR - Item
 is_idoc_data    TYPE TABLE OF edi_dd40,
...
CALL FUNCTION 'IDOC_INBOUND_SINGLE'

Thanks.

0 Kudos

I have the same question