cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CREATE1 - E 06 436 In case of account assignment

Former Member
0 Kudos

Please, I need your help...

I am trying to create the PO´s since last week, but is imposible. I try to search posts about this same case but, nothing good to me.

Well, I am creating a Service PO using an agreement and buying to cost center.

When I execute the BAPI generate this messege:

E 06 436 In case of account assignment, please enter acc. assignment data for item .

I put the agreement and item in POITEM and checked in POITEMX. The system bring to me all fields of agreement, but don´t bring the account. In PO ITEM bring the ACCTASSCAT = K.

What I must to do to bring the Account Itens that are inside of my agreement?

Please, help me. I am with problems because I can´t do it.

Thanks a lot ,

Victoria.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

When we create Purchase Order using "BAPI_PO_CREATE1", it works for all cases but we can have problems when we create Service Items in PO. Either we get an error u201CPlease maintain services or limitsu201D or u201CIn case of Account assignment, please enter acc. assignment data for itemu201D.

Service PO occurs when we enter item category u2018Du2019 (Service) and Account category u2018Ku2019 (Cost Center).

When we use BAPI_PO_CREATE1 to create service PO, following tables are populated at item level:

a) POITEM

b) POITEMX

c) POACCOUNT

d) POACCOUNTX

e) POSERVICES

f) POSRVACCESSVALUES

For service items: POITEM-PCKG_NO = u20180000000001u2019. (assign package no as a dummy number)

Set PCKG_NO flag in POITEMX table as u2018Xu2019.

Package No is the link that connect POITEM table to POACCOUNT table through tables POSERVICES and POSRVACCESSVALUES.

Set POACCOUNT-SERIAL_NO to u201801u2019.

Set same PCKG_NO to u20180000000001u2019 in POSERVICES table. Maintain two entries in POSERVICES table like this:

WA_POSERVICES-PCKG_NO = u20180000000001u2019.

WA_POSERVICES-LINE_NO = u20180000000001u2019.

WA_POSERVICES-OUTL_IND = u2018Xu2019.

WA_POSERVICES-SUBPCKG_NO = u20180000000003u2019. (Dummy No.)

WA_POSERVICES-QUANTITY = u2018100.000u2019.

WA_POSERVICES-BASE_UOM = u2018EAu2019.

WA_POSERVICES-PRICE_UNIT = u20181u2019.

WA_POSERVICES-GR_PRICE = u2018100.000u2019.

WA_POSERVICES-SHORT_TEXT = u2018SERVICE TESTu2019.

APPEND WA_POSERVICES TO IT_POSERVICES.

WA_POSERVICES- PCKG_NO = u20180000000003u2019.

WA_POSERVICES- LINE_NO = u20180000000002u2019.

WA_POSERVICES-QUANTITY = u201810.000u2019.

WA_POSERVICES- BASE_UOM = u2018EAu2019.

WA_POSERVICES--PRICE_UNIT = u20181u2019.

WA_POSERVICES-GR_PRICE = u2018100.000u2019.

WA_POSERVICES-SHORT_TEXT = u2018SERVICE 1u2019.

WA_POSERVICES-MATL_GROUP = u20180012u2019.

APPEND WA_POSERVICES TO IT_POSERVICES.

Set PCKG_NO as SUB_PCKG_NO in table POSRVACCESSVALUES this:

WA_POSRVACCESSVALUES-PCKG_NO = u20180000000003u2019.

WA_POSRVACCESSVALUES-LINE_NO = u20180000000002u2019.

WA_POSRVACCESSVALUES-SERNO_LINE = u201801u2019.

WA_POSRVACCESSVALUES-SERIAL_NO = u201801u2019.

WA_POSRVACCESSVALUES-QUANTITY = u201910.000u2019.

APPEND WA_POSRVACCESSVALUES TO IT_ POSRVACCESSVALUES.

This logic will work definitely and PO Service Items will be created.

venkata_reddy6
Participant
0 Kudos

Hi Jayaram,

Thank you very muchfor the solution. I tried as you mentioned above and its working perfectly.

Thanks a lot for your help. Its really very helpful to me.

But I am very sorry to say that, as this question is raised by Victoria, I may not be able to give the points.

Any way thank you very much.

Regards,

Venkat.

venkata_reddy6
Participant
0 Kudos

Hi Victoria,

May I know if your issue gets resolved about the account assignment error.

Because me too getting the same error and struck up.

Thanks in advance.

Regards,

venkat.

Former Member
0 Kudos

Dear Victoria ,

Refer SAP Note <b>736576 BAPI_PO_CREATE1: Error 06 436 reference to PR </b> and analyze codes between notes and your system.

Here we have had this problem and when applied this note ,problem was solved.

==Note text===

Symptom

You are usign the bapi_po_create1 to create a new purchase order item with item category services and you are filling in the structure poitem a reference to one purchase requisition If you are not filling the service structures the program is not creating the purchase order item and the error 06 436 is returned

Reason and Prerequisites

If the service structures in the bapi interfaces are not filled then the system will create one service item copying the service specification from the corresponding purchase requisition

Solution

Implement the code correction

Header Data

Release Status: Released for Customer

Released on: 25.02.2005 15:07:45

Priority: Correction with medium priority

Category: Program error

Primary Component: MM-SRV-BPI BAPIs

===end note text=====

best regards,

Carlos Moçatto