Not updating G/L account and cost center with BAPI BAPI_PO_CREATE1
Hello Friends,
The two fields G/L ACCOUNT and Cost Center is not updated using BAPI BAPI_PO_CREATE1. I am unable to understand why? This is what i am passing to account assignment structure( POACCOUNT). Filled POACCOUNTX structre as well. I have passed company code at the header level.
PO_ITEM = 00010
SERIAL_NO = 01
CREAT_DATE = sy-datum
GL_ACCOUNT = 621000
COSTCENTER = 1000
CO_AREA = 4000
Please let me know why it is not updating anything i missed while passing?
2>I need to update GR quantity but this field is not available in the BAPI ..Please let me know how to update this field.
Any help is highly appreciated.
Regards,
Raj
Hi, I have a problem I use the bapi BAPI_PO_CREATE1, I pass the table pt_poaccount in the parameter poaccount but the bapi when register my purchase order doesn't register correctly the values KOSTL, AUFNR, PS_PSP_PNR, NPLNR of the tablepoaccount and register the default values of the contract. Please i need help with this.
CLEAR s_poaccount.
s_poaccount-po_item = <fs_datos>-ebelp.
s_poaccount-serial_no = w_serial.
s_poaccount-costcenter = <fs_datos>-kostl.
s_poaccount-orderid = <fs_datos>-aufnr.
s_poaccount-wbs_element = <fs_datos>-ps_psp_pnr.
s_poaccount-network = <fs_datos>-nplnr.
s_poaccount-activity = <fs_datos>-vornr.
s_poaccount-quantity = <fs_datos>-menge.
s_poaccount-net_value = <fs_datos>-brtwr.
s_poaccount-creat_date = sy-datum.
s_poaccount-itm_number = <fs_datos>-ebelp.
s_poaccount-co_area = '1001'.
APPEND s_poaccount TO pt_poaccount.
CLEAR s_poaccountx.
s_poaccountx-po_item = <fs_datos>-ebelp.
s_poaccountx-serial_no = w_serial.
s_poaccountx-po_itemx = 'X'.
s_poaccountx-serial_nox = 'X'.
s_poaccountx-creat_date = 'X'.
s_poaccountx-itm_number = 'X'.
s_poaccountx-co_area = 'X'.
s_poaccountx-costcenter = 'X'.
s_poaccountx-orderid = 'X'.
s_poaccountx-wbs_element = 'X'.
s_poaccountx-network = 'X'.
s_poaccountx-activity = 'X'.
s_poaccountx-quantity = 'X'.
s_poaccountx-net_value = 'X'.
APPEND s_poaccountx TO pt_poaccountx.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = pe_poheader
poheaderx = pe_poheaderx
IMPORTING
exppurchaseorder = pi_exppurchaseorder
TABLES
return = pt_return
poitem = pt_poitem
poitemx = pt_poitemx
poschedule = pt_poschedule
poschedulex = pt_poschedulex
poaccount = pt_poaccount
poaccountx = pt_poaccountx
poservices = pt_poservices
posrvaccessvalues = pt_posrvaccessvalues.
The BAPI is register with these values as default however i pass other values in table
pt_poaccount
Similar Messages
-
Control G/L account and Cost Center for movement type 251
Dear Friends,
I would like to use mov. type 251 for GI for sale and like to control over G/L account and Cost center.
The G/L account is by default from the valuation class of the the material and if the user will enter wrong G/L
we had done the customising in OMJJ movement type 251 - Account grouping - Unchecked the check box of column
"Check account assignment" - Impact is " the system always uses the G/L accounts or account assignments determined automatically"
I also made default cost center for G/L account and plant wise through OKB9.
Now I would like to suppress/dispaly the G/L account and cost center - for same I had done Setting in Entry control menu of OMJJ for 251 of field Account control - Value - "-" field is suppressed. But it is not working.
Please advise to solve this situation.
Thanks & Regards
RajanDear Rajan
Yes, I have checked in MB1A earlier. We have separate node for Field seletion layout for Enjoy transaction MIGO for mvt type in which the G/L account (KONTO) an Cost center (KOSTL) have only optional or required entry selection.
warm regards
Ramakrishna. -
GL account and cost center field appearing for Goods issue movt type 201
Hi SAP Gurus
We are trying to post goods issue in ecc6 . The problem is that the GL Account and cost center fields are available fields .The cost center field is logical but why the GL account field is avaiable .
How we can grey out the same field as it is going to be picked up from the valuation class setting in GBB - VBR ? Any ideas
Regards
HiteshHi Ravi
You think that its ok we have to input the cost center .
But if you allow the users to input the GL then you are overriding the whole purpose of defining the valuation class and offsetting entries ? What is your opinion ?When you input the material in the goods issue screen the offsetting entry needs to be picked from the GBB -VBR .Although even if you do not enter the GL the system posts the Godds issue document .But from the control perspective this needs to be suppressed .
What do you think ?
I have also posted the same in Logistics forum .
Once again many thanks for your help .In case you find some solution this would be of great help
Regards -
No functional area derived from GL account and cost center ccombination sel
Hi,
When doing a goods issue for a delivery, am getting this error. Hope somebody could advice.
"No functional area derived from GL account and cost center combination selected."Hi,
Go to FS00 and specify the functional area for the gl account. Go cost center change mode specify the functional area. Define the f area in Tcode OKBD, FSP2,KA02,KS12,
Hope this is clear, if yes assign points
Regards,
Sankar -
G/L Accounts and cost center
i would like to find the list of valid G/l Accounts and cost center for a input company code. Is there any good tables for getting this information. ?
I don't think there is such a thing. If a GL is valid for a company code and a cost center is valid for the corresponding controlling area, then the transaction should post. A relationship between controlling area and company code is in table A059 (Controlling Area/Company Code). This table is empty in our system, so I don't think that checks will be made.
Rob -
How to set MM02 should not allow to change account and costing view
Hi all guru's
How to set MM02 should not allow to change account and costing view details for orher users expect me,plz help me
thanks
rameshHi Ramesh,
Use the Authorization Object: M_MATE_STA Material Master: Maintenance Statuses
Below are the Views for the MM02, Field STATM
Whichever not wanted to be changed, please dont provide them.
A Work scheduling
B Accounting
C Classification
D MRP
E Purchasing
F Production resources/tools
G Costing
K Basic data
L Storage
P Forecasting
Q Quality management
S Warehouse management
V Sales
X Plant stocks
Z Storage location stocks
Regards,
Yawar Khan
Edited by: 1234_abcd on Jan 10, 2012 8:14 AM -
G/L account and cost center in Delivery
Hi,
When we create the deliveri, first in sales order user only enters and func center, that fuind center comes in the deliveri goods movement document, along with that when i check in MIGO document display along with fund center i can see the cost cenert and g/l account for which that document is posted, In our system we are using same chart of account for two compnay codes, and in OBYC for GBB-VAX we have maintain one G/L account 893011, and in cost element for this 893011 we have assign one cost center for one compnay code that cost center is OK but for othere one we want to assign different cost center, by keeping the same account, how we can do this.
regards,
zafar
Edited by: zafar_karnalkar on Jan 6, 2011 6:36 AMDear Zafar,
If you desire you maintain two different cost centers for the two company and you need to have both of them posted on the same G/L account and Cost element, I would advice you to:
- create a Z table where by controlling area you define where the specific cost center need to get posted
- include this validation check in the exit for validation for controlling
- include this validation check in the exit for validation for finance
- include this validation check also in the sales order user exit
Standard SAP seems do not have direct link between cost centers & cost elements. For this reason ideal solution is to generate a table where you may define you needed structure.
E.g.: some ideas on the table you may create
Controlling area
Cost element from
Cost element to
Cost center from
Cost center to
I hope this suggestion may answer to your need.
Regards,
Viviana A. -
Gl account and cost center in fb01
hi,
1 may i know why balance sheet account allowed to have cost center? in fb01, when i enter balance sheet account, cost center field is available.
2 why vendor or customer account not allowed to have cost center in fb01?
thanks
rgdsDear,
Asset is one of your balance sheet account and it is often a need to track assets based on cost center so that it is available.
Vendor and customer are never tracked by cost cetners but the profit center. Because cost center are often like Production, Administration, Sales etc.
So vendor can not belong to aspects like sales, production etc. Moreover vendor and customers derive profit center from offsetting line item. Both cost centers and profit centers are not available in line item.
Regards,
Chintan Joshi -
Profit center accounting and cost center relationship
Experts, in the future as we look to tie the PCA cube with the CO cube, the referential integrity will be important. What I see as being important is capturing the profit center, cost center and account that was used at the transactional level and not from an arbitrary hierarchy. As such, in the PCA cube, it would be optimal to have the cost center assigned to the transaction be available. This assumes that the PCA totals are by profit center, cost center and account. Furthermore, I will want to build a jump target from the PCA cube to the CO cube where we can see this data by cost center and cost element or vice versa. There seems to be some uncertainty on if the PCA cube has the cost center informaiton, so how would I do this?
I don know if i understood it correctly but If you assign you profit center in your cost center you should be able to get all that you need.
Assign points if helpful -
Internal Order settlement to both G/L account and Cost center
Gurus,
When I am trying to settle Internal Order to both Reciever categories G/L and CTR(cost center) in a single internal order master.
Cost is getting settled from Sender to reciever only using CTR. Reciever category G/L(B/S account) is not getting used and cost is not getting into G/L account receiver.
Can't we have this scenario ? Or Is there something I need to do ?
Thanks in Advance,
GBHi GB,
This is possible. Kindly check your distribution rule and ensure that the GL account (settlement receiver) has a share, in percentage or in amount.
Regards,
Darrel -
Co-pa and cost center with different profit centers?
I have a requirement to post (from fb50) to:
1) True posting: A profitability segment with profit center XXX
2) Statistical posting: A cost center assignet to profit center YYY
I enter values in cost center, profit center and Prof.segm., but as soon as I press "Enter" the system overrides the profit center I enter and derive YYY from the cost center.
If I try to change the profit center manually to XXX I get message KI350 (profitability segment being derived again) and the profit center is reset to YYY!
I have played with the field status groups and the message control, but no matter what I do I can't change the behaviour.
Any ideas?Unfortunately it doesn't help me:-(
Since the cost center posting ends up being statistical it doesn't make sense (at least not to me...) that it takes priority over the manual entry (or one derived in the true posting - the CO-PA assignment).
I have included the profit center in my characteristic group, but it is greyed out.
I have also made a derivation specifically clearing the profit center and another one rederiving it from other CO-PA assignments. It looks fine in the derviation analysis but it doesn't change in the document!
Are there other options? Will a substitution be able to take priority over the statistical assignment? -
PO with account category and cost center as mandatory fields.
Hi everyone.
Pls. I need help with the next proces.
I have to customize a PO with Account Category as mandatory and the PO always must have the same G/L account and Cost Center.
Thanks for your help.
Regards.Hi..
Maintain Default Cost Centers for the Cost Elements in OKB9 transaction..Please check with your Controlling Consultant for this...
And SPRO > MM > Purchasing > Account Assignment > Maintain Account Assignment Categories > For Account Assignment Category (For e.g. "K" - Cost Center), in detailed screen, "Derive acct. assgt." should be active
Cheers
Ravi. -
Shipment cost-G/L Acc and cost center automatically
Hi gurus,
I want to get G/L account and Cost center automatically during shipment cost creation I mentioned account assignment category as "U" in the purchase order.currently it is manually entered at the time of shipment cost creation.
How can i determine the G/Laccount and cost center automatically at the time of shipment cost creation?
Is it possible or not.
Thanks in advanceDear Sameer,
Reqd. settings are reqd. o maintain under
*1*. T. Code: OBYC
maintain the G/L accounts against the vaild combination, i.e.
Chart of accounts
Transaction
General modifier
Val Class
GL Account
Note: T. Code: OMWD - Assign Val. Grp. Code to Avl Area, if not.
*2*. T. Code: OKB9 - GL Account / Cost Element & Cost Center Linking
Maintain entries for default account assignment i.e. maintain entry for combination:
Company Code -- Cost Element (G/L), and assign Cost Center in "Detail per Profit Cener" from Dialog structure.
Once done, check setting in
T. Code: T_56
(SPRO --> IMG --> Logisitcs-Execution --> Transporation --> Shipment Costs --> Shipment Cost Document --> Shipment Cost Type and Item Category)
From left-hand side Dialog structure, Click: Assign shipment cost types and item category
Check, Column: Automatic Propsal, is maintained as "Automatc" or "Manual" for valid Item Category.
Best Regards,
Amit -
Default G/L acct and Cost center in service PO with added Freight line also
Hi,
I am doing Service PO my requirement is we need default G/l account and cost center in Service PO, we have added one line as Freight charges that is also required default g/l account.
please suggest me the configuration.
Thanks
ShitalHi,
Can be set with help of following t.codes to have default G/L account with cost center in Service PO
OME9, OMGO ,OMQW & OBYC
Also check the blog:
http://www.bluemarlinsys.com/ns/0603-03.asp
Regards,
Biju K -
Frnds
can i get a report that has GL Account and Cost center (which was psoted to GL ac) and amount.
More specific,,,
Lets say one GL acct had five posting and all of them were booked to different cost center. so i want reaport tht consists GL acct and All the cost center, which was posted to it for the year 2006.
GL a/c Cost center amount
101000 1000XPDS 1000
101000 1000TPDS 1000
101000 1000JPDS 1100
like this way, please let me know if you have any idea.
thanksWhat goes into the cost center is a cost element (similar to G/L account). You can run KSB1 and enter the G/L account number in the cost element field and restrict the period.
Maybe you are looking for
-
Using windows xp on a mac book pro!
umm kinda a weird question. if i need to use a windows based device with the mac book, and i just plug it into the usb port and then access it within parallels? the device in question is a USB modem provided from a cell phone company that allows me t
-
How to open a document created in MS Word 97 - 2004
I have several .doc files created on my old PC using MS Word 97 - 2004 My Mac (Snow Leopard) can't open them. What software can I get to enable me to open these documents?
-
Will a Radeon HD 7950 fit in a p7-1234?
My friend has recently upgraded his GFX and offered to sell me his Radeon HD 7950, it looks like it *might* be too big. It has the necessary PCI-E slot but Im worried that I'll buy it and it won't fit. Thanks for any help!
-
Mavericks - Unable to upload Keynote into iTunes U
I have a user who recently updated her OS to Mavericks. Now whenever she tries to upload a Keynote presentation to iTunes U she gets the following error message. Help??
-
I've tried to build a forms with a ProgressBarPJC bean. I've get to a final state of the form, but I cannot make it work. Colors and values do not change the ProgressBar. It seems like if the PJC component cannot get the values. Any help should be he