04-07-2010 8:45 PM
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.
04-07-2010 10:30 PM
Why not use BAPI BAPI_REQUISITION_CREATE or BAPI_REQUISITION_CHANGE?
Hope that helps.
04-07-2010 10:30 PM
Why not use BAPI BAPI_REQUISITION_CREATE or BAPI_REQUISITION_CHANGE?
Hope that helps.
04-07-2010 11:03 PM
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.
06-17-2010 5:47 PM