Displaying of 2 records in a single line in report
Hi Experts,
I have PO item data and PO schedule line items being stored in a Cube.
I developed a report which is a combination of fields from both the datasources. so i am getting 2 records for the same line item Of a purchase order.Now my requirement is to Display the line item details in a single line.How can i achieve this.
please help me Out in sorting this issue.
thanks in Advance.
Regards,
Sandeep
Hi
make sure you have proper common fields or matching fields in both datasources.
Regards
Sudeep
Similar Messages
-
MessageTransformBean - SimplePlain2XML - Multiple records on a single line
Hi,
I am trying to convert multiple record from a single line to multipe rows in an XML message with the MessageTransformBean.
If the record look like this it's working:
RECORD1textETC
RECORD2textETC
But the incoming message are all on a single line:
RECORD1textETCRECORD2textETC
Is there a way to add a linefeed to my incoming message after X characters, or to tell the adapter to split by length instead of spliting on the end of line?
Thanks,
MartinI had to code a custom Module Adapter to do it.
Here's the main part of the module adapter EOLConvertBean...
Message msg = (Message) inputModuleData.getPrincipalData();
XMLPayload xmlpayload = msg.getDocument();
byte[] content = xmlpayload.getContent();
byte crlf = 0x0A; // end of line char
int current = 0; // current bytes read
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int lines = content.length / recordLen; // record len = insert EOL after X recordLen
// TODO change for do while for 1x line record
for (int i = 0; i <= lines; i++) {
baos.write(content, current, recordLen);
baos.write(crlf);
current += recordLen;
xmlpayload.setContent(baos.toByteArray());
inputModuleData.setPrincipalData(msg);
Edited by: Martin Lavoie Rousseau on Oct 6, 2010 9:08 PM -
Join various records on a single line
Hi,
How to unite in a single line a result that has more than one record?
I.e.:
cod_prod tax tax_name value
1 1 tax1 5
1 2 tax2 10
1 3 tax3 8
2 1 tax1 3
2 2 tax2 6
3 1 tax1 6
4 1 tax1 7
4 2 tax2 12
4 3 tax3 6
4 4 tax4 9Returning this:
cod_prod tax tax_name value cod_prod tax tax_name value cod_prod tax tax_name value cod_prod tax tax_name value
1 1 tax1 5 1 2 tax2 10 1 3 tax3 8
2 1 tax1 3 2 2 tax2 6
3 1 tax1 6
4 1 tax1 7 4 2 tax2 12 4 3 tax3 6 4 4 tax4 9-- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
-- OEL 2.6.32-100.0.19.el5Use "pivot" which is available in oracle 11g
-
Placing multiple records on a single line (variables)
Post Author: AeroProg
CA Forum: Formula
Hi, I am new to Crystal Reports, but I know Basic and other programming. I have Crystal Reports XI and am pulling data from our ERP/MRP system, Epicor Vista (Progress DB).I've been asked to figure out a Crystal Reports for our company (I get thrown into these projects). I know what the report should look like and I know how I would go about some VB code in a macro in Excel if all the data was in worksheets(i.e. like tables).Below is the data. Any help would be SO appreciated. So far I'm loving Crystal Reports and I can't wait to get some reports our company can start using but I'm stuck on understanding the timing and connection of formulas with the records.Table1 "JobMtl"Field "JobComplete":StringField "JobNum":StringTable2 "JobOper"Field "OpComplete":BooleanField "OprSeq":Number{JobMtl.JobComplete}FalseTrue{JobMtl.JobNum}20102011{JobOper.Complete}FalseTrue{JobOper.OprSeq}10203040Let's say I dragged all 4 fields into a report. It would look like this.JobNum JobComplete OprSeq OpComplete2010 False 10 True2010 False 20 True2010 False 30 False2010 False 40 False2011 False 10 True2011 False 20 False2011 False 30 FalseI would it to read like thisJobNum JobComplete PrevOp CurrOp NextOp2010 False 20 30 402011 False 10 20 30**Note: {JobMtl.JobComplete} will be used so I am only reporting jobs that are "not complete". I guess it means nothing to you guys, but I put it here because I was not sure if this will be involved in a formula.Thanks,AnthonyMy email is ls1z282002_at_yahoo.com (replace "_at_" => "@") if you would a *.RPT with the data I've shown.Post Author: GraemeG
CA Forum: Formula
I don't know if you can attach files... if you can I'll attach the sample. In the mean time, here's the rub...
(By the way, I use basic syntax in my formulae... old habits and all that!)
I created two tables (actually they were two sheets in a spreadsheet) called JobMtl and JobOper and put some records in in the format AeroProg described above.
Create a formula called aResetVariables:
'Define shared variables
shared CurrOpNo as number
shared PrevOpNo as number
shared NextOpNo as number
'Set Variables to zero
CurrOpNo = 0
PrevOpNo = 0
NextOpNo = 0
'This next line is just to keep Crystal happy
formula = 0
Create one called bCurrentOp:
'Define shared variables
shared CurrOpNo as number
shared PrevOpNo as number
shared NextOpNo as number
if CurrOpNo = 0 and {JobOper_.JobComplete} = "false" then
CurrOpNo = {JobOper_.OprSeq}
end if
formula = CurrOpNo
Create one called cPreviousOp
'Define shared variables
shared CurrOpNo as number
shared PrevOpNo as number
shared NextOpNo as number
if {JobOper_.OprSeq} < CurrOpNo or CurrOpNo = 0 then
PrevOpNo = {JobOper_.OprSeq}
end if
formula = PrevOpNo
Create one called cNextOp
'Define shared variables
shared CurrOpNo as number
shared PrevOpNo as number
shared NextOpNo as number
if {JobOper_.OprSeq} > CurrOpNo and CurrOpNo <> 0 and NextOpNo = 0 then
NextOpNo = {JobOper_.OprSeq}
end if
formula = NextOpNo
In your Crystal report, group by the JobNum and put the aResetVariables formula into the group header. This will make sure that the variable are set back to zero every time the Job No changes. Suppress the group header.
Plonk what ever you want into the detail line but suppress that too.
Put the JobNum, JobComplete, cPreviousOp, bCurrentOp and dNextOp formulae into the footer. (Donu2019t suppress this section!)
Run the report and you should get a line for each job showing the previous, current and next operation. If you tinker with the status' it seems to work everything out okay. -
ICal only displays a single line for entries in month view.
This means I can't see what my diary entries refer to. Can I change it to show two lines or the full entry, as iCal did in Snow Leopard?
Hi Guys, thanks for getting back to me.
the problem is purely about design view display and not about coding.
Below is how CS4 displays borders with two lines which I find difficult to decipher:
Then below is Macromedia DM 8 and this how I want the borders to look, with single lines to display the tables.
This may just be the way Abobe have decided to display tables in design view and there may not be any option to change it but if you know any way to change it I would be most greatful.
Thanks again.
G -
Text should be displayed in a single line in jsff page
Hi ,
I have several af:selectOneChoice components whose labels should be displayed in a single line .
the page has a left and right navigator panel. when i drag the navigators to the center , the scroll bar should be enabled and the texts (labels) of the various components in the jsff page should be displayed in a single line.
But , the text gets wrapped into multiple lines. PFA the screen shot and the code of the jsff pageHi Maddy,
for this issue you can use WAD 7.0. There you can set the numbers of columns and rows which are displayed easily within the analysis item. You can also determine if you want to have scroll bars or paging tabs (like in Query Designer).
Brgds,
Marcel -
Displaying items in a single line in ALV grid using ALV_TOP_OF_PAGE.
Hello Guys,
I am having a problem in displaying items in a single line in the ALV Grid using event ALV_TOP_OF_PAGE.
My requirement is to group items on a single line i.e. in the example below, Vendor code and posting date are on the same line. The next line the prints Vendor Name and Document no.
Vendor Code: 123123 Posting Date : 01.01.2011
Vendor Name: ABCD Document No: 152246598.
Here is my code in subroutine 'ALV_TOP_OF_PAGE',
wa_list_comments-typ = 'S'.
wa_list_comments-key = ''.
wa_list_comments-info = 'Vendor Code'.
APPEND wa_list_comments TO it_list_comments.
wa_list_comments-typ = 'S'.
wa_list_comments-key = ''.
wa_list_comments-info = 'Posting Date'.
APPEND wa_list_comments TO it_list_comments.
The above code prints in the following format i.e one below the other,
Vendor Code: 123123
Posting Date : 01.01.2011.
I also tried using HTML_TOP_OF_PAGE, but it didn't work.
Can anybody please help me out with this.
Regards,
Danish.Hi Danish,
Your problem is with the alignment and you need some fix positions .
The solution i feel is u can use as below :
In CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
use
i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE'.
Now on calling routine call use cl_dd_document class :
FORM html_top_of_page USING document TYPE REF TO cl_dd_document .
data : doctable TYPE REF TO cl_dd_table_element,
col1_t1 TYPE REF TO cl_dd_area,
col2_t1 TYPE REF TO cl_dd_area,
col1_t2 TYPE REF TO cl_dd_area,
col2_t2 TYPE REF TO cl_dd_area.
add quick table with five columns
CALL METHOD lw_document->add_table
EXPORTING
no_of_columns = 2
border = '0'
cell_background_transparent = ' '
width = '100%'
IMPORTING
table = doctable.
Filling columns in row
CALL METHOD doctable->add_column
EXPORTING
width = '40%'
IMPORTING
column = col1_t1.
Filling columns in row
CALL METHOD doctable->add_column
EXPORTING
width = '60%'
IMPORTING
column = col2_t1.* Filling columns in row
Call method doctable->new_row.
CALL METHOD doctable->add_column
EXPORTING
width = '40%'
IMPORTING
column = col1_t2.
Filling columns in row
CALL METHOD doctable->add_column
EXPORTING
width = '60%'
IMPORTING
column = col2_t2.
*Now adding the texts
lw_text1 = 'your first text'
CALL METHOD col1_t1->add_text
EXPORTING
text = lw_text.
*Similarly add text for other columns
*Adujust % in width to adjust the column as required
Endform.
Hope this will solve your problem . -
Adding Amount field in BSEG table and display it single line item?
hi experts,
I am doing credit / debit form now my requirement is
According to BELNR , GJAHR,BUKRS i want to find credit amount for this selection cretiria.
so i want to add all the lines of amount filed for a particular BELNR and display it as single line.
so i am getting data from print program like this
SELECTION-SCREEN BEGIN OF BLOCK b0 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 2.
PARAMETERS: p_belnr LIKE bkpf-belnr OBLIGATORY,
p_bukrs LIKE bkpf-bukrs OBLIGATORY,
p_gjahr LIKE bkpf-gjahr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b0.
SELECT SINGLE *
FROM bkpf
INTO i_bkpf
WHERE belnr = p_belnr
AND ( blart = 'DG' OR blart = 'ZG' )
AND bukrs = p_bukrs
AND gjahr = p_gjahr.
IF sy-subrc = 0.
SELECT *
FROM bseg
INTO table it_bseg
WHERE belnr = i_bkpf-belnr .
ENDIF.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_CREDIT_DEBIT' " p_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = v_form_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION v_form_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
i_bkpf = i_bkpf
i_bseg = i_bseg
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
so my I_BSEG containing all line items of particular BELNR . with the field SHKZG iam getting only credit line items .
now i want to do is add all credited amount and display like this in a table.
against ref# (BSEG-REBZG) ! details (BSEG-SGTXT)! amount
124569 10%discount 950.00(total amount ie sum of all lines amount for a BELNR)
10.00(total tax amt ie sum of all lines of tax amount for a BELNR)
960.00hi arun,
i used collect in smartform my procedure is like this .
i am getting data into i_BSEG because i declared like this in TABLES parameter
i created a loop .
in that i mentioned like I_BSEG into WA_BSEG.
then i created a program lines here i mentioned like this.
COLLECT WA_BSEG INTO IT_BSEG.
but because of BUZEI "Number of Line Item Within Accounting Document .it is not same it is varying for every credited time that means for every line of BELNR. thats why it is not adding it is just appending .
so pls tell me any other chance to find sum .
because i want to sum up all credted amount and display it in single line
ie first column REBZG "Number of the Invoice the Transaction Belongs to(against ref) i want to display once .
And Second column SGTXT "item text(details) for amount once and for tax amount once
And Third column Amount first line consists total amount & second line consists total for tax amount
regards,
satheesh.
[email protected]
any doubts chat me regarding this post. -
Long paragraphs in incoming emails display as a single line, with the end of the paragraph running off the screen. I want to make it wrap automatically to fit the screen.
For the browser window, just drag it to the top left of the screen (click and hold on the top bar with the traffic lights to drag), then in the bottom right of the window you'll see a rectangle with diagonal hatching. Click and hold on that and drag the window to the size you want.
Clicking on the green dot at top left will expand the window to fit the screen, clicking it again will shrink it back to where it was (this doesn't work in Finder windows quite the same).
The menu bar size is set in the bowels of the OS, though there may be third-party applications which can alter it.
As it's size is relative to the screen resolution, you could try reducing the resolution in System Preferences > Displays to see if that would suit you better. -
Reg. displaying the comparison BOM fields in a single line in CS14
Dear Experts,
My requirement is that whenever CS14 is executed for Primary BOM with Secondary BOM comparison, when the Differentiated/Summarized Comparison button is selected, the comparison BOM Fields should appear in a single line. Currently SAP standard displays in two lines. in first line, primary BOM and next line, Secondary BOM. This functionality must be changed. I found Customer Exit PCSD0004 to achieve this. But how to do? Can anyone share your experience?
Thanks
Ramesh ManoharanHi mroshaw76 ,
That should be eazzzzyy :)
<?for-each-group:/Parent;Product?>
<?Parent?> --- this will display the car
Colors of the <?Product?> : <?for-each@inlines:current-group()?><?value?><?end for-each?>
<?end for-each?>Note the element name are case-sensitive. -
<p>I have four groupings, Domain, Area, Priority (3rd level of grrouoping) and then Problem ID. Priority group could have values such as '1', '2', '3', '4' and '5' with corresponding "average" age formula on these group level. values.</p><p>Example: 1 Avg Age= 30</p><p> 2 Avg Age= 45</p><p> 3 Avg Age= 69</p><p>Reguirement: Display group name values and their corresponding average formula on a single line/row.</p><p>Sample Solution: Priority 1 = 30, Priority 2 = 45, Priority 3 = 69 </p><p> ***solution above should be displayed/concatenated on one line.</p><p>Your help is greatly appreciated, thank you in advance.</p>
So right now - your report looks like this
GroupHeader 1
GroupHeader 2
Priority 1 = 50 (actual display of Group 3)
Priority 2 = 75 (actual display of Group 3)
Priority 3 = 45 (actual display of Group 3)
Priority 4 = 9 (actual display of Group 3)
Priority 5 = 8 (actual display of Group 3)
And you want to change that so that it displays horizontally.
If there will only ever be 5 priorities, I think I would cheat the system a bit. Create a formula that runs at the group 3 level and dumps the values into 5 separate variables (formula below).
Then create 5 separate display formulas and put them in Group Footer 2 (if you already have a GF2 - then create a second one and move it above your current GF2). Suppress the G3 section and you should be close to what you are after (unless you also have detail sections, then we'll need to revisit).
This could also be accomplished with a multi-column subreport at the G2 or G3 level if you need more flexibility.
formula *******
numbervar priority1;
numbervar priority2;
numbervar priority3;
numbervar priority4;
numbervar priority5;
if {DB.Priority} = 1 then priority1:= {@avgGroupPriorityAvgAge}
else if {DB.Priority} = 2 then priority2:= {@avgGroupPriorityAvgAge}
else if {DB.Priority} = 3 then priority3:= {@avgGroupPriorityAvgAge}
else if {DB.Priority} = 4 then priority4:= {@avgGroupPriorityAvgAge}
else if {DB.Priority} = 5 then priority5:= {@avgGroupPriorityAvgAge} -
Positional Polling a file with multiple records at single line
Hi
I am trying to poll a file with positional read.It works fine with single record at single line.But how to solve the problem when there are multiple records at single line???How to delimit the records??i have a file which contains emp records like empID,empName,Dept.And these records of fixed length.I need to poll this file wirh positional read.I used fixed length polling.It works fine when there is only 1 record at one line.But when 2 or more records on same line it takes first record correctly but could not understand the start of second record.
for ex
1 shital mktg
2 priya finance
it works when records are at separate line.
but another case is:
1 shital mktg 2 priya finance
how to delimit these records?? -
Displaying all the records in a tabular form on a single page
Hello,
After setting up a data entry page, I have hit an unexpected problem.
The logic in my page requires that all the records in my tabular form should be displayed .
The tabular form is based on a collection, and the user selects rows through a checkbox.
Any reload of the page due to pagination will break the logic, as some calculation and display events occur during page load,
based on the previous page.
I need to display about 25 rows.
I have changed the report attribute to display 50 rows, but it displays rows only up to the bottom of the screen,
i.e. 11 rows.
Unfortunately I only just added some new rows and saw this behaviour else I would not have gone that way,
as I expected APEX to display all rows if required.
Some help will be much appreciated.
Regards
Leckrajleckj wrote:
Hello,
After setting up a data entry page, I have hit an unexpected problem.
The logic in my page requires that all the records in my tabular form should be displayed .
The tabular form is based on a collection, and the user selects rows through a checkbox.
Any reload of the page due to pagination will break the logic, as some calculation and display events occur during page load,
based on the previous page.
I need to display about 25 rows.
I have changed the report attribute to display 50 rows, but it displays rows only up to the bottom of the screen,
i.e. 11 rows.
Unfortunately I only just added some new rows and saw this behaviour else I would not have gone that way,
as I expected APEX to display all rows if required.Pagination settings are cached for the duration of the session. For this change to be instantly visible, either log out, restart the brower, and log in again, or manually re-request the page from the browser address bar, adding 'RP' in the ClearCache position in the URL. -
How to Display number of Records in Single XML file
Hi,
In My SAP MDM DataManager I have a table called Location it contains 3 Fields. And Having 10000 Records in that.
When I am trying to make xml file through MDM Syndication Manager it is creating 10000 xml files.
I don't want to that much files and I need all the Records in a Single XML File, how can I do that in MDM Syndication server.
I have changed xsd:element attribute maxoccurs="unbound"
but there is no property like that.
I am using SAP MDM 5.5 with SP 4.
how can I see all my records in single XML file.
Thanks and Regards,
Ashok.hi,
To syndicate all XML records in single XML file:
follow the steps:
1. u201CIn the Destination Items pane, click on the root ( for product repository - Product).
2. u201CIn the Properties pane, for the Repeatable XML Node field, uncheck its u201CInheritu201D flag and check its flag in the u201CValueu201D column as shown below. This will cause all records to be syndicated into one XML file.u201D
3. In the item mapping tab:
In the Source Items page, select the root node,
. u201CIn the Destination Items pane, select the Products node and map it,
and do the remaining source and destination fields mapping,
now you will get all records in single XML file.
hope this may help you,
Regards,
Srinivas -
Put 2 relevant records in a single row
<p>Hello everybody,</p><p>I have a Attendance table, which has columns WorkDate. Schedule_IN_Time, Schedule_OUT_Time, Login_IN_Time, Login_IN_Time, Login_Type.</p><p>Now for every Login_Type = "I" or "O" there are two records. That means for a day say 07/10/2006 as Workdate there are two records like,</p><p>EmpID WorkDate Schedule_IN_Time Schedule_OUT_Time Login_IN_Time Login_OUT_Time Login_Type</p><p>1 07/10/2006 09:00 17:00 9:00 I</p><p>1 07/10/2006 09:00 17:00 17:15 O</p><p>NOW.. I want a report in Crystal report which will have a single record for a single Workdate..as folllows</p><p>EmpID WorkDate Schedule_IN_Time Schedule_OUT_Time Login_IN_Time Login_OUT_Time</p><p>1 07/10/2006 09:00 17:00 9:00 17:15 </p><p>Can you please help me out..I'm usng CrystalReport XI.</p><p>Thanks in advance.</p><p>sauren </p>
Once you group on these put summaries for Max on each of the values you want to display as one line.  Put them in the footer and suppress the details. That should give the desired results.
    - Kathryn Webster (Report Design Consultant)
          Kat's News: http://diamond.businessobjects.com/blog/279
Maybe you are looking for
-
Mail app crashes when I try to configure my Exchange account
Just bought a Sim free iPhone 6, 16 GB (A1586). Successfully configured the Mail app with my Gmail account. However when I try to configure my company's Exchange account, the mail app crashes. Reset the network settings, but the app crashes upon veri
-
My emails are considered as phishing
Hi, I have a customer that I send a lot of emails to. I use Mail.app 5 and I have four domains with different email accounts. All my emails I send to him is considered as phishing by his email client (Windows mail). Even if he clicks trust this email
-
Upgrade from 9.2.0.2 to 9.2.0.3 to 9.3.1
Hello. We are upgrading our Essbase/BI environment from 9.2.0.2 to 9.3.1 so that we can take advantage of a few key improvements in BI and the essbase kernel (ASO data slices, BSO selective exports). We have run into a bug that the BI+ repository can
-
SWF not working properly after upload
I have a Flash gallery that works locally but not after upload. I added several photos to the xml file and only the original 8 jpgs are displayed. http://federalhomecompany.com/bricktest/fireplaces.swf Here is the html file... http://federalhomecomp
-
Files out of order in Camera RAW
When I try to load a batch of .tif files into photoshop Camera RAW, they end up being all out of order numerically when in Cam RAW. How can this be resolved?