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_ENTRYSHEET_CREATE create SE using Service Outline Agreement (Contract)

Former Member
0 Likes
927

Hi SAP Gurus,

Im having a problem using BAPI_ENTRYSHEET_CREATE using Outline Agreement (contract).. I use BAPI_PO_GETDETAIL for getting PO. When i use:

   CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        purchaseorder              = ( Main PO )

                    >>>>> I creates SE but no service line item. But when I use:

CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        purchaseorder              = ( Service OA )

I got error " Service 5xxxxxx: no limit amounting to         50.000,00 for unplanned services exists"

or

Service 5xxxxxx: quantity 1,000 exceeds quantity 0,000 in purchase order.

Here how i populate the table

ENTRYSHEETHEADER

EXT_NUMBER                     TEST

PERSON_INT                     USER

PERSON_EXT

LOCATION

REF_DATE                       01.01.2012

BEGDATE

ENDDATE

PCKG_NO                        40

SHORT_TEXT                     TEST ONLY

PO_NUMBER                      4550005xx

PO_ITEM                        00010

ACCASSCAT                      F

ENTRYSHEETACCOUNTASSIGNMENT

PCKG_NO                        40

COSTCENTER                     US01xxxxx1

ENTRYSHEETSERVICES

(Line 1)

PCKG_NO                       40

LINE_NO                        0000000001

EXT_LINE                       0000000000

OUTL_IND                       X

SUBPCKG_NO               41

FROM_LINE                      1

(Line 2)

PCKG_NO                     41

LINE_NO                        0000000002

SERVICE                        5xxxxxx

QUANTITY                                   1,000

PRICE_UNIT                         1

GR_PRICE                                         50.000,0000

SHORT_TEXT                    TEST OA

CON_PCKG                       38 ( Package number of Service OA )

CON_LINE                       0000000010

SSC_LIM                        X

LIMIT_LINE                     0000000010

TARGET_VAL                                       50.000,0000

TAX_CODE                       1

TAXJURCODE                     US19SA

ENTRYSHEETSRVACCASSVALUES

PCKG_NO                        41

LINE_NO                        0000000002

SERNO_LINE                     02

Is there some important fields in the table that I need to populate when passing data in BAPI_ENTRYSHEET_CREATE? When we do manual create of SE. It works fine, we just adopt the service OA using the PO. But when I the BAPI it gave me errors. Any of you experienced creating this?

Thank you!

Hi SAP Gurus,

Im having a problem using BAPI_ENTRYSHEET_CREATE using Outline Agreement (contract).. I use BAPI_PO_GETDETAIL for getting PO. When i use:

   CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        purchaseorder              = ( Main PO )

                    >>>>> I creates SE but no service line item. But when I use:

CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        purchaseorder              = ( Service OA )

I got error " Service 5xxxxxx: no limit amounting to         50.000,00 for unplanned services exists"

or

Service 5xxxxxx: quantity 1,000 exceeds quantity 0,000 in purchase order.

Here how i populate the table

ENTRYSHEETHEADER

EXT_NUMBER                     TEST

PERSON_INT                     USER

PERSON_EXT

LOCATION

REF_DATE                       01.01.2012

BEGDATE

ENDDATE

PCKG_NO                        40

SHORT_TEXT                     TEST ONLY

PO_NUMBER                      4550005xx

PO_ITEM                        00010

ACCASSCAT                      F

ENTRYSHEETACCOUNTASSIGNMENT

PCKG_NO                        40

COSTCENTER                     US01xxxxx1

ENTRYSHEETSERVICES

(Line 1)

PCKG_NO                       40

LINE_NO                        0000000001

EXT_LINE                       0000000000

OUTL_IND                       X

SUBPCKG_NO               41

FROM_LINE                      1

(Line 2)

PCKG_NO                     41

LINE_NO                        0000000002

SERVICE                        5xxxxxx

QUANTITY                                   1,000

PRICE_UNIT                         1

GR_PRICE                                         50.000,0000

SHORT_TEXT                    TEST OA

CON_PCKG                       38 ( Package number of Service OA )

CON_LINE                       0000000010

SSC_LIM                        X

LIMIT_LINE                     0000000010

TARGET_VAL                                       50.000,0000

TAX_CODE                       1

TAXJURCODE                     US19SA

ENTRYSHEETSRVACCASSVALUES

PCKG_NO                        41

LINE_NO                        0000000002

SERNO_LINE                     02

Is there some important fields in the table that I need to populate when passing data in BAPI_ENTRYSHEET_CREATE? When we do manual create of SE. It works fine, we just adopt the service OA using the PO. But when I the BAPI it gave me errors. Any of you experienced creating this?

Thank you!

2 REPLIES 2
Read only

carlostol
Explorer
0 Likes
627

Hello,

I have the same problem, any solutions?

Regards,

Read only

Former Member
0 Likes
627

This message was moderated.