‎2012 Jun 20 11:23 AM
Dear Experts,
I am trying to create a service PR using BAPI_REQUISITION_CREATE ( Account assignment category J and K ). I get the PR details from the BAPI_REQUISITION_GETDETAIL and pass the parameters accordingly to the BAPI_REQUISITION_CREATE.
I am doing this in version 4.6. I have refered to SAP note: 420331 - BAPI_REQUISITION_CREATE: Template for services and the below link as well:
http://wiki.sdn.sap.com/wiki/display/ABAP/BAPI_REQUISITION_CREATE
But even after that either PR gets created with no service lines or I get error 'net value could not be determined'.I have debugged and found that the difference in doing with ME51 to what i am doing is that COMSRV-CON_PACKNO should be initial but through my BAPI program the value is getting updated and hence the net value is not getting calculated.This happens in FM 'MS_SERVICE_PACKAGE'.
It would be helpful if I can get a sample code to pass the parameters in the right sequence for BAPI_REQUISITION_CREATE.
With thanks & regards,
‎2012 Jun 21 3:01 AM