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

Create Service limits PO using BAPI_PO_CREATE1

Former Member
0 Likes
2,794

Hi,

I am getting the below error when trying to create a service PO with limits (Item category D and Account assignment K) using BAPI_PO_CREATE1.

"You cannot maintain service specs. due to incomplete transfer structure"

I populated values into POACCOUNT, POACCOUNTX, POLIMITS and POSRVACCESSVALUES, also populated package number in POITEM and POLIMITS and serial number in POACCOUNT and POSRVACCESSVALUES to have the link.

Please help. Thanks in advance.

Regards

Kalyani Nayanala

5 REPLIES 5
Read only

former_member222709
Contributor
0 Likes
1,684

hi Kalyani,

A few questions about your scenario:

1. Are you directly creating a PO or is it with reference to a PR or RFQ?

2. Have you created the PO manually before attempting with the BAPI?

3. Have you clarified the transfer structure error with the MM Functional Consultant?

Regards,

Pranav.

Read only

0 Likes
1,684

Hi Pranav,

1. I am directly creating the PO without any reference.

2. I am able to create PO manually with the same data I am passing into BAPI

3. I checked with my FC also regarding the error and he is says the data is correct and suffiecient

I am not populating POSERVICES structure as we dont need that data.

Regards

Kalyani

Read only

0 Likes
1,684

Hi Kalyani,

I believe you need to pass data to the structure 'POSCHEDULE' & 'POSCHEDULEX' also.

Try if this serves your purpose. Else, please post your code for reference.

Regards,

Pranav.

Read only

0 Likes
1,684

Hi Pranav,

Yes, I filled 'POSCHEDULE' & 'POSCHEDULEX' structures also.

Below is the code:

POITEM-PO_ITEM = '00010'

POITEM-ITEM_CAT = 'D'

POITEM-ACCTASSCAT = 'K'

POITEM-PCKG_NO = ' 0000100001'

POSCHEDULE-PO_ITEM = '00010'

POSCHEDULE-SCHED_LINE = '0001'

POSCHEDULE-DELIVERY_DATE = '04.07.2006'

POSCHEDULE-QUANTITY = '1'

POSCHEDULE-STAT_DATE = 04.07.2006'

POACCOUNT-PO_ITEM = '00010'

POACCOUNT-SERIAL_NO = '01'

POACCOUNT-QUANTITY = '1'

POACCOUNT-GL_ACCOUNT = '43202500'

POACCOUNT-COSTCENTER = ' 162-2101'

POACCOUNT-CO_AREA = '1000'

POLIMITS-PCKG_NO = '0000100001'

POLIMITS-LIMIT = '1,000'

POLIMITS-EXP_VALUE = '800'

POSRVACCESSVALUES-PCKG_NO = '0000100001'

POSRVACCESSVALUES-PERCENTAGE = '100'

POSRVACCESSVALUES-SERIAL_NO = ' 01'

I filled POITEMX, POSCHEDULEX, POACCOUNTX structures also accordingly

Regards

Kalyani

Read only

0 Likes
1,684

Hi Kalyani,

With the addition of the Header Data and WITHOUT the package number (Header as well as Item Level), I'm able to create a Service limits PO as per you data. Another difference is my PO is post dated.

So you can try removing the reference of Package. The system automatically gets them.

How did I achieve it?

1. I created a Service Limit PO manually.

2. I used 'BAPI_PO_GETDETAIL' and passed relevant data mapped to BAPI_PO_CREATE1.

Hope this helps.

Regards,

Pranav.