Accessing all the fields of a function module in EWM
Hi All,
I have a requirement to prepare a report that pulls some fields of the Function module /SCWM/STOCK_INC_OUT_MON.
This Fuction module is in EWM.
I need result rows for multiple values(user inputs) of warehouse.
Cant we access individual fields from this FM without using the structure?
i need to pull the fields MATNR, NLPA PROC and GRDATE
for all the user entries in Wahrehouse code
Thanks, Arka
Hi,
You can use the work area to capture the output of the function module and then use the data (fields) which ever you require.
The structure of the Work area (Data Types of the field) should be same as data types of output parameters of that Function Module.
Hope this helps.
Regards,
Shweta Soragavi
Similar Messages
-
When I upload a single file into a production in FCS, I can access all the fields in a metadata set. When I upload a batch of files into the same production in FCS, I can all access part of the fields in the metadata set. Does anyone know why this happens?
dredcomm,
Great answer, and it led me to where to solve the problem. In the field definition screen there is a category drop down list. If you choose something other than none from the category drop down list then that field won't appear in the list of fields when you attempt to batch import a group of files.
Thanks,
Dave -
I am moving to Alice Springs, Australia, this summer from the U.S. I would like to get the new iPad to use while traveling back and forth from the U.S. to Australia, and within Australia. How can I found out if I will be able to access all the functionality of the iPad in Alice? Will I need to purchase a local plan of some sort? I have never owned an Apple product before -- I'm a newby!
Aside form the limitation of LTE to the 700MHz and 2.1GHz bands (which rules out LTE in Europe I gather, at least as it stands now) the new iPad should let you use a GSM 3g/2g/edge network anywhere. The CDMA Verizon model will only be able to use it's native CDMA radio band in the USA (that radio will be locked to Verizon), but it's international GSM radio is the same as the AT&T model.
Keep in mind though that by far the cheapest option when abroad is to take advantage of free wifi as much as possible (well, that is always the cheapest option, since it is free). I know several people who have taken their wifi-only iPads and iPad2s to Europe and said they did not find the lack of 3G really inconvenient at all as most towns had plenty of free or cheap wifi access all over the place.
And in 3 years, your iPad will be at least 2-3 generations behind, LTE will have already been replaced by 5G or whatever the next new generation of cellular ends up being named (and the "young" kids will be wondering what the heck 3G even means or meant - dang that stuff was from the olden days!), and you can pitch that ancient piece of technology and start things all over again -
Not getting all the fields of MARA by using DDIF_NAMETAB_GET
Hi,
Please to solve the below issue.
I am using the DDIF_NAMETAB_GET FM and trying to all the fields of MARA tabel but i getting only 27 records ie. 27 fields. when i look at DD03L i can 220 records but i am not sure why the output only shows 27records.
Any help is really appreciated.HI,
Chek cthis ..
Function module DDIF_NAMETAB_GET
Import parameters Value
TABNAME MARA
ALL_TYPES
LFIELDNAME
GROUP_NAMES X
UCLEN 00
Export parameters Value
X030L_WA MARA
DTELINFO_WA 00000000000000000000000000000000
TTYPINFO_WA 00000000000000000000000000000000
DDOBJTYPE TRANSP
DFIES_WA 0000000000
LINES_DESCR 22 Entries
Tables Value
X031L_TAB 0 Entries
Result: 231 Entries
DFIES_TAB 0 Entries
Result: 230 Entries -
What are the input parameters for Function Module
Dear Experts,
I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
For that i want to write a Generic Datasource with Function Module.
audat
bukrs
vkorg
vtweg
spart
aurat
auart
netwr
mwsbp
kschl zedp(consition type)
kschl zvat(condition type)
ksch zcst(condition type)
matkl material group
Here what are the Input parameters for Function Module.
Thanks in Advance.
Srinivasan.Srinivasan-
For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
Let me know how it goes.
-Bhushan. -
Field Seperator in Function module TEXT_CONVERT_XLS_TO_SAP
Hi All,
Can anyone tell me the use of field seperator in
Function module
TEXT_CONVERT_XLS_TO_SAPHi
i_field_seperator parameter ........which explains the separator in the uploading data ....
if yes then place 'X'
else leave it as space..
Regards,
vamsi. -
How can i access all the objects of one schema from another schema
Dear All,
How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
Thanks in advance,
MahiFirst of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
As long as you have proper privilege on target object. You can access it with or without synonyms.
Assuming you have proper privilege of objects, you can use following command to assume schema owner.
ALTER SESSION SET CURRENT_SCHEMA = Schema_owner -
How do we know what are all the fields updated in a screen?
Hi all,
If i am making modifications in row details of sales order screen .for eg, <b>i am changing the quantity or price for a row</b>
I want to write log file for the updated fields for that particular sales order.
<b> How do we know what are all the fields are updated ?</b>
If we can use SBOTransaction_Notification procedure.How to write code inside that.
Please provide code example for that.I have downloaded the sample.But i donot know how to use 'Add code to here ' part.
Please help me to solve this.Hope your reply soon
Regards,
V.RangarajanHi, V.Rangarajan!
When the field in the matrix is filled with some value and the user moves to another field, the et_LOST_FOCUS event occurs. So, i think you can try to handle ItemEvents and use such code (for example):
if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_LOST_FOCUS && pVal.ItemUID == "38" && pVal.BeforeAction == false && pVal.FormType == 139)
string ChangedColumnID = pVal.ColUID;
int ChangedRowNumber = pVal.Row;
and write the values to your log.
"38" - is the matrix ID in the Orders form
"139" - is the Orders form
Also you can access to the value, that user had put into the field.
Hope this helps! -
Extracting Text Field using a function module
Hi Experts,
We are trying to extract a test field from the R3 using a Function Module.
The Text from R3 Looks like this
Input Parameters
ID -1
SEQ 2
It displays
Column 1 Column2
This is test
strategy for Function
Module xxxx
So we put in some parameters to get this test field displayed. As you see the above is just one field but they are in different lines
So what happens when we put in the database is it adds a new field
Eg
ID SEQ Column 1 Column2
1 2 * This is test
1 2 * strategy for Function
1 2 * Module xxxx
The result that we need is
D SEQ Column 1 Column2
1 2 * This is test strategy for Function Module xxxx
How can we handle this in the Query Transform
Your help in advance is appreciated.
Thanks
Edited by: alangilbi on Nov 17, 2010 3:49 AMHave you considered using a pivot transform to get your rows into columns and then a query transform to concatenate the columns together?
-
How to add "CC" field in this function module SO_NEW_DOCUMENT_SEND_API1
Hi,
I have a receiver field in this function module SO_NEW_DOCUMENT_SEND_API1.
But i wanted to add a CC field also to this.. How do i do it???
Thanks & regards,
Aswinwhen you add the receiver entry in the receivers table, just make the parameter copy as 'X'. This will put the receiver in CC.
And if you want to put it in BCC use the parameter Blind copy.
Regards,
Lalit Mohan Gupta -
I am unable to access all the different Movie Themes in Elements.
I have Premiere Elements 10. I do not have Photoshop.com Plus Membership. I am trying to make an Instant Movie, but not all the movie themes are availble to me since I do not have Plus Membership. How can I access all the different Instant Movie Themes? Is there something I need to purchase?
Well, there are three groups of Instant Movie Themes.
The first is a very limited subset, installed with the program. I do not know the count, but I would expect maybe 1 - 3.
Then, there is a additional subset, which is much larger, and installed with the Additional Functional Content, which contains DVD/BD Menus, Titles, etc. (in addition to the few installed with the program). This is where the bulk of the Themes, etc. are. It depends on whether one installed from physical media, or from a download file. With the physical, it is a separate installation, done after the program has been installed, and on a separate disc, in most cases. With a download, it is a separate download file. Did you install from physical media, or a download.
Last, with a Photoshop.com Plus membership, from time to time, Adobe made a very few extra Themes available for download, but not that many, and a lot of subscribers were dissatisfied with that extra content. Though I have never seen the Plus material, it seemed that Adobe would offer maybe one holiday-oriented Theme per Season, i.e. a Halloween Theme in October, etc.
Please let us know a bit more,
Hunt -
How to change the status of the system programmatically with Function Module
I Was trying to change the status of the notification through STATUS_CHANGE_INTERN function module . But It is not changing the status of the notification.
Can any one help to understand what is going wrong ... or any other function module to change status of Customer complaint notification ..Hi KK,
Please can you take clues form the below discussion thread -
http://scn.sap.com/thread/775169
Thanks to all original contributors of this thread!!
NOTE: Please note that the main point explain here is that, if you are willing to change to a status Ex, NOPR, NOCO, etc then you will need to pass on the value 'I0070', 'I0072', etc. I will also go ahead and like to add one more point here to make the language check as well like "EN", 'DE', etc as these statuses are language dependent too.
Thanks,
Arijit -
How to list all the Fields for an Active Directory Object
How do I list all the fields that an Active Directory object contains? I know the most common ones, but would like to enumerate through all the fields and obtain the type of fields and their values...
Here is my complete code - I only put snippets so that the post was not too huge...
Option Explicit
Const ADS_SCOPE_SUBTREE = 2
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim adoCommand, adoConnection, adoRecordSet
Dim dtmDate, dtmValue
Dim j
Dim lngBias, lngBiasKey, lngHigh, lngLow, lngValue
Dim objADObject, objClass, objDate, objFile, objFSO, objRootDSE, objShell
Dim pathToScript
Dim strAdsPath, strConfig, strDNSDomain, strHex, strItem, strProperty, strValue
Dim strFilter, strQuery
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Wscript.Shell")
pathToScript = objShell.CurrentDirectory
Set objFile = objFSO.CreateTextFile(pathToScript & "\TestAD.csv")
' Determine Time Zone bias in local registry.
' This bias changes with Daylight Savings Time.
lngBiasKey = objShell.RegRead("HKLM\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias")
If (UCase(TypeName(lngBiasKey)) = "LONG") Then
lngBias = lngBiasKey
ElseIf (UCase(TypeName(lngBiasKey)) = "VARIANT()") Then
lngBias = 0
For j = 0 To UBound(lngBiasKey)
lngBias = lngBias + (lngBiasKey(j) * 256^j)
Next
End If
' Determine configuration context and DNS domain from RootDSE object.
Set objRootDSE = GetObject("LDAP://RootDSE")
strConfig = objRootDSE.Get("configurationNamingContext")
strDNSDomain = objRootDSE.Get("defaultNamingContext")
Set adoCommand = CreateObject("ADODB.Command")
Set adoConnection = CreateObject("ADODB.Connection")
adoConnection.Provider = "ADsDSOObject"
adoConnection.Open "Active Directory Provider"
adoCommand.ActiveConnection = adoConnection
adoCommand.CommandText = "SELECT * FROM 'LDAP://" & strDNSDomain & "'WHERE objectClass=user'"
adoCommand.Properties("Page Size") = 1000
adoCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
Set adoRecordSet = adoCommand.Execute
Set adoRecordSet = adoCommand.Execute
adoRecordSet.MoveFirst
Do Until adoRecordSet.EOF
strAdsPath = adoRecordSet.Fields("ADsPath").Value
' Bind to Active Directory object specified.
Set objADObject = GetObject(strAdsPath)
Set objClass = GetObject(objADObject.Schema)
' Write which object is grabbed from AD
objFile.Write(Replace(strAdsPath, ",", ";;;"))
' Enumerate mandatory object properties.
For Each strProperty In objClass.MandatoryProperties
On Error Resume Next
strValue = objADObject.Get(strProperty)
If (Err.Number = 0) Then
On Error GoTo 0
If (TypeName(strValue) = "String") Or (TypeName(strValue) = "Long") Or (TypeName(strValue) = "Date") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Byte()") Then
strHex = OctetToHexStr(strValue)
objFile.Write("," & strProperty & "|||" & CStr(strHex))
ElseIf (TypeName(strValue) = "Variant()") Then
For Each strItem In strValue
On Error Resume Next
objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
If (Err.Number <> 0) Then
On Error GoTo 0
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
On Error GoTo 0
Next
ElseIf (TypeName(strValue) = "Boolean") Then
objFile.Write("," & strProperty & "|||" & CBool(strValue))
Else
objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
End If
Else
Err.Clear
sColl = objADObject.GetEx(strProperty)
If (Err.Number = 0) Then
For Each strItem In sColl
objFile.Write("," & strProperty & "|||" & CStr(strItem))
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Next
On Error GoTo 0
Else
Err.Clear
Set objDate = objADObject.Get(strProperty)
If (Err.Number = 0) Then
lngHigh = objDate.HighPart
If (Err.Number = 0) Then
lngLow = objDate.LowPart
If (lngLow < 0) Then
lngHigh = lngHigh + 1
End If
lngValue = (lngHigh * (2 ^ 32)) + lngLow
If (lngValue > 120000000000000000) Then
dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
On Error Resume Next
dtmDate = CDate(dtmValue)
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||<Never>")
Else
objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
End If
Else
objFile.Write("," & strProperty & "|||" & FormatNumber(lngValue, 0))
End If
Else
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Else
On Error GoTo 0
objFile.Write("," & strProperty)
End If
On Error GoTo 0
End If
End If
Next
' Enumerate optional object properties.
For Each strProperty In objClass.OptionalProperties
On Error Resume Next
strValue = objADObject.Get(strProperty)
If (Err.Number = 0) Then
On Error GoTo 0
If (TypeName(strValue) = "String") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Long") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Date") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Byte()") Then
strHex = OctetToHexStr(strValue)
objFile.Write("," & strProperty & "|||" & CStr(strHex))
ElseIf (TypeName(strValue) = "Variant()") Then
For Each strItem In strValue
On Error Resume Next
objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
If (Err.Number <> 0) Then
On Error GoTo 0
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
On Error GoTo 0
Next
ElseIf (TypeName(strValue) = "Boolean") Then
objFile.Write("," & strProperty & "|||" & CBool(strValue))
Else
objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
End If
Else
Err.Clear
sColl = objADObject.GetEx(strProperty)
If (Err.Number = 0) Then
For Each strItem In sColl
objFile.Write("," & strProperty & "|||" & CStr(strItem))
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Next
On Error GoTo 0
Else
Err.Clear
Set objDate = objADObject.Get(strProperty)
If (Err.Number = 0) Then
lngHigh = objDate.HighPart
If (Err.Number = 0) Then
lngLow = objDate.LowPart
If (lngLow < 0) Then
lngHigh = lngHigh + 1
End If
lngValue = (lngHigh * (2 ^ 32)) + lngLow
If (lngValue > 120000000000000000) Then
dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
On Error Resume Next
dtmDate = CDate(dtmValue)
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||<Never>")
Else
objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
End If
Else
objFile.Write("," & strProperty & "|||" & lngValue)
End If
Else
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Else
On Error GoTo 0
objFile.Write("," & strProperty & "||| ")
End If
On Error GoTo 0
End If
End If
Next
objFile.WriteLine("")
adoRecordSet.MoveNext
Loop
objFile.Close
' Function to convert OctetString (Byte Array) to a hex string.
Function OctetToHexStr(arrbytOctet)
Dim k
OctetToHexStr = ""
For k = 1 To Lenb(arrbytOctet)
OctetToHexStr = OctetToHexStr _
& Right("0" & Hex(Ascb(Midb(arrbytOctet, k, 1))), 2)
Next
End Function
I have been able to obtain all the Computer, Contact, Group and OU objects without issue with this code... -
Get all the field's value of addressbook entry using c++ api
How can i get all the field values of address book entry in groupwise using c++ api.
You should be able to do that via the Token API. There is an AddressBookGetEntry method. You could createsome sort of AddressbookEntry class that fetches (via iteration over the defined ABFields) all the innformation.
-
What are all the fields covered in the Raw file received from the Card Co
Hi Experts,
I want to know what are all the fields covered in the Raw file received from the credit card company say AMEX before uploading the data into ASP system i.e. CCD format file to be uploaded in T-Code PRCC
Some of the fields I know:
1. Name of the Employee
2. Company ID
3. Credit card number
4. Currency
5. Amount
6. Exchange rate
7. Date of Transaction
8. Description
9. Document no.
10. Expense type
11. Expenses paid by company
Waiting for a positive response from your side
Regards,Hi
The below mention is the possible values/records will be received from Banks regarding credit card expenses
ORGANIZATION / HIERARCHY HEADER RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY NAME
COMPANY ID
SUB COMPANY ID
EFFECTIVE / FILE DATE
CCF VERSION
COMPANY NUMBER
TRANSACTION POSTING DATE START
TRANSACTION POSTING DATE END
FILLER
TRX CONTROL DATA
ORGANIZATION / HIERARCHY DETAIL RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
CORP PARENT NODE
CORP CHILD NODE
PAST DUE BUCKETS RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
STATEMENT DATE
AMOUNT PAST DUE
30 DAYS PAST DUE
60 DAYS PAST DUE
90 DAYS PAST DUE
120 DAYS PAST DUE
150 DAYS PAST DUE
180 DAYS PAST DUE
180 PLUS DAYS PAST DUE
PREVIOUS BALANCE
FILLER
TRX CONTROL DATA
CARDHOLDER HIERARCHY RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
NODE ID
ACCOUNT NUMBER
FILLER
TRX CONTROL DATA
ACCOUNT HEADER RECORD 1
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
PROCESSOR
ACCOUNT NUMBER
ACCOUNT TYPE
LAST NAME
CARDH FIRST NAME
CARDH MIDDLE NAME
ADDRESS LINE1
ADDRESS LINE2
ADDRESS LINE3
ADDRESS LINE4
ADDRESS LINE5
CITY
STATE / COUNTY/ PROVINCE
POSTAL CODE
COUNTRY
NATIONAL ID
TELEPHONE NUMBER
WORK PHONE NUM
ID VERIFICATION CODE
DATE OF BIRTH
CYCLE CODE
FAX NUMBER
E MAIL ADDRESS
EMPLOYEE ID
CLIENT ID / CUSTOMER NUMBER
CUSTOMER VAT NUMBER
TITLE
STMT DATE
GENDER
FILLER
TRX CONTROL DATA
MAIN TRANSACTION RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
CBS TR RUN DATE
ACCOUNT NUMBER
TRANS DATE
TRANS TIME
POST DATE
FILLER
AUTH REQUIRED
AUTH ID
CONVERS DATE
POS ENTRY
POS COND CODE
ACQUIRER ID
REFERENCE NUM
TRACE NUMBER
FILLER
TRANS ID
MCC
MCC INFO DATA
MERCH ACCEPTOR ID
MERCH DESCRIPTION
MERCHANT CITY
MERCHANT STATE / PROVINCE
MERCHANT POSTAL CODE
MERCH COUNTRY
MERCHANT VAT NUMBER
MERCH DESC FLAG
MERCHANT REFERENCE NUMBER
SOURCE CURRENCY
SOURCE AMOUNT
BILLING CURRENCY
BILLING AMOUNT
SETTLEM CURRENCY
SETTLEM AMOUNT
US DOLLAR CURR
US DOLLAR AMT
GB POUND CURR
GB POUND AMT
EURO CURRENCY
EURO AMOUNT
ASIA YEN CURR
ASIA YEN AMT
SWED KRON CURR
SWED KRON AMT
CANADIAN CURR
CANADIAN AMT
CONVERSION RATE
DB CR FLAG
MEMO FLAG
CORP ACCT NO
SALES TAX
SALES TAX FLAG
VAT TAX
VAT TAX FLAG
PURCHASE ID
PURCH ID FLAG
TRAN TYPE
NO OF ADDENDUMS
VISA_MCI TRAN CODE
ADDENDUM KEY
TICKET NUMBER
MSG TYPE
FILLER
VAT EVIDENCE FLAG
CUSTOMER REFERENCE NUMBER
DISCOUNT AMOUNT
MESSAGE ID
SUMMARY COMMODITY CODE
CUSTOMER VAT NUMBER
FILLER
TRX CONTROL DATA
The above mentioned is Just 50% of data will be received form the banks. Still footer details have to added.
Thanks,
Nandagopal C
Edited by: Nandagopal Chiranjeevi on Feb 6, 2009 5:40 AM
Maybe you are looking for
-
About updating long text in the document item with bdc of fb02
HI, I have a question about updating long text in the document item of sap: Can I directly updating the long text information with the fuction save_text? The long text is in : tcode: fb02 -->input document no ... --> Document overview --> select on
-
Since day light savings, events are not saving in my calendar. Has anyone else had this problem?, Since day light savings, events are not saving in my calendar. Has anyone else had this problem?
-
Device returned unexpected status "CertificateRejected".
Hi all, I’ve recently jumped headfirst into deploying iPads with Apple Configurator (just a class set of 20 at this stage). I think I've figured most of it out, but am having trouble with errors when restoring from a backup while checking devices ba
-
Hi, I am writing a code in LabView-10, where there is a camera involved. I need it to go to a particular temperature before I should close it. If my program works fine, I have a part at the end of the code that does this job. My problem is, if the p
-
Export file disappears after exporting
Export file disappears after exporting Tried dataexport(calc script), report script,need du=ynamic calc members too.. its urgent now....please help But I have lots and lots of dynamic calc members...its huge...will take hours together to change...so