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: 

Creation of Service POs using BAPI_PO_CREATE1

Former Member
0 Kudos
105

Hi Friends,

I am trying to create service POs through BAPI (BAPI_PO_CREATE1). I am facing different errors like Please maintain service or limits eve though I am providing the details in POSERVICES. Can any one suggest me the fields which we have to provide for creating the service POs.

I am using this BAPI in LSMW.

Thanks,

Gagan Chodhry

3 REPLIES 3

Former Member
0 Kudos
68

check fields of BAPIESLLC-FROM_LINE and TO_LINE.

regards

Prabhu

Former Member
0 Kudos
68

Check this it may help u.

DATA: BEGIN OF po_header OCCURS 0.

INCLUDE STRUCTURE BAPIEKKOC.

DATA: END OF po_header.

DATA: BEGIN OF po_iteam OCCURS 10.

INCLUDE STRUCTURE BAPIEKPOC.

DATA: END OF po-items.

DATA: BEGIN OF PO_ITEM_SCHEDULES OCCURS 0.

INCLUDE STRUCTURE BAPIEKET.

DATA: END OF PO_ITEM_SCHEDULES.

DATA: BEGIN OF I_BAPIRETURN OCCURS 0.

INCLUDE STRUCTURE BAPIRETURN.

DATA: END OF I_BAPIRETURN.

CALL FUNCTION 'BAPI_PO_CREATE'

EXPORTING

PO_HEADER = PO_HEADER

SKIP_ITEMS_WITH_ERROR = 'X'

TABLES

PO_ITEMS = PO_ITEMS

PO_ITEM_SCHEDULES = PO_ITEM_SCHEDULES

RETURN = I_BAPIRETURN

EXCEPTIONS

OTHERS = 1.

Regards

0 Kudos
68

Thanks and it helped...

Gagan Chodhry