How to get company code from Shipment
Hi,
I am working on a user exit on shipment (VT01N). I have shipment data. I have to get the value of KVERMfield from LFB1 table. There are multiple entries in LFB1 table with same Vendor with different company codes. How should i find the correct "Company Code" from shipment?
Please help.
Thanks,
Mohammed Ibrahim
Hello,
in table VTTK you have field "TransportPlanningPt" VTTK-TPLST. Get this value then enter in the customizing table TTDS, where the TransportPlanningP is assigned to the Company code.
Hope to be useful.
Best regards,
Andrea
Similar Messages
-
How to get company code using material number
Dear all,
I have material number & plant on selection screen, but how do I get the company code details using MARA-MATNR ?HI,
You can use a cmobination of T001K and MARC Table.
T001K table is assignment of Plants to a company code and MARC is a table with combination of Material and Plant.
Regds,
Anil
Edited by: Anil Katoch on Jul 23, 2009 6:24 AM -
How to get exit code from C code when calling java method via JNI?
Hi, All
in my project, i need to call a java method from C code using JNI, yet I do
not know how to
retrieve the exit code of java program. the java code is like below
public static void main(....)
if(error){
System.exit(-77);// the exit code is -77
and the JNI c code may like below
/* Invoke main method. */
(*env)->CallStaticVoidMethod(env, mainClass, mainID, mainArgs);
//here I want to retrieve the exit code from java to check if there is an
error
any suggestions? thanksHi Liang Zhang,
In your C code add:
void (JNICALL y_exit)(jint code) {
and when you are initialazing JVM options add:
JavaVMOption options[...];
options[...].optionString = "exit";
options[...].extraInfo = y_exit;
See http://java.sun.com/j2se/1.3/docs/guide/jni/jni-12.html
Best regards, Maksim Rashchynski. -
How to get trigger code from the schema into a file
Please help me in getting code of any trigger from the schema, without using any data dictionary views.
In fact you can get the trigger code by using tools like toad,sql developer
But all are using the data dictonary view to get the code . -
How to get source code from portal app
Hi,
I have a successful Web dynpro portal application running, which I would like to modify. We lost the source code. Is there any way that I can get the source code from the portal?.
Thanks and I appreciate your help.
/Sunita.Hi,
You can extract class files from app.jar and decompile it(.ear->.wda) but it is only generated classes without metadata. Metadata is stored in .wda file but format is not compatible with studio. That all options you have.
Go through the following links, it will be helpfull to you
Some of the solutions provided in it
[Re: Retrieve the source code from .EAR;
[Restore source code from ear file;
Regards
Raghu -
How to change company code from notifications ??
Our company code has changed so now I have to change all the notifications accordingly. we use notifications to register our issues for the customer.
what are the options to change everything to the new company code ?
Message was edited by:
A. de SmidtHello,
as far as I can see you can check the following tables:
QMEL
QMIH
QMSM
QMFE
QMUR
QMMA
I am not quite sure what kind of notifications are involved the easiest way to find the correspondent notifications is by using QMEL-QMART for the selection which is the notification type used.
If you could specify what you mean with company code, I could possibly be able to offer you more information.
Regards,
Isabelle -
GTS How to get commodity code from material master ? function/ table
Hello,
I have to write a "simple" program in GTS system. (In SD Commodity code is field MARC-STAWN )
The customer wants to enter material numbers ( from x to y )
and the program should display:
Material--Material text--Commodity codevalidity from--
validity to
4711--Maschine_A--12345678905.08.2006--
31.12.2008
124587444--01.01.2009--
31.12.9999
4712--Maschine_B--5656568901.12.2007--
31.12.2009
(The customer wants to have a look if all Commodity codes in GTS are maintained)
Can someone give me the name of the tables where it is stored in GTS?
Or are there any function calls to get material data?
best regards and many thanks
Norbert
Edited by: Norbert Zanders on Jan 1, 2009 5:08 PMYou have to consider the following tables:
/SAPSLL/PNTPR --> product number and GUID
/SAPSLL/PRCTS --> product GUID and GUID of commodity code
/SAPSLL/CTSNUM or /SAPSLL/CTSNUMC--> commodity code (general or country specific)
/SAPSLL/CTSNUMT --> commodity code description
/SAPSLL/PRT --> material description -
How to get MDX code from Smartview query
Hello everybody:
I would like to know how to obtain the MDX code when I am performing a query from Smartview. How can I find out what sentence the Provider Service sends to Essbase when doing any operation in Smartview?
Thank you
Regards
Javieryou might want to use the HypQueryMembers vba call with it you can query the outline directly for a lot of things including User defined attributes
Here is the code sample from the VBA reference (it is available in Excel by going to the add-ins menu and selecting Hyperion Help
Description
HypQueryMembers() executes the member selection query.
Syntax
HypQueryMembers (vtSheetName, vtMemberName, vtPredicate, vtOption, vtDimensionName, vtInput1, vtInput2, vtMemberArray)
ByVal vtSheetName As Variant
ByVal vtMemberName As Variant
ByVal vtPredicate As Variant
ByVal vtOption As Variant
ByVal vtDimensionName As Variant
ByVal vtInput1 As Variant
ByVal vtInput2 As Variant
ByRef vtMemberArray As Variant
Parameters
vtSheetName: (string) Text name of worksheet to operate on. vtSheetName is of the form "[Book.xls]Sheet". If vtSheetName is null, empty, or invalid (nonexistent or name does not match exactly), the active sheet is used.
vtMemberName: (string) The member name on which to perform the query.
vtPredicate: (integer) Member selection criteria:
1 HYP_CHILDREN
2 HYP_DESCENDANTS
3 HYP_BOTTOMLEVEL
4 HYP_SIBLINGS
5 HYP_SAMELEVEL
6 HYP_SAMEGENERATION
7 HYP_PARENT
8 HYP_DIMENSION
9 HYP_NAMEDGENERATION
10 HYP_NAMEDLEVEL
11 HYP_SEARCH
12 HYP_WILDSEARCH
13 HYP_USERATTRIBUTE
14 HYP_ANCESTORS
15 HYP_DTSMEMBER
16 HYP_DIMUSERATTRIBUTES
vtOption: (integer) Options are dependent on the predicate:
For the predicate values, HYP_SEARCH and HYP_WILDSEARCH, specify query options: HYP_MEMBERSONLY
HYP_ALIASESONLY
HYP_MEMBERSANDALIASES
vtDimensionName: (string) Dimension to limit the scope of the query. It is used with the following query options and ignored otherwise: HYP_NAMEDGENERATION, HYP_NAMEDLEVEL, HYP_USERATTRIBUTE HYP_SEARCH (set to Null to search through all dimensions), HYP_WILDSEARCH (set to Null to search through all dimensions).
vtInput1: (string) Input string that is determined by the option. It is used with the following query options and ignored otherwise:
HYP_NAMEDGENERATION (The name of the generation)
HYP_NAMEDLEVEL (The name of the level)
HYP_SEARCH (The string to search for. The string is defined as an exact)
HYP_WILDSEARCH (The string to search for. The string is defined as an exact search string with an optional '*' at the end to mean any set of characters)
HYP_USERATTRIBUTE (The user-defined attribute)
vtInput2: (string) Input string that is determined by the option. It is used with the following query options and ignored otherwise:
HYP_USERATTRIBUTE (The user-defined attribute)
HYP_SEARCH, HYP_WILDSEARCH (If the options are set to search in the alias tables, this string specifies which alias table to search. If the string is Null, all alias tables will be searched).
vtMemberArray: Output that contains the result of the query. If unsuccessful, its contents are unknown.
Return Value
Returns a zero if successful; otherwise, returns the appropriate error code.
Example
Declare Function HypQueryMembers Lib "HsAddin.dll" (ByVal vtSheetName As Variant, ByVal vtMemberName As Variant, ByVal vtPredicate As Variant, ByVal vtOption As Variant, ByVal vtDimensionName As Variant, ByVal vtInput1 As Variant, ByVal vtInput2 As Variant, ByRef vtMemberArray As Variant) As Long
Sub QueryMembersEmptyValues()
vtRet = HypQueryMembers(Empty, Null, HYP_WILDSEARCH,
HYP_MEMBERSONLY, "Year", "J*", "", vt)
If IsArray(vt) Then
cbItems = UBound(vt) + 1
MsgBox ("Number of elements = " + Str(cbItems))
For i = 0 To UBound(vt)
MsgBox ("Member = " + vt(i))
Next
Else
MsgBox ("Return Value = " + Str(vt))
End If
End Sub -
Hi Friends,
Can u please let me know how to get PPA Code from ZZ_PPA_C.
Please help me its urgent.
Regards,
Rajiv KaushalWhat do you mean?
The restriction code would be whatever you set it to be.
There is no restriction codeunless you set it. -
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 -
How to get the values from struct data type using java code..?
Hi ,
I am newer to java.
we are using oracle database.
How to get the data from struct data type using java code.
Thanks in Advance.
Regards,
kumarHi Rajeev,
To retrieve a FilterContainer you will need to traverse the report structure:
ReportStructure boReportStructure = boDocumentInstance.getStructure();
ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
FilterContainer boFilterContainer = null;
if (boReportContainer.hasFilter()) {
boFilterContainer = boReportContainer.getFilter();
} else {
boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
Hope this helps.
Regards,
Dan -
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... -
V5 How can I get the code from an itunes gifcard that got scraped off
How can I get the code from an itunes gifcard that got scraped off
Try Here > http://support.apple.com/kb/TS1292
If no joy...
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
HT2534 What is iTune gift card? How can i get the code from this?
What's iTune gift card? How can i get the code from this?
"What's iTune gift card?"
It is a gift card like any other gift card. It is a card that contains credit for purchases in the itunes store.
"How can i get the code from this?"
Genreally there is a scratch of area under which the code lies. -
How to Materials has to be extended to new company code from ecc to crm
Hi ,
Please guide me how to Materials has to be extended to new company code from ecc to crm , step by step.
How to assign the pricing procedure from ecc to crm , step by step.
How to maintain the pricing conditions in crm , step by step.
Your answers will be appreciated in advance.
Thanks
MohmusPlease use select all button in the top of the screen and click on copy button, here you have to change the company code.
That's it.
Rgds
Murali. N
Maybe you are looking for
-
Can anyone advise I have no video on FaceTime, this occurs whether I am sending or receiving FaceTime
-
PDF files will not open in Firefox 3.0.10
When I click on a PDF file nothing happens. I have installed the Reader, repaired it, uninstalled the Reader and unistalled it to no avail. There was a problem with FoxitPDF reader which had and is installed, since then I can not open PDF files.
-
Quality issues on TV screen after export
Hi there, Sorri if this is a noob question... In premiere I have imported an .avi (lossless. via after effects) and then exported using Adobe media encoder. When I have viewed this on tv its very 'bitmapped' and tends to flicker. Not sure what setti
-
Why printing from MacBook is too slow?
Hello friends, Does anyone know how to improve the printing from Macbook faster? I have had very bad experience until today about the printing on Macbook using PDF file, it takes more 30 min to print only a 23 K file. Please anyone suggests me to get
-
Hi .. I am currently trying to implement a menu. I have a button save and the X in the upper right corner. the whole thing is a modal window, which is called from my application (it creates and saves a configuration). Everything works fine as long as