How to get Header data into multiple times along with the Line Items
Dear All,
I have problem while mapping the Header data and line item data to the flat file structure, Header data have to repeat along with the Line item data in the flatfile.
Details is below.
Example
Header record is one
E1EDK01
E1EDKA1
Line items are two
E1EDP01
E1EDP01
I want in the flat file two records having duplicate data in the fields which is belongs to header data
Like :
Record # partner data Line item data
Record 1 : WE name1 city 00010 materialname1 156
Record 2 : WE name1 city 00020 materialname2 198
( WE name1 city - data is same in the record 1)
For this what I did is I mapped the node E1EDP01 to the flat file message type node then I got all the line item data and first record is with header data but not in the second record.
I tried all node functions but no result because Idoc itself header data exists one record, I am not able to copy.
If any one knows , please give solution.
It is great help to me.
Thanks in Advance.
Ramarao
Dear Ramarao,
This will help you,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
No Documentation for Mapping Function useOneAsMany (Mapping Problem)
/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Thanks & Regards
Agasthuri Doss
Similar Messages
-
How to get header data in ME_PROCESS_REQ_CUST
Hi all,
how to get header data in badi ME_PROCESS_REQ_CUST-process_itemIsn't it available in the parameters of the method that you are tyring to write.
Regards,
Ravi
Note - Please mark all the helpful answers -
How can i browse data in my time capsule with my iPhone?
how can i browse data in my time capsule with my iPhone?
You might want to take a look at FileBrowser.
App Store - FileBrowser - Access files on remote computers -
How does photo metadata get uploaded to shared Photo Stream along with the photos?
Performed upgrade to Mountain Lion so I could share Photo Streams with other people,. Trouble is all the naming, descriptions, locations of the photos do not show up in Photo Stream. Is there a way to enable this or is it just not possible?
I am migrating from sharing Picasa Web Albums to Photo Stream and would like to have all the metadata along with the photos...
I was not sure where to post this question as it is related to iCloud, iPhoto, OS X Mountain Lion, etc. The shared Photo Stream feature appeared in my version of iPhoto '11 (version 9.4.2) only after the upgrade to Mountain Lion.Photo Stream only uses the file names and what you're changing is the Title, not file name. To get the title to be the file hame you have to export the photo out of iPhoto via the File ➙ Export ➙ File Export menu with the option to use the title as the new file name.
Send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.
OT -
Header Details to be Printed only for the line item details.
Hi All,
I have the following requirement.
I have Page1 with the Logo, Header Window, Vendor Window, Send Invoice To, Delivere Invoice To and Main Window. Main Window Starts from the middle of the page. In the Page2 i have Logo, Header window and Main Window. In the Page3 i have only Main Window.
In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3.
The requirement is Logo,and Header Window should appear only for the Line items and not for the Terms and conditions.
For the Page1 i have given the Next Page as Page2. Suppose if there is only one line item then it Prints in the first Page itslef and the control flows to the Page2 and since in the page2 i have given the condition for the Logo and header window to print only if line item is more than 1 and since Main Window is starting from the middle there is a blank Space appearing in the start of the page.
The command i have given in the footer to trigger new page that is page3 is not getting triggered. If there are more than one line item then its printing the logo and header window and so there is no blank space appearing and it is working fine.
Please let me know how to avoid this blank space and move my main window to the start of the Page if there is only one line item.
Thank you.Dear Vasudha,
I am a little bit confused regarding your query,
"In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3. "
When you say footer of main window does it mean , that you are using a table inside your main window and the command node your have inserted is in the footer of the table ?.I hope it is, because my suggestion is based on this assumption.
Well my suggestion for your issue is,
1.I hope you are aware we can trigger a next page in two ways, one by setting the next page static attribute & second using the command node which you have used.In your case you will have to use a combination of both.
2.I feel your First page design is ok. Set its static next page attribute to PAGE2. Similarly set the static next page attribute for PAGE2 as PAGE2 itself. This should take care of your table which you have placed in the main window. If the table contains only one lineitem it will get over in the first page itself. If the lineitems are more in the table, it will automatically triggerPAGE2 (since static next page attribute for PAGE1 is PAGE2) and the remaining line items will be displayed. Now no matter how many lineitems you have ,PAGE2 will be triggered repeatedly(since static next page for PAGE2 is PAGE2 itself) until the entire data in your table is displayed.
In this way your requirement of printing the logo and header windows for the data lineitems only will be fulfilled.
3.Now the last catch in your case is the printing of PAGE3(The terms and condition page) on an entirely new blank page.
In the footer section of the table which you have used, use a command node set to PAGE3. After the command node and under the same footer section now insert your terms and condition lineitem.
Also Check the "at End of table" checkbox and uncheck " AT PAGE BREAK" under OUTPUT OPTIONS tab for the footer section.
So now this footer section will be triggered only once after all the data in the table is displayed
4. So now if there is only one lineitem, before the default second page is triggered the command node will trigger the PAGE3 and the terms and condition will be displayed.Else if there are more lineitems the page2 will be triggered again and again and finally when all the lineitems are over, the footer of the table will get triggered. So the command node will take you to the PAGE3 wherin the terms and condition will only be displayed.
Hope this helps.
Regards,
Riju -
Retrieve all column data of a table along with the number of records received
hi, i want to select all the records from a table along with the number of records received as i need to use that number in a loop to retrive data from another table
can i use
SELECT @emp_id=emp_ID, @emp_NAME=emp_NAME,@RowCnt = (select count(*) from emp_id) order by emp_idi tried your idea, i get error in at the over() . I am using sql compact edition and i guess it is not supporting over() function. But i am still going to use the code for example something like this assuming it will work in real time with
enterprise edition. Please let me know what i am going to use is correct or not?
SELECT [EventID],[BallroomCharge], @rowcnt=count(*) Over()
FROM [testSample].[dbo].[Events]while (@rowcnt > 0)perform some request -
How do get particular date of total time
this is our java code
private static PreparedStatement preparedStatement;
private static ResultSet rs;
public static void main(String[] args) throws NamingException, SQLException
int objectId;
int clientId;
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
// String gpstime = null;
PreparedStatement preparedStatement = null;
Connection conn=null;
long mill;
long diffSeconds=0;
long diffMinutes=0;
try
Class.forName("com.mysql.jdbc.Driver");
Connection conn1=DriverManager.getConnection("jdbc:mysql://108.108.8.4:3306/navl?","root", "ajmani@%");
preparedStatement = conn1.prepareStatement("select gpstime from xydata a inner join fm4features f on a.ID=f.ID where a.objectId= '18' AND a.clientId = '1' AND a.gpstime > '2010-05-11 00:00:00' AND a.gpstime < '2010-05-13 23:59:59' AND f.DataId='1' AND f.value = '1'");
rs = preparedStatement.executeQuery();
int a = 0;
int b=0;
int b1=0;
int b2=0;
int x=0;
float secs = 0;
Set<String> dates = new HashSet<String>();
ArrayList<Integer> l=new ArrayList<Integer>();
Timestamp t1 = null;
Timestamp t2 = null;
int count = 0;
while ( rs.next() )
String gpstime = rs.getString("GpsTime");
if (dates.add(gpstime) )
//System.out.println(rs.getTimestamp(1));
t2 = rs.getTimestamp(1);
count++;
if (t1 == null )
int nano = t2.getSeconds();
System.out.println(nano);
System.out.println(nano);
System.out.println(t2);
System.out.println(count);
else
mill= (t1.getTime() - t2.getTime())/-1;
//System.out.println(mill);
diffSeconds = mill / 1000;
diffMinutes = mill / (60 * 1000);
long diffHours = mill / (60 * 60 * 1000);
long diffDays = mill / (24 * 60 * 60 * 1000);
//System.out.println("\nThe Date Different");
//System.out.println("Time in milliseconds: " + mill+ " milliseconds.");
System.out.println("GPSTime " +gpstime+ " Time in seconds: " + diffSeconds+ " seconds.");
//System.out.println("Time in minutes: " + diffMinutes+ " minutes.");
//System.out.println("Time in hours: " + diffHours+ " hours.");
//System.out.println("Time in days: " + diffDays+ " days.");
t1 = t2;
//System.out.println("Time in minutes: " + diffSeconds+ " seconds.");
if(diffSeconds < 80)
b=(int) diffSeconds;
System.out.println(b);
l.add(b);
else if(diffSeconds > 80)
b2=(int)diffSeconds%60;
System.out.println(b2);
l.add(b2);
a++;
for (int i=0; i<l.size();)
secs+=l.get(i);
i++;
System.out.println(secs);
int hours = (int) (secs / 3600),
remainder = (int) (secs % 3600),
minutes = remainder / 60,
seconds = remainder % 60;
String disHour = (hours < 10 ? "0" : "") + hours,
disMinu = (minutes < 10 ? "0" : "") + minutes ,
disSec = (seconds < 10 ? "0" : "") + seconds ;
if (count < 2)
int se = Integer.parseInt(disSec);
String min = (t2.getSeconds() < 10 ? "0" : "") + t2.getSeconds();
System.out.println("00" + ":" + "00" + ":" + min + " hh:mm:ss");
System.out.println(disHour +":"+ disMinu+":"+disSec+ " hh:mm:ss");
}catch(Throwable th)
Logger.getLogger(testing1.class.getName()).log(Level.SEVERE, null, th);
}finally
if(preparedStatement!=null)
preparedStatement.close();
if(conn!=null)
conn.close();
}this is output
GPSTime 2010-05-13 20:16:13.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:17:10.0 Time in seconds: 57 seconds.
57
GPSTime 2010-05-13 20:18:10.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:19:10.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:20:10.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:21:11.0 Time in seconds: 61 seconds.
61
GPSTime 2010-05-13 20:22:11.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:23:11.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:24:11.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:25:11.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:26:11.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:27:11.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:28:12.0 Time in seconds: 61 seconds.
61
GPSTime 2010-05-13 20:29:12.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:30:12.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:31:12.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:32:12.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:37:46.0 Time in seconds: 334 seconds.
34
GPSTime 2010-05-13 20:38:46.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 20:47:22.0 Time in seconds: 516 seconds.
36
GPSTime 2010-05-13 21:12:54.0 Time in seconds: 1532 seconds.
32
GPSTime 2010-05-13 21:13:54.0 Time in seconds: 60 seconds.
60
GPSTime 2010-05-13 21:14:55.0 Time in seconds: 61 seconds.
61
GPSTime 2010-05-13 21:37:08.0 Time in seconds: 1333 seconds.
13
GPSTime 2010-05-13 21:38:09.0 Time in seconds: 61 seconds.
61
31169.0
08:39:29 hh:mm:ssi am getting the total time for all date
i need only the particular date of total time
2010-05-11-->total time
2010-05-12->Total time
2010-05-13->total time
how do i change the given code to get the above output
please help me anybody having ideaBakthavachalam wrote:
i am getting the total time for all date
i need only the particular date of total timeIn which case your while(rs.next()) loop needs to process 1 day at a time and print its results when the date changes (assuming your Timestamps come in in date sequence; if not, you'll have to sort them first).
I suspect you'll also have to decide what you want to do with
GPSTime 2010-05-13 23:59:59.0
followed by
GPSTime 2010-05-14 00:00:01.0
Do you still need to calculate the difference? And if so, which "date" does it go in, or is it split?
Your logic seems incredibly convoluted for such a simple task. What exactly are you trying to do?
Winston
BTW: TimeStamp.getSeconds() is deprecated, which means you use it at your peril. -
How to get Header data in CS11 reg:-
Hi all,
How to get the Header data in the report after executing CS11 transaction.
Thanks & Regards
Piyush SharmaHi,
CS11 report itself the Header details like the Header material, plant and usage and the component details will be generated. This is the Standard SAP report available. If you need more details then you need to go for the development only.
Regards,
V. Suresh -
How to get SEC data into numbers??
I am trying to get the SEC data into a .csv file so that I can play with it in a numbers. A few years ago the program thumbval (thumbnail evalu-a-tor) did a pretty good job, but it used web queries, which broke over time, as the pages it referenced changed.
What I would like to do is simply get the data from the SEC, and CUT AND PASTE it into numbers, but this is difficult, as it is improperly formatted and just gets placed in a single cell. grrrrr
Any suggestions? Morningstar has 'watered down' financial statements in table form. My broker (BMO investorline) provides .csv files, but they contain only summary data - for instance the quarterly income for BWLD is just a few lines, and contains none of the detail breakdown found in the SEC reports.
The data exists. It is plastered all over the financial world, surely getting it into a spreadsheet ready format has been done to death, but I am going crazy trying to figure this one out.Hello
As I don't know from where where grabbed your datas, I can't make tests.
May you copy a block of datas from the web page then paste into a Pages document.
After that activate the "Show hidden chars" tool.
You will see which character is used as a separator.
You may also attach the Pages doc (after zipping it) to a mail and send it to:
koenig PERIOD yvan AT tele2 PERIOD fr
I will be able to look at the datas's contents.
I met several cases.
- 1 - values separated by TABs and they may be pasted as is.
- 2 - values separated by Returns. They can't be pasted as is. I posted a script to deal with this case. But often this one is linked to Safari. Entering the Web page with Firefox gave a TAB separated values block
- 3 - values separated by spaces. In this case, it is difficult to get a correct result.
I posted a script able to deal with this case because most of the values where numbers so I was able to replace every occurence of (digit + space) by (digit + TAB) and every occurence of (space + digit) by (TAB + digit).
Yvan KOENIG (from FRANCE lundi 31 décembre 2007 18:17:9) -
How to get editable data into internal table
Hi ABAPers,
I am displaying REUSE_ALV_GRID_DISPLAY report with one editable field and i have post button in report. Once i select post button i need to get editable data to internal table which i passed to REUSE_ALV_GRID_DISPLAY.
actually i am writing below code but data is not coming to internal table.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF-STATUS'
i_callback_user_command = 'USER_COMMAND '
it_fieldcat = t_field[]
i_default = 'X'
TABLES
t_outtab = <fs_display1>. "t_display
FORM user_command USING g_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
g_test1 = g_ucomm.
CASE g_ucomm.
WHEN 'POST'.
READ TABLE <fs_display1> ASSIGNING <fsw_display1> INDEX 1. "Just for testing index 1
IF sy-subrc = 0.
w_display = <fsw_display1>.
APPEND w_display TO t_display.
CLEAR : w_display.
ENDIF.
PERFORM v1.
PERFORM bapi_call.
ENDCASE.
ENDFORM. "USER_COMMAND
Please help me how to get.
Regards,
Raju.Hi,
Try the following:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF-STATUS'
i_callback_user_command = 'USER_COMMAND '
it_fieldcat = t_field[]
i_default = 'X'
TABLES
t_outtab = <fs_display1>. "t_display
FORM user_command USING g_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
g_test1 = g_ucomm.
CASE g_ucomm.
WHEN 'POST'.
* to reflect the data changed into internal table
DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
READ TABLE <fs_display1> ASSIGNING <fsw_display1> INDEX 1. "Just for testing index 1
IF sy-subrc = 0.
w_display = <fsw_display1>.
APPEND w_display TO t_display.
CLEAR : w_display.
ENDIF.
PERFORM v1.
PERFORM bapi_call.
ENDCASE.
ENDFORM. "USER_COMMAND
Hope it helps.
Regards,
Gilberto Li -
How to get webi data into dashboard for non-users of webi.
I need to find a way to get data from a WebIntelligence Report (essentially 3 numbers: Average This Year, Average Last Year and Target This Year (eg, 40, 63, 55)) into a dashboard, where the data is refreshed each day. The resulting dashboard will be published on my external web site where anyone can access it. It is essential that a connection to the webi server is not required, so I can publish the report data to a text file on a network drive and pick it up from there. The data will change daily so this must be reflected in the dashboard.
Webi has no capability of saving to XML, so it's excel, text, csv archive or PDF only.
I have been playing with the "From Text" option in the Data tab, but changes to the data do not show when the .swf file is run. When in dashboard mode, I can click on preview to show the dashboard and the data doesn't change, however when I exit preview, the data is updated in the spreadsheet of the dashboard. It is just never reflected when the dashboard is displayed. I have dicked the refresh ever 1 minute, refresh data when opening the file, overwrite existing cells options in the External Data Range Properties page for the From Text option and am looking at the data via both a Grid object and an Spreadsheet object.
Could anyone please suggest what I am doing wrong, or anything else I may be able to try instead.
Using BO4.1, sp1, p1.
Thanks
Rodney.Hello Evans,
PLZ refer publishing webservice connection in webi
Creating BI Web Service in BO 4.0
Hope it will suits your requirement
Regards
Subbarao M -
How to get my text and graphics to scale with the browser dynamically?
Hi there!
I've run into an issue where, with my design - I'm trying to get text and graphics to scale and move with the browser as someone adjusts it. (As opposed to it moving and falling apart as the browser window gets too small.)
http://www.richardsuchit.com is where it's posted at the moment.
I'd it to maintain it's position in the center of the browser window no matter how small or large, just to adjust in size, rather in position. I wonder if this is possible?
Looking forward to your answers! Thanks.
-RichardHi
Here is a sample file of text that re-sizes according to your window size.
https://www.dropbox.com/s/z7hqxejysuxs597/Sample.zip
Regards
Susanta Kumar Muduli -
My iPhone is not showing that it is connected to wi-fi. My laptop is showing the wi-fi signal with a completely strong signal. I have turned the phone off & on multiple times, and have turned the wi-fi (on the phone) off & on multiple times as well, all with the same result. Help!!! Any suggestions?
Poof! It's working like normal! Thanks Lawrence! Guess I have to learn patience!
-
How to get raw data into BI system from maxdb database
Hi Friends
I have a scenario where i need to get the raw data from a maxdb database into my BI system.The data is stored in the sapdata folder of maxDB.
Can you please throw somelight on it?
Thanks in advance.....................................................Hi Rajat
Please check SAP note 520647.
It explain the steps for DB Multiconnect using DBCON
Hope this helps
Ravinder -
How to get BPS application into multiple languages
Hi,
We have BPS application configured only in English. However, when we log on with a different language, the descriptions, labels and texts went blank in the planning folders and layouts. Is there a way to supplement those descriptions, lables and texts with English content we already have without doing BPS0 for each language?
Thanks,
DianaHi Diana,
I'am Afraid if there is a method apart from doing the Language translations manually.You have to do them manually for all the labels in the folder and entries for the layouts etc..i have faced a similar situation for Translations in Japanese and Korean Langauges for BPS.The method is to do them manually for each layout and folders labels.
regards
Sai Vishnubhatla
Maybe you are looking for
-
How to limit internet access in dpc3925
Hi all, I have dpc3925 router and I want to restrict the time of internet access to a certain laptop.. I know it can be done... Plese help me how to do it... Appriciate thevhelp in advance....
-
Can I connect a PS3 wirelessly via the built-in AirPort card using internet sharing from my ethernet-wired iMac? It works for my Nook e-reader, but the PS3 give a DNS error code 8070102, I've tried alternate DNS settings, but no luck.
-
How to get the JNDI name of an EJB from within itself
Hello, I'm trying to find a way to get the JNDI name of a session bean from within itself. In the application I'm working on we need to support multiple customers. In order to do that, each EJB has a normal home and remote interface, a base class bea
-
After series of trials and searching the forum i was able to get the commapi and install it. i want to design a simple program that can control circuits (i.e to on leds) . the problem is how to write a 1 or 0 bit to a particular pin. i saw different
-
JMenuItem icon, text alignment question
hello, can some one help with my question: I got 5 JMenuItems in a JMenu, some JMenuItems have icon, some not, I want to align them with icon and text in a neat format, like those in Sun's Forte IDE's Menu: but I can only do it like this: icon1 open.