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