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: 

BAPI for Creating Service Purchase Order

Former Member
0 Kudos

Hi All,

I am not able to create service po using bapi, after passing the parameters

ls_polimits-LIMIT = '30'.

ls_polimits-EXP_VALUE = '20'.

APPEND : ls_polimits TO gt_polimits.

ls_poserv-quantity = '10'.

ls_poserv-base_uom = 'AU'.

ls_poserv-short_text = 'AAAAAAAA'..

ls_poserv-price_unit = '1'.

ls_poserv-GR_PRICE = '25'.

ls_poserv-TAX_CODE = 'V0'.

ls_poserv-MATL_GROUP = '6AD'.

APPEND : ls_poserv TO gt_poserv,

ls_poservx TO gt_poservtxt.

message getting is

500000280 00010 Purchase order still contains faulty items

500000280 00010 No instance of object type PurchaseOrder has been created. External reference:

500000280 00010 Please maintain services or limits

please help me

Appropriate points will be rewarded.

Arun

3 REPLIES 3

Former Member
0 Kudos

It is data problem,try to create Service PO manullay and see the results.

if you are able to create Service po then issue would be at program.

I am sure that issue would be data,try to talk to Functional guy,get the proper data and create service po Manually.

Thanks

Seshu

0 Kudos

Dear Seshu,

This is not the problem with data, coz, i am able to create the PO (Service) Manually.

please let me know what all tabeles, i need to pass for this BAPI_PO_CREATE1

presently I am passing

CALL FUNCTION 'BAPI_PO_CREATE1'

EXPORTING

poheader = g_pohdr

poheaderx = g_pohdrx

  • testrun = 'X'

IMPORTING

exppurchaseorder = l_ponum

TABLES

return = lt_return

poitem = gt_poitem

poitemx = gt_poitemx

poaccount = gt_poacct

poaccountx = gt_poacctx

POSERVICES = gt_poserv

POSRVACCESSVALUES = gt_poservacc

.

Regards

Arun

0 Kudos

Hi Arun,

Its mandatory to pass

EXPORTING

POHEADER

POHEADERX

IMPORTING

exppurchaseorder

Tables

poitem = gt_poitem

poitemx = gt_poitemx

POSERVICES = gt_poserv

POSRVACCESSVALUES = gt_poservacc

One more thing try to see weather POSERVICES has any 'X' structure.

Thanks

Vikranth Khimavaht