How to run through a table in a structure?
Hey,
following structure is send by a BAPI:
import (structure)
|- payload (structure)
...|- client (data element)
...|- order (structure)
......|- date (data element)
......|- orderitems (table)
.........|- position (table column)
.........|- price (table column)
How to access the fields in structure and table with ABAP?
For example export would look like this:
export (structure)
|- client (data elemen)
|- items (table)
...|- position (table column)
For structure items is it no problem:
export-client = import-payload-client.
How to copy column position? Do I have to use a loop over tabel orderitems?
Can you give me a hint?
Thanks
chris
Edited by: Christian Riekenberg on Jun 4, 2008 4:37 PM
hey,
tryinig this, I've got an error:
import (structure)
|- payload (structure)
...|- client (data element)
...|- order (structure)
......|- date (data element)
......|- orderitems (table)
.........|- title (table column)
.........|- price (table column)
export (structure)
|- client (data elemen)
|- items (table)
...|- position (table column)
.......|- title (column)
DATA: wa_books like ZLISTOFBOOKS.
loop at IMPORT-PAYLOAD-order-orderitems into wa_books.
export-items-positon-titles = wa_books-titles.
append export.
endloop.
He says that export-client-items doesn't got a component called position-title.
I checked spelling and seems ok.
Ideas?
Similar Messages
-
How to run the setup tables in CRM for 0CRM_LEAD_I datasource.
Hi all,
How to run the setup tables in CRM for 0CRM_LEAD_I datasource.
what is the tcode and steps to follow.
Thankyou.you dont have to do set up tables for 0CRM_LEAD_I.
run the init infopack in BW and then subsequent delta's -
How to find out the tables from extract structures
Hi All,
As I know my data sources are 2lis_04_p_matnr,2lis_04_p_comp,2lis_04_p_arbpl.
How to find out the tables concerned with the fields in the extract structure.
ThanksPl check this link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/29/79eb3cad744026e10000000a11405a/frameset.htm
OR navigate to: help.sap.com - netweaver - bi content - supply chain - look for your application area and the extractor and you will see the source tables and fields.
Ravi Thothadri -
How to trace the database table for a structure
hi
am trying to find the database table for a structure unfortunately am failing to use the sql tracer any one know howelse i can do that the structure name is 'busbankcheck' and 'bus000flds'.
thanx in advanceHi florence,
1) U can go to tcode sldb and give ur structure name or if u can find which logical database it is from u can get the tables of the structure....
Suppose it is of HR it may be like pnp logical database and then to sldb and give pnp and u can get all the table of that....
2)If u know which fields u want from the stucture....then go to table DD03L and give ur fields name and it iwll bring where all tables this field is avaialble and u can find them......
3) the st05 sql trace can help u.....
I hope any one of the three will definetely help uuu
Regards
vamsi
Edited by: vamsi talluri on Jan 22, 2009 1:24 PM -
[JS IDCS5] Running through all tables and place textFrame
I wan't to place textFrames below all the tables within a document.
#target indesign;
var myDocument = app.activeDocument;
var myTables = myDocument.stories.everyItem().tables;
for(var i=myTables.length-1; i>=0; i--){
// var myFrame = myTables[i].insertionPoints[0].textFrames.add();
// the above line does not work......
How do I get the insertionPoints of the tables, so textFrames can be added at that point?
Regards, SjoerdTables have a property storyOffset, which is an insertion point. myTable.storyOffset is the insertion point immediately before the table. The ip after the table you can get your hands on like this:
myTable.storyOffset.parentStory.insertionPoints[myTable.storyOffset.in dex+1];
Now I get the following error:
JavaScript Error!
Error Number: 55
Error String: Object does not support the property er method 'storyOffset'
Engine: main
Source: myTables.storyOffset.parentStory.insertionPoints[0].textFrames.add();
What is wrong? -
How to run .sql file in tsql or powershell
Hi All,
HOw to run .sql file inside the TSQL or powershell using with IF else condition. This below query works fine but when i executing through the SQL Agent it's geeting an error.Please could help how to run through the SQL agent already using execution type
in agent as 'Operating system(CmdExec)'
Declare @computerName varchar(100), @InstanceName varchar(50)
SET @ComputerName = REPLACE(CAST(SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS varchar),'\','$')
SET @InstanceName = REPLACE(CAST(SERVERPROPERTY('instancename') AS varchar),'\','$')
IF (@InstanceName = 'SQL2008R2')
Begin
:r C:\BackupFolder\Test1.sql
:r C:\BackupFolder\Test2.sql
End
IF (@InstanceName = 'SQLINS2')
BEGIN
:r C:\BackupFolder\Test3.sql
END
IF (@InstanceName = 'SQL2012')
BEGIN
:r C:\BackupFolder\Test4.sql
END
Thansk in Advance
A-ZSQLIn T-SQL, you can try using sqlcmd to invoke sql file
if @@SERVERNAME='abcd'
begin
Master..xp_cmdshell 'sqlcmd -S <ServerName> -i BackupDetails.sql -E'
end
OR
PowerShell
Load the snapins
Add-PSSnapin SqlServerCmdletSnapin100
Add-PSSnapin SqlServerProviderSnapin100
Function Get-SqlInstances {
Param($ServerName = '.')
$localInstances = @()
[array]$captions = gwmi win32_service -computerName $ServerName | ?{$_.Name -match "mssql*" -and $_.PathName -match "sqlservr.exe"} | %{$_.Caption}
foreach ($caption in $captions) {
if ($caption -like "MSSQLSERVER") {
$localInstances += $ServerName
} else {
$temp = $caption | %{$_.split(" ")[-1]} | %{$_.trimStart("(")} | %{$_.trimEnd(")")}
$localInstances += "$ServerName\$temp"
$localInstances
$instance=Get-SqlInstances -ServerName HQDBSP17
foreach($i in $instance)
if($i -like 'CRM2011')
write-host 'CRM Database'
invoke-sqlcmd -inputfile 'F:\PowerSQL\test.sql' -ServerInstance 'abcd'
if( $i -like 'SQL2012')
write-host 'SQL 2012 instance'
invoke-sqlcmd -inputfile 'F:\PowerSQL\test.sql' -ServerInstance 'abcd'
--Prashanth -
How can I find the table of the structure fields?
A structures table?
for example the table of sap standard structure diaprd or diadrp, I do not remember now?
Thanks.The hard way....
Go to SE11
Enter the structure
Position the cursor on the field
Press Where-Used List
Check all related table to see which one fulfill your needs
Greetings,
Blag. -
How to include all the fields of a Table into a Structure.
How to include a Complete Table into a Structure.
I want to include all the fields of KNA1 into a structure say W_KNA1(A local structure declared within a program)....How this can b acheived.
Thanks in Advance.if i want to use INCLUDE STRUCTURE.....how will it work.
TYPES : begin of ty_kna1,
INCLUDE STRUCTURE KNA1,
end of ty_kna1.
tell me this is correct stmt. -
Retrival of Control Key of Operation & Table underneeth the structure
Hi Experts,
Right now i'm working on PP and PM related stuff, I'm in the middle of the project and stucked down at a point in how to retrive the control key of operation that triggered the update in production order: opoerational view. (CO03).
Also i have a small question on how to findout the underlying table for a particular field(any field in a screen), when done F1 on that particular field the technical details says as table name but it is actuallya structure. So how should i find the table underneeth the structure where the particular data is being stored.
Or how should i retrieve the data if i couldn't figure out the table, is there some way that i can retrie the data using the structure.
Thanks for your contribution.
Regards
RichHi Rich,
This is a common problem.One of the best and easy way is use the transaction ST05 for trace.lemme explain in detail.
1.go to ST05 transaction
2.switch trace on
3.take your screen where the field resides
4.enter value in this field and other required field
5.then save the screen
6.go to ST05.
7.stop the trace
8.click on display trace
9.you will get a detailed log what all happend
10.search the log with 'update' or 'insert' word or search with the field.
11.you can find some table name.
12.check that table contains the record which you saved.
Sure this will help
Another Way
1.go to transaction se84.
2.take ABAP dictionary
3.go to Fields
4.Give the field name in table field /structure field
if you are lucky you will get in this
Regards
Shibu Kurian -
How to loop through Multiple Excel sheets and load them into a SQL Table?
Hi ,
I am having 1 excel sheet with 3 worksheet.
I have configured using For each loop container and ADO.net rowset enumerator.
Every thing is fine, but after running my package I am getting below error
[Excel Source [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may
be error messages posted before this with more information on why the AcquireConnection method call failed.
Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (5) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified
in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
[Connection manager "Excel Connection Manager"] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Access Database Engine" Hresult: 0x80004005 Description: "The Microsoft Access database engine cannot open or write to the file ''. It is already opened exclusively by
another user, or you need permission to view and write its data.".
Pleas suggest me the correct way of solving above issues.
Thanks in advance :)
regards,
Vipin jha
Thankx & regards, Vipin jha MCPHi ,
Please refer the below link for Looping multiple worksheet in a single SQL Table.
http://www.singhvikash.in/2012/11/ssis-how-to-loop-through-multiple-excel.html
Note:-If you using excel 2010 then you have to use EXCEL 12.0 .
Above link explaining step by step of Looping multiple worksheet in a single SQL Table.
regards,
Vipin jha
Thankx & regards, Vipin jha MCP -
I have an apple iphone 4 that I want to download audio books from my library onto. I cannot figure out how to do that. The iphone does not show up on my mac laptop as a connected device. Does this kind of download have to run through itunes? Thanks
Yes it is done through iTunes. The iPhone will never show up in Finder as a device. The following is general information on iTunes sync: http://support.apple.com/kb/HT1386 and the following is a previous discussion where the post by Andreas Junge helped others that had a problem syncing audiobooks: https://discussions.apple.com/message/20052732#20052732
-
How can I put a limit on how many times my 'if' statement runs through?
while (done == false)
testnumber++; //Testing the next number
testdivisor = 1; //Resetting the testdivisor
System.out.println("1st while statement");
if (testdivisor <= testnumber)
testdivisor++;
divisors = testdivisor % testnumber;
System.out.println("2nd while statement");
if (divisors == 0)
divisor1= testdivisor/testnumber;
System.out.print (divisor1);
System.out.println("3rd while statement");I need to stop it after it goes through the 4th if statement 4 times. The specific code might not make sense because it's a rough copy, but it will give you an idea of the program real quick.
So is there any way to make it stop after 4 runs through the last if statement?So is there any way to make it stop after 4 runs
through the last if statement?If you seriously can't think of how to do that, are you sure programming is up your alley?
int hits = 0;
while (!done) {
if (divisors == 0) {
++hits;
... // do your current stuff
if (hits >= 4) break; -
HOW TO create a temp table or a record group at run time
i have a a tabular form and i dont want to allow the user entering duplicate
records while he is in insert mode and the inserted records are new and not exsisting in the database.
so i want to know how to create a temp table or a record group at run time to hold the inserted valuse and compare if they are exsiting in previous rows or no.
please help!As was stated above, there are better ways to do it. But if you still wish to create a temporary block to hold the inserted records, then you can do this:
Create a non-database block with items that have the same data types as the database table. When the user creates a new record, insert the record in the non-database block. Then, before the commit, compare the records in the non-database block with those in the database block, one at a time, item by item. If the record is not a duplicate, copy the record to the database block. Commit the records, and delete the records in the non-database block. -
[CS4:JS] How to run ".sh" file through Javascript
Dear All,
How to run the ".sh" file through Adobe InDesign Javascript, I used the below coding:
//================== Code =============================//
var myFile = File("xxx/xxx/xxx/Test.sh");
var Exec = "sh" + " "+ "\""+myFile+"\"";
File(Exec).execute();
//================== End =========================//
the above coding is not working, I checked before without "sh" also, It is not working.
Please anyone can give me the solutions & suggestion, and I will appreciate.
Thanks & Regards
T.R.Harihara SudhaN.,Dear Hawkinson,
Many thanks for this quick reply, I'm really very happy, but unfortunately the script is return the "Permission denied" value.
I used the below code, Please kindly change if anything is wrong.
//====================== Script Source =====================//
var myFile ="/Applications/MacXinPro/IDMLExportparse.sh";
shell(myFile);
function shell(cmd) {
var
rv,
call ='do shell script "'+ cmd.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"';
try {
rv = app.doScript(call,ScriptLanguage.APPLESCRIPT_LANGUAGE);
} catch(e0) {
rv = e0+"\n"+(rv?"":rv);
return rv;
//====================== End : Script Source =====================//
//=========== Output ================//
Execution finished. Result: Error: sh: /Applications/MacXinPro/IDMLExportparse.sh: Permission denied
undefined.
Please kindly help me...
Thanks & Regards
T.R.Harihara SudhaN -
How to run internet through Network provider conne...
Hi i want to know how to run internet through netwok provider?
I tried but not got anysolution it asking for WIFI onlyi have those settings but after i gave mobileto reinstall the firmvare software to NOKIA CARE, and now its not asking
i have good service provider, on any mobile i insert sim the sim automatically sends messeage gets its settings and asks to install that settings
But now its not asking on My N97 it means i already have butnot asking to choose
I am using DOCOMO
Message Edited by dbzbux on 29-Oct-2009 06:55 AM
Maybe you are looking for
-
Airport Extreme v7.3.3 Port Mapping Port 80
I have a DVR in my home which is connected to my home network. It has a static IP address. I would like to be able to utilize its mobile app from any mobile/cellular network. The manufacturer of my DVR tells me that I need to open up Port 80 on my ro
-
My macbook won't strat and show file with question mark on it?
Hi is there anyone can help me please my macbook can't boot and show file with "?"mark on it.
-
Is it possible to get a discount on the Iphone 5
Is it possible to get a discount on the iphone 5 ? The reson is because I'm trying to buy one for my dad's birth day for the lowest price i can get. Is it possible to give an apple product to apple, and get a discount for a product i would like to bu
-
Hi, What is your feeling about the "new" name of SAP Datawarehouse solution ? And more generally what do you think about all the permanent name changing that the SAP marketing department insists on ? BC --> WAS --> Netweaver 04s --> Netweaver 7.0 XI
-
How do i change the e-mail in the account settings?
I used my moms e-mail for icloud because I couldn't find my contacts on my phone. (my daughter saved my pics to a zip drive and then erased everything else in order to update the phone to the ios7). I found that my mom had all of my contacts and th