Pass Plant Code from SD Billing Doc to FI Doc
For one of our company codes, it is necessary to produce financial reporting by plant. For this reason, we are in the process of implementing the use of business areas to reflect the plant value. We would like to ensure that the plant value is transferred from the SD billing document to the revenue line on the FI documents.
We have attempted the following technical user exit development:
1. Logic was placed in EXIT_SAPLV60B_004 to move the Plant Code from VBRP-WERKS into XACCIT-WERKS for select accounts.
2. Logic was placed in EXIT_SAPLV60B_008 to populate field WERKS in table XACCIT with the Plant Code for select accounts.
The above user exits were activated and we could verify by debugging that the XACCIT-WERKS field did in fact contain the Plant Code value, but this value was not properly transferred on to BSEG as we were informed it would be. These efforts have not properly filled the BSEG value resulting in an error during the billing process due to plant being required on certain accounts.
If possible, please direct us to the appropriate user exit that can be used to successfully transfer the plant value from the SD billing document to the revenue line on the FI documents.
Thank you.
Use Process BTE 1120. However, i'm confused as to whether you want plant or business area? I'm assuming you have a business area that corresponds to each plant value, so don't you want to set the business area value if it's not assigned from the master record?
BTE Example:
LOOP AT T_BKPF WHERE ...
LOOP AT T_BSEG WHERE BUKRS EQ T_BKPF-BUKRS
AND BELNR EQ T_BKPF-BELNR
AND GJAHR EQ T_BKPF-GJAHR
AND KOART EQ 'D'
AND GSBER EQ SPACE.
* some determination code here
READ TABLE T_BSEGSUB WITH KEY TABIX = SY-TABIX.
CHECK SY-SUBRC EQ 0.
T_BSEGSUB-GSBER = LS_DIVINFO-GSBER.
MODIFY T_BSEGSUB INDEX SY-TABIX.
ENDLOOP.
ENDLOOP.
Similar Messages
-
The Line item text transfer from SD-Billing Document to FI Doc(Accounting)
Hi Experts,
Actually in Standard process the Line item text doesnu2019t get transferred to FI Doc-Accounting Document.
But we have a need to ensure that the Line item text of a material gets transferred from a Billing Document to Accounting document.
Please advice how can we achieve this.
Thanks in Advance
MonteeHi,
If you want to populate the field SGTXT in FI tables (BSID, BSAD, BSEG,...) check the enhancement SDVFX002. So, in the function EXIT_SAPLV60B_002 you can populate XACCIT-SGTXT when you run the invoicing process.
I hope this helps you
Regards,
Eduardo -
IORDER01 IDoc is sent without plant code from SAP ECC
Hi MEINT experts,
Does anyone experience before on the service order integration between SAP ERP and SAP ME, somehow the IORDER01 IDoc is sent over with empty plant code embedded in the original document? (where we suppose to see <WERKS> data tag is attached to the IDoc sent over from SAP ECC). This has resulted to the corresponding IDoc is not able to process by MEINT due to empty plant code.
Please advice how to resolve this if you have done that before.Hi,
Once the issue stems from ERP side of integration process, this question should be either re-posted to ERP-related forum or submitted as a customer ticket against PP-MES component.
Regards,
Sergiy -
Pass return code from Java application to a .bat file.
I have a .bat file which will execute a Java application. I want to pass the return code from the java application to the ".bat" file.
Could you please let me know, how can I accomplish this.I tried that, but it doesn't return the value...
In my Java app, I had System.exit(returnCode) and in the '.bat' file
I have
@echo off
java <myApp>
set returnCd=%?%
echo %returnCd
and it didn't return any value. What should I specify in set returnCd=%?% instead of ? -
Pass exit code from batch file to MDT 2012?
So i have batch file that creates some directories, sets up the path for log files before i install an application ( msi installer).
It goes something like this :
MD C:\mylogfolders
Set logfilename = C:\mylogfolders\appl1-date.log
msiexec /i app1.msi /qb REBOOT="ReallySuppress" /l*e "%logfilename%"
exit /B %errorlevel%
This batch file was imported into MDT along with the msi files, and the silent command is running this batch file.
The installation works fine, the log produced also indicates it is successfully installed, with error code 0. I double confirmed the errorlevel variable is 0 by echoing it.
But at the summary pane, it always shows warning with error code 255 for this application. Is there any other way to pass the error code to MDT??The "exit /B %errorlevel%" line seems redundant. Why have the last line return the errorcode from the previous line?
if this is an application run though ZTIApplications I would use the following:
msiexec.exe /q app1.msi /qb reboot=ReallySuppress /l*e %logpath%\app1.msi
http://keithga.wordpress.com/2013/09/04/application-installation-and-packaging-via-mdt-and-sccm/
Keith Garner - keithga.wordpress.com -
Need Plant Code for Tax GL MIRO and VF01 in SAP
Dear Expert,
Our system, for a0 (i.e,s 0% tax) whenever this tax code on po, once doing miro user adding manually some gl and doing postig
For this gl plant picking all tax gl, but apart from a0, example 1a, 5b, 10c i.e., 1%, 5%, 10% for this ftxp, ob40 gl a/c maintained.
If we using a/c creating po and at the time miro, gl a/c posting automatically, but plant is not picking. I need to do the configuration, it should pick from po.
Plese give any steps or solution to make
Regards
Mani.SHi
Here there is no problem with gl, amount or any field, only plant code.
If 0% tax code, in miro for service po adding manually gl account after posting for all tax gl system picking from po.
But 1%., 2%...etc., for this gl available in ob40, that working fine. if doing miro syst picking automatically gl, amt but plant code not picking from po. After posting there is no plant for tax gl (which one picked automatically) for gr ir a/c plant is there.
How get the plant code from po for tax gl at the time miro, vf01
Regards
Mani.S -
Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help
If it is trying to verify your payment info, I would be willing to guess that it is looking for the security code for your credit card. Did you credit card just get replaced lately or the expiration date change? When is the last time that you updated your payment information in iTunes?
-
How to find out Company code from Plant in BW
Hi, This is probably a very basic question.
In one of my ODSs, I have 0PLANT infoobject but do not have the Company Code. I thought 0COMP_CODE should have been an attribute of 0PLANT. But it is not and I am NOT finding anyway to derive the company code from the Plant code.
I guess I can change my datasource to get that value but thought the Plant-->Company Code link is one of the most basic things in SAP R/3.
I cannot imagine it can be missed in the Business Content design by SAP.
So thought I would check with you to see if my expectation is correct.
If not, what might have been the reason behind the exclusion of the link between Plant and Company Code from the Business Content.
Thanks and regards,
Atul KulkarniHi,
we are running RETAIL and by design:
a plant (0PLANT ) belongs to a sales organization (0SALESORG attr of 0PLANT) which belongs to a company code (0COMP_CODE attr of 0SALESORG)
this defines a unique comp_code for a plant.
You can therefore put the following two fields in an internal table of a start routine
SELECT pPLANT sCOMP_CODE
INTO CORRESPONDING FIELDS OF TABLE lt_internal
FROM /BI0/PPLANT p
INNER JOIN /BI0/PSALESORG s ON sSALESORG = pSALESORG
AND sOBJVERS= pOBJVERS
AND s~OBJVERS = 'A'.
and look it up in your IObj routine.
In R/3 that's true WERKS (T001W9 belongs to a BWKEY (T001K) which belongs to a BUKRS.
hope that helps... -
How to find out company code from a plant ?
Hello friends,
I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD". For that, we have to export company code ID. Currently it is hard coded with one company code. Now we want to make this program usable by all company codes. So instead of hard coding, I would like to dynamically find out company code based on the plant. So I want to know - how to find out company code from a plant ? Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
Thanks,
- Chetanhi
u can find this from table T001K
or just goto EC01
here click on STRUCTURE>NAVIGATION
double click on co code u will get the list
u can slo try this in EC02
regards
kunal -
Hai gurus,
I am making a report from account assignment group of customer and material to fetch the vat/cst amount.
Here i want the user to enter tax code since iam using tax inj procedure
can any one suggest me a field name for tac code from billing.
i tried with VBRP and VBRK tables. MSKWZ is there but it is not showing the tax codes which i meant to see is there any other field
With regardsHai gurus
we have checked as per the reply and found out in VBRP with respect to the billing document(MWSK1) is not reflecting and it is showing blank. How can i fetch it?
With regards -
How to Assigning the company code to the billing units from ecc to crm
Hi,
Iam doing the roll out project , i require the help.
can any one suggest me how to assign the company code to the billing units from ecc to crm.
Thanks
MustafaHi Mustafa
You can load this data from R/3 to CRM by going to transaction R3AS in your CRM system, and using load objects EQUIPMENT, MATERIAL, and CUSTOMER_MAIN.
Best Regards
Gavin -
MIC from one plant to be Extend in other Plant Codes
Dear SAPians,
I want to extend the MIC from one plant to other 7 plant codes. Please guide how can i do it?
Thanks in Advance.Hi Atul,
As suggested by Kundan, it is recommended to use the MICs created in one plant in other plants, to reduce the duplication of master data.
If the MIC parameters / control indicators are different in other plant, then you can change in the inspection plan or create new MIC by copying the MIC from other plant, but you cannot extend MIC from one plant to other plant.
If your business says all the MICs should be plant specific, then create MICs in all the plants by copying from the existing plant. You can use master data uploading tools for large volume of data.
With Best Regards,
Vithal -
IPod says "disabled connect to itunes"... wrong pass code from my 10 year old. I put to recovery mode and 10 minutes into restore it tells me to put the pass word in but the iPod is still locked... help I can't put the pass code in and I can't recover.... He feel awful!
https://discussions.apple.com/message/16719363#16719363
-
How do I remove the pass code from my iphone icloud account? I hate having to log in every time my phone goes to sleep.
Welcome to the Apple community.
settings > general > passcode lock > off. -
Make iPad access only site by passing code from app to site?
I have a website built to work with my app and would like to restrict access to the site so only people using the app can access the page. Is there an easy way to do this? Pass code from the app to the site to allow it in?
Thanks,Wow, DW inserts a lot of code... I would suggest taking a look at SWFObject. It's the best and easiest way to embed a SWF in a page and it makes it very easy to pass in FlashVars. If you use SWFobject your code would be more like:
<script type="text/javascript">
var flashvars = {location:"BlankMenu", scene:"NOMenu"};
var params = {allowscriptaccess:"samedomain", menu:"true"};
swfobject.embedSWF("../flash/ucfshsunitmenu.swf", "myContent", "150", "500", "9.0.0", "", flashvars, params);
</script>
And that would embed the swf in a div with an id of myContent. Much cleaner, IMO.
Also, to get at the FlashVars all you need is like:
var menuLocation:String = loaderInfo.parameters.location;
var menuScene:String = loaderInfo.parameters.scene;
Maybe you are looking for
-
Refernce files and external edited files
Hello, i am testing Aperture and i was wondering if it was possible to use only refernced files. in my Library there are only refernced files. But if I use PS to edit an files - aperture creates a working copy that will be editet an after PS saved th
-
Hi I don't have much problem importing the following packages from VisualCafe but they don't work with JDK because JDK doesn't come with these packages. My project has to be able to run in virtual machine. Does anybody know how to fix this problem? i
-
Size requirements for Bootcamp/Windows 7 partition?
Hi, I partitioned my 256 GB flash drive with 60 GB for Bootcamp. Then I installed Windows 7. Windows explorer says that I have 2.83 GB of free space left on the Bootcamp partition!!!? Can that be right? I checked Properties on all of the Bootcamp/
-
External monitor shuts down laptop
Hey All, I've got a weird problem that just came up. I've got a 17" external Apple flat screen monitor that I got off of eBay about 4 months ago. I bought the Apple DVI to ACD display adaptor and have been using the external as a second screen when I
-
I have a Moto G on prepaid. What did I hit to make it say I am not accepting calls at this time? I did it by accident if I have done something on the phone. Please help!! I need to get it fixed.