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: 

Create service PO from BAPI_PO_CREATE1 w.r.t a service PR

Former Member
0 Kudos

Hi experts,

we have a requirement to create a service PO from Service PR through BAPI BAPI_PO_CREATE1 , but when i am trying to create it is giving error 'Maintain Service or LImit' . i want to know from where i can get the service line item from PR which i can pass in POSERVICE parameter of the BAPI. I mean i want data from ESLL table to populate in the service PO importing parameter but don't know how to get ESLL data from PR detail.

Thanks in Advance !

Regards,

Kapil.

4 REPLIES 4

Former Member
0 Kudos

Hi,

follow this link may help u...

<Link removed by moderator>

Thanks & regards,

Edited by: Vinod Kumar on Oct 19, 2011 11:11 AM

0 Kudos

Hi Anusha,

I know what input i have to provide to the bapi, but i am notfinding the link how to populate Service PO detail to BAPI . i have service number maintained in PR which i have to pass to PO.

Regards,

Kapil.

0 Kudos

Hi,

Service PO occurs when we enter item category u2018Du2019 (Service) and Account category u2018Ku2019 (Cost Center).

When we use BAPI_PO_CREATE1 to create service PO, following tables are populated at item level:

POITEM

POITEMX

POACCOUNT

POACCOUNTX

POSERVICES

POSRVACCESSVALUES

below is the sample code, hope this may help u.

For service items: POITEM-PCKG_NO = u20180000000001u2019. (assign package no as a dummy number)

Set PCKG_NO flag in POITEMX table as u2018Xu2019.

Package No is the link that connect POITEM table to POACCOUNT table through tables POSERVICES and POSRVACCESSVALUES.

Set POACCOUNT-SERIAL_NO to u201801u2019.

Set same PCKG_NO to u20180000000001u2019 in POSERVICES table. Maintain two entries in POSERVICES table like this:

WA_POSERVICES-PCKG_NO = u20180000000001u2019.

WA_POSERVICES-LINE_NO = u20180000000001u2019.

WA_POSERVICES-OUTL_IND = u2018Xu2019.

WA_POSERVICES-SUBPCKG_NO = u20180000000003u2019. (Dummy No.)

WA_POSERVICES-QUANTITY = u2018100.000u2019.

WA_POSERVICES-BASE_UOM = u2018EAu2019.

WA_POSERVICES-PRICE_UNIT = u20181u2019.

WA_POSERVICES-GR_PRICE = u2018100.000u2019.

WA_POSERVICES-SHORT_TEXT = u2018SERVICE TESTu2019.

APPEND WA_POSERVICES TO IT_POSERVICES.

WA_POSERVICES- PCKG_NO = u20180000000003u2019.

WA_POSERVICES- LINE_NO = u20180000000002u2019.

WA_POSERVICES-QUANTITY = u201810.000u2019.

WA_POSERVICES- BASE_UOM = u2018EAu2019.

WA_POSERVICES--PRICE_UNIT = u20181u2019.

WA_POSERVICES-GR_PRICE = u2018100.000u2019.

WA_POSERVICES-SHORT_TEXT = u2018SERVICE 1u2019.

WA_POSERVICES-MATL_GROUP = u20180012u2019.

APPEND WA_POSERVICES TO IT_POSERVICES.

Set PCKG_NO as SUB_PCKG_NO in table POSRVACCESSVALUES this:

WA_POSRVACCESSVALUES-PCKG_NO = u20180000000003u2019.

WA_POSRVACCESSVALUES-LINE_NO = u20180000000002u2019.

WA_POSRVACCESSVALUES-SERNO_LINE = u201801u2019.

WA_POSRVACCESSVALUES-SERIAL_NO = u201801u2019.

WA_POSRVACCESSVALUES-QUANTITY = u201910.000u2019.

APPEND WA_POSRVACCESSVALUES TO IT_ POSRVACCESSVALUES.

thanks & regards.

0 Kudos

Hi anusha,

Please do not copy paste the reply from other threads. this thread has shown his/her example. it will not copy exact service number from PR to PO. I have to fetch detail from PR and pass it to POSERVICES parameter.

Regards,

Kapil.