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

Creating service PR using BAPI_REQUISITION_CREATE

former_member282968
Contributor
0 Likes
1,747

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,

1 REPLY 1
Read only

former_member282968
Contributor
0 Likes
984

Any suggestion please for the above post?