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

Create a Service Purchase Requisition using BAPI_PR_CREATE

Former Member
0 Likes
4,141

Hi Everyone,

I am using BAPI_PR_CREATE.

I am able to create Standard Purchase requisition.

But while creating Service Purchase Requisition, i am not able to create.

I am getting no errors for the PR Item, but even after entering Services for the PR Item i am getting error message in return table of bapi "Please Maintain Services or limits'.

Do i have to pass value to Package_No field in the item level table of BAPI_PR_CREATE.

Please help.

Regards,

Akash

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
3,016

Hi,

it looks like you are getting message SE029 or SE122. You can go to SE91 and search where are these messages used and put break point there. You can debug that BAPI and figure out why you are getting that message.

Cheers

9 REPLIES 9
Read only

mvoros
Active Contributor
0 Likes
3,017

Hi,

it looks like you are getting message SE029 or SE122. You can go to SE91 and search where are these messages used and put break point there. You can debug that BAPI and figure out why you are getting that message.

Cheers

Read only

anup_deshmukh4
Active Contributor
0 Likes
3,016

Yes you do have to pass the package number the one is parent package number and child package ,

1. You have a Number Range where you can generate the Numbers it is 'SERVICE',

2. The Logic of the Parent and child Package number you Can Check in Tables ( for some existing service pr ) ESLH (Header )

ESLL ( Line item...) (Parent package we have a line item level and so on...and parent and child are maintained in Same table)

Edited by: Anup Deshmukh on Sep 9, 2010 5:42 AM

Read only

0 Likes
3,016

Hi Anop,

I am still not able to create Service Purchase Requisition.

Could u please tell me what all fields do i have to fill in the tables of BAPI_PR_CREATE to create a service PR.

Regards,

Akash Rana

Read only

0 Likes
3,016

Hi Akash,

I'm not sure if you have checked the threads I had provided.

Sujay

Read only

0 Likes
3,016

hi,

I am Passing PRITEM-PCKG_NO = '00000001'.

and same in SERVICELINES-SERVICE = '00000001'.

Along with this i am also passing PRITEMX-PCKG_NO = 'X' and SERVICELINESX-SERVICE = 'X'.

I am getting error SE-029 = 'Please maintain services or limits'.

i also debugged bapi at the error message and i found PACKNO field is still initial so the error is coming.

Please help.

Regards,

Akash

Read only

0 Likes
3,016

Hi Sujay,

I checked all the threads but i was not able to figure out, the solution.

Akash

Read only

Former Member
0 Likes
3,016

Hi,

Check this link for creation of services.

Hope it helps

Sujay

Read only

0 Likes
3,016

Hi Sujay,

Also the threads u provided does not talk about BAPI_PR_CREATE two amoung them talk about BAPI_PO_CREATE1 with complete different structures and one talks about BAPI_PR_CHANGE.

Regards,

Akash

Read only

0 Likes
3,016

Hi everyone,

How to create Service PR using BAPI_PR_CREATE

Regards,

Akash

Edited by: Akash Rana on Sep 9, 2010 6:57 PM