Need a output based on document no and company code
Hello All,
I am new to BI and appreciate your cooperation
I have a requirement where in I need a total count based on Document no and company code in the Report where in a document no can exist in multiple company code
Say for eg
Doc No CompanyCode
123456 1000
123456 2000
222222 2000
333333 2000
Now I need the count based on document no and company code in the report. Kindly advice
Thank you
Poonam
Hi Poonam,
I don't know if this is possible in Query Designer level..
Here is my suggestion:
1. Create a new infoobject that will be used for the combined Doc No and Comp Code
2. In transformation level, create a field routine that will CONCATENATE the Doc No and Comp Code in the infoobject you have created in STEP 1
3. In Query Designer, make a FORMULA VARIABLE and choose REPLACEMENT PATH (select the infoobject you have created in STEP 1)
4. In replacement path tab, choose INFOOBJECT, then ATTRIBUTE, and select CONSTANT 1 (forgot the exact name but there is constant 1 something in the selection)
5. Create a global CKF with this formula (FORMULA VARIABLE * 1), this is necessary because sometimes the FV doesn't work without doing this
6. Use the global CKF in your keyfigure structure, it will show the number of UNIQUE combination of Doc No and Comp Code
Regards,
Loed
Similar Messages
-
Logo based on the divission and company code
hi to all,
I need to place a logo based on the divission and as well the company code.can any one provide me the logic.coz i have 10 logo's so how could i proceed with this...urgent
thanx and regards,
loki
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 11:16 AMHi,
You could include the company code and division in the name of the logo, for example;
Z_LOGO_1000_250
Z_LOGO_1000_300
Z_LOGO_company code_division
Then in your script
/: DEFINE &LOGO_NAME& = 'Z_LOGO_'&BUKRS&'_'&DIVISION&
Then
/: INCLUDE &LOGO_NAME&
So when your company adds new company codes or divisions you don't need to change the script, just upload the new logo.
Regards,
Nick -
Number Range for Logistic Documents For Different Company Codes
Hi all..
I need to numbered the logistic documents for diferent company codes (#60) but the number ranges for al those documents should be generated separately according to each CC.
I've read in other thread that I could use the user exit MM06E003, but it seems that only works for PO. There is also a tweak for GR/GI, but.. any idea for all the other documents?
Thanks in advance.
Guillermo (Willy)Hi
using the User exit you can change the Numbers Rnage for the LIV Documents based on the Compnay Code
LMR1M003 Number assignment in Logistics Invoice Verification
Thanks & Regards
Kishore -
How to get vendor and company code based on logistic invoice document
how to get vendor and company code based on logistic invoice document in abap/4?
Hello Kumar
When you call BAPI_INCOMINGINVOICE_GETDETAIL using
INVOICENUMBER = <number of invoice>
FISCALYEAR = <fiscal year>
the returned HEADERDATA contains what you are looking for:
HEADERDATA-COMP_CODE
HEADERDATA-DIFF_INF
Regards
Uwe -
Split Posting document (lower than Company code)
Hi,
We have a requirement to create multiple posting documents for employees in a single company code. These employees can be identified using enterprise structure but they all belong to <b>same company code</b>.
If I used PPMOD, I can make these employees go to a different g/l account but I can not create a separate document for them.
Is there any process by which I can create a new posting document based on enterprise structure (besides company code)?
Thanks
SalimHi
System is simulating the following entries
C>C PK Account Amount
SA02 1 000001 31 311001 T/P - 3rd Party 1,200.00- SAR 4449
SA02 2 000002 40 515011 External Persl-NonOR 200.00 SAR 4449
SA02 3 000003 01 146501 Claims/Bchar,ABB SBA 1,000.00 SAR
SA02 000004 50 999001 BA Clearing A/C 1,000.00- SAR
SA02 000005 40 999001 BA Clearing A/C 1,000.00 SAR 4449
SA03 1 000001 40 515011 External Persl-NonOR 1,000.00 SAR 2880
SA03 2 000002 31 326001 Non T/P - ABB SBA 1,000.00- SAR 2880
Now if you see in company code SA02 for receivable form SA03 system is not deriving the business area and in order to balance this entry by BA system is creating zero balance entry
Thanks and Best Rregards -
Hi All,
I need the help of this forum once again.
I am using bapi Bapi_Acc_Document_Post to create KR documents in SAP. The bapi works absolutely fine except for one scenario:
For a particular type of invoice coded to Company "XXXX" with lines having tax code "I0", the bapi returns error message "E 018 : Invalid tax code and company code combination". The tax code "I0" and the company code "XXXX" has been mapped in SAP and if I try to create the invoice manually in SAP using the GUI, the invoice gets created without any issue.
I have tried searching the forum but could not find any post on this topic.
Therefore, requesting the masters to please help me out on this.
Best Regards
Sutirtha RoyHi Gowthami,
how have you solved your problem, because I am facing the similiar issue and trying desperately to post the following combination with BAPI_ACC_POST_DOCUMENT:
001 40 490100 Aufw. aus Marge PP R2 15,92
002 31 10000003 Kreditor R2 15,92-
003 50 175060 Abzugsverfahren USt R2 3,18-
004 40 154060 Abzugsverfahren Vst R2 3,18
THANX!
Regards
Marko -
DMS Document relationship with company code
Hi All,
I have to delete all DMS Documents for Document Type AAA and company code 8200. I am not able to find relationship between Document info records and company code in table level so can you please guide me How to get the relationship.
I checked with tables : DRAW, DRAD, AUSP... but not got proper answer.
-Thanks,
AjayHi All,
Thanks for your replay. This issue is resolved.
In transaction CV04N with classification tab I have to option of Company code. I am able to get list of DIR's with company code and document type.
-Thanks,
Ajay -
Database table/FM to find relation between plant and company code in SRM
Hi,
I have a requirement where I need to determine the relation between the plant and company code in SRM.
The plant and company code both belong to R/3. We are replicating the plant by using the report BBP_LOCATIONS_GET_ALL.
This plant is now available as a BP in SRM. But from which SRM table or using which SRM FM can I get the relation between this and the company code?
Thanks,
SrivatsanHi
<b>Check table BBP_LOCMAP. (Plants) - Manage Table Business Partner > System > Location
BBP_COMPCODE_FAV User-Specific Favorites for Permitted Company code.</b>
Hope this will help.
Please reward suitable points, incase it suits your requirements.
Regards
- Atul -
Document Splitting Cross Company Code
Hello
In our company we are using business area for internal reporting. For cross company code transaction we have assigned vendor and customer in the configuration. In the document splitting settings for cross company code transaction we did a setting that every company code should have document splitting separately (Split each document in each company code separately.
In this case there should be only one entry in the splitting rule for the item category to be edited - 01100 CC <> CC of leading item.)
We normally received vendor invoice where expense belong to several company code but invoice belong to one company code.
Example Invoice amount 1200
vendor liability in company code SA02
Expense 200 for company code SA02 and 1000 in company code SA03
When we simulate the document in general ledger view, system create 4 line item in company code SA02 one Expense Dr, Vendor Credit and two line item with zero balance. In two line items system showing no business area. We want system to post only two line item and none of the entries should be without business area
Thanks and best regardsHi
System is simulating the following entries
C>C PK Account Amount
SA02 1 000001 31 311001 T/P - 3rd Party 1,200.00- SAR 4449
SA02 2 000002 40 515011 External Persl-NonOR 200.00 SAR 4449
SA02 3 000003 01 146501 Claims/Bchar,ABB SBA 1,000.00 SAR
SA02 000004 50 999001 BA Clearing A/C 1,000.00- SAR
SA02 000005 40 999001 BA Clearing A/C 1,000.00 SAR 4449
SA03 1 000001 40 515011 External Persl-NonOR 1,000.00 SAR 2880
SA03 2 000002 31 326001 Non T/P - ABB SBA 1,000.00- SAR 2880
Now if you see in company code SA02 for receivable form SA03 system is not deriving the business area and in order to balance this entry by BA system is creating zero balance entry
Thanks and Best Rregards -
I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year
Hi Arun ,
Can you explain little bit more ??
what is account doc no?
what are the transactions should be displayed in your output??
-Rajesh N -
Table that gives the relation between plant and company code
Hi gurus,
I actually have plant number and using this plant value i need to get the company code.
Is there any table that gives the relation between plant and company code. So,that i can get the company code details.
Thanks in advance.Hi Bhanuphani,
Use T001K where BWKEY is the plant
Reward if useful
Thanks Arjun -
Diffrence between Master Chart of Accounts and Company Code Chart of Accoun
Hi,
what is the Diffrence between Master Chart of Accounts and Company Code Chart of Accounts?
Regards
DivyaHIi
Mater chart of accounts is nothing but the main account that is created at the client level.
we have 3 COA
1. Group chart of accounts
2.country specific chart of accounts
3. Operating chart of accounts
we can have maximum 3 chart of acocunts assigned to each company code
Company code chart of accounts is can be operating chart of account which contains the group of account used by that company...
If some specific requireement is there for the country reporting purpose than we need to use that and maintain that ,
Group chart of account is used for the consolidation purpose.
like we have 6 company codes under one company in differnet countries.. so here they will have one common COA which will consilidate the business of all 6 company codes...
Hope u understand wht u wanted..
sejal singh -
Currency conversion with different currency and company code
Hi all,
how could it be done if in the report different currencies have to be managed / displayed?
The InfoObject 0Comp_Code has to be handled for example with different currencies. There are different company codes available and their currency should be converted in the query. But for example we have different currencies like dollar, yen and euro. So the currency should be dedicated correctly.
And the credit control area (the highest level in organisation) has only Euro.
The data (currency) of credit control area and company code in the cube is available only in Euro at the moment.
I thought it would be more flexible when the conversion is done at query level then at transformation level. We have filters in the query and the query is very fast. Is it also possible to include a currency for selection in filter?
Thank you in advance for your help!Hi,
Yes, it is possible to have a filter for selection of target currency if multiple currencies are involved. However, you would need to define a currency translation first in RSCUR. Here, you can specify EUR to be the fixed source currency & a variable in case of target currency which will be used as a filter for user input when the query is executed. You also need to have a reference date (exchange rate date) & a exchange rate type (avg. mthly rate, daily buying rate etc.) associated with the currency translation.
--Priya -
Profit center dummy and company code XX01 are not consistent
Hi Gurus ,
can you please tell what i should do when the system gives the message that Profit center dummy and company code XX01 are not consistent . this is happening when i post document in FB50.Owing to program or transport errors, the company code assignment of profit centers may not be stored correctly.
This inconsistent data then causes program terminations or short dumps in further processing.
This note contains the report ZPCA40B_CHECK_CEPC_BUKRS, which checks the consistency of the company code assignment and corrects possible errors.
REfer to OSS <a href="https://websmp207.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=388178&_NLANG=E">388178</a> -
FROM WHICH TABLE I CAN FIND GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTI
FROM WHICH TABLE I CAN FIND GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTICULAR CUSTOMER?..I AM TRYING TO POST AN IDOC ..SO DATA HAS TO BE PROPER.JUST TELL THE SOLUTION
Hi rendeep,
1. LFB1
this is the required table.
2. field is AKONT
3. The account number can be different
for different companies.,
hence it depnds upon combination of
LIFNR
BUKRS
regards,
amit m.
Maybe you are looking for
-
Help! Exception when trying to use Float
Hi. I'm about to lose my mind trying to fix this exception: SubsampleAverage - Parameter value's class (java.lang.Float) is not an instance of the parameter class (java.lang.Double) for parameter "scaleX".It's being thrown by this code, public Buffer
-
What is the best way to send auto mail with excel(generated by query) attachment?
Hello, Need to generate first data from stored procedure and the save it to an excel file and then send mail with the same excel file. So am searching for the best way so that i could do all process in a single task with daily or monthly schedule. As
-
I recently upgraded from Oracle Forms/Reports 10g to 11g. Oracle 10g Reports when saved as a PDF is easily converted to a word document, however ,Oracle 11g does not convert as 10g does. What is the difference and how to make the 11g report saved i
-
Where can I download the latest MAX Software
My current Version of MAX is 2.0.3.17 Is there any newer version available, and where can I find (download) it. Thanks Mr.Pe
-
Hi Expert, Beside using t-code WE60, is there any link (sap help) that can show the list of IDoc Type list and the segment detail and sap field related. As an example: http://help.sap.com/saphelp_di46c2/helpdata/EN/44/f50abfea3b11d194dc0000e83dd751/c