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

BAPI_PO_CREATE1 - Services

Former Member
0 Likes
662

Hi everybody, i have tried to create purchase orders, but that contains service positions, i filled the structures POSERVICES, but always it leaves the same error to me:

"Please maintain services or limits"

Anybody can help me to solve this problem???

Thkns.

Mauricio N.

2 REPLIES 2
Read only

Former Member
0 Likes
568

I think you are getting that message because you are passing both POLIMITS and POSERVICES. Pass only POSERVICES to the BAPI.

Read only

0 Likes
568

May be I am wrong. Look at the code below from LMEPOF2B. This is where the message is coming from and looks like it has got something to do with the outline agreement.


  IF ( ekpo-pstyp EQ pstyp-dien OR ekpo-pstyp EQ pstyp-blnk ) AND
     ekpo-packno IS INITIAL.
* service item without services
* check comsrv
    DATA: l_success TYPE mmpur_bool VALUE mmpur_yes.        "511338

* check outline agreement is obligatory (only for services)  511338
    PERFORM mepo_check_agmt_srv USING l_success             "511338
                                      mmpur_yes.            "511338

    CASE ekpo-pstyp.
      WHEN pstyp-dien.
        mmpur_metafield mmmfd_services.
        mmpur_metafield_add mmmfd_limits.                   "619075
      WHEN pstyp-blnk.
        mmpur_metafield mmmfd_limits.
    ENDCASE.

    IF l_success EQ mmpur_yes.                              "511338
      MESSAGE e029(se).
    ENDIF.                                                  "511338

  ENDIF.