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_PO_CREATE1 for blocked item and account assignment category Q

Former Member
0 Kudos

Hi,

I am facing an issue while creating PO with items which are blocked ie LOEKZ = 'S', and account assignment category 'Q'.

Though I fill wbs element in POACCOUNT and POACCOUNTX structures, after execution it is being erased and am getting an error: "Enter WBS Element" with an information message "Change G/L Account could not be effected".

Please help.

Thanks in advance.

Regards

Kalyani

3 REPLIES 3

Former Member
0 Kudos

Hi kalyani,

Can you please place code of what WBS element you are passing, so that i can help you.

Regards,

Ravi

0 Kudos

Hi Ravi,

Below is the code:

POITEM-PO_ITEM = '00010'

POITEM-DELETE_IND = 'S'

POITEM-ACCTASSCAT = 'Q'

......

POACCOUNT-PO_ITEM = '00010'

POACCOUNT-SERIAL_NO = '01'

POACCOUNT-CO_AREA = '1000'

POACCOUNT-WBS_ELEMENT = 'XXXX'

I filled POITEMX, POACCOUNTX structures too.

When I dont pass POITEM-DELETE_IND = 'S', the PO is being created.

But my requirement is to make the item blocked.

Thanks in advance.

Regards

Kalyani

0 Kudos

Hi Kalyani,

I am not sure if you have already found a solution for this. I assume you are having this problem in ECC 6.0. We are on 6.0.4.We had a similar problem...as we could not find any relevant OSS notes, we created an OSS note to SAP. They recommended 0001472134,0001559425, 0001596666, 0001598555 to be applied to resolve the issue. After we applied, it worked. Hope you can try these.

Regards

Ganesh