Using BAPI_PO_CREATE1 : Linking service, and account assignment
Hello,
I have trouble when using BAPI_PO_CREATE1. When creating PO using BAPI_PO_CREATE1, I need to input service for each po item and the service itself need to have account assignment. I simplify the code below.
**PO item
t_poitem-po_item = '10'. "for item 10
t_poitem-PCKG_NO = '20'. "link with service
t_poitemx-po_item = 'X'.
t_poitemx-PCKG_NO = 'X'.
**Account Assignment
t_poaccount-po_item = '10'. "link with PO Item
t_poaccount-SERIAL_NO = '01'.
t_poaccount-DISTR_PERC = 1.
t_poaccountx-po_item = '10'.
t_poaccountx-SERIAL_NO = '01'.
t_poaccountx-po_itemx = 'X'.
t_poaccountx-SERIAL_NOx = 'X'.
t_poaccountx-DISTR_PERC = 'X'.
**PO Services
**1st row
t_poservices-PCKG_NO = '20'.
t_poservices-LINE_NO = '0000000001'.
t_poservices-SUBPCKG_NO = '21'.
APPEND t_poservices.
clear t_poservices.
**2nd row
t_poservices-PCKG_NO = '21'.
t_poservices-LINE_NO = '0000000002'.
t_poservices-EXT_LINE = '0000000010'.
**fill account assignment for services
t_POSRVACCESSVALUES-pckg_no = '21'.
t_POSRVACCESSVALUES-LINE_NO = '0000000002'.
T_POSRVACCESSVALUES-SERNO_LINE = '01'.
t_POSRVACCESSVALUES-SERIAL_NO = '01'. "acct. assign. link
t_POSRVACCESSVALUES-PERCENTAGE = '100'.
Every time i execute BAPI_PO_CREATE1 using entry similar like above, i always found error message in t_return like this:
No account assignment exists for service line 0000000010
I feel sure that i have fill every field needed to link services and account assignment which is using serial_no, but somehow it does not link correctly. Can anyone advise me if there is some thing missing or incorrect with my ABAP code above? Thank you in advance for your help. For sure, first helpful answer will receive my rewards point.
Regards,
Abraham
Thank you for the code. Actually i have fill the required field as you told but i did not put it in my code here to focus the problem on service and account assignment. After checking out your code, i found that the different between your code and mine is in services table.
<u><b>your code :</b></u>
<b>POSERVICES:structure</b>
PCKG_NO : 0000000001
LINE_NO :0000000001
SUBPCKG_NO : 0000000002
SERVICE :3000000000017
QUANTITY :5
BASE_UOM :AU
GR_PRICE :20000
<b>POSRVACCESSVALUES: structure name</b>
PCKG_NO :0000000002
LINE_NO :0000000002
<u><b>my code are:</b></u>
<b>POSERVICES:structure</b>
PCKG_NO : 0000000001
LINE_NO :0000000001
SUBPCKG_NO : 0000000002
PCKG_NO : 0000000002
LINE_NO :0000000002
SERVICE :3000000000017
QUANTITY :5
BASE_UOM :AU
GR_PRICE :20000
<b>POSRVACCESSVALUES: structure name</b>
PCKG_NO :0000000002
LINE_NO :0000000002
SERIAL_NO :0000000001
The other difference are in account assignment table, you didn't fill SERIAL_NO field.
my code will be like below:
<b>POACCOUNT: structure name</b>
PO_ITEM :10
SERIAL_NO : 0000000001
If using your version, the error message will be:
<i>In case of account assignment, please enter acc. assignment data for item</i>
If using my version, the error message will be:
<i>No account assignment exists for service line 0000000010</i>
Please advise what was wrong with my code. Thank you.
Regards,
Abraham
Similar Messages
-
POs for service and account assignment
Hi,
I'm crearting a purchase order for services with item category P and account category K.
Actually the system doesn't assign automatically the G/L account in the field Account assignment of POs.
I set in T030, in transaction GBB, valuation modification 0001, general modification ZCO, valuation class (S001) and the G/L account.
Best regardsHi,
While creating the PO, enter the material group and assign the valuation class to this material group in the folowing node, (Material Management --> Purchasing -->Material Master --> Entry aid for items without material master).
Once you assign the valuation class to material group, it will pick the G/L code from GBB in the OBYC setting (Table T030).
Hope it answers your problem.
Regards -
BAPI_PO_CREATE1 for blocked item and account assignment category Q
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
KalyaniHi 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 -
Please, I need your help...
I am trying to create the PO´s since last week, but is imposible. I try to search posts about this same case but, nothing good to me.
Well, I am creating a Service PO using an agreement and buying to cost center.
When I execute the BAPI generate this messege:
E 06 436 In case of account assignment, please enter acc. assignment data for item .
I put the agreement and item in POITEM and checked in POITEMX. The system bring to me all fields of agreement, but don´t bring the account. In PO ITEM bring the ACCTASSCAT = K.
What I must to do to bring the Account Itens that are inside of my agreement.
Please, help me. I am with problems because I can´t do it.
Thanks a lot ,
Victoria.Hi,
When we create Purchase Order using "BAPI_PO_CREATE1", it works for all cases but we can have problems when we create Service Items in PO. Either we get an error u201CPlease maintain services or limitsu201D or u201CIn case of Account assignment, please enter acc. assignment data for itemu201D.
Service PO occurs when we enter item category u2018Du2019 (Service) and Account category u2018Ku2019 (Cost Center).
When we use BAPI_PO_CREATE1 to create service PO, following tables are populated at item level:
a) POITEM
b) POITEMX
c) POACCOUNT
d) POACCOUNTX
e) POSERVICES
f) POSRVACCESSVALUES
For service items: POITEM-PCKG_NO = u20180000000001u2019. (assign package no as a dummy number)
Set PCKG_NO flag in POITEMX table as u2018Xu2019.
Package No is the link that connect POITEM table to POACCOUNT table through tables POSERVICES and POSRVACCESSVALUES.
Set POACCOUNT-SERIAL_NO to u201801u2019.
Set same PCKG_NO to u20180000000001u2019 in POSERVICES table. Maintain two entries in POSERVICES table like this:
WA_POSERVICES-PCKG_NO = u20180000000001u2019.
WA_POSERVICES-LINE_NO = u20180000000001u2019.
WA_POSERVICES-OUTL_IND = u2018Xu2019.
WA_POSERVICES-SUBPCKG_NO = u20180000000003u2019. (Dummy No.)
WA_POSERVICES-QUANTITY = u2018100.000u2019.
WA_POSERVICES-BASE_UOM = u2018EAu2019.
WA_POSERVICES-PRICE_UNIT = u20181u2019.
WA_POSERVICES-GR_PRICE = u2018100.000u2019.
WA_POSERVICES-SHORT_TEXT = u2018SERVICE TESTu2019.
APPEND WA_POSERVICES TO IT_POSERVICES.
WA_POSERVICES- PCKG_NO = u20180000000003u2019.
WA_POSERVICES- LINE_NO = u20180000000002u2019.
WA_POSERVICES-QUANTITY = u201810.000u2019.
WA_POSERVICES- BASE_UOM = u2018EAu2019.
WA_POSERVICES--PRICE_UNIT = u20181u2019.
WA_POSERVICES-GR_PRICE = u2018100.000u2019.
WA_POSERVICES-SHORT_TEXT = u2018SERVICE 1u2019.
WA_POSERVICES-MATL_GROUP = u20180012u2019.
APPEND WA_POSERVICES TO IT_POSERVICES.
Set PCKG_NO as SUB_PCKG_NO in table POSRVACCESSVALUES this:
WA_POSRVACCESSVALUES-PCKG_NO = u20180000000003u2019.
WA_POSRVACCESSVALUES-LINE_NO = u20180000000002u2019.
WA_POSRVACCESSVALUES-SERNO_LINE = u201801u2019.
WA_POSRVACCESSVALUES-SERIAL_NO = u201801u2019.
WA_POSRVACCESSVALUES-QUANTITY = u201910.000u2019.
APPEND WA_POSRVACCESSVALUES TO IT_ POSRVACCESSVALUES.
This logic will work definitely and PO Service Items will be created. -
Hello!
While using bapi_po_create1 and making it account assignment in services case
i get an error
E 06 436 In case of account assignment, please enter acc. assignment data for item
Thanks!Hello,
When we create Purchase Order using "BAPI_PO_CREATE1", it works for all cases but we can have problems when we create Service Items in PO. Either we get an error u201CPlease maintain services or limitsu201D or u201CIn case of Account assignment, please enter acc. assignment data for itemu201D.
Service PO occurs when we enter item category u2018Du2019 (Service) and Account category u2018Ku2019 (Cost Center).
When we use BAPI_PO_CREATE1 to create service PO, following tables are populated at item level:
a) POITEM
b) POITEMX
c) POACCOUNT
d) POACCOUNTX
e) POSERVICES
f) POSRVACCESSVALUES
For service items: POITEM-PCKG_NO = u20180000000001u2019. (assign package no as a dummy number)
Set PCKG_NO flag in POITEMX table as u2018Xu2019.
Package No is the link that connect POITEM table to POACCOUNT table through tables POSERVICES and POSRVACCESSVALUES.
Set POACCOUNT-SERIAL_NO to u201801u2019.
Set same PCKG_NO to u20180000000001u2019 in POSERVICES table. Maintain two entries in POSERVICES table like this:
WA_POSERVICES-PCKG_NO = u20180000000001u2019.
WA_POSERVICES-LINE_NO = u20180000000001u2019.
WA_POSERVICES-OUTL_IND = u2018Xu2019.
WA_POSERVICES-SUBPCKG_NO = u20180000000003u2019. (Dummy No.)
WA_POSERVICES-QUANTITY = u2018100.000u2019.
WA_POSERVICES-BASE_UOM = u2018EAu2019.
WA_POSERVICES-PRICE_UNIT = u20181u2019.
WA_POSERVICES-GR_PRICE = u2018100.000u2019.
WA_POSERVICES-SHORT_TEXT = u2018SERVICE TESTu2019.
APPEND WA_POSERVICES TO IT_POSERVICES.
WA_POSERVICES- PCKG_NO = u20180000000003u2019.
WA_POSERVICES- LINE_NO = u20180000000002u2019.
WA_POSERVICES-QUANTITY = u201810.000u2019.
WA_POSERVICES- BASE_UOM = u2018EAu2019.
WA_POSERVICES--PRICE_UNIT = u20181u2019.
WA_POSERVICES-GR_PRICE = u2018100.000u2019.
WA_POSERVICES-SHORT_TEXT = u2018SERVICE 1u2019.
WA_POSERVICES-MATL_GROUP = u20180012u2019.
APPEND WA_POSERVICES TO IT_POSERVICES.
Set PCKG_NO as SUB_PCKG_NO in table POSRVACCESSVALUES this:
WA_POSRVACCESSVALUES-PCKG_NO = u20180000000003u2019.
WA_POSRVACCESSVALUES-LINE_NO = u20180000000002u2019.
WA_POSRVACCESSVALUES-SERNO_LINE = u201801u2019.
WA_POSRVACCESSVALUES-SERIAL_NO = u201801u2019.
WA_POSRVACCESSVALUES-QUANTITY = u201910.000u2019.
APPEND WA_POSRVACCESSVALUES TO IT_ POSRVACCESSVALUES.
This logic will work definitely and PO Service Items will be created.
Thanks,
Jayarama Krishna -
PR with combination of item category B = limit, and account assignment : F
Hi,
Is it possible to create a blanket purchase order/framework requisition with combination item category B = limit, and account assignment : F ?
Thanks in advance.
Sachin
Edited by: Sachin on Sep 20, 2011 12:05 PMHi A.Purihella / Raj,
Thanks for your reply
I have maintained the B and F combination in the customization.
But when I am creating the PR using item category B with account assignment F (order) and after pressing enter, this account assignment F vanished from the PR and that field also turns in to gray mode. So system is not allowing to use u2018Fu2019 with B item category.
Have you used or tested this scenario of using combination item category B with account assignment F (order) in PR and PO.
Best Regards,
Sachin -
Item category and Account assignment category field grayed out in PR/PO
Hello all,
While making a PR/PO we use both the item category and account assignment category. However, after saving the PR/PO, when i try to change the fields through ME22N/ME52N, the fields are greyed out. I dont think this can be controlled through the layout screen.
Is there anyway the fields can be made modifiable in ME22N/ME52N ?
Please help!
regards,
Soumyadeep.Hi,
Well, actually you can control the Field settings in customization of Document Type. Check the following :
Go to SPRO>MM>Purchasing>Purchase Order>Define screen layout at document level
Click on the desired Document Type and see if the Field selection for Item Cat and Acct Assignment is checked for Display for that Document Type. If it is then change it to Optional.
Now, Go to SPRO>MM>Purchasing>Purchase Order>Define Document Type and see if the Field Selection Key is assigned to the (Updated just now) document Screen layout.
Hope this helps,
Best regards
Amit Bakshi -
Define G/L Account for Product Category and Account Assignment Category
Hello Experts,
I got a requirment to make a new entry in below SPRO path.
Define G/L Account for Product Category and Account Assignment Category
*Individual entries cannot be put into the change request*
*Message no. SV141*
*Diagnosis*
*For technical reasons, the entries cannot be fully specified in the change request. There are two possible reasons for this:*
*1. The key of an entry is longer than 120 characters. All entries whose keys match up to character 119, are then copied into the change request, rather than an individual entry.*
*2. The key of an entry contains fields of special data types, for example, packed numbers. The key can only be specified in the change request up to the first such field from the left.*
*all entries whose keys match up to character 26 are copied into the change request, rather than a single entry.*
*System Response*
*The selected entry is copied into the change request correctly, but other entries may be copied as well.*
My question is, If I make one entry and move to Quality and production system will it move only one entry or whole table will move?
Kindly help me.
Thanking you
Regards
SharanI got the same message trying to make an entry in SPRO:
Define Backend System for Product Category
I found the note 305942 describing exactly the issue for my and above mentioned entry, which offers the correction, then the note 326802 which offers the correction of the first notes. However, both notes are for Releases 4.6C and D (from 2000), and we are using EHP2 FOR SAP SRM 7.0.
I see another discussions in SCN regarding this topic, but haven't found real solution yet. Any hints? At least the answer to previous question from Sharan would be appreciated.
Best regards,
Toni -
How to Assignment between Material and Account Assignment Group
Hi,
When we are creating a sales order with material ABCD, then in material line item -->under Billing Document Tab --> in Accounting screen, there is field Acct asgnmt grp (Account Assignment Group).
From where we can assign between Material and Account Assignment Group, after that it automatically pick in sales order creation.
Please guide..Please refere to below link it may help.
Re: how to configure new account assignment group of material
Thanks Dev. -
Defining G/L Account for product category and account assignment category
We are using the standard configuration to default in a G/L account for a given product category and account assignment category combination. This works well for us when it comes to the shopping transactions (i.e. BBPSC01, BBPSC02, etc.), however we have a problem with this logic in the carry out sourcing transction BBPSOCO01. Our users are creating describe requirements which are then delivered to BBPSOCO01, however the user is not assigning the correct product category, so the sourcing department updates the cart with the correct product category. Upon doing so, the G/L account gets changed to whatever the V_BBP_DET_ACCT table determines is correct for that given product category/account assignment combination. We would like to know if their is a way to not fire the "default G/L account determination" when the shopping cart is changed in transaction BBPSOCO01. I already know about the BBP_DETERMINE_ACCT BADI but thought there might be a less expensive alternative. Our business treats the G/L account provided by the configuration as a guideline, therefore when the buyer changes the product category they also want to retain the account assignment information. Any suggesstions on how this might be accomplished outside of creating my own logic in the BADI?
Best regards,
Shawn O'ConnorI got the same message trying to make an entry in SPRO:
Define Backend System for Product Category
I found the note 305942 describing exactly the issue for my and above mentioned entry, which offers the correction, then the note 326802 which offers the correction of the first notes. However, both notes are for Releases 4.6C and D (from 2000), and we are using EHP2 FOR SAP SRM 7.0.
I see another discussions in SCN regarding this topic, but haven't found real solution yet. Any hints? At least the answer to previous question from Sharan would be appreciated.
Best regards,
Toni -
OBYC Valuation and account assignment
Hi,
when I create a purchase order for a material, system doesn't propose automatically the g.l. account (Purchasing account, EIN) that has been set in OBYC.
I had a look in material master and the material has a valuation class assigned.
I checked in trx OBYC and there are Valuation modification, Valuation class, Debit and Credit assigned but g.l. account won't appear and the only way is to set manually the g.l. account
Best RegardsHi sappione,
EIN is only when you are using Purchasing Account Management (I used this in France):
Information from SAP
Purchase account(EIN), purchase offsetting account (EKG), freight
purchase account (FRE)
These transactions are used only if Purchase Account Management is
active in the company code.
Note
Due to special legal requirements, this function was developed
specially for certain countries (Belgium, Spain, Portugal, France,
Italy, and Finland).
Before you use this function, check whether you need to use it in
your country.
Did you have customised this part?
SPRO > Materials Management > Valuation and Account Assignment > Account Determination > Account Determination Without Wizard > Purchase Account Management
But, I presume that you want to post the GR and the system is asking you for EIN.
It is because of the PO does not have assigned a G/L account into the item (check Account Assignment tab).
If you want that the G/L account can be determined in automatic, then, go to SPRO > Materials Management > Purchasing > Account Assignment > Maintain Account Assignment Categories.
There, make double click on "K - Cost center".
Afterwards, define a value in "Acct modification" i.e. VBR.
Then, create a PO and the G/L account will be determined in automatic.
Another possible solution is that you can define a valuation class by Material group (for the cases where you are asking for a Po without material codes). It can be done by SPRO > Materials Management > Purchasing > Material Master > Entry Aids for Items Without a Material Master.
There, you can define a valuation class for a Material group and once you create the PO, the G/L account will be determined according to this valuation class.
I hope this information can be useful.
Kind regards,
Sandra -
Use of KM services and TREX Search Engine From share point portal
Hi All,
We would like to Use of KM services and TREX Search Engine From share point portal.
For this purpose we interoperability between windows sharepoint and SAP Portal.
Please provide necessary documents or suggestions for interoperability for above requirement.
mail id : <b>[email protected]</b>
Thanks in advance
Regards
Swarna BHi,
See this this links:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e891378-0601-0010-5386-a3387f1b161b
Regards,
Senthil K. -
SC with combination of Limit and account assignment category as unknown(U)
Hi,
We are at SRM 5.5, Please let me know is it possible to create SC with combination of Limit and account assignment category as unknown(U) then PO with same combination and distrribution of cost to different cost centers at the time of confirmation from SRM side.
Please guide me processs of the same in steps
Many Thanks,
VenkatIt is for Extended Classic scenario
-
Location and account assignment for technical objeCT
WHAT IS Location and account assignment for technical objeCT , FOR functional location
Hi
check the one of the Views for the above data (notification no + fun Location)
VIQMAML_IFLOS
VIQMELST_IFLOS
VIQMEL_IFLOS
VIQMFEL_IFLOS
VIQMSML_IFLOS
Regards
Anji -
Material type and account assignment group relation
Hi,
Getting an error while creating material master save. Account assignment Zx can't be with Material Type Zxxxx.
Please advise where is the link maintained between material account assignment group and material type.
My material is Z service material.
As I no for plant,industry, material type valuation class quanity update tick required but that is for stockable materials which is not the case above.
ThanksHI,
You can make the field Account Assignment Group of Material Master as inactive.
But it depends up on Plant, Industry Sector Type and Material Type.
You can do this in IMG --> Logistic General --> Material Master --> Field Selection
Or
use SHD0.. give T-code MM01. and you can deactivate the field.
Hope this helps you.
TC
BR
AKS
Maybe you are looking for
-
could some one help me with something important i have a 2.8 ghz intel quad core Imac with 10.7 with bootcamp 4.0 but still getting that black screen while trying finish the install of windows 7 etc. or do i need a new mac for it to work properly
-
ITunes 5 upgrade hosed a lot of audio files
Upgrading to iTunes 5 hosed quite a few files that were working in iTunes 4. Almost all the Griffin radio id's got hosed and a lot of music as well--maybe 1-2% or less but that's still a lot. All these files still exist on my iPod--is there any way t
-
At the office today, I thought of a great new use for image capable iPods. Use the cover flow concept to view all my business cards. Hear that Apple?
-
JDBC driver 8.1.6.2.0 problems
I've upgraded my JDBC client to use the latest 8.1.6 driver (8.1.6.2.0). I upgraded my client software to use this driver because the older versions would "leak" connection processes on the system. The website states this bug has been fixed, but this
-
Importing video with correct date
I'm having issue importing videos into iphoto with the original date of the video. I'm importing from a canon vixia HFS10, when i tried it a month or so back it went into iphoto correctly, with the original date but now whenever i try it, even with t