on 06-09-2011 9:20 PM
Hello,
I am using BAPI_PR_CREATE to create PRs using the gl account but no material and it works fine if I create one with just one line item. However if I try and create one that has more than one line item I get the "Enter G/L account no" message returned even though the gl acct and the serial_no are passed in. Does anyone know what I need to do to get the PR to create for more than one line item?
Here is a partial listing of the data being used:
pritem line 1: preq_item=00001 pur_group=N1D Plant=WC01 matl_group=7510 qty=30 unit=EA preq_price=100 item_cat=K
line 2: preq_item=00002 pur_group=N1D Plant=WC01 matl_group=7510 qty=30 unit=EA preq_price=100 item_cat=K
praccount line 1: preq_item=00001 serial_no=01 creat_date=06/09/2011 qty=30 gl acct = 6100.3260 costcenter=80A415677B
line 1: preq_item=00002 serial_no=02 creat_date=06/09/2011 qty=30 gl acct = 6100.3260 costcenter=80A415677B
I have also loaded up the X in the corresponding fields of pritemx and praccountx tables.
If I just pass in one line item it will work but when I try two lines or more I get the old "Enter G/L account no" message returned.
Thanks,
Bert
Hi,
I think you need to set serial_no to 01 also for the second item. You can assign multiple accounts to PO item (for example 50/50 split between accounts) so serial number is additional part of primary key. I am not sure that it will fix your issue but it does not look right.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.