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_PR_CREATE not inserting account assignment

Former Member
0 Likes
3,038

Hi experts,

I've looked all over the forum for a solution but I only found an unanswered post:

It's pretty well explained so I won't repeat everything. I'll use this post as a reference.

Basically the same thing is happening to me and the error that is given is:

06/436 - "In case of account assignment, please enter acc. assignment data for item".

To anwser the last question in the post, my system is ERP 2005.

The check is made on the field Actyp, which is suposedly 'V'(Modify transcation), but is set as H(Create transaction) and rightfully so. So we can't set account information if we are creating?

Can anyone help me? The same error shows up even if I do not pass the account table.

Thanks and regards

David

Edited by: David Pereira on Nov 18, 2009 6:08 PM

4 REPLIES 4
Read only

Former Member
0 Likes
1,582

Well seeing that no one seems to know how to get around that problem, I'll put here the structures that I pass to the BAPI. Maybe it has something to do with that:


*PRACCOUNTX:
PREQ_ITEM = 00003
SERIAL_NO	   	01
PREQ_ITEMX                                   	X
SERIAL_NOX	                                   	X
QUANTITY	                                   	X
NET_VALUE	                                   	X
GL_ACCOUNT	                                   	X
BUS_AREA	                                   	X
ORDERID	                                   	X
CO_AREA	                                   	X                       
NETWORK	                                   	X
ACTIVITY	                                   	X

*PRACCOUNT:
PREQ_ITEM	                                   	00003
SERIAL_NO	                                   	01   
QUANTITY	                                   	1.000
NET_VALUE	                                   	170.000000000
GL_ACCOUNT	                                   	6211108000
BUS_AREA	                                   	6140                
ORDERID	                                   	AA/00/0001                                   
CO_AREA	                                   	6140                              
NETWORK	                                   	000004000176                                
ACTIVITY	                                   	0010    

*PRITEM:
PREQ_ITEM	                                   	00003             
PUR_GROUP	                                   	614
PREQ_NAME	                                   	ze
SHORT_TEXT	                                   	sdf                            
PLANT	                                   	               6140                  
MATL_GROUP	                                   	S001                            
QUANTITY	                                   	1.000
UNIT	                                   	               UN
PREQ_UNIT_ISO	                              UN
PREQ_DATE	                                   	20091117
DEL_DATCAT_EXT	                                   	1
DELIV_DATE	                                   	20091117
REL_DATE	                                   	20091117
PREQ_PRICE	                                   	170.000000000
PRICE_UNIT	                                   	1
ITEM_CAT	                                   	9
ACCTASSCAT	                                   	F                      
GR_IND	                                   	               X                         
IR_IND	                                   	               X
FIXED_VEND	                                   	0001025765
PURCH_ORG	                                   	6140
COMMITMENT	                                   	X
PCKG_NO	                                   	0000001756
CURRENCY	                                   	EUR
CURRENCY_ISO	                                   	EUR
VEND_MAT	                                   	SEE/09/00015
pRITEMX:
PREQ_ITEM	                                   	00003
PREQ_ITEMX	                                   	X
PUR_GROUP	                                   	X
PREQ_NAME	                                   	X
SHORT_TEXT	                                   	X                               
PLANT	                                   	               X
MATL_GROUP	                                   	X
QUANTITY	                                   	X
UNIT	                                   	               X
PREQ_UNIT_ISO	                              X
PREQ_DATE	                                   	X
DEL_DATCAT_EXT	                              X
DELIV_DATE	                                   	X
REL_DATE	                                   	X                                   
PREQ_PRICE	                                   	X
PRICE_UNIT	                                   	X
ITEM_CAT	                                   	X
ACCTASSCAT	                                   	X	                                   
GR_IND	                                   	               X                               
IR_IND	                                   	               X
FIXED_VEND	                                   	X
PURCH_ORG	                                   	X                               
COMMITMENT	                                   	X	                                   
PCKG_NO	                                   	X                                 
CURRENCY	                                   	X
CURRENCY_ISO	                                   	X
VEND_MAT	                                   	X                   
LANGU	                                   	               X
LANGU_ISO	                                   	X

Edit:Why Iam I not able to format this post?

Edited by: David Pereira on Nov 19, 2009 12:48 PM

Read only

0 Likes
1,582

Much better, for some reason I couldn't format the other post.

PRACCOUNTX:

PREQ_ITEM = 00003

SERIAL_NO = 01

PREQ_ITEMX = X

SERIAL_NOX = X

QUANTITY = X

NET_VALUE = X

GL_ACCOUNT = X

BUS_AREA = X

ORDERID = X

CO_AREA = X

NETWORK = X

ACTIVITY = X

*PRACCOUNT:

PREQ_ITEM = 00003

SERIAL_NO = 01

QUANTITY = 1.000

NET_VALUE = 170.000000000

GL_ACCOUNT = 6211108000

BUS_AREA = 6140

ORDERID = AA/00/0001

CO_AREA = 6140

NETWORK = 000004000176

ACTIVITY = 0010

*PRITEM:

PREQ_ITEM = 00003

PUR_GROUP = 614

PREQ_NAME = ze

SHORT_TEXT = sdf

PLANT = 6140

MATL_GROUP = S001

QUANTITY = 1.000

UNIT = UN

PREQ_UNIT_ISO = UN

PREQ_DATE = 20091117

DEL_DATCAT_EXT = 1

DELIV_DATE = 20091117

REL_DATE = 20091117

PREQ_PRICE = 170.000000000

PRICE_UNIT = 1

ITEM_CAT = 9

ACCTASSCAT = F

GR_IND = X

IR_IND = X

FIXED_VEND = 0001025765

PURCH_ORG = 6140

COMMITMENT = X

PCKG_NO = 0000001756

CURRENCY = EUR

CURRENCY_ISO = EUR

VEND_MAT = SEE/09/00015

PRITEMX:

PREQ_ITEM = 00003

PREQ_ITEMX = X

PUR_GROUP = X

PREQ_NAME = X

SHORT_TEXT = X

PLANT = X

MATL_GROUP = X

QUANTITY = X

UNIT = X

PREQ_UNIT_ISO = X

PREQ_DATE = X

DEL_DATCAT_EXT = X

DELIV_DATE = X

REL_DATE = X

PREQ_PRICE = X

PRICE_UNIT = X

ITEM_CAT = X

ACCTASSCAT = X

GR_IND = X

IR_IND = X

FIXED_VEND = X

PURCH_ORG = X

COMMITMENT = X

PCKG_NO = X

CURRENCY = X

CURRENCY_ISO = X

VEND_MAT = X

LANGU = X

LANGU_ISO = X

Read only

Former Member
0 Likes
1,582

Hi Experts,

I am copying the existing service and limits values from the existing package number to new package number using BAPI_PR_CREATE. I am getting same error (In case of account assignment, please enter acc. assignment data for item).

Please let me know any one get the solution for this problem. If anyone know some thing about this problem Please throw some light, so that I will check it out further.

Thanks for you help in Advance.

Regards,

Nagaraju.

Read only

Former Member
0 Likes
1,582

Please check this post it may help. It helped me!