‎2014 Jun 03 1:06 PM
Hi,
I am using BAPI_ENTRYSHEET_CREATE to create service entries in ML81N. Once the entry sheet is created I want to see the account assignment of service line with "Distribution on Quantity Basis". However, the BAPI creates it by percentage distribution. Please let me know what else needs to be done to get the distribution on quantity basis.
Here is how I am filling the tables of the BAPI.
ENTRYSHEETHEADER
BEGDATE ENDDATE PCKG_NO SHORT_TEXT PO_NUMBER PO_ITEM DOC_DATE POST_DATE
21.04.2014 27.04.2014 0000000001 ROB SCHROEDER W/E 04/21/2014 4500436511 00016 06.05.2014 06.05.2014
ENTRYSHEETACCOUNTASSIGNMENT
PCKG_NO SE GL_ACCOUNT WBS_ELEM COUNTER
0000000001 01 42100100 T.3000491.02.00.00 00000001
0000000001 02 42100100 T.3000491.01.01.90 00000000
0000000001 03 42100100 T.3000491.02.00.00 00000000
0000000001 04 42100100 T.3000491.02.00.00 00000000
ENTRYSHEETSERVICES
PCKG_NO LINE_NO EXT_LINE OUTL_LEVEL SUBPCKG_NO SERVICE QUANTITY BASE_UOM UOM_ISO PRICE_UNIT GR_PRICE SHORT_TEXT DISTRIB PERS_NO
0000000001 0000000001 0000000000 X 0000000002 0.000 0 0.0000 1
0000000002 0000000002 0000000010 0000000000 40.000 HRS HRS 1 10.0000
RSCHROEDER - STD 04/21/2014 1 90000011
0000000002 0000000003 0000000020 0000000000 8.000 HRS HRS 1 15.0000
RSCHROEDER - OT 04/21/2014 1 90000011
0000000002 0000000004 0000000030 0000000000 8.000 HRS HRS 1 20.0000
RSCHROEDER - OT 04/21/2014 1 90000011
ENTRYSHEETSRVACCASSVALUES
PCKG_NO LINE_NO SE PERCEN SE QUANTITY NET_VALUE
0000000002 0000000002 01 37.5 01 15.000 0.00
0000000002 0000000002 02 62.5 02 25.000 0.00
0000000002 0000000003 03 100.0 03 8.000 0.00
0000000002 0000000004 04 100.0 04 8.000 0.00
Three entry sheets are created as shown in 1st Screenshot. If I get into the account assignment of line 10, I get the values shown in screenshot 2.
NOTE:- While entering values to table ENTRYSHEETSRVACCASSVALUES I tried keeping the field PERCEN as blank but that didn't help as well. I get an error -
| E 06 | 408 Please enter account assignment |
Thanks,
Rakesh
‎2014 Jun 04 7:54 AM